Repository navigation
WSL systemd support - #29837
Draft
l0rd wants to merge 2 commits into
Draft
WSL systemd support#29837l0rd wants to merge 2 commits into
l0rd wants to merge 2 commits into
Conversation
l0rd
force-pushed
the
wsl-systemd-support
branch
from
September 25, 2026 08:49
b20e013 to
24bd31b
Compare
giuseppe
reviewed
Sep 25, 2026
Comment on lines
+41
to
+42
| const wslConf = `[boot] | ||
| systemd=true |
Contributor
There was a problem hiding this comment.
LGTM for rootless support
Comment on lines
512
to
514
| if err != nil { | ||
| return false, err | ||
| } |
There was a problem hiding this comment.
This check seems to contradict what the comment suggests.
| if err := wslInvoke(dist, "sh", "-c", fmt.Sprintf(changePort, port)); err != nil { | ||
| return fmt.Errorf("could not change SSH port for guest OS: %w", err) | ||
| } | ||
|
|
There was a problem hiding this comment.
The failed tests suggest a race between this and the systemd sshd service. systemctl try-restart sshd.service may be needed here.
Contributor
Author
There was a problem hiding this comment.
@chemwolf6922 thank you for looking at it. I will resume working on this in a couple of days.
l0rd
force-pushed
the
wsl-systemd-support
branch
from
October 9, 2026 13:09
24bd31b to
1795fb6
Compare
l0rd
force-pushed
the
wsl-systemd-support
branch
from
October 24, 2026 15:57
1795fb6 to
21fc832
Compare
Podman machines v6.x don't start on versions of WSL earlier than v2.5.1 because of their old Kernels with cgroupv1 support. Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
Fixes podman-container-tools#15967 New machines bootstraps script doesn't start systemd anymore. For old existing machines, where the script /usr/local/bin/enterns exists, systemd is still stared in a namespace. Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
l0rd
force-pushed
the
wsl-systemd-support
branch
from
October 24, 2026 21:50
21fc832 to
649bd06
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes:
podman runfails with WSL v3.0.1 #29749Opening this as a draft to check CI, I still want to work on it to try supporting WSL versions prior to 0.67.6.
Checklist
Ensure you have completed the following checklist for your pull request to be reviewed:
commits. (
git commit -s). (If needed, usegit commit -s --amend). The author email must matchthe sign-off email address. See CONTRIBUTING.md
for more information.
Fixes: #00000in commit message (if applicable)make validatepr(format/lint checks)Noneif no user-facing changes)Does this PR introduce a user-facing change?