DevOps
HowTo: Run Hyper-V/Docker on Hyper-V Virtual Machine
2 min read
TL:DR; On the Hyper-V host run Set-VMProcessor -VMName "
Prerequisites
- 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.
Configure Nested Virtualisation
- Create a virtual machine.
- While the virtual machine is in the OFF state, run the following command on the physical Hyper-V host. This enables nested virtualisation for the virtual machine. Set-VMProcessor -VMName "
" -ExposeVirtualizationExtensions $true - Start the virtual machine.
- Install Hyper-V within the virtual machine, just like you would for a physical server.
David Christiansen
Solution Architect with 30 years in cloud infrastructure, security, identity, and .NET engineering.