mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-13 22:03:28 +01:00
WSL2 on Windows 11 crashing out on run #234
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 @a10kiloham on GitHub (Aug 11, 2021).
OS related issued, please help us identify the issue by posting the output of this
uname -a
; echo "${DISPLAY}"
; echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs
; grep NAME /etc/os-release
; df -h .
; qemu-system-x86_64 --version
; libvirtd --version
; free -mh
; nproc
; egrep -c '(svm|vmx)' /proc/cpuinfo
; ls -lha /dev/kvm
; ls -lha /tmp/.X11-unix/
; ps aux | grep dockerd
; docker ps | grep osx
; grep "docker|kvm|virt" /etc/group
I can get this working great on bare metal Ubuntu but having issues on WSL2 now (with Windows 11).
With various configs I can get the X window up with the Apple logo, but then it crashes out.
In headless mode, I can get just to the point where there are a few fast moving lines about Legacy shim, then it crashes out again.
In other scenarios, it fails in docker on
Any ideas? I've tried the VNC version as well but it still seems to crash out on that too.
@a10kiloham commented on GitHub (Aug 11, 2021):
The VNC version hangs here
@a10kiloham commented on GitHub (Aug 11, 2021):
Running the VNC version is weird. I get this error
nested virtualization is enabled now by default in the newest WSL.
@a10kiloham commented on GitHub (Aug 11, 2021):
Docker via wsl2 on windows. So proper Ubuntu base
@ltomes commented on GitHub (Sep 21, 2021):
I see the same behavior as your first post, wsl2, ubuntu, podman in rootless or privileged mode.
podman run -it --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" sickcodes/docker-osx:autoFollowed by a loop of
Edit: Comments here got qemu started: https://github.com/sickcodes/Docker-OSX/issues/131#issuecomment-885930416
But I now panic. I am past the issue described on your ticket at any rate.
@WordlessEcho commented on GitHub (Dec 21, 2021):
Following the README I have setup the Docker Desktop.


With x11-apps installed and KVM was enabled by default.
Run
xhost +:Here is the log I was got:
@antoinegaspard commented on GitHub (Jan 12, 2022):
Same as @WordlessEcho, anyone have solution ?
@WordlessEcho commented on GitHub (Jan 13, 2022):
No. I had gave up for a long time.
@sickcodes commented on GitHub (Jan 15, 2022):
Stale Apple logo means unsupported CPU, I tried it on the raspberry Pi.
But GTK error is fixed with
xhost +and this should be added to the readme if anyone wants to make a PR:Because Windows doesn't use /tmp/.X11-Unix, it uses the WSLg socket, apparently
@Error996 commented on GitHub (Mar 1, 2022):
not work,same error
@JustJoostNL commented on GitHub (Apr 1, 2022):
Is there a fix for it already? I have the same problem?
@antoinegaspard commented on GitHub (Apr 1, 2022):
Unfortunately no, I gave up.
@sembsa commented on GitHub (Dec 6, 2022):
Try run command: docker run in Ubuntu terminal, download Wndows Terminal and open ubuntu termianl