Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0xffffffff
penndev opened this issue · 4 comments
Windows Version
Microsoft Windows [版本 10.0.19045.4412]
WSL Version
WSL 版本: 2.1.5.0
Are you using WSL 1 or WSL 2?
- WSL 2
- WSL 1
Kernel Version
No response
Distro Version
No response
Other Software
WSL 版本: 2.1.5.0
内核版本: 5.15.146.1-2
WSLg 版本: 1.0.60
MSRDC 版本: 1.2.5105
Direct3D 版本: 1.611.1-81528511
DXCore 版本: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows 版本: 10.0.19045.4412
Repro Steps
PS C:\WINDOWS\system32> wsl
无法配置 networkingMode Nat)(网络。若要禁用网络,请在C:\Users\Penn\.wslconfig中设置“wsl2.networkingMode=None”
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0xffffffff
PS C:\WINDOWS\system32> netstat -ano | findstr "UDP" | findstr -r "0.0.0.0:53"
UDP 0.0.0.0:53 *:* 5796
UDP 0.0.0.0:5353 *:* 19448
UDP 0.0.0.0:5353 *:* 18736
UDP 0.0.0.0:5353 *:* 13628
UDP 0.0.0.0:5353 *:* 13628
UDP 0.0.0.0:5353 *:* 3184
UDP 0.0.0.0:5353 *:* 19448
UDP 0.0.0.0:5353 *:* 18736
UDP 0.0.0.0:5355 *:* 3184
PS C:\WINDOWS\system32> taskkill /pid 5796 /f
成功: 已终止 PID 为 5796 的进程。
PS C:\WINDOWS\system32> wsl
penn@LAPTOP-MHK154ON:/mnt/c/WINDOWS/system32$
Expected Behavior
My WSL has been running well until one time when my system underwent an upgrade and rebooted. After that, WSL couldn't start until I discovered that I had to kill the process occupying UDP port 53 in Windows to restore it to normal. Now I have to do this every time to use WSL, which is very inconvenient. I want WSL to be normal right after booting up.
Actual Behavior
无法配置 networkingMode Nat)(网络。若要禁用网络,请在C:\Users\Penn.wslconfig中设置“wsl2.networkingMode=None”
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0xffffffff
IF disable (Host Network Service)
终结点映射器中没有更多的终结点可用。
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0x800706d9
Diagnostic Logs
No response
Logs are required for review from WSL team
If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.
How to collect WSL logs
Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1
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
If you choose to email these logs instead of attaching to the bug, please send them to wsl-gh-logs@microsoft.com with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.
View similar issues
Please 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!
Open similar issues:
- Get a Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0xffffffff when restart the WSL after shutdown (#11549), similarity score: 0.80
Closed similar issues:
- 无法配置 networkingMode Nat (#10762), similarity score: 0.78
- Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/ERROR_UNHANDLED_EXCEPTION (#11389), similarity score: 0.76
- WSL does not start: Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0x800706d9 (#11265), similarity score: 0.75
- WSL2 does not boot with localy installed DNS server (#10889), similarity score: 0.74
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
/question
Like this issue #11334, but I can't remove the system's occupation.
[wsl2]
networkingMode=NAT
dnsTunneling=true
wsl: DNS 隧道不受支持
无法配置 networkingMode Nat)(网络。若要禁用网络,请在C:\Users\Penn\.wslconfig中设置“wsl2.networkingMode=None”
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0xffffffff