New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 0x80370102 when running WSL2 in a Win10 VirtualBox VM (macOS Host) #5430
Comments
If you are running Windows in a VM, your VM host needs to be capable of nested virtualization for you to run WSL2. If it is not, you should consider using WSL1. |
FWIW VMWare Fusion works fine with nested virtualization though I'm not on Catalina (which has had a slew of issues) |
Right, my colleague has it working in Parallels as well. So my specific question is: Can WSL 2 run in a VirtualBox VM on a macOS host? Nested virtualization is turned on, but it is not working. I believe this to be a bug, and I'd like to know if anyone has a workaround. |
Money would be on a bug in Virtual Box since other solutions work. Getting the diverge will be the trickier part. |
I'm experiencing the same issue running VirtualBox 6.1.10 r138449 on an Ubuntu 20.04 host, with Nested VT-x/AMD-V enabled. Windows guest build 19041.264 (version 2004), latest Ubuntu 20.04 LTS from the Microsoft Store for WSL2. I would assume that Ubuntu Host -> VirtualBox -> Windows -> Ubuntu WSL2 will rarely happen in the wild (I was just looking to write instructions for colleagues running Windows), but it may be the same issue for those on a macOS host. |
VirtualBox docs say this option is supported: https://docs.oracle.com/en/virtualization/virtualbox/6.1/admin/nested-virt.html On a macOS host, the checkbox to toggle this feature is disabled in the UI, but using the CLI |
I don't think you can install WSL2 on Win10 1909. Are you sure that isn't
WSL v1 running there?
|
Yea I deleted that post when I realized it was actually WSL v1 running on Windows 10 1909. I found that "Nested Virtualization" doesn't really work for WSL2 in Virtualbox on MacOS! |
You can install WSL2 on 1903 and 1909 as of last week in an optional KB that also has a major wsl1 fix for glibc (so we can all run newer distros on WSL1). Try enabling WSL2 in 1909 and see if the nested virtualization works. Also check if Hyper-V works. If Hyper-V does but not WSL2, then MS can do something to help. |
Virtualbox 6.1.14 r140239 on Arch Linux Host here. I'm almost certain I ran WSL2 in a windows guest (insider preview version) sometime last year, but I'm having no luck getting it working now. Do I have to have Hyper-V enabled or disabled for this to work? I had it on, but after disabling it during troubleshooting, I now get this message: |
@WSLUser I'm running VBox 6.1.14 r150239 on macOS 10.15.7. I'm running a Windows 10 Enterprise guest (current verinfo: Version 1909 Build 18363.1139) with VT-x/AMD-V, Nested Paging, PAE/NX, and Hyper-V Paravirtualization enabled. I cannot install a version 2 distro, getting:
And I have all the Microsoft-Hyper-V optional features enabled. When I set the default version back to 1, I'm able to install a version 1 distro.
Then when I try to set the distro version to 2
But the VirtualMachinePlatform optional feature is enabled
|
I was asking to test Hyper-V. You don't need it to run WSL2, just VMM. So now you enabled Hyper-V, try spinning up Ubuntu from the Quick Create Gallery. If this works and you can run everything you want, then we can say this is a WSL2 issue. |
Note that for Hyper-V you need to enable a VM to support nested virtualization: https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/nested-virtualization |
@brookr @marc-ostrow @grahamhoyes @mavaa can you run https://downloadcenter.intel.com/download/28539 (Intel Processor Identification Utility) inside the guest where you want to run |
;-) Application does not run in a guest. I'm on macOS.
But system information returns the following
Model Name: MacBook Pro
Model Identifier: MacBookPro16,1
Processor Name: 8-Core Intel Core i9
Processor Speed: 2.3 GHz
Number of Processors: 1
Total Number of Cores: 8
L2 Cache (per Core): 256 KB
L3 Cache: 16 MB
Hyper-Threading Technology: Enabled
Memory: 32 GB
|
@marc-ostrow I'm sorry, I don't understand. Did you mean your guest is not Windows or the Intel Processor Identification Utility crashes in your Windows guest? If your guest is Windows can you run it a second time? The first time I run it in a Windows guest it crashed. A second run didn't crashed. |
Just a note, I'm running KVM as a paravirtualization interface right now, not sure if that's relevant here. I've tried going through all the diffierent options earlier when trying to get wsl2 to work, so I can change it again if needed. |
I'm running Win10 Enterprise Guest on a macOS Host, VirtualBox 6.1.14. I
could not run the intel processor identification utility in the Win10
Enterprise Guest, no.
In lieu of attempting to find a macOS version (I did not see one
specifically for macOS), so I provided basic CPU information. What exactly
are you looking for from the processor identification utility?
|
|
Hello, |
I wanted to create a clear post on the pretty popular resource about installing WSL2, so I wanted to run it on clear Windows inside VirtualBox 6.1.18 to make sure all steps are not affected by my Windows environment.
Even after reboot, the nested VT option in VirtualBox was grayed out, so I did:
Even after that, inside of VM I have 0x80370102 I mean, it is pretty hard to recommend WSL to someone with such circumstances ¯_(ツ)_/¯ |
After downgrading wsl to version 1 I could get Ubuntu to run but I'm still facing an issue of Docker not running - I think Docker requires wsl2.
I'm running Ubuntu -> Virtual box (windows) -> Ubuntu. |
You should be able to run Docker Desktop for Windows with WSL v1 just fine
with the following caveat:
You should configure your /etc/wsl.conf file to automount C:\ to the root,
and setup options as follows:
[automount]
root = /
options = "metadata,umask=22,fmask=11"
Then to perform any volume mounts, absolute source paths to
/c/...some-path... will work, when Docker Desktop for Windows (without
WSLv2 support turned on) can only see the windows filesystem.
|
Same issue, wsl1 works, wsl2 never work. Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All |
Same issue, wsl1 works, wsl2 never work. |
same issue.. windows 11 -> virtualbox -> windows 11 |
@sengokyu I don't know if this fixes your problem but WSL2 works fine with windows 11 on qemu. I have the same setup as you but instead use qemu. The only problem with qemu is that if the VM goes into idle mode (I'm using the idle mode term because I don't really know what's happening) it freezes. If you do not interact with it for a couple of miutes or so the VM just stops working forcing me to reset it. |
Same problem here. Want to help a colleague that uses Windows so I created a VirtualBox VM on my macOS host.
VirtualBox: 6.1.32 |
Base os : ubuntu 22.04 wsl1 works fine wsl2 giving same error . |
Host OS: Ubuntu 22.04 WSL2 still not working in VirtualBox yet works when running inside of VMWare Player 17. I believe this is a VirtualBox specific bug! |
any updates on this issue? i think the problem still persists. |
Waiting myself for a solution. Guest OS Win 10 22H2 cannot get WSL2 to work. |
Problem still there, not able to run docker in vmbox using wsl-2 and hyper-v. |
Could this be related? https://forums.virtualbox.org/viewtopic.php?p=540307#p540307 If I'm interpreting it correctly, Hyper-V (or VMP) cannot work in a VirtualBox VM, at least not on older versions of VirtualBox. |
I'm facing the persistent WSL2 error 0x80370102 across Windows 10 Pro (22H2 Build 19045.4046) and Windows 11 Pro VMs running on VirtualBox 7.0.14 hosted by Ubuntu 22.04 LTS. Despite extensive troubleshooting and configuration adjustments, the issue remains unresolved. Here’s a brief overview: ### Setup and Configuration:
Troubleshooting Steps Taken:
Observations:
Seeking Insights: I'm looking for any insights, settings adjustments, patches, or workarounds specific to running WSL2 within VirtualBox VMs. The issue is consistent across Windows 10 and 11, indicating a deeper virtualization compatibility challenge. Any shared experiences or advice on navigating this would be greatly appreciated, especially given its importance for my security testing work. |
Environment
WSL2 on virtualized Windows 10 (2004 Build 19041.392).
Host OS: macOS Catalina 10.15.5
Steps to reproduce
Fresh VM installation from MS-provided ISO.
Follow standard installation instructions for WSL2.
Install Ubuntu (or 20.04, or 18.04) from the MS Store.
Expected behavior
Launching Ubuntu should complete the installation, and setup a user.
Actual behavior
Error occurs as soon as Ubuntu is launched for the first time.
The text was updated successfully, but these errors were encountered: