Ubuntu 15.04
Sponsored Link

Nested KVM2015/05/12

Configure nested KVM. It's possible to install KVM and create virtual machines as nested KVM on KVM host.
[1] Make sure the current settings for Nested KVM and change it if needed.
# show the current setting ( if the result is "Y", it's OK )

cat /sys/module/kvm_intel/parameters/nested

# if the result is "N", change like follows and reboot the system )

echo 'options kvm_intel nested=1' >> /etc/modprobe.d/qemu-system-x86.conf
[2] Make sure the CPU model on your computer.
virsh capabilities | egrep "/model|/vendor"

# CPU model

# CPU vendor

[3] Edit the configuration of a virtual machine you'd like to nest like follows. It's OK to configure nested KVM and you can create virtual machines on the virtual machine nested.
# edit a virtual machine "debian8"

virsh edit debian8
# add following lines

<cpu mode='custom' match='exact'>
# CPU model

  <model fallback='allow'>SandyBridge</model>
# CPU vendor

  <feature policy='require' name='vmx'/>
Matched Content