-
Notifications
You must be signed in to change notification settings - Fork 859
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 Can't start after enabling systemd #9477
Comments
I'm not sure if you actually put this:
in
Note it's |
Sorry, that was a typo due to Autocorrect. I've corrected it and i am certain i had the right entries in
|
Just to be sure i tried reinstalling Open SUSE Leap and did the same to enable systemd and after Restarting WSl i experienced the same issue with the same error message I also tried Open SUSE Tumbleweed and experienced no issues there systemd works as expected |
What version of Leap does Windows report is installed? I can't imagine it makes a huge difference, but I'm curious. Since systemd has been mainstream in WSL (i.e. post v1.0.0), I haven't had issues with it. Early on, there was an issue w/ what Also, do you have any |
/logs |
Hello! Could you please provide more logs to help us better diagnose your issue? To collect WSL logs, download 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 Thank you! |
Updated issue with logs see section Diagnostic logs for the log file |
@sbradnick app version seems different . in my case
I dont know what you mean by home directory on windows. If you ean my user folder then i dont see a I also had Leap reinstalled to check if |
I suppose
I also don't want to throw out "Well, it works for me." - but that is true. So you can do a fresh install of the distro and when the ONLY thing you do is add:
to |
😄 Thats true.
I understand that and i dont think there is any global config for WSL on my system
I did try that, same results. Either way I'll try again. Like i said earlier Systemd works on Tumbleweed |
Thank @falcon-Z. I'm not seeing any WSL logs in the file you shared. Did you run wsl.exe while the log collection was running ? To be sure, can you run: wsl.exe --shutdown, and run the log collection again (make sure to capture the error) |
This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-open it. Thank you! |
I'm having the same problem, just after enabling systemd: Here is my logs |
@aahahocevar: I'm not seeing any logs (.etl) files in the trace you sent. Can you please try capturing them again ? |
See #9602 (comment) ; If you're having the same issue in Leap, this is most likely the fix ; I fixed it overall a few months ago (and since I add my repo to new installs, in general) I've gotten accustomed to |
Nice!, it worked with "zypper in -t pattern wsl_base", thanks a lot! |
My WSL instance stopped working because of this line how can i fix it? Is there some kind of switch to start WSL instance without this config? |
Ran into this on a fresh openSUSE Leap 15.5 installation. It's still a problem, and neither this nor #9602 should be closed imho.
I was able to recover my installation with the instructions in #9602 for mounting the vhdx and enable systemd by adding the missing |
wsl1 can switch to systemd? |
Version
10.0.22621.1105
WSL Version
Kernel Version
5.15.79.1
Distro Version
openSUSE-Leap-15.4
Other Software
No response
Repro Steps
Followed Instructions to enble Systemd from this Article
Set the system flag set in your WSL distro settings
You will need to edit the wsl.conf file to ensure systemd starts up on boot.
Add these lines to the /etc/wsl.conf (note you will need to run your editor with sudo privileges, e.g: sudo nano /etc/wsl.conf):
And close out of the nano editor using CTRL+O to save and CTRL+X to exit.
Final steps
With the above steps done, close your WSL distro Windows and run wsl.exe --shutdown from PowerShell to restart your WSL instances. Upon launch you should have systemd running. You can check this with the command systemctl list-unit-files --type=service which should show your services’ status.
Expected Behavior
Expected WSL to start with Sytemd enabled
Actual Behavior
After Restarting WSL i had the following error
I cannot access any Resources related to my distro anywhere from terminal to file explorer
Diagnostic Logs
WslLogs-2023-01-18_10-47-21.zip
No response
The text was updated successfully, but these errors were encountered: