mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-11 21:10:25 +01:00
Big Sur & Monterey not booting fully on WSL2 #368
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SakulFlee on GitHub (Jun 6, 2022).
Hello everyone :)
I am having trouble running macOS Monterey (and Big Sur) on WSL2 (W11).
The other images (latest, naked, Catalina, High Sierra and Mojave) do work flawlessly.
Big Sur
Big Sur boots and after a few crashes/reboots the installer opens.
However, after a few minutes in the installer QEMU reboots and has to restart multiple times again until the installer is shown. Can't install.
Command used (just like in the README.md):
Monterey
Monterey doesn't even get to the Installer stage.
It either reboots multiple times or is stuck with console output.
Command used (just like in the README.md):
Additional Information
If there is a way for me to attach macOS logs and/or other information is required please let me know!
I've tried all images on WSL-Ubuntu and WSL-OpenSUSE.
Apart from some missing packages on the OpenSUSE side both show the same behaviour.
I am not sure if this is a Windows/WSL related issue?
I am running WIndows 11; Version 22H2 (OS Build 22610.1) and WSL is the following:
OS related issued, please help us identify the issue by posting the output of this
Thank you very much!
I am open for further testing this.
@EddieV2 commented on GitHub (Jul 31, 2022):
I noticed the same rebooting behavior with the Monterey image. I can't attest to the other images working, but it seemed like it tried to install and then crashed due to a memory issue perhaps?
@SakulFlee commented on GitHub (Aug 3, 2022):
Possibly, I don't know how to further debug this.
Increasing the RAM amount doesn't help.
@mateo-m commented on GitHub (Aug 8, 2022):
Same issue here, W11 & WSL2.
@LiarOnce commented on GitHub (Aug 21, 2022):
Same issue here, I've tried allocating more memory and CPU, but it doesn't work:
@MikeCoder96 commented on GitHub (Aug 26, 2022):
KVM on WSL is different from KVM on Linux native, in fact, KVM, use a Hyper-V Enlightened VMCS technology, here you will find information about
Said that, I assume that some CPU call are not able to be "translate" from Hyper-V engine and everything fall to break.
Suggest: Swap to Linux or use VMWare/VirtualBox
@SakulFlee commented on GitHub (Aug 26, 2022):
If it's some virtualization issue inside WSL, wouldn't that mean QEMU itself shouldn't work?
I can boot up and fully install both macOS versions using QEMU inside WSL.
It just hangs eventually (think it's some sleep power issue). But with Docker-OSX it's not even fully booting up.
@MikeCoder96 commented on GitHub (Aug 26, 2022):
@Sakul6499 Not fully clear how Docker on Windows work but seem to create a layer of communication and a new instance of WSL and this slow down the performace.
Can you write specs of your pc and how the virtualization work with QEMU (not near native I suppose)
@SakulFlee commented on GitHub (Aug 26, 2022):
@MikeCoder96
CPU: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
RAM: 32GB DDR4
NVMe: 1TB
GPU: NVIDIA GeForce RTX 3060 (6GB)
Windows Version: 22H2 (OS Build 22621.382)
> wsl --versionDocker version: 20.10.17, build 100c701
As of how the QEMU part works: Simply follow the instructions of OSX-KVM. Didn't change much, but added a USB Keyboard, Mouse and Touchpad to get all functionality working. If I am not mistaken, this repository is based/is using OSX-KVM, right?
Meaning, it may be an issue with having Docker as an additional layer as it's working fine in WSL.
@MikeCoder96 commented on GitHub (Aug 26, 2022):
Have you changed something in config.plist or in wslconfig? The installer reboot everytime and I can't figure out why...
@SakulFlee commented on GitHub (Aug 26, 2022):
@MikeCoder96 all I did was this:
WSL2 Config:
Docker Engine configuration:
(Not that it matters for running QEMU under WSL2)
Although sometimes macOS fails to boot in QEMU. Restarting/Resetting help though.
Furthermore, making your own OpenCore boot image seems to help with those lockups during boot completely. ( I followed this guide )
@MikeCoder96 commented on GitHub (Aug 26, 2022):
@Sakul6499 we have similar hardware "i have only 16gb ram and rtx 2070". Can u give to me the plist file? I've already tried to make one by myself but same problem and probably i miss something
@SakulFlee commented on GitHub (Aug 26, 2022):
@MikeCoder96 Pretty sure it's the original config from OSX-KVM, but this one is working with my setup: https://gist.github.com/Sakul6499/a285bad5fbf4cb070521838656937be8.
Can't run a diff right now, so unsure if it's the same or not.