Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL regression SystemD configuration causes WSL to hang. #11107

Closed
1 of 2 tasks
mattbsage opened this issue Feb 1, 2024 · 3 comments
Closed
1 of 2 tasks

WSL regression SystemD configuration causes WSL to hang. #11107

mattbsage opened this issue Feb 1, 2024 · 3 comments

Comments

@mattbsage
Copy link

Windows Version

Microsoft Windows 11 [10.0.22631.3007]

WSL Version

2.0.14.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.133.1-1

Distro Version

Fedora 39

Other Software

Docker Desktop (Windows) v 4.27.0

Repro Steps

To get the Fedora39 rootfs tar file:

From cmd.exe:

docker run -dit --name fedora39 fedora:39
docker export -o fedora-39-rootfs.tar fedora39
docker stop fedora39

Import the tar file

wsl --import fedora %userprofile%\AppData\Local\Packages\RedHat.FedoraOnWindows_39\LocalState fedora-39-rootfs.tar

Make it default and start it up!

wsl -s fedora39
wsl -d fedora39

do anything you like here, until...

$ sudo cat <> /etc/wsl.conf
[boot]
systemd=true
EOF

Next time this image is booted WSL hangs...

Reboot.

mount the broken VHDX into another instance, remove /etc/wsl.conf from the filesystem and the image runs fine.

Expected Behavior

I would expect SystemD support to be maintained.

Actual Behavior

wsl

Diagnostic Logs

I'm having trouble providing logs as I don't have Admin access to the machine. Sorry!

Perhaps someone else can reproduce this?

Copy link

github-actions bot commented Feb 1, 2024

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@zcobol
Copy link

zcobol commented Feb 1, 2024

@mattbsage looks like the image exported from docker doesn't have systemd package installed. After adding /etc/wsl.conf run sudo dnf install systemd and restart your WSL instance.

Nitpick: it is styled systemd and not SystemD or any variant.

@mattbsage
Copy link
Author

@mattbsage looks like the image exported from docker doesn't have systemd package installed. After adding /etc/wsl.conf run sudo dnf install systemd and restart your WSL instance.

Nitpick: it is styled systemd and not SystemD or any variant.

You are absolutely right - on all accounts! Sorry for wasting your time. I guess after 2 days of trying to resurrect my old Fedora 37 image (and failing), I got ahead of myself. PEBCAK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants