Bobcares

Proxmox Enable Nested Virtualization | How To?

by | Nov 8, 2022

In Proxmox, enable nested virtualization with these simple steps in the article. Bobcares, as a part of our Proxmox Support Services, offers solutions to every query that comes our way.

Enable Nested Virtualization In Proxmox

Nested virtualization is the process of operating a hypervisor, such as PVE or others, inside a VM rather than on physical hardware. In other words, we have a host hypervisor that hosts a guest (as a VM) that can host its own VMs.

 

proxmox enable nested virtualization

 

It is advantageous in some cases:

  • It allows one to learn how to handle hypervisors prior to the actual setting up, or it may allow testing any dangerous operation using hypervisors before doing it real.
  • It may allow enterprises to set up their own virtual environment.

How To Enable Nested Virtualization In Proxmox?

We must run the below steps in the real Proxmox host:

  1. Firstly, we must ensure that this feature in the physical VM is active.

    If the Proxmox hypervisor is Intel CPU, run the below command to check if nested virtualization is active in it.

    # cat /sys/module/kvm_intel/parameters/nested
    

     

    If it is AMD CPU, run the below code:

    # cat /sys/module/kvm_amd/parameters/nested
    

     

    The output may be “N” or “0” and “Y” or “1”. “N” or “0” shows the nested feature is not active. “Y” or “1” shows the nested feature is active.

  2. If it is not active, enable it now in INTEL CPUs using the below code as a root user :
    # echo "options kvm-intel nested=Y" > /etc/modprobe.d/kvm-intel.conf

     

    We can use the below code on the AMD Proxmox host (We append Y for INTEL CPUs and 1 for AMD CPUs to enable the feature):

    # echo "options kvm-amd nested=1" > /etc/modprobe.d/kvm-amd.conf

     

  3. To apply the changes, restart the system or reload the kernel modules:
    # modprobe -r kvm_intel
    # modprobe kvm_intel

     

  4. Execute the below code on the AMD Proxmox host:
    # modprobe -r kvm_amd
    # modprobe kvm_amd

     

  5. We must check once again to see if the feature is active on the physical Proxmox host:
    # cat /sys/module/kvm_intel/parameters/nested
    

     

    If it is AMD CPU, run:

    # cat /sys/module/kvm_amd/parameters/nested
    

     

With the output “Y” or “1”, we can say we are able to complete the process successfully.

[Looking for a solution to another query? We are just a click away.]

Conclusion

In this article, we included a simple method from our Support team to enable nested virtualization in Proxmox.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.