4 tips to enable Nested Virtualization like a PRO

Enable Nested Virtualization in VirtualBox for Windows 10 or Windows 11

Virtualbox Nested Virtualization

 

Table of Contents:

  1. Problem Description
  2. Solution
  3. Steps for BIOS
  4. Turn Nested Virtualization On

 

PROBLEM DESCRIPTION

Nested virtualization is used to enable, use or create virtual machines within virtual machines, consider Virtualbox is running CentOS virtual machine and within that virtual machine someone wants to create another virtual machine of Windows.

VirtualBox out of the box doesn’t not enable Nested Virtualization, this need to be enabled and have the following procedure.

 

SOLUTION:

Below is the step-by-step procedure to turn Hyper-V ON/OFF:

  1.  Open CMD as administrator
  2.  Turning hyper-v OFF with and a reboot:
    bcdedit /set hypervisorlaunchtype off
  3. To TURN it back ON (or auto start) and reboot:
    bcdedit /set hypervisorlaunchtype

 

Steps for BIOS:

  1. Enable Intel Virtualization Technology
  2. Enable VT-d

 

Turn Nested Virtualization On

  1. Open Command Prompt with Administrator privileges
  2. cd C:\Program Files\Oracle\VirtualBox
  3. VBoxManage modifyvm "OSNAME" --nested-hw-virt on

Change OSNAME with your virtual machine name.

 

Sources:

https://forums.virtualbox.org/viewtopic.php?f=1&t=62339https://forums.virtualbox.org/viewtopic.php?f=6&t=87752

https://blogs.technet.microsoft.com/gmarchetti/2008/12/07/turning-hyper-v-on-and-off/

 

Keywords:

Virtualbox, Nested Virtualization, Windows 10, Windows 11, Enable, Hardware Virtualization, Hyper-V

 

https://www.hostingbyalitech.com

http://alitech.uk