1. Introduction
Kernel-based virtual machine is an Open-source system virtualization module that has been integrated into Linux's major distributions since Linux 2.6.20. It uses Linux's own scheduler for management, so its core source is very small relative to Xen. KVM has now become one of the mainstream VMM in academia.
KVM Virtualization requires hardware support (such as Intel VT Technology or AMD V technology). is hardware-based full virtualization. Xen was based on software emulation Para-virtualization, and the new version was full virtualization based on hardware support.
2, check whether the machine supports virtual machines
Terminal input command: grep vmx/proc/cpuinfo (Intel Chip)
grep Svm/proc/cpuinfo (AMD Chip)
Do not know the chip manufacturer then input: Egrep ' (VMX|SVM) '/proc/cpuinfo
If Flags: There are VMX or SVM to support VT, if there is no output, indicating that your CPU does not support, you will not be able to successfully install the KVM virtual machine.
3, installation
The installation commands are as follows:
Apt-get Install Ubuntu-virt-server Python-vm-builder kvm-ipxe
Add the current user to the KVM and LIBVIRTD group
AddUser ' Id-un ' LIBVIRTD
AddUser ' Id-un ' KVM
Run the following command to check that the KVM is installed successfully.
root@kvmhost:~# virsh-c Qemu:///system List
Id Name State
----------------------------------
No error message. Installation is no problem.