Install KVM in CentOS 5.5

Source: Internet
Author: User

Install KVM in CentOS 5.5

Install KVM in Linux (CentOS 5.5) and perform the following steps:

1. Check whether the cpu supports virtualization. Run the command # cat/proc/cpuinfo | grep flags.

Vmx or svm indicates cpu support. svm indicates AMD platform and vmx indicates Intel Platform.

2. The KVM installation package is included in the installation package of the system disk. Mount the disk directly and set the yum source to the local disk.

Yum -- disablerepo = \ * -- enablerepo = c5-media groupinstall 'kvm 'Installation

Check whether the system has loaded the kvm module:

Method 1: [root @ mail ~] # Lsmod | grep kvm

Kvm_intel 86920 0

If kvm 226208 2 ksm and kvm_intel are not displayed, restart the system!

Method 2: [root @ mail ~] # Virsh-c qemu: // system list

Id Name State

---------------------------------- The installation is correct if no error message is displayed!

3. restart the computer, enter the BIOS, and enable the virtualization function of the CPU (find it by yourself, depending on the bios !!!)

BIOS --> Advanced --> Processor Configuration --> Intel (R) Virtualization logging log select Enable,

4. Create a bridge (no bridge-utils tool is required. The system has been installed by default)

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 = comment out Ethernet

BRIDGE = br0 add

# NETMASK = 255.255.255.0 comment out

# Comment out IPADDR = 192.168.0.32

# Comment out GATEWAY = 192.168.0.1

Vi ifcfg-br0

DEVICE = br0

BOOTPROTO = none

HWADDR = 38: 60: 77: 30: 5a: 16 can be left empty

ONBOOT = yes

TYPE = Bridge this is very important

NETMASK = 255.255.255.0

IPADDR = 192.168.0.32 I manually specified the ip address, or I can automatically obtain it through dhcp !!

GATEWAY = 192.168.0.1

Service network restart ifconfig

5. Go to the System graphical interface and click VirtualMachine Manager under Applications --> System Tools.

6. Install the operating system in KVM. The method is similar to that in VMware.

Select NAT (Bridge br0) when selecting network connection mode )!!!

The path of the virtual system image is/var/lib/libvirt/images/. Delete the corresponding. imgfile from the unwanted virtual system.

7. After the configuration is complete, wait until the system is installed. Because the network mode is br0, after the system is installed, restart the system to access the Internet.

-------------------------------------- Split line --------------------------------------

RHEL6 KVM virtualization creates a bridge NIC-Bridge

RedHat Linux KVM Virtual Machine bridging

Installation/bridging settings of KVM in CentOS 5.6/virtual machine creation and operation

The/bin/qemu-KVM problem cannot be found when the kvm virtual machine is installed with libvirt In Ubuntu.

Install and configure the KVM Virtual Machine in RedHat6.5

-------------------------------------- Split line --------------------------------------

This article permanently updates the link address:

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.