Virtualization-KVM Installation

Source: Internet
Author: User
Tags kvm hypervisor

VMware centos6.5 64-bit KVM Virtualization installation configuration

Installing CentOS 64-bit

1. Recommended configuration

Memory 2G

Hard disk 50G, or a separate disk to store virtual machine files

The most critical step, when creating a virtual machine, the CPU needs to configure the virtualization

2. Pre-install KVM preparations

Clear Iptables Rule

Iptables-f;service iptables Save

Turn off SELinux

0; vi/etc/selinux/config
Selinux=disabled

Check to see if your system supports virtualization, and if the output content is supported

' VMX|SVM '

3. Install the virtualized package via Yum

Yum install-y KVM virt-*  libvirt  bridge-utils qemu-img

Description
KVM: The package contains a KVM kernel module that provides the KVM hypervisor in the default Linux kernel
Libvirts: Install the Virtual Machine Management tool and use commands such as Virsh to manage and control the virtual machine.
Bridge-utils: Set up network card bridging.
virt-*: Create, clone virtual machine commands, and graphical management tools Virt-manager
QEMU-IMG: Installs the QEMU component, uses the QEMU command to create the disk, and so on.

Check that the KVM module is loaded, feedback content, and that the KVM module is loaded.

Lsmod |grep--color KVM

The normal should be:
Kvm_intel 55496 3
KVM 337772 1 Kvm_intel

If not, you need to perform
Modprobe Kvm-intel
Try it again without restarting it.

4. Configure the NIC

cd/etc/sysconfig/network-scripts/
CP Ifcfg-eth0 IFCFG-BR0
VI Ifcfg-eth0
device=eth0hwaddr=xx: 0C:: CE: £º Eatype=Ethernetuuid= 0aa4aac2-572b-4d2f-baf7-0b94d2af1df7onboot=yesnm_controlled=Yesbootproto=none  BRIDGE=br0
VI ifcfg-br0
Device=br0hwaddr=xx: 0C: in: CE: About: Eatype=Bridge#uuid=0aa4aac2-572b-4d2f-baf7-0b94d2af1df7onboot=yesnm_controlled=Yesbootproto=Staticipaddr=192.168.1.116Netwask=255.255.255.0GATEWAY=192.168.1.1DNS1=192.168.1.1DNS2=8.8.8.8

Virtualization-KVM Installation

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.