To do this, we need the CPU support virtualization, some machine support but not in the BIOS, this need to be opened beforehand.
1. VMware installation centos6.6 64 bit (slightly)
Here are a few things to note:
A. Memory to 2g
B. Disk to 50g, or separate disk for storage of virtual machine files
C. The most critical step, when creating a virtual machine, the CPU needs to be configured virtualization (tick virtualization Intel vt-x/ept or Amd-v/rvi (V))
2. Pre-install KVM preparations
A. clear iptables rules
Service iptables stop; Service Iptables Save
B. turn off SELinux
Sed-i ' s/selinux=enforcing/selinux=disabled/'/etc/selinux/config
Setenforce 0
3. Start installing KVM
A. check if your system supports virtualization
Grep-ei ' VMX|SVM '/proc/cpuinfo (or cat/proc/cpuinfo |egrep--color ' VMX|SVM ')
Supported if output content, where Intel CPU support will have VMX,AMD CPU support will have SVM
B. installing a virtualized package with Yum
Yum install-y KVM virt-* libvirt bridge-utils qemu-img
Description
KVM: The package contains a KVM kernel module that provides the KVM hypervisor in the default Linux kernel
Libvirts: Install the Virtual Machine Management tool and use commands such as Virsh to manage and control the virtual machine.
Bridge-utils: Set up network card bridging.
virt-*: Create, clone virtual machine commands, and graphical management tools Virt-manager
QEMU-IMG: Installs the QEMU component, uses the QEMU command to create the disk, and so on.
C. check if the KVM module is loaded
Lsmod |grep--color KVM
The normal should be:
Kvm_intel 55496 3
KVM 337772 1 Kvm_intel
If not, you need to perform
Modprobe Kvm-intel
Try it again without restarting it.
1.3-KVM Installation Preparation