wsl-images
wsl-images copied to clipboard
Enabling systemd on WSL Doesn't Work as Expected
Brief description
Recently Microsoft enabled systemd support on WSL (more info on MS Devblogs). Trying to enable systemd on AlmaLinux 9 inside WSL result in partial activation where systemctl --user not working.
How to replicate
- Make sure WSL is running version 0.67.6 or higher (
wsl --version) - Configure
/etc/wsl.confto enablesystemdsupport[boot] systemd=true - Run
systemctl --user statusinside WSL
Test result
WSL version (wsl --version)
WSL version: 0.70.0.0
Kernel version: 5.15.68.1
WSLg version: 1.0.45
MSRDC version: 1.2.3575
Direct3D version: 1.606.4
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.674
Actual behaviour on AlmaLinux 9

Behaviour observed on Ubuntu 22.04
