Yum Install KVM

Source: Internet
Author: User

What is KVM? For kernel-based Virtual Machine

Installation Environment Centos 6.5 Mini x64 disable SELinux, disable firewall

Installation process:

1. See if our PC supports virtualization

grep ' SVM|VMX ' /proc/cpuinfo

If there is a result, support is indicated
If you have not returned so long need to go to bios on your own, in the BIOS to find virtualization technology or VT keyword to let it be on or enabled.

2. Installing the KVM

Yum Install QEMU-KVM libvirt libvirt-python libguestfs-tools virt-install -y

If you need a graphical management tool, you need to install

Yum Install virt-manager-y

3. Configure the NIC (bridge mode)

cd/etc/sysconfig/network-scripts/cp ifcfg-eth0 ifcfg-br0cat > Ifcfg-eth0 <<  Eofdevice=Eth0bridge=br0eof
Vim Ifcfg-br0

Change the br0 to the following:

Device= "Br0" type= "Bridge" onboot=yesbootproto=static #静态ip地址IPADDR =192.168.6.22 #ip地址修改成自己的NETMASK =255.255.255.0 gateway=192.168.6.254 #网关地址DELAY = "0"

Eth0 changed to:

device=eth0bridge=br0 

Restart the NIC service

Ifconfig

See if Br0 is started

Turn on IP forwarding:

sed -i/ip_forward/s/0/1/  /etc/-P

4. Join the boot up and start the service ...

Chkconfig    libvirtd onservice libvirtd start

Installation complete .....
Use the article
This is mainly about using remote graphical interface (VNC) to manage KVM

Because I'm using a mini installation package that doesn't have a desktop installed

So to install the desktop

Yum " Desktop "

To install VNC:

Yum Install tigervnc-server-y

Start the VNC service

If you see: New ' centos:1 (root) ' Desktop is centos:1 This sentence indicates a successful start:

Basic operation of VNC:
Vncserver--help #帮助
Vncserver starting an interface that can be connected

Vncserver-list viewing the interfaces that have been started

Vncserver-kill disable an interface if the top interface 1 we disable the Vncserver-kill:1

Client connections:

IP Address: interface ip:1

To open the Admin interface:

Open the virtual machine management interface using the above method

We double-click on the top of the localhost (QEMU) will appear some KVM information, can be modified.

Right-click New is new.

Yum Install KVM

Related Article

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.