How to enable Nested Virtualization for Hyper-V

How to enable Nested Virtualization for Hyper-V
 
Requirements for Nested Virtualization
In order for nested virtualization to work, you must meet all of the following:
The Hyper-V host must be at least the  Windows Server 2016, Hyper-V Server 2016
The Hyper-V host must be using Intel CPUs. AMD is not yet supported
A virtual machine must be off to have its processor extensions changed
 
This process is by default run on a dedicated server. If you are attempting to do this on a VPS, please contact our support team to manually enable Hyper-V on the host before proceeding.

Steps:

1. Stop  Hyper-V/VPS server

2. In  host server, open powershell and run  command :
get-vm vmname |Set-VMProcessor -ExposeVirtualizationExtensions $true
 

3. Start Hyper-v /VPS and install Hyper-V role

4. Check and configure  IP for virtual switch if  it is not automatically configured .
        Command:get-vm vmname |Get-VMProcessor I select ExposeVirtualizationExtensions

Add Feedback