Enabling Nested Virtualization in Virtual Machines
This feature is experimental and tested only on Linux guests. Operation of nested virtual machines may be unstable.
Virtuozzo Server supports nested Intel VT-x and AMD-V virtualization in virtual machines.
To permanently enable nested virtualization on the host, do the following:
Stop all running or paused virtual machines on the node.
Unload the required module from the kernel:
1# rmmod kvm_intelor
1# rmmod kvm_amdUncomment the line
options <module> nested=1in/etc/modprobe.d/kvm.confcorresponding to the module.Load the module again:
1# modprobe kvm_intelor
1# modprobe kvm_amdRestart the libvirt daemon:
1# systemctl restart libvirtdEnable nested virtualization in the virtual machine:
1# prlctl set MyVM --nested-virt on
Take note of the following:
- 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.