In this example, "Nest-HV" is our sample virtual machine (VM), the name of the VM being converted to a nested VM is inserted into the PowerShell commands enabling nested virtualization and MAC Spoofing. Details on system requirements are found in the Microsoft article:
What is Nested Virtualization?
- Log in to host Hyper-V Server.
- Open Hyper-V Manager and find the VM to be used as Nested Hyper-V Server.
- Right-Click on VM and Select Shutdown.
- Open an administrative ISE PowerShell Window on the Hyper-V host.
- Copy in the PowerShell command below. Run the PowerShell command below inserting the name of the Hyper-V VM.
Set-VMProcessor -VMName Nest-HV -ExposeVirtualizationExtensions $true
- Run the below command to enable MacAddressSpoofing.
Set-VMNetworkAdapter -VMName Nest-HV | Set-VMNetworkAdapter -MacAddressSpoofing On
- Start the nested Hyper-V VM
- Log in to the nested VM
- Open an Admin ISE PowerShell session, adding the Script View Window
- Paste in and run the PowerShell command below to install the Hyper-V role on the VM.
Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart
- After the VM reboots, open "Server Manager"
- In the left windowpane, select "Hyper-V."
- In the center window, right-click "Nest-HV" and click Hyper-V Manager.
- Confirm "NEST-HV" is seen appearing as a Hyper-V Server.
- The new VMs can be created or imported into the new nested Hyper-V Server for VM use.
How to Create a Nested Hyper-V Server.
Duration: 00:03:54 (hh:mm:ss)
When available, closed caption (subtitles) language settings can be chosen using the CC icon on this video player.