I’m using VMware Workstation (in my case, Workstation 15.5.1) on my Windows 10 computer and I wanted to install Docker. After installing Docker and enabling some Windows features, e.g. Hyper-V, I was able to use it properly.
But now, when I try to run a VM in Workstation, the following message is displayed:
1 2 3 |
VMware Workstation and Device/Credential Guard are not compatible. VMware Workstation can be run after disabling Device/Credential Guard. Please visit http://www.vmware.com/go/turnoff_CG_DG for more details. |
This strange message is linked to Hyper-V. VMware products can’t be used if Hyper-V is installed. At the same time, Docker needs Hyper-V to run!
The only option you have to allow a VM to start is to disable Hyper-V. So I tried to disable the feature in Windows but this isn’t sufficient! You need to change a parameter in the boot registry too.
The issue is, if you disable Hyper-V, Docker will not run! So you have a choice to make here. Everytime you want to use Docker, you have to enable Hyper-V; and if you want to use VMware products, you have to disable Hyper-V… Find below the commands to execute in both cases.
Disabling Hyper-V: Use VMware products
Open a PowerShell in Administrator mode then type:
1 2 |
bcdedit /set hypervisorlaunchtype off Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All |
Then restart. Now VMware products (Player or Workstation) may run!
Enabling Hyper-V: Use Docker
Now if you want to use Docker, you have to enable again Hyper-V. Open a PowerShell in Administrator mode then type:
1 2 |
bcdedit /set hypervisorlaunchtype auto Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All |
Then restart. Docker may now be used but not VMware products.
Final note
This situation will not stay like this, but for now it’s the only workaround you have. The issue is under investigation.