| 9 Dec 2022 |
Daniel Kahlenberg | wsl --status
Standardversion: 2
Kernel-Version: 5.10.102.1
| 16:20:29 |
K900 | Like, what are you doing and what is happening? | 16:20:42 |
Daniel Kahlenberg | K900: After the installation of NixOS-WSL and "deploying" my above described config I run wsl --shutdown. Then when running wsl -d NixOS again, nothing happens, no prompt appears, the instance is in stopped state. Only thing available is wsl -d NixOS -e sh but that leaves me with no possibility to debug further so I have to reinstall with the problematic config changes rolled back. | 16:24:29 |
K900 | What do you mean by "is in stopped state"? | 16:24:50 |
K900 | Is the VM actually dead, or are you just not getting any output? | 16:24:57 |
K900 | Do you get anything if you run wsl --system -d NixOS and then dmesg? | 16:25:15 |
Daniel Kahlenberg | ➜ wsl.exe --list -v
NAME STATE VERSION
* wsl-vpnkit Running 2
Ubuntu Stopped 2
NixOS Stopped 2
| 16:25:25 |
Daniel Kahlenberg | Directly after wsl -d NixOS | 16:25:37 |
K900 | OK, that's whatever, that CLI is very confused | 16:26:08 |
K900 | Try wsl --system -d NixOS and then dmesg and look for errors | 16:26:20 |
Daniel Kahlenberg | On my system this just prints the wsl help page, guess my version is too old then (Win10) | 16:27:04 |
K900 | Uhh | 16:27:11 |
K900 | What version of WSL are you on? | 16:27:14 |
Daniel Kahlenberg | IDK just says 2 | 16:27:25 |
K900 | native systemd requires WSL 1.0 from the Windows Store | 16:27:29 |
K900 | wsl --version? | 16:27:40 |
Daniel Kahlenberg |
wsl --status
Standardversion: 2
Kernel-Version: 5.10.102.1
| 16:27:44 |
K900 | Yeah this is definitely too old | 16:27:53 |
K900 | The versions of WSL itself needed for native systemd have kernel 5.15 | 16:28:07 |
K900 | Try wsl --update | 16:28:16 |
Daniel Kahlenberg | In reply to @k900:0upti.me The versions of WSL itself needed for native systemd have kernel 5.15 Thanks good to know | 16:28:36 |
K900 | You may need to explicitly go and download the Windows Store version for this to work though | 16:29:09 |
Sandro 🐧 | I didn't need to do that | 16:29:22 |
K900 | 11 will get it as a normal update | 16:29:24 |
K900 | 10 I'm not sure | 16:29:30 |
Sandro 🐧 | but you probably need to be on a newer windows version for that to work | 16:29:34 |
Daniel Kahlenberg | wsl --update just says none available | 16:30:19 |
K900 | What Windows version are you on? | 16:30:41 |
Daniel Kahlenberg | In reply to @k900:0upti.me You may need to explicitly go and download the Windows Store version for this to work though Maybe I'll try that (work laptop) | 16:30:45 |
K900 |
You will need to be running Windows 10 version 21H1, 21H2, or 22H2, or on Windows 11 21H2 with all of the November updates applied. You will know you have this update when you check that KB5020030 is installed on Windows 10, or KB5019157 on Windows 11.
| 16:30:51 |