10.13. Enabling Nested Virtualization in Virtual Machines¶
Warning
This feature is experimental and tested only on Linux guests. The operation of nested virtual machines may be unstable.
Virtuozzo supports nested Intel VT-x virtualization in virtual machines.
To enable nested virtualization, do the following:
Stop all running or paused virtual machines on the node.
Unload the
kvm-intelmodule from the kernel:# rmmod kvm_intel
Add the line
options kvm-intel nested=yto thedist.conffile:# echo 'options kvm-intel nested=y' >> /etc/modprobe.d/dist.conf
Load the
kvm-intelmodule:# modprobe kvm_intel
Enable nested virtualization in the desired virtual machine:
# prlctl set MyVM --nested-virt on
Note
- A guest operating system in a nested virtual machine will not be able to obtain an IP address via DHCP if
ipfilter,macfilter, andpreventpromiscparameters of the host VM’s bridged network adapter are set tono. - You cannot change CPU features mask for nested virtual machines using the
prlsrvctl set --cpu-features-maskcommand.
Version 7.0.5 — Sep 29, 2017