Azure Nested Virtualization: Hyper-V cannot be installed because virtualization support is not enabled in the BIOS
Nested virtualization is an exciting and powerful feature that allows you to run a virtual machine within another virtual machine. This capability has numerous applications in the fields of development, testing, and security. However, when trying to enable it in Azure, you may encounter a specific error related to nested virtualization:
“Hyper-V cannot be installed because virtualization support is not enabled in the BIOS.”
Fortunately, the fix for this problem is relatively straightforward and can be done directly through the Command Prompt. Here’s a step-by-step guide:
Open Command Prompt
Enter the Command:
bcdedit /set hypervisorlaunchtype auto
Restart the Computer: After executing the command, you’ll need to restart your VM for the changes to take effect. You can do this manually or use the following PowerShell command:
Restart-Computer -Force
After rebooting, you can check that Hyper-V can be installed as usual: