• A Hyper-V host running Windows Server 2016 or Windows 10 Anniversary Update.
  • A Hyper-V VM running Windows Server 2016 or Windows 10 Anniversary Update.
  • A Hyper-V VM with configuration version 8.0 or greater.
  • An Intel processor with VT-x and EPT technology.
  1. Shutdown VM
  2. Open Powershell as admin and run this command on Hyper-V host “Set-VMProcessor -VMName <VMName> -ExposeVirtualizationExtensions $true
  3. When using Nested Virtualization you can not use dynamic memory. Set to VM to Static memory if it isn’t already
  4. Start VM
  5. Install Hyper V role

More info: https://docs.microsoft.com/en-gb/virtualization/hyper-v-on-windows/user-guide/nested-virtualization

 

Script that will prompt you to enter name of VM

$Server = Read-Host -Prompt ‘Input your server name’
Set-VMProcessor -VMName $Server -ExposeVirtualizationExtensions $true