nullpo-head / wsl-distrod

Distrod is a meta-distro for WSL 2 which installs Ubuntu, Arch, Debian, Gentoo, etc. with systemd in a minute for you. Distrod also has built-in auto-start feature on Windows startup and port forwarding ability.
MIT License
1.92k stars 92 forks source link

Windows freeezes on WSL shutdown #70

Open VenRoot opened 2 years ago

VenRoot commented 2 years ago

How did I reproduce this bug?

I used the install method 2 for my existing debian bullseye distro Then I enabled the port forwarding method and restarted my pc, noticed that the port forwarding didn't work. The ssh service is "enabled" and runs perfectly. I followed the guide by echoing 22 to /opt/distrod/conf/tcp4_ports

Also it first complained that it had to fall back due to being unable to create an instance in /run (Actually the reason I wanted to create an issue in the first place, but it somehow resolved itself), but now it seems to work with systemd.

The StartWSL Task is also set and runs normally

Versions

WSL-Version: 0.65.3.0 Kernelversion: 5.15.57.1 WSLg-Version: 1.0.41 MSRDC-Version: 1.2.3213 Direct3D-Version: 1.601.0 DXCore-Version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp Windows Version: 10.0.22622.575

What are the issues now?

TCP forwarding is not working Running wsl --shutdown now actually freezes entire windows, only hard reset is possible at that point

nhandt64 commented 2 years ago

I also confirm this issue. Looks like this issue is out of main developer's sight.

Edit: no, I think this is WSL's issue from itself, nothing to do with Distrod right now

sungvzer commented 1 year ago

I'm experiencing the same problem. Running wsl --shutdown actually restarts my whole PC.