Nested virtualization permits you to run Hyper-V inside a VM, opening up unbelievable flexibility for testing complicated infrastructure setups, demos, or studying environments, all with out further {hardware}.
First, make sure you’re operating a Hyper-V host able to nested virtualization and have the Home windows Server 2025 VM on which you wish to allow as a Hyper-V host prepared.
To get began, open a PowerShell window in your Hyper-V host and execute:
Set-VMProcessor -VMName "" -ExposeVirtualizationExtensions $true
Exchange
This command configures Hyper-V to permit nested virtualization on the goal VM.
Boot up the Home windows Server 2025 VM that you just wish to configure as a Hyper-V host. Within the VM, open Server Supervisor and try to put in the Hyper-V position through Add Roles and Options. More often than not, this could work instantly. Nevertheless in some instances you would possibly hit an error stating:
“Hyper-V can’t be put in as a result of virtualization help is just not enabled within the BIOS.”
To resolve this error run an elevated PowerShell session contained in the VM on which you wish to allow Hyper-V and run the command:
bcdedit /set hypervisorlaunchtype auto
This command ensures the Hyper-V hypervisor begins up accurately the following time you boot.
Restart your VM to use the change. After the reboot, head again to Add Roles and Options and take a look at putting in Hyper-V once more. This time, it ought to proceed easily with out the BIOS virtualization error.
As soon as Hyper-V is put in, carry out a remaining reboot if prompted. Open Hyper-V Supervisor inside your VM and also you’re now able to run check VMs in your nested surroundings!