I found a few commands like configuring networking or optimizing the virtual disk that require shutting down WSL, but every time I do that via "wsl --shutdown", it causes Windows 10 to lock up. There isn't a blue screen, it just freezes until removing power.
How can I shut down WSL2 to allow compacting the virtual hard drives without restarting Windows?
exitbefore the shutdown? (2) This problem seems more frequent with NVIDIA graphic cards, is that your case and are you running graphical programs in WSL? (3) Is your WSL fully updated? – harrymc Sep 05 '23 at 16:52The most recent version of Windows Subsystem for Linux is already installed. I had the same issue right at boot with no terminals open, and only one distro having been started. I closed the terminal instead of issuingexit. – theSparky Sep 05 '23 at 17:25wsl --versioncommand shows WSL 1.2.5.0 with Kernel 5.15.90.1, but it seems there are quite a few newer pre-release versions than that. The distros I have installed are all configured as WSL2 – theSparky Sep 05 '23 at 18:15