Cannot start my windows 10 vm after install docker desktop

My notebook has a VM of windows 10, and then I install Docker Desktop on Windows, following the procedure in
https://docs.docker.com/desktop/setup/install/windows-install/

using WSL 2,
but then I found I cannot start my VM windows 10 now.
What is the solution?
The most important for me is can use VM windows 10 now, docker desktop for windows is not urgently needed currently.

Windows features on my host windows (Windows 11) is shown (not windows 10 in my wm)

For more information, I can start the vm windows 10 in safe mode.

To be honest I forgot which feature is compatible with which, but it also depends on how you run the virtual machine. If you for example use VirtualBox (or anything except hyperv), that is not compatible with the hypervisor of Windows.

So if your VM is more important, try uninstalling Docker DEsktop and disable the virtual machine platform and restart Windows.

1 Like

So you have a win10 host, and want to run a Windows VM and Docker Desktop on it?

It should work with Hyper-V VMs, and VirtualBox/VMware Workstation VMs - though the later two will have a heavy performance penalty, as both will run in Hyper-V compatibility mode, which is used if any Windows features installs a single component of Hyper-v (e.g. like Virtual Machine Platform does). In Hyper-V compatibility mode, no cpu paravirtualization or nested virtualization is available to the vms.

You can either disable the features in your VM’s configuration, or disable the Virtual Machine Platform and Windows Subsystem for Linux features (Which depends on the Virtual Machine Platform feature) - this will prevent Docker Desktop from Working on your host.

1 Like

thanks, after “try uninstalling Docker DEsktop and disable the virtual machine platform and restart Windows.”, now my windows 10 in VMWare Workstation can start now.

my host is windows 11 Pro Version 23H2, and have a Workstation 14.x Virtual machine, its OS is Windows 10 Pro, version 22H2. And after install docker desktop on Windows, that workstation 14.x virtual machine windows 10 cannot be started.

After uninstalling Docker DEsktop and disable the virtual machine platform and restart Windows, the workstation 14.x Virtual machine Windows 10 Pro can start now, but then I found after uninstall docker desktop on windows, uncheck windows feature/virtual machine platform, then in command prompt of host windows, type wsl --install, then restart, the windows feature “Virtual Machine Platform” checked again and the workstation 14.x virtual machine Windows 10 cannot start again"!!

I do not need to run the workstation 14.x virtual machine Windows 10 and docker desktop on Windows simultaneously, it is ok to run either one first and stop the other in that period, then any method?

If no method, then how can I install docker?

There is a way on Windows to reboot it with a specific feature enabled or disabled (you can try to search for it), but if you want Linux containers, you can just run a VM using VMWare and install Linux in the VM and Docker CE on that Linux. Unless of course you need Docker Desktop’s features with the GUI.

But
 I’m not sure what happens with the data when you disable the virtual machine platform. IF nothing is deleted, then yes, you can switch between too modes.

1 Like

if " run a VM using VMWare and install Linux in the VM", then should install Docker CE
https://docs.docker.com/engine/install/ubuntu/
, not Docker Desktop on Linux
https://docs.docker.com/desktop/setup/install/linux/
, right?

You could also install Docker Desktop if you can enable “Nested virtualization” for the VM, but that would be slower. I don’t know how much, because I never really tried.

1 Like

You might want to read this part of the VMware Workstation docs:

According docks you can use Host VBS Mode to run VMware Workstation in parallel to Hyper-V (but like I already wrote: with heavy performance penalty)

1 Like

I just installed VMware Workstation Pro, the installer hinted that the feature Windows Hypervisor Platform needs to be installed:

Furthermore, the vm will not start unless the processors settings look like this:

Virtualize IOMMU doesn’t seem to cause a problem.

1 Like