Introduction
When you installed Virtuozzo Hybrid Infrastructure (VHI), nested virtualization capabilities are turned off by default. The feature can be enabled with the following steps.
Warning
You must turn of all the VM in your compute cluster before executing the following
Steps:
- Make sure to unload the module from kernel
rmmod kvm_intel
rmmod kvm_amd
2. Modify the following config file /etc/modprobe.d/kvm.conf, uncomment the following:
options kvm_intel nested=1
or
options kvm_amd nested=1
3. Reload the module:
# modprobe kvm_intel
# modprobe kvm_amd
4. Set the cpu_model for the compute cluster as 'HostPassthrough'
vinfra service compute set --cpu-model HostPassthrough
5. The New settings will be applied only for NEW VMs created after the cpu_model change and enabling nested settings below.
Reference:
https://docs.virtuozzo.com/virtuozzo_hybrid_infrastructure_6_0_admins_guide/index.html#setting-virtual-machine-cpu-model.html
6. Next, enable Virtualization setting for the CPU model chosen in the step #5.
Reference:
https://docs.virtuozzo.com/virtuozzo_hybrid_infrastructure_6_0_admins_guide/index.html#configuring-vm-cpu-features.html?Highlight=nested