-
Notifications
You must be signed in to change notification settings - Fork 310
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
Unable to start X server in WSL2 #1172
Comments
Having the same issue here.
In my case, I get this message when trying to open Cypress:
Other GUI applications are not openning but don't output any message. EDIT:
|
Same issue here! Using Microsoft Windows [version 10.0.22631.2861] and WSL2
I used VcXsrv months (years?) ago and do not have it installed anymore, but seems like it's still messing up WSLg somehow |
what linux distro are you using? |
As suggested in this issue, the issue is solved by adding |
When trying the fix proposed above, I realized that I still had some remaining of my previous VcXsrv install in my
I removed the first and third line, and everything is working well now |
Tried this too, though I wasn't using ArchWSL, but still X11 doesn't appear to be running and the link fix still fails as described in the original issue. |
Which distro are you using? |
$ cat /mnt/wslg/versions.txt $ lsb_release -a $ uname -a |
I'm having exactly same issue as @Cteljr , same versions. In /mnt/wslg/weston.log I see: Researching earlier reports of xserver crashing too fast in wsl2, turns up old intel graphic driver bugs.
A solution is to get wsl2 to work with xming instead of wsl2's own xserver: install xming and add these to your .bashrc: |
Update: |
If you have the same problem, look this method. |
Windows build number:
Microsoft Windows [Version 10.0.22000.2538]
Your Distribution version:
22.04
Your WSL versions:
WSL version: 2.0.9.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22000.2538
Steps to reproduce:
Following the instructions at https://github.com/microsoft/wslg/wiki/Diagnosing-%22cannot-open-display%22-type-issues-with-WSLg
WSL logs:
weston.log
pulseaudio.log
stderr.log
wlog.log
WSL dumps:
No response
Expected behavior:
Should be able to run Xserver; also, per the instructions at the github troubleshooting link (above), I should be able to create the link for the Xserver, i.e.
sudo rm -r /tmp/.X11-unix
ln -s /mnt/wslg/.X11-unix /tmp/.X11-unix
Both commands should work.
Actual behavior:
The
rm
command fails with:rm: cannot remove '/tmp/.X11-unix': Device or resource busy
, andthe
ln
command fails withln: failed to create symbolic link '/tmp/.X11-unix/.X11-unix': Read-only file system
,although
ls -la /tmp/.X11-unix
showswhich doesnt appear to be a read-only filesysytem.
BTW
sudo ln -s /mnt/wslg/.X11-unix /tmp/.X11-unix
fares no better:ln: failed to create symbolic link '/tmp/.X11-unix/.X11-unix': Read-only file system
The text was updated successfully, but these errors were encountered: