Skip to content
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

Via @VIEWVIEWVIEW WSL2 under Windows 10 previously and upgraded to Windows 11 via windows update (no clean w11 installation) #469

Open
sickcodes opened this issue Mar 19, 2022 · 1 comment

Comments

@sickcodes
Copy link
Owner

Hey,

if you used WSL2 under Windows 10 previously and upgraded to Windows 11 via windows update (no clean w11 installation): you need to update your WSL2 VM first.

# Update WSL2 (run powershell with administrator privileges)
wsl --update

# Shut any down all VMs
wsl --shutdown

# Wait at least 8 seconds. See for more info: https://docs.microsoft.com/en-us/windows/wsl/wsl-config#the-8-second-rule

# Start wsl again
wsl

# Test if display output works now
xeyes

# Run your docker container
docker run -it \
--device /dev/kvm \
-p 50922:10022 \
-e "DISPLAY=${DISPLAY:-:0}" \
-v /mnt/wslg/.X11-unix:/tmp/.X11-unix \
sickcodes/docker-osx:latest

Hope this helps :)

Originally posted by @VIEWVIEWVIEW in #430 (comment)

@kobimx
Copy link

kobimx commented Mar 23, 2022

Exactly what i needed, i was having a 2 "gtk initialization error" and after updating wsl it works

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants