Showing posts with label KVM. Show all posts
Showing posts with label KVM. Show all posts

Saturday, April 16, 2016

How to enable nested VM in KVM

1. Uncomment below line in /etc/modprobe.d/kvm.conf
options kvm_intel nested=1


[root@localhost ~]# cat /etc/modprobe.d/kvm.conf 
###
### This configuration file was provided by the qemu package.
### Feel free to update as needed.
###

###
### Set these options to enable nested virtualization
###

options kvm_intel nested=1
#options kvm_amd nested=1


2. Remove and Add the kvm_intel module

modprobe -r kvm_intel
modprobe  kvm_intel


3. Verify whether the change has been applied or not,

cat /sys/module/kvm_intel/parameters/nested
Y

4.Use 'Copy host CPU configuration' in VM's CPU configurations