VirtualBox

Opened 3 years ago

Closed 3 years ago

#20358 closed defect (duplicate)

VM launch fail on Windows 10 when WSL2 and Docker is enabled

Reported by: Janis Baumanis Owned by:
Component: other Version: VirtualBox 6.1.22
Keywords: Cc:
Guest type: Linux Host type: Windows

Description

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:

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

bcdedit /set hypervisorlaunchtype off

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?

I seen Hyper-V virtualization support appearing in VirtualBox changelog starting from version 6.1.18 with Hyper-V related fixes in 6.1.22. However it does not help for us. Didn't found any useful information about how to run Docker+WSL2 and VirtualBox together in Internet either.

Environment info:

Host: Windows 10 20H2, 64-bit
Guests: Ubuntu Linux 18.04 LTS, 64-bit
Hardware: Dell OptiPlex 980, Intel Core i5-750 CPU (has VT-x support), 16 GB RAM
Dell BIOS, version A18, VT-x is enabled

Attachments (1)

VBox.log (29.0 KB ) - added by Janis Baumanis 3 years ago.
VM Log

Download all attachments as: .zip

Change History (3)

by Janis Baumanis, 3 years ago

Attachment: VBox.log added

VM Log

comment:1 by Janis Baumanis, 3 years ago

Status: newawaitsfeedback

Please delete this ticket. I wanted to update e-mail address in ticket #20357 header instead. Which seems is not possible for submitted tickets.

I hope that this comment will not produce another ticket.

comment:2 by janitor, 3 years ago

Resolution: duplicate
Status: awaitsfeedbackclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use