1. Installing a KVM virtual machine
# yum install-y KVM virt-* libvirts bridge-utils qemu-img
Package Name Description:
KVM: The package contains a KVM kernel module that provides the KVM hypervisor in the default Linux kernel
Libvirts: Installing virtual machine management tools, using commands such as Virsh to manage and control virtual machines
Bridge-utils: Setting up network card bridging
virt-*: Create, clone virtual machine commands, use the QEMU command to create disks, and so on.
QEMU-IMG: Installs the QEMU component, uses the QEMU command to create the disk, and so on.
2 . Modify the VNC server configuration file
# vim/etc/libvirt/qemu.conf
Remove the # comment in front of vnc_listen = "0.0.0.0"
Problems:
Error when starting KVM Service: Version Base not defined in file libdevmapper.so.1.02 with link time reference
The phenomenon is as follows:
#/ETC/INIT.D/LIBVIRTD Start
Starting LIBVIRTD daemon:libvirtd:relocation Error:libvirtd:symbol Dm_task_get_info_with_deferred_remove, version Base not defined on file libdevmapper.so.1.02 with link time reference [FAILED]
Workaround:
# Yum Upgrade Device-mapper-libs
Installing KVM under CentOS 6.5-x86-64