-
Notifications
You must be signed in to change notification settings - Fork 854
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
OpenSuSE leap 15.4 on WSL2 will not start after enabling systemd #9602
Comments
This ticket was created since #9477 has been marked closed by inactivity from the reporter. |
Unfortunately there's a piece of the systemd puzzle missing by default in Leap. You need a symlink for I've added this logic to a wsl_systemd pattern (package: patterns-wsl-systemd) but it hasn't proliferated everywhere in the ecosystem, especially backwards (15.4, 15.3, etc.); hopefully >=15.5 will have it available out of the gate. |
I tried a new opensuse install, this time tumbleweed, and I did install the wsl_systemd pattern. It works fine. |
Leaving this here for anyone having the same problem as I did. This is how you fix a botched Leap distribution using a different wsl distribution, in my case tumbleweed.
This will give you a long string as an answer. In my case it was this, but yours will surely look different
|
Using %HOMEPATH%/.wslconfig with:
disables systemd, at least for TW/SLE - not sure why that isn't the case for Leap when
but the |
Thanks for this fix. For some reason still had to do this with openSUSE-Leap-15.5 to get systemd working.
for reference. |
When I said "hopefully >=15.5 will have it available out of the gate." I was referring to the The idea would be |
I have the same issue, after follow instruction from this doc: https://en.opensuse.org/openSUSE:WSL, install |
dir not work for me. I get:
What worked was:
|
Version
Windows 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
I followed the instructions to have systemd start on boot from: this link . In particular I set this variable in the
/etc/wsl.conf
file in my distro:Expected Behavior
The distro "boots" when I start WSL
Actual Behavior
This error is thrown and no console starts:
Error code: Wsl/Service/CreateInstance/E_UNEXPECTED
Diagnostic Logs
Using this script I created this diagnostic log file.
WslLogs-2023-02-06_13-47-49.zip
The text was updated successfully, but these errors were encountered: