Cloning CentOS Guests - Disable MAC

Today I was scratching my head trying to figure out why my changes to the network to go from DHCP to static IP was not taking effect on my CentOS 7 guest. It turns out that the network configuration is defaulted to including the HWADDR (MAC) address as shown below:…

Read this article

Debian 8 KVM Guests - Get The Console Back

It appears that Debian 8 guests boot up without console access by default in KVM. To fix the issue read the solution I posted on Unix & Linux.…

Read this article

KVM - Add Disk

I run my virtual machines on SSD storage which is expensive compared to traditional HDD storage. Thus if a virtual machine needs a lot of storage, such as for a mirror, then I will give it an HDD disk to put the data on. Here's how to do just that.…

Read this article

KVM Cheatsheet

List Running Virtual Machines virsh list List All Virtual Machines virsh list --all Managing Guest State Shutdown Guest virsh shutdown $VM_ID_OR_NAME Start Guest virsh start $VM_ID_OR_NAME Reboot Guest virsh reboot $VM_ID_OR_NAME Destroy a Guest This command is an ungraceful shutdown, much…

Read this article

Qcow2 Conversion and Snapshotting

If you use Virtual machines, such as within KVM, then you may be running raw disk images. Converting them to Qcow2 will give you some advantages, such as the ability to snapshot your VM. Here we will show you how to: Check your disk file's format to see if it…

Read this article

Ubuntu 14.04 - Getting Started with KVM using PHP Helper Script

This post carries on from my previous article on how to install KVM on Ubuntu 14.04. To make life easier, I have created a PHP script to dynamically generate the KVM commands you need in order to create guests. Run these commands to install the PHP CLI package and…

Read this article

KVM Resources

This page is dedicated to all of the useful articles I have found on the net for using KVM. KVM Installation How To Geek - How to Install KVM and Create Virtual Machines on Ubuntu Ubuntu Docs - KVM Installation CentOS Docs - Create a guest using virt-install HowtoForge -…

Read this article

Ubuntu 14.04 - Setting Up A KVM Host

Setting up a KVM host perfectly requires knowldege in a lot of areas, especially when it comes to setting up the networking and optimizing disk performance. This tutorial is aims to be an "idiots guide" and glosses over most of these details in order to get you up and running…

Read this article

KVM - Offline Migration

1. (Optional) Save the guest. If the machine is currently running and you can't just shut it down for the migration, then save the machine's state which we will use later. virsh save [guest-id] [filename] e.g. virsh save dns.technostu.com dns.technostu.com.state Note: I just chose…

Read this article