Install and configure the KVM Virtual Machine in RedHat6.5

Source: Internet
Author: User

Install and configure the KVM Virtual Machine in RedHat6.5

--------------------------
I. Preface
II. Environment
Iii. installation and configuration
4. Create a kvm VM
V. Manage kvm virtual machines
Vi. clone a kvm VM
--------------------------

I. Preface

KVM, short for Kernel-based Virtual Machine, is an open-source system virtualization module. It has been integrated into major Linux releases since Linux 2.6.20. It uses the Linux Scheduler for management, so compared with Xen, its core source code is few. KVM has become one of the mainstream VMM in the academic field. KVM virtualization requires hardware support (such as Intel VT or amd v ). Is hardware-based full virtualization. In the early days, Xen was based on Para-Virtualization,

The new version is based on hardware-supported full virtualization. However, Xen has its own process scheduler and storage management module, so the code is huge. The widely spread commercial system Virtualization software VMware ESX series is also based on software simulation of Para-Virtualization.

II. Environment

System: rhel6.5 64-bit

Software Package group:

Virtualization provides a virtual machine environment, including qemu-kvm

Virtualization-client manages and installs Virtual Machine instance clients, mainly including python-embedded inst, virt-manager, virt-viewer

Virtualization-platform provides interfaces for accessing and controlling virtual clients, including libvirt and libvirt-client.

Virtualization-tools: tools used to manage offline Virtual Machine images, mainly libguestfs

Select a software package based on your needs. Generally, you can install the first three packages.

To reduce unnecessary troubles, disable firewall and SELinux.

# Cat/proc/cpuinfo | grep flags requires full virtualization support for vmx (Inter) or svm (AMD)

If you confirm that the physical machine supports the cpu virtualization technology, but you cannot find the corresponding command using the above command, please refer to the following solution:

Iii. installation and configuration

# Yum groupinstall "Virtualization" "Virtualization Client" "Virtualization Platform"

# Yum install qemu-kvm virt-manager libvirt // you can only install some major packages.

# Lsmod | grep kvm // The kvm module must be loaded.

Kvm_intel 53484 0

Kvm 316506 1 kvm_intel

# Service libvirtd start // start the libvirt service

Starting libmongod daemon: [OK]

-------------------------------------- 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.

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

4. Create a kvm VM (graphic interface)

1. Create a VM storage location on the kvm host

# Mkdir/data

2. You can use vnc to remotely connect to the kvm host for management. Application → System Tools → Virtual Machine Manager

3. Go to the Virtual Machine Manager Management Interface and create a new Virtual Machine.

5. Enter the Virtual Machine name and select "Local Install media"

6. Select "Use CDROM or DVD" and Use vmware's virtual Optical Drive.

7. Select the memory and cpu Based on the machine performance.

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

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.