-
Notifications
You must be signed in to change notification settings - Fork 868
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
systemctl still can't run in latest version wsl #12729
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The script will output the path of the log file once done. If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here Once completed please upload the output files to this Github issue. Click here for more info on logging |
WslLogs-2025-03-22_22-02-58.zip |
The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running. Diagnostic information
|
Anyone is here? How can I get the log? Just open newly a Windows powershell as a user, and start wsl and again run former commands, and the running collect-wsl-logs.ps1 will collect the information about the problem? |
just here to say i'm also struggling because systemctl used to work and is now broken for me. |
Windows Version
10.0.26100.3476
WSL Version
2.4.12.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.167.4-1
Distro Version
Ubuntu-24.04
Other Software
No response
Repro Steps
$wsl --version
WSL Version: 2.4.12.0
Kernel Version: 5.15.167.4-1
WSLg Version: 1.0.65
MSRDC Version: 1.2.5716
Direct3D Version: 1.611.1-81528511
DXCore Version: 10.0.26100.1-240331-1435.ge-release
Windows Version : 10.0.26100.3476
$systemctl
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Expected Behavior
sudo systemctl daemon-reload
sudo systemctl restart docker
I just used systemctl to restart docker, but it stopped everything.
Actual Behavior
$cat /etc/wsl.conf
[boot]
systemd=true
[network]
generateResolvConf=false
[user]
default=richen
As you can see, I have already set boot in wsl.conf and restart wsl by "wsl --shutdown", but nothing useful.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: