Docker Destop 4.26.1 not working on Windows 10 pro virtual box

Discussions related to using VirtualBox on Windows hosts.
Post Reply
bajajy
Posts: 2
Joined: 26. Dec 2023, 03:40

Docker Destop 4.26.1 not working on Windows 10 pro virtual box

Post by bajajy »

Virtual box 7.x
Host Mac os
Virtual Box OS windows 10 pro
Virtual Box windows docker desktop 4.26.1

I installed Windows virtual box on my mac. I installed wsl --install. After installing docker desktop on windows virtual box and starting it getting error for wsl. If i do wsl --install again it is giving message please enable virtualization in BIOS. In Virtual box BIOS, there is no setting to enable virtualization. I also enable this setting for virtual box on my mac.VBoxManage modifyvm 'windows 10 pro vm' --nested-hw-virt on

Please advise how to make it work docker desktop on windows virtual box.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Docker Destop 4.26.1 not working on Windows 10 pro virtual box

Post by scottgus1 »

Virtualbox 7.0 on Ventura or later must use Apple's hypervisor, due to Apple's restrictions. This means Apple's hypervisor takes hardware virtualization and won't let Virtualbox use it natively or pass it into the VM.

If you're on Ventura or later, you're stuck. If you can go back to Monterey or whatever was before Ventura, then you can try 6.1, which had native hardware virtualization available and Docker in a Windows VM might work.

Note that you're also trying nested virtualization in this Mac > Windows > Docker arrangement, which requires special features in the processor. A VM vbox.log can show these features, look for these lines and hope a "(1)" shows at the end of each line:
VMX - Virtual-Machine Extensions
Ept - Extended Page Tables
UnrestrictedGuest - Unrestricted guest
VmcsShadowing - VMCS shadowing
bajajy
Posts: 2
Joined: 26. Dec 2023, 03:40

Re: Docker Destop 4.26.1 not working on Windows 10 pro virtual box

Post by bajajy »

my company mac is on ventura and do not have option to go back. I tried to use Oracle virtual box 6.1.48 with windows 10 but this way, vm is getting error out while starting

Failed to open a session for the virtual machine aaa.

The virtual machine 'xxx' has terminated unexpectedly during startup with exit code 1 (0x1).

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MachineWrap
Interface: IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}
Last edited by bajajy on 28. Dec 2023, 21:33, edited 2 times in total.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Docker Destop 4.26.1 not working on Windows 10 pro virtual box

Post by scottgus1 »

OK, Ventura is 7.0 or bust, and no nested virtualization, so no Docker in the VM.

Since this is a work Mac, if you need this setup for work purposes, talk to your bosses about it. They'll make IT do what is needed.
Post Reply