Skip to content

Instantly share code, notes, and snippets.

@HallexCosta
Created October 17, 2022 02:31
Show Gist options
  • Save HallexCosta/60c737ad5221339bc947aabea35cfa8e to your computer and use it in GitHub Desktop.
Save HallexCosta/60c737ad5221339bc947aabea35cfa8e to your computer and use it in GitHub Desktop.
WSL freezes and won't start
  1. First get the PID of svchost.exe running LxssManager, open the cmd as administrator and run: tasklist /svc /fi "imagename eq svchost.exe" | findstr LxssManager
  2. Run task manager as administrator, in the details tab, search for the svchost.exe containing the PID
  3. Right click it and select 'end process tree'
  4. Now you should be able to restart wsl normally with wsl --shutdown and wsl.

References:
Can't restart WSL2, LxssManager hangs in stopping state, how to restart?
WSL don't start, don't open and don't answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment