Install KVM on centos6
Confirm your machine supports Virtualization
# Egrep 'vmx | svm '/proc/cpuinfoflags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat limit 36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm limit pebs bts rep_good limit pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida dts tpr_shadow vnmi flexpriority ept vpid
You can find vmx or svm from the cpu instruction set to support virtualization. Then you need to enter the BIOS to open an account for CPU virtualization support, and then you can install kvm.
Yum-y install qemu-kvm libvirt python-stronginst bridge-utils
/Etc/init. d/lib1_d start
Install graphical management tools
Virt-manager
Then you can use VNC or other graphic management tools to manage kvm through graphics.
Configure VNCserver
Vnc also requires support from the desktop environment. First, ensure that the desktop environment, such as GNOME or KDE, is installed. If not, run the following command to install
Yum groupinstall Desktop-yyum install fontforge-y
Install vncserver
Yum install tigervnc-server tigervnc
Run the vncserver command
Vncserver
Enter the password.
Connect to vnc through client tools
Select Virtual Machine Management
Then you can install the Virtual Machine graphically. The installation is very simple.