WSL: WSL2 + WSLg + systemd support Conflict
Version
Microsoft Windows 11 [10.0.22621.900]
WSL Version
- WSL 2
- WSL 1
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
[boot]
systemd=true
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 example xcalc
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/10
WslLogs-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
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... On | 00000000:01:00.0 On | N/A |
| 30% 39C P8 10W / 100W | 2277MiB / 4096MiB | 14% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+```
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (7 by maintainers)
In case this helps anyone, I did this:
Now, wslg is working again with systemd enabled in my /etc/wsl.conf. Previously, wslg seemed broken where windows would not open. My /mnt/wslg/stderr.log was growing indefinitely with a repeating error about “msrdc.exe exited” and “No such file or directory @…/ProcessMonitor.cpp:72 (LaunchProcess)”
@0xdrop, thanks for helping us to diagnose the issue, and now this issue is fixed (or technically workarounded specifically for msrdc.exe) by https://github.com/microsoft/wslg/pull/926, although Windows interoperability in general still remain broken.