16

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?

Dave M
  • 13,250
vico
  • 2,811

6 Answers6

11

This is now possible after Windows 10 May 2020 Update (Build 19041) with WSL2

  • Install WSL 2 Linux Kernal
  • Turn on Virtual Machine Platform Windows Feature
  • Hyper-V, Windows Hypervisor Platform and Windows Sandbox should be turned off
  • Restart your PC
  • Set Default WSL version to WSL 2 by Running wsl --set-default-version 2 on PowerShell

Now you can use Docker, VMWare, Intel HAXM (For android emulator) at the same time if you want.

AUPMA
  • 211
2

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.
harrymc
  • 498,455
0

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.

0

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.

0

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.

  1. Be sure your vm is stopped.

  2. Run the VMWare Virtual Network Editor (Start menu / type "Virtual Network Editor") as an administrator.

  3. If you have no entries in the dialog, click the "Restore Defaults" button.

  4. Determine which kind of physical network adapter you have (Control panel / Network and internet / View network status and tasks / Change adapter settings / View details).

  5. Highlight VMNet0 and click on "Automatic Settings"

  6. You will see a list of adapters. De-select all but your physical network adapter.

  7. Click "OK"

  8. Start the VM and verify network access.

  9. 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

Ramhound
  • 44,080
0

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.

nijazm
  • 21
  • 5