-
Notifications
You must be signed in to change notification settings - Fork 859
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
WSL2 + WSLg + systemd support Conflict #9257
Comments
Interop is not working in the same behaviour as wslg
|
I've met the same problem with the latest update of WSL. WSL info
UsageI'm using Cypress with WSLg, it works fine before 1.0.0 release. Today I've tried again, and it prompt me with the message FixI found this issue and tried to disable So, it does seem like a bug in between WSLg and systemd. However, even with systemd enabled, I can still use some gui tools like gedit. I'm not sure what is causing a difference? |
Sure, but this should not be a normal behaviour from wsl at all as in any documentation is said that wslg and systemd have conflicts. Btw, the problem itself is at the systemd init scripts as it does not setup wsl tools as the original one. Basically its a poor integration |
Found on wslg container's stderr.log file :
|
After 10 hours of pure debugging, found out that the problem was a comflict with binfmts WSLInterop file and mono detector. Maybe a fix is to make wslg machine more independent from the changes on wsl user container |
There is a issue that some systemd unit removes X socket under /tmp, this is why Wayland native application, such as gedit, keep working while X11 app does not work. We made a fix in WSL 1.0.3 for that, please try out when you have a chance, thanks! |
@0xdrop, thanks for analysis, but I'm not fully understand this, would you please describe a bit more details, thanks again for helping us! |
Sure, a better written report here:
IdeasMake a way that all WSL files as made in x11 /tmp socket cant be overwritten from external applications, make interop binfmts file to be priority . Bring a better report on how WSL internals work inside linux image. thanks for the attention @hideyukn88 , in the case of more info or logs needed just type here again! ;) |
@0xdrop, thanks for details, just for clarification, do you mean |
Yes! Mono is present at some of the Kali metapackages, then its normal to a lot of users that use wsl plus this distro to have this same issue |
@0xdrop, thank you very much, now I'm able to reproduce the issue locally, thanks! |
@0xdrop, I noticed this issue is already closed and WSL 1.0.3 did address WSLg + systemd issue, do you mind opening new issue for WSLg + mono lost RDP connection? thanks! |
Open at this repo or at wslg one? |
@0xdrop, since launching Windows's exe from WSL is WSL feature (not WSLg), so please open here. |
In case this helps anyone, I did this:
Now, wslg is working again with systemd enabled in my /etc/wsl.conf. |
@0xdrop, thanks for helping us to diagnose the issue, and now this issue is fixed (or technically workarounded specifically for msrdc.exe) by microsoft/wslg#926, although Windows interoperability in general still remain broken. |
Version
Microsoft Windows 11 [10.0.22621.900]
WSL Version
Kernel Version
Linux version 5.15.74.2-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220)
Distro Version
Kali
Other Software
x11-apps (7.7+9)
systemd 252 (252.1-1)
+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY -P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified
WSL: 1.0.1.0
kernel: 5.15.74.2
WSLg: 1.0.47
MSRDC: 1.2.3575
Direct3D: 1.606.4
DXCore: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Repro Steps
At windows terminal:
wsl --install KALI
sudo nano /etc/wsl.conf
wsl --shutdown
wait for about 1 minute
wsl
apt-get install x11-apps
xcalc
Expected Behavior
After enabling
systemd
at.wslconfig
. WSLg should behave well and as examplexcalc
Actual Behavior
No window open and any log in console
Diagnostic Logs
If systemd support goes back to false, after restart(
wsl --shutdown
), wslg works 10/10WslLogs-2022-12-02_14-44-50.zip
WSL logs
nvidia-smi logs --> NVIDIA-SMI 520.61.03 Driver Version: 522.06 CUDA Version: 11.8
The text was updated successfully, but these errors were encountered: