Windows

Starting services on WSL2 with systemd

Starting services on WSL2 with systemd

Updated 28.10.2021: Corrected installation flow, init way + notes on VScode server

WSL2 is a great way to run Linux alongside Windows 10/11. However, systemd doesn’t work in it yet.

Luckily, there is a 3rd-party solution - genie. It creates a PID namespace, so systemd can run with PID 1 in it. Ther While it’s not a full replacement with a number of known issues, it allows running some common Linux daemons on your WSL2 instance, for example, docker or Syncthing.