-
Notifications
You must be signed in to change notification settings - Fork 854
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
Get a Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0xffffffff when restart the WSL after shutdown #11549
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Closed similar issues:
|
The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running. Diagnostic information
|
This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-file it as a new issue. Thank you! |
Windows Version
Microsoft Windows [Version 10.0.19045.2965]
WSL Version
2.1.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.146.1-2
Distro Version
Ubuntu
Other Software
Visual Studio Code version 1.88.1 with Remote - SSH extension version v0.110.1
Repro Steps
I just want to connect to WSL via Visual Studio Code using the Remote-SSH extension, but it gives me error that looks like this: (the message is VS Code Server for WSL closed unexpectedly. Check WSL terminal for more details).
![image](https://private-user-images.githubusercontent.com/85545297/327321381-20191c6a-6bd6-4ff8-bf3f-aa50bcae1d28.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5MjU5MTIsIm5iZiI6MTczOTkyNTYxMiwicGF0aCI6Ii84NTU0NTI5Ny8zMjczMjEzODEtMjAxOTFjNmEtNmJkNi00ZmY4LWJmM2YtYWE1MGJjYWUxZDI4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDAwNDAxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRiMWE1NDBhMWRiMDRlNWY0YWI0NDMwNDMzNGJkZTAyNDk1ZWUxMGQyOTYxZDBhYTQ0YTA2NWIyM2FiY2FjZWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._U8jsGp4SVPkLsX480s7MMjgF1PVLU9bsywlE797dcs)
Then, I tried to reboot the WSL with
wsl --shutdown
andwsl
. The first command was succeeded, but the second one got the error like the title (Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0xffffffff). I tried to set it using .wslconfig that I made first (because there is no such file in my directory), but it keeps giving me error.Expected Behavior
I can connect to the WSL in VS Code
Actual Behavior
It gives me error:
Failed to configure network (networkingMode Nat). To disable networking, set
wsl2.networkingMode=None
in C:\Users\user.wslconfigError code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0xffffffff
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: