Installing KVM under centos5.5

Source: Internet
Author: User

Start by installing KVM under Linux and sort out the steps:

1. See If the CPU supports virtualization, execute commands #cat/proc/cpuinfo |grep flags

or SVM Span style= "font-family: ' The song Body '; > means cpu support, where Span style= "font-family: ' Times New Roman ';" >SVM for amd Span style= "font-family: ' The song Body '; > platform, vmx for Span style= "font-family: ' Times New Roman ';" >intel platform.

2.theKVM installation package is already included in the system disk's installation package, directly mount the disc, set the yum Source as the local CD

Yum--disablerepo=\*--enablerepo=c5-media groupinstall ' KVM ' installation

To see if the system has a KVM module loaded:

Method one:[[email protected] ~]# lsmod |grep KVM

Kvm_intel 86920 0

KVM 226208 2 Ksm,kvm_intel if not displayed, reboot the system will be displayed!

Method Two:[[email protected] ~]# virsh-c qemu:///system list

Id Name State

---------------------------------- No error message appears, it means the installation is correct!

3. Restart the computer, enter the BIOS, turn on the CPU virtualization function (according to the different BIOS , look for yourself!!!) )

Bios-->advanced-->processor Configuration-->intel (R) Virtualization Technolog Select Enable ,

4. Create a bridge ( the system is installed by default without installing any bridge-utils tools)

cd/etc/sysconfig/network-scripts/

CP Ifcfg-eth0 IFCFG-BR0

VI Ifcfg-eth0

Device=eth0

#BOOTPROTO =none Comment out

Hwaddr=38:60:77:30:5a:16 Comment out

Onboot=yes

#TYPE =ethernet Comment out

Bridge=br0 Add

#NETMASK =255.255.255.0 Comment out

#IPADDR =192.168.0.32 Comment out

#GATEWAY =192.168.0.1 Comment out

VI ifcfg-br0

Device=br0

Bootproto=none

Hwaddr=38:60:77:30:5a:16 can not write

Onboot=yes

Type=bridge, This is important .

netmask=255.255.255.0 According to the actual situation specified

ipaddr=192.168.0.32 I am manually assigned IP , can also be automatically obtained by DHCP!!

gateway=192.168.0.1 According to the actual situation specified

Service Network Restart Ifconfig View related information

5. Enter the system graphical interface and click virtualmachine Manager to open applications-->system Tools

6. Install the operating system inside the KVM , similar to the system installation method in VMware.

Select NAT(bridging br0) When choosing the network connection mode!!!

The virtual system image path is :/var/lib/libvirt/images/, Delete the appropriate . img file for the unwanted virtual system .

7. after Setup, wait for the system to install, because the network mode is bridged br0, the system is installed to restart the Internet.

This article is from the "Chenli" blog, make sure to keep this source http://cl340266909.blog.51cto.com/2881514/1598558

Installing KVM under centos5.5

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.