I would like to use VMware and Dockers in my Windows 10 machine. Docker requires Hyper-V while VMware is angry about it. How to solve this conflict?
-
Wait for updated VMware. They are [working on it](https://techcommunity.microsoft.com/t5/virtualization/vmware-workstation-and-hyper-v-working-together/ba-p/825831) but I can't find a release date to give as an answer. – lx07 Jan 25 '20 at 13:09
-
Theoretically, this is somewhat similar with [this question](https://superuser.com/q/1208850/726810). – Biswapriyo Jan 25 '20 at 16:59
-
@lx07 - VMWare has Q3 FY releases. So we are looking at a good 8 months before that version of VMWare Workstation comes out (unless they have changed in recent years). – Ramhound Jan 26 '20 at 03:36
-
"How to solve this conflict?" - You don't – Ramhound Jan 26 '20 at 03:37
6 Answers
This is now possible after Windows 10 May 2020 Update (Build 19041) with WSL2
- Install WSL 2 Linux Kernal
- Turn on
Virtual Machine PlatformWindows Feature Hyper-V,Windows Hypervisor PlatformandWindows Sandboxshould be turned off- Restart your PC
- Set Default WSL version to WSL 2 by Running
wsl --set-default-version 2on PowerShell
Now you can use Docker, VMWare, Intel HAXM (For android emulator) at the same time if you want.
- 91
- 1
- 1
-
1`Virtual Machine Platform` gets enabled by Docker itself. However it breaks compatibility with VMWare for me. – dun Dec 10 '21 at 14:18
VMware and Hyper-V are both a Hypervisor, so each wants to control exclusively the virtualization features of the CPU, resulting in that both cannot be setup on the same computer at the same time.
The only solutions I can see are:
- Install VMware only, then create a Linux VM and run Docker inside, or
- Install VMware together with the older Docker Toolbox on Windows which does not use Hyper-V and so there is no conflict
- Install one or the other, uninstalling the one you are not using at the moment.
- 455,459
- 31
- 526
- 924
-
2This answer is now outdated, as both products now support nested virtualization. – harrymc Dec 11 '20 at 19:25
This will not work. VMware (V15.5.1) and Hyper-V (and then Docker and Sandbox) conflict. You must choose which Virtualization structure you will use and then do not use the other.
- 46,167
- 4
- 33
- 54
Update Windows 10 to Release 2004 and both work fine together. I have VMware workstation 16 and docker working together now. VMware 15.5 should work fine too.
- 3,091
- 10
- 23
- 26
I followed the answer above "This is now possible after Windows 10 May 2020 Update (Build 19041) with WSL2", and when that didn't work, I found and followed the steps below. I'm not sure if turning off Hyper-V, Windows Hypervisor Platform, and Windows Sandbox (under Windows Features) is required before the following steps will work.
Also, after every Docker update, my VMWare bridged network connection stops working. Setting it to NAT worked sometimes. These steps fix my bridged network connection.
Be sure your vm is stopped.
Run the VMWare Virtual Network Editor (Start menu / type "Virtual Network Editor") as an administrator.
If you have no entries in the dialog, click the "Restore Defaults" button.
Determine which kind of physical network adapter you have (Control panel / Network and internet / View network status and tasks / Change adapter settings / View details).
Highlight VMNet0 and click on "Automatic Settings"
You will see a list of adapters. De-select all but your physical network adapter.
Click "OK"
Start the VM and verify network access.
If docker doesn't work: Start menu / type "Turn Windows features on or off" / Turn back on: Hyper-V, Windows Hypervisor Platform, and Windows Sandbox. This will require a reboot.
Mostly from: https://communities.vmware.com/t5/VMware-Workstation-Pro/Network-Bridge-Mode-Not-Working-Windows-10-Host/td-p/1407019
-
Windows Sandbox conflicts with VMWare. Only Hyper-V and Windows Hypervisor Platform should be enabled. All other features that typically use Hyper-V are not compatible with VMWare and VirtualBox. **WSL2 doesn’t even require Hyper-V** Only mentioned WSL2 due to numerous incorrect answers that seem to indicate that WSL2 requires it. As for the downvote properly quotation is required – Ramhound Jan 16 '21 at 15:11
-
@wmeiten - Expecting external solutions to be quoted doesn’t make me the “downvote police”, calling me the “downvote police” isn’t exactly friendly and civil. Expecting external sources to be quoted and cited isn’t unreasonable – Ramhound Jan 16 '21 at 18:59
It does not work if you have bit older CPU. I tried recommended solution that suggests enabling wsl 2 and disabling hyper v and some other windows features, and restarting pc, and none helped. Yes I used Windows 21H1 and last version of VMWare Player. But Oracle VirtualBox works without problems. So no need for XSAVE support in processor! Looks like VirtualBox has better compatibility, the only difficult thing with it being that it requires command line knowledge to use existing partition as disk in guest OS. Tested on all latest software and OS, in September 2021.
- 21
- 4