VM launch fail on Windows 10 when WSL2 and Docker is enabled
Posted: 11. May 2021, 12:34
We are using Docker containers and Vagrant + VirtualBox virtual machines in Windows 10 (now 20H2). Would be very convenient to make both parties (Docker+WSL2 and VirtualBox) working together on same machine. However when Docker Desktop with WSL2 support is installed, existing VirtualBox virtual machines (Linux 64-bit quests with installed VirtualBox Guest additions) fail to launch. Instead error message appear:
To get VirtualBox VMs running again either "hypervisorlaunchtype" must be disabled through Windows Command Prompt with command
or Docker Desktop must be uninstalled together with "Windows Hypervisor Platform", "Virtual Machine Platform" and "Windows Subsystem for Linux" feature disabling in Windows Features with subsequential Windows restart. Both actions obviously permit Docker container using together with VirtualBox.
Are there is another way how to use VirtualBox 64-bit VMs in Windows host together with WSL2 + Docker installed in same Windows host? From information in Internet it seems already known problem. However Oracle state that Hyper-V support is introduced via VirtualBox versions 6.1.18 and 6.1.22. From what I see it does not work yet. Made a VirtualBox ticket #20357 about this (have also attached VM log).
Environment:
Host: Windows 10 20H2, 64-bit
VirtualBox 6.1.22
Guests: Ubuntu Linux 18.04 LTS, 64-bit. Installed VirtualBox Guest Additions 6.1.22
Hardware: Dell OptiPlex 980, Intel Core i5-750 CPU (64-bit, has VT-x support), 16 GB RAM
Dell BIOS, version A18, VT-x is enabled
WHvCapabilityCodeHypervisorPresent is FALSE! Make sure you have enabled the 'Windows Hypervisor Platform' feature. (VERR_NEM_NOT_AVAILABLE). VT-x is not available (VERR_VMX_NO_VMX)."Windows Hypervisor Platform" feature enabling in Windows features does not change anything. It is not possible to change paravirtualization interface type under VM "Settings - System - Acceleration" too - OK button remain disabled.
To get VirtualBox VMs running again either "hypervisorlaunchtype" must be disabled through Windows Command Prompt with command
Code: Select all
bcdedit /set hypervisorlaunchtype offAre there is another way how to use VirtualBox 64-bit VMs in Windows host together with WSL2 + Docker installed in same Windows host? From information in Internet it seems already known problem. However Oracle state that Hyper-V support is introduced via VirtualBox versions 6.1.18 and 6.1.22. From what I see it does not work yet. Made a VirtualBox ticket #20357 about this (have also attached VM log).
Environment:
Host: Windows 10 20H2, 64-bit
VirtualBox 6.1.22
Guests: Ubuntu Linux 18.04 LTS, 64-bit. Installed VirtualBox Guest Additions 6.1.22
Hardware: Dell OptiPlex 980, Intel Core i5-750 CPU (64-bit, has VT-x support), 16 GB RAM
Dell BIOS, version A18, VT-x is enabled