Installation of KVM virtual machine under Linux system

Source: Internet
Author: User

Introduction to a KVM virtual machine

KVM is the abbreviation for kernel-based Virtual machine and has 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. KVM is easy and easy to install and use, and powerful for virtualization deployments in cloud environments that are suitable for high-performance computing services as IaaS tiers

It has to be mentioned that Oracle's VirtualBox is also strong, with KVM being comparable to each other, but it is rarely used in a more expensive, common cloud computing platform. As for full virtualization and para-virtualization I think this is a very vague concept.

KVM provides a management interface for the image interface (Virtual Machine Manager) and a command-line management interface (Virsh). Depending on the scenario you use, you can also use the Libvirt library to manage virtual machines.

And the management of virtual machines using the Libvirt library is an industry-respected practice, thanks to the good portability and powerful API of the Libvirt library, and the availability of multiple language interfaces (e.g. C, Python, Java, C # and PHP)

Management of multiple types of virtual machines such as XEN,KVM and QEMU. For details, please refer to the official website: http://libvirt.org/.

Two-install KVM virtual machine management software/modules (all of the following are done in the host OS CentOS6.3)

(1), first check whether the physical machine (mainly CPU) support virtual machine technology.

[Email protected]5201351cat /proc/cpuinfo | grep  " VMX\|SVM "     // the output is not empty, which means that KVM virtual technology is supported

(2), installation of KVM before the installation of desktop environment, as for Linux system desktop installation can refer to the author of another article "Linux under the GNOME desktop environment installation"

(3), the dependencies and packages required to install a KVM virtual machine can be installed as follows.

[Email protected]5201351yum groupinstall virt*-y[[email protected]5201351  YumInstall qemu*-y                    // includes qemu-guest-agent and Qemu-kvm-tools

In fact, the first virt* software group, including 4 software groups:

(3), Start LIBVIRTD service

[[email protected]5201351 ~]#/etc/init.d/libvirtd start            // start LIBVIRTD service

It is important to note that if the CPU does not turn on virtualization technology or does not install Qemu-guest-agent and Qemu-kvm-tools, the following error may be reported in the KVM Graphics management interface:

Error polling connection ' Qemu:///system ': Internal error cannot find suitable emulator for x86_64

Respect for the work of others reproduced please be sure to indicate the source: http://www.cnblogs.com/5201351/p/4440147.html

Installation of KVM virtual machine under Linux system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.