Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL hangs after restarting "Host Network Service" #9634

Closed
1 of 2 tasks
Oppfinnaren opened this issue Feb 14, 2023 · 6 comments
Closed
1 of 2 tasks

WSL hangs after restarting "Host Network Service" #9634

Oppfinnaren opened this issue Feb 14, 2023 · 6 comments

Comments

@Oppfinnaren
Copy link

Oppfinnaren commented Feb 14, 2023

Version

Windows: 10.0.19042.2486

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.15.79.1

Distro Version

No response

Other Software

No response

Repro Steps

wsl --shutdown
Restart-Service -name hns
wsl

Expected Behavior

wsl should start

Actual Behavior

Get this following message:
The remote procedure call failed and did not execute.
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/0x800706bf

Only working solution i've found to make wsl work again is to restart computer.

Diagnostic Logs

No response

@Biswa96
Copy link

Biswa96 commented Feb 14, 2023

Why did you run Restart-Service -name hns ? If you run Restart-Service -name lxssmanager did it solve the issue?

@Oppfinnaren
Copy link
Author

Oppfinnaren commented Feb 14, 2023

Why did you run Restart-Service -name hns ? If you run Restart-Service -name lxssmanager did it solve the issue?

I had some other error message in wsl which i thought could be solved by restarting all services. And then i found out that restarting this service crashed wsl completly. Running Restart-Service -name lxssmanager doesn't solve this issue.

@Oppfinnaren
Copy link
Author

Also worth mentioning that i've been able to reproduce this on multiple computers.

@Biswa96
Copy link

Biswa96 commented Feb 14, 2023

I had some other error message in wsl which i thought could be solved by restarting all services.

You are going into XY problem. Report the actual issue rather than your attempted workaround.

@zcobol
Copy link

zcobol commented Feb 14, 2023

@Oppfinnaren how do you restart the service? It has dependencies and needs the Force flag set to stop it, so maybe restarting the service is not a wise idea.

@benhillis
Copy link
Member

Restarting the HNS service with the force flag is going to kill other things. I would not suggest doing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants