!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

347 Members
https://github.com/nix-community/NixOS-WSL61 Servers

Load older messages


SenderMessageTime
9 Dec 2022
@daniel573:matrix.orgDaniel Kahlenberg
wsl --status
Standardversion: 2
Kernel-Version: 5.10.102.1
16:20:29
@k900:0upti.meK900Like, what are you doing and what is happening?16:20:42
@daniel573:matrix.orgDaniel 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:0upti.meK900What do you mean by "is in stopped state"?16:24:50
@k900:0upti.meK900Is the VM actually dead, or are you just not getting any output?16:24:57
@k900:0upti.meK900 Do you get anything if you run wsl --system -d NixOS and then dmesg? 16:25:15
@daniel573:matrix.orgDaniel Kahlenberg
➜  wsl.exe --list -v
  NAME          STATE           VERSION
* wsl-vpnkit    Running         2
  Ubuntu        Stopped         2
  NixOS         Stopped         2
16:25:25
@daniel573:matrix.orgDaniel Kahlenberg Directly after wsl -d NixOS 16:25:37
@k900:0upti.meK900OK, that's whatever, that CLI is very confused16:26:08
@k900:0upti.meK900 Try wsl --system -d NixOS and then dmesg and look for errors 16:26:20
@daniel573:matrix.orgDaniel KahlenbergOn my system this just prints the wsl help page, guess my version is too old then (Win10)16:27:04
@k900:0upti.meK900Uhh16:27:11
@k900:0upti.meK900What version of WSL are you on?16:27:14
@daniel573:matrix.orgDaniel KahlenbergIDK just says 216:27:25
@k900:0upti.meK900native systemd requires WSL 1.0 from the Windows Store16:27:29
@k900:0upti.meK900 wsl --version? 16:27:40
@daniel573:matrix.orgDaniel Kahlenberg
wsl --status
Standardversion: 2
Kernel-Version: 5.10.102.1
16:27:44
@k900:0upti.meK900Yeah this is definitely too old16:27:53
@k900:0upti.meK900The versions of WSL itself needed for native systemd have kernel 5.1516:28:07
@k900:0upti.meK900 Try wsl --update 16:28:16
@daniel573:matrix.orgDaniel 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:0upti.meK900You may need to explicitly go and download the Windows Store version for this to work though16:29:09
@sandro:supersandro.deSandro 🐧I didn't need to do that16:29:22
@k900:0upti.meK90011 will get it as a normal update16:29:24
@k900:0upti.meK90010 I'm not sure16:29:30
@sandro:supersandro.deSandro 🐧but you probably need to be on a newer windows version for that to work16:29:34
@daniel573:matrix.orgDaniel Kahlenbergwsl --update just says none available16:30:19
@k900:0upti.meK900What Windows version are you on?16:30:41
@daniel573:matrix.orgDaniel 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:0upti.meK900

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

Show newer messages


Back to Room ListRoom Version: 9