KVM virtualization is included in the 2.6 Linux kernel, so all recent distributions support it without the need to install a custom kernel. However, it depends on the CPU supporting either the Intel VT or AMD-V virtualization extensions in order to run virtual systems at a reasonable speed.
On some systems, these extensions are disabled in the BIOS by default. Enabling them requires booting the system from the console, entering the BIOS menu and finding the option to turn on virtualization extensions. In some cases the system must then be fully shut down and started up again for this change to take effect.
Also, the host system should have LVM setup and have plenty of free space in its volume group, so that Cloudmin can create VM disk images as logical volumes.
For KVM instances to access the host system's network, you must setup a network bridge. These instructions assume that your host system has only one network interface, and it is
If your host system is running Webmin 1.554 or later, the network bridge can be created using the Webmin UI as follows :
eth0and change the IPv4 address to No address configured. Remember the current IP address and netmask, as they will be needed in the next step. Click the Save button.
eth0, then click Create.
br0selected as the interface.
To setup a Redhat-based system to host KVM instances, the steps to follow are :
yum install kvm qemu qemu-img parted
HWADDRline, and change the
ifcfg-eth0file, and at the bottom add the line
service network restart. This should be done at the console, as it will break network access to the host system if anything goes wrong.
yum install libcgroup /etc/init.d/cgconfig start chkconfig cgconfig on
yum install ebtables
Note that the eth0 device will no longer have an IP address; the br0 device has the IP after bridging is operational.
apt-get install kvm qemu parted
/etc/network/interfacesfile and change it to be like :
auto eth0 lo br0 iface lo inet loopback iface eth0 inet manual iface br0 inet static address 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255 network 192.168.1.0 gateway 192.168.1.10 bridge_ports eth0 bridge_fd 9 bridge_hello 2 bridge_maxage 12 bridge_stp off
/etc/init.d/networking restartor by rebooting . This should be done at the console, as it will break network access to the host system if anything goes wrong.
apt-get install cgroup-bin /etc/init.d/cgconfig start update-rc.d cgconfig defaults
apt-get install ebtables
/kvm. This can be located anywhere on the system though.