Skip to content

Instantly share code, notes, and snippets.

@Fartomy
Created March 17, 2024 20:34
Show Gist options
  • Save Fartomy/7d09397b68e75937266ffb4589cabea4 to your computer and use it in GitHub Desktop.
Save Fartomy/7d09397b68e75937266ffb4589cabea4 to your computer and use it in GitHub Desktop.
Virtual Inception

😵‍💫 Virtual Inception

How can create virtual machine in virtual machine? Or how can create virtual machine in virtual machine inside virtual machine? Or how can virt..

It's a Nested Virtualized. Normally, the virtual machine cannot support virtualization in system. Therefore, we have to enable that feature.

🧊 Enable Nested Virtualize for VirtualBox

There is an Enable Nested VT-x/AMD-V option in the section where we set the CPU in the virtual machine's settings in VirtualBox, but this section cannot be selected. That's why we will have to use the VBox command interface since we cannot enable this setting from there.

🪟 Enable to Windows

  1. Go to the directory where VirtualBox is installed on your system
  2. Check that this VBoxManage.exe executable file is there
  3. If that is there, copy that directory path URL. For example C:\Program Files\Oracle\Virtual Box
  4. Open the Command Prompt
  5. Write that cd C:\Your\VirtualBox\Copy Path URL. For example cd C:\Program Files\Oracle\Virtual Box
  6. To list relevant virtual machine names VBoxManage list vms
  7. Then, write that VBoxManage modifyvm "<relevant_virtual_machine_name>" --nested-hw-virt on
  8. Then confirm that it is enabled in the System --> Processor settings

🐧 Enable to Linux

  1. Open any terminal
  2. To list relevant virtual machine names vboxmanage list vms
  3. And write that VBoxManage modifyvm "<relevant_virtual_machine_name>" --nested-hw-virt=on
  4. Then confirm that it is enabled in the System --> Processor settings

💾 Sources

  1. A VM inside a VM inside a VM
  2. Enable Nested VT-x/AMD-V Greyed Out On Virtualbox in Windows
  3. How to enable nested VTX/Amd-V On Virtualbox in Windows
  4. How to: "Enable Nested VT-x/AMD-V" on Virtualbox in Linux
  5. VirtualBox nested Intel virtualization is here!
  6. VirtualBox Nested Virtualization with VMware ESXi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment