-
Notifications
You must be signed in to change notification settings - Fork 827
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
systemd Not Booting Up in WSL 2 Despite Configuration in wsl.conf #11681
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 scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging View similar issuesPlease 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! Open similar issues:
Closed similar issues:
|
I can't get the log |
Closing since this issue doesn't have logs |
Here I've collected the logs as requested. Steps to reproduce the issue:
The error message encountered was: |
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
|
I've edited my last comment to include the new log file as requested. Please let me know if there are any further details needed. |
Can this issue be reopen? I’ve added the log as requested |
@OneBlue please can you reopen the issue as I've provided the log as requested |
If you open the |
Windows Version
Microsoft Windows [Version 10.0.21996.1]
WSL Version
WSL 2
Are you using WSL 1 or WSL 2?
Kernel Version
5.10.102.1
Distro Version
Ubuntu-22.04
Other Software
No response
Repro Steps
1. Install WSL and Ubuntu 22.04:
2. Configure wsl.conf:
[boot] systemd=true
3. Restart WSL:
wsl --shutdown
4. Start WSL and Verify systemd:
ps -p 1 -o comm=
Expected Behavior
The command should output systemd, indicating that systemd is running as the init system.
Actual Behavior
The output is not systemd, and running systemctl status returns the following error:
System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down
Diagnostic Logs
No response
Tasks
The text was updated successfully, but these errors were encountered: