KVM nested virtualization Configuration

Source: Internet
Author: User

KVM nested virtualization Configuration

(1) check that the virtual machine A does not support virtualization. Run the lscpu command.

Virtualization is not supported because there is no VT-X identifier

(2) Enable the nested support on the Physical Machine

# Check whether the current physical machine supports nested

Cat/sys/module/kvm_intel/parameters/nested

N # Not Supported


# Enable the physical machine to support nested

Echo "options kvm-intel nested = 1">/etc/modprobe. d/kvm-intel.conf

# Host restart or execution

# Rmmod kvm-intel

# Modprobe kvm-intel nested = 1


# Check whether it is supported after restart

Cat/sys/module/kvm_intel/parameters/nested

Y # changed to Y. Supported

(3) modify the virtual machine to support virtualization on the Physical Machine

# Search for UUID

# View the UUID of the VM

[Root @ bkjia ~] # Virsh list -- all | grep 313d634ad72247ee938

10 313d634ad72247ee9425a3038515829 running

# VM Shutdown

Init 0

# Modifying the virtual machine configuration file on a physical machine

Virsh edit 313d634ad72247ee9%a30%15829

Add the following content to </features>:

<Cpu mode = 'custom' match = 'extract'>

<Model fallback = 'allow'> core2duo </model>

<Vendor> Intel </vendor>

<Feature policy = 'require 'name = 'lahf _ lm '/>

<Feature policy = 'require 'name = 'xtpr '/>

<Feature policy = 'require 'name = 'cx16'/>

<Feature policy = 'require 'name = 'tm2'/>

<Feature policy = 'require 'name = 'est '/>

<Feature policy = 'require 'name = 'vmx'/>

<Feature policy = 'require 'name = 'pbe'/>

<Feature policy = 'require 'name = 'TT'/>

<Feature policy = 'require 'name = 'ht '/>

<Feature policy = 'require 'name = 'ss'/>

<Feature policy = 'require 'name = 'acpi '/>

<Feature policy = 'require 'name = 'ds'/>

</Cpu>

Save


# Start the VM on the Physical Machine

Virsh start 313d634ad72247ee9%a30%15829

# Check whether the VM is supported

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

How to add a hard disk for a Linux Virtual Machine in KVM

Getting started with Linux: KVM for Virtual Machine experience

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

Nested virtualization nested for KVM Virtualization

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

This article permanently updates the link address:

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.