Comments on Virtualization With KVM On A CentOS 6.3 Server
Virtualization With KVM On A CentOS 6.3 Server This guide explains how you can install and use KVM for creating and running virtual machines on a CentOS 6.3 server. I will show how to create image-based virtual machines and also virtual machines that use a logical volume (LVM). KVM is short for Kernel-based Virtual Machine and makes use of hardware virtualization, i.e., you need a CPU that supports hardware virtualization, e.g. Intel VT or AMD-V.
5 Comment(s)
Comments
You are missing DELAY=0 in the bridge ifcfg script. Without it an incoming migrating VM will lose several seconds of network connectivity
Thanks for the great write-up. Makes for an impressive virtual lab for home or work use.
You don't have to worry about SELinux. Leave it enabled. I have centos 6.2 running with a similar sort of setup.
On the host, if you leave SELinux on, it is better. Each virtual machine will run under it's own svirt process meaning that the virtual machine is essentially block from reaching the host. This is important because it makes it much more difficult for a compromised virtual machine to act as an attack vector for the virtual host. It essentially seperates everything nicely.
See redhat admin docs, they are applicable to CentOS as well.
The documentation is not the most detailed I have ever seen, you won't get hand holding but they are good for nudging you in the right direction.
Very useful and clear tutorial! Thank you so much! However, I followed Part 8 looking to create the VMs in their respective LV, unfortunatelly, when the VM guest linux system is installing, I get stuck in the partition part with a message such as "Failed to create a file system" ext4... has it happened to anyone?
My best regards