Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nesting Hyper-V with a VM (i.e. Docker Windows Desktop within a VM)?

On a physical server with Windows Server 2019 Enterprise, I created Hyper V multiple VMs, both Servers and Win 10 Pro client.

I installed Docker Desktop (for Windows) on one of the Win 10 Pro VM clients.

The client virtual machine name is the Hyper-V Manager. I get an error when I try to start DockerDesktopVM, and the state remains off; any Docker command crashes Docker.

My questions:

  • Is there a conflict when nesting Hyper-V managers and VMs on the physical box?
  • How can you execute any docker commands when the DockerDesktopVM is off and cannot be started?
like image 711
Peter H Avatar asked Oct 25 '25 13:10

Peter H


1 Answers

https://www.altaro.com/hyper-v/enable-nested-virtualization/

Q: How Do I Enable Nested Virtualization for Hyper-V Virtual Machines A: Pass $true for Set-VMProcessor’s “ExposeVirtualizationExtensions” parameter

Set-VMProcessor <VMName> -ExposeVirtualizationExtensions $true
like image 105
Peter H Avatar answered Oct 28 '25 04:10

Peter H



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!