KVM Kernel based virtual machine simple tutorial

Source: Internet
Author: User
Keywords Kernel if modprobe http here
Tags aliyun apt based bios code cpu desktop html

KVM (kernel-based Virtual http://www.aliyun.com/zixun/aggregation/39569.html ">machine") http://www.linux-kvm.org/, A kernel based virtual machine, with QEMU (processor virtual software), requires CPU-enabled virtualization (and the Virtualization option is turned on in the BIOS), which can be more than 80% more efficient than the physical machine. In addition, it supports SMP very well.

Contrast

1, VMware's comprehensive function, set overall, the speed is relatively the slowest;
2, VirtualBox more efficient than VMware, the most Chinese users;
3, KVM overall efficiency is highest.

System Requirements

How do you find out if your system can run KVM? Need a processor that supports virtualization, check the way here are two kinds:

Here is a list of compatible KVM processors (http://en.wikipedia.org/wiki/X86_virtualization#AMD_virtualization_.28AMD-V.29) to see if your processor is in it.

You can also check/proc/cpuinfo, if you see VMX or SMX in the CPU flags field, your processor supports KVM.

Get KVM

Apt://qemu-kvm

Administrative Tools (cli--command line or desktop--desktop or web--network)

There are several active development management tools, reference Http://www.linux-kvm.org/page/Management_Tools

Desktop

The Ubuntu Warehouse has QT4 Aqemu.

Apt://aqemu

GTK Virtual Machine Manager

Apt://virt-manager

Corresponds to the part of the 8.04 Hardy

Download the latest KVM

Code: TAR-XZVF qemu-kvm-0. X.x.tar.gz

Packages needed:

Code:
sudo apt install gcc libsdl1.2-dev zlib1g-dev libasound2-dev linux-kernel-headers pkg-config libgnutls-dev libpci1 Pciutils-dev

Three steps:

Code:

CD qemu-kvm-0. x.x
./configure--PREFIX=/USR/LOCAL/KVM
Make
sudo make install

Load the KVM module after installation

Code:

sudo modprobe KVM
sudo modprobe kvm-intel//If you're an Intel processor, use this.
sudo modprobe kvm-amd//If you have an AMD processor, use this.

That's it.

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.