DEV Community

Discussion on: You Probably Don't Need systemd on WSL (Windows Subsystem for Linux)

Collapse
 
pavelsosin320 profile image
PavelSosin-320

Actually, there is the solution for Debian based distro: systemd-genie. It works perfectly and enables Podman that need systemd to manage cgroups. Indeed, there are many benefits like performance!!! there are no problems except the slightly old Podman version for Ubuntu Groovy.
But it is not good for Fedora that is not Debian derived. Podman doesn't work on Fedora 33 distro without genie at all !

Collapse
 
bowmanjd profile image
Jonathan Bowman

Can you elaborate more about your comment "Podman doesn't work on Fedora 33"? That has not been my experience, as noted here.

Collapse
 
pavelsosin320 profile image
PavelSosin-320

Sorry, Podman2 can work on Fedora33. But Podman 3 works much better on Fedora 33 and 34 distro and the most important the ability to support cgroup V2 and work rootless without systemd. Is it possible? The problem of genie for Fedora has been solved and PR's for genie for many other distros have been submitted. Nobody refuses to support genie on any non-Debian distros. So, what is the problem? It works.
From my experience, the WSL networking without a full Linux networking toolset is almost impossible: Network Manager, ResolveCtl, etc, HostnameCtl are much more comfortable tools than various patch scripts invented to make WSL usable.
The last hit is the decision to support systemd-based OCI containers.

Thread Thread
 
bowmanjd profile image
Jonathan Bowman

Good arguments for systemd (especially systemd-based containers), and for genie.

Are you saying that Podman 3 does not work on your systems without systemd?

Thread Thread
 
pavelsosin320 profile image
PavelSosin-320

Podman 3 supports cgroup2 that closely tayed with systemd and utilized by CRun used in Podman 3 instead of RunC. Thisis the long story. This also scenario that I'm testing (more precisely 3.01). It must enable to use Podman by rootless users. All root scenario work OK. Rootless scenario wors too except one bug in systemd 248 for Fedora 34 that still waiting for correction.
Shortly, I'm very satisfied with genie, all *CLI's, native and well documented Linux configurations and without any scripts that I need to run manually.

Thread Thread
 
bowmanjd profile image
Jonathan Bowman

OK. It sounds like your experience with Podman 3 and cgroup2 support is very different than my own. For me, Podman 3 works flawlessly without systemd.

But it sounds like you have systemd and Podman 3 working for you, so that is good and you are satisfied. If you want to get Podman 3 working without systemd, though, feel free to ask more questions, or consult my article on the subject. Happy to help!