wsl-images icon indicating copy to clipboard operation
wsl-images copied to clipboard

Enabling systemd on WSL Doesn't Work as Expected

Open arinanto opened this issue 3 years ago • 0 comments

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.conf to enable systemd support
    [boot]
    systemd=true
    
  • Run systemctl --user status inside 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

AlmaLinux 9 screenshot

Behaviour observed on Ubuntu 22.04

Ubuntu 22.04 screenshot

arinanto avatar Oct 18 '22 06:10 arinanto