Error code: CreateInstance/CreateVm/ConfigureNetworking/0x8007054f
Windows Version
Microsoft Windows [Version 10.0.22631.4460]
WSL Version
2.3.26.0
Are you using WSL 1 or WSL 2?
- [x] WSL 2
- [ ] WSL 1
Kernel Version
5.15.167.4-1
Distro Version
Ubuntu 22.04
Other Software
None
Repro Steps
Running wsl terminal first while wsl is stop.
Expected Behavior
wsl can start normally without any errors.
Actual Behavior
After Windows has been running for a certain period (during which WSL is usually inactive), there is a chance that the next time you attempt to start WSL, the following error may occur:
wsl: 出现了内部错误。
错误代码: CreateInstance/CreateVm/ConfigureNetworking/0x8007054f
wsl: 无法配置 networkingMode Mirrored) (网络,回退到 networkingMode None。
or maybe like this in english:
wsl: An internal error occurred.
Error code: CreateInstance/CreateVm/ConfigureNetworking/0x8007054f
wsl: Unable to configure networkingMode Mirrored) (network, falling back to networkingMode None.
LOG:I'm not sure where the log will appear, and the error message doesn't provide a log path.
I suspect this error code 0x8007054f is primarily caused by Windows, and the error code likely originates from the Windows system. Although WSL is functioning properly, there seems to be no internet connectivity.
And this error code always disappears after a Windows restart. Or I change autoProxy=true to false in the .wslconfig file. Of course, I just tested it, and even if I change the autoProxy configuration back to true and only restart WSL, it still works fine.
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 script will output the path of the log file once done.
If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here
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 [email protected] 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!
Closed similar issues:
- Get a Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0xffffffff when restart the WSL after shutdown (#11549), similarity score: 0.78
- Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0xffffffff (#11597), similarity score: 0.76
- wsl 启动报错 (#10213), similarity score: 0.76
- Windows 11: WSL2 cannot able to start, Error: 0x80041002 (#8657), similarity score: 0.76
- How to solve WSL2 error 0x803b0017? (#10150), similarity score: 0.76
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
/emailed-logs
Diagnostic information
Found '/emailed-logs', adding tag 'emailed-logs'
Alright, I need to correct my previous description. Today, when I encountered this issue again, I tried changing autoProxy=true to false in the .wslconfig file and restarted WSL to fix it, but this time it didn't work. I had to restart the entire Windows system. (I've had instances where just restarting Clash resolved the issue, but they only worked once.)
Is your system fully patched with Windows updates? There was a regression in Windows that has been fixed in a recent KB.
Is your system fully patched with Windows updates? There was a regression in Windows that has been fixed in a recent KB.
I checked Windows Update, and it just notified me that I am using the latest version. However, I noticed that there is a manually installable patch, KB5046732. I will download it and continue to monitor whether the issue reoccurs.
Is your system fully patched with Windows updates? There was a regression in Windows that has been fixed in a recent KB.
It still occurred, the latest KB patch didn't work.
可以先关闭占用53端口的系统进程,然后在进程重启之前快速打开wsl
可以先关闭占用53端口的系统进程,然后在进程重启之前快速打开wsl
我怀疑过端口问题,但我不确定是哪个冲突的端口。我刚刚检查了,没有在系统上找到使用53端口的进程。
same for me.
wsl --version:
WSL version: 2.3.24.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.65
MSRDC version: 1.2.5620
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26100.2605
.wslconfig:
[wsl2]
dnsTunneling=true
firewall=true
autoProxy=true
networkingMode=mirrored
i meet the same question. And i find no solution for it. if there is one, please tell me. Thanks a lot!!
same question too
WSL 版本: 2.4.11.0
Kernel 版本: 5.15.167.4-1
WSLg 版本: 1.0.65
MSRDC 版本: 1.2.5716
Direct3D 版本: 1.611.1-81528511
DXCore 版本: 10.0.26100.1-240331-1435.ge-release
Windows 版本: 10.0.26100.3194
.wslconfig
[experimental]
autoMemoryReclaim=gradual
networkingMode=mirrored
dnsTunneling=true
firewall=true
autoProxy=true
same question,.
If I delete the .wslconfig and use the NAT mode, the network appears to be normal.
But if I edit the network mode in the WSLcofig GUI application, then the same question appears:
WSL 版本: 2.4.11.0
内核版本: 5.15.167.4-1
WSLg 版本: 1.0.65
MSRDC 版本: 1.2.5716
Direct3D 版本: 1.611.1-81528511
DXCore 版本: 10.0.26100.1-240331-1435.ge-release
Windows 版本: 10.0.22631.4890
.wslconfig: (I only edit in the GUI app, it is generated by that)
[wsl2]
networkingMode=mirrored
[experimental]
hostAddressLoopback=true
bestEffortDnsParsing=true
autoMemoryReclaim=gradual
This worked for me: Enable "Windows Hypervisor Platform" (Windows 虚拟机监控程序平台) in Turn Windows features on or off. Source: https://stackoverflow.com/a/78092729
My configuration was silently disabled by an Android virtualization software without any notification. After re-enabling it, the WSL network started working properly again.
Restarting HNS service may help
same question too
WSL 版本: 2.4.11.0 Kernel 版本: 5.15.167.4-1 WSLg 版本: 1.0.65 MSRDC 版本: 1.2.5716 Direct3D 版本: 1.611.1-81528511 DXCore 版本: 10.0.26100.1-240331-1435.ge-release Windows 版本: 10.0.26100.3194
.wslconfig[experimental] autoMemoryReclaim=gradual networkingMode=mirrored dnsTunneling=true firewall=true autoProxy=true
I've noticed that on my machine, after a reboot and then starting WSL, this issue temporarily disappears. However, after running for several days, the problem reappears. I don't know if it's possible that some other program is causing these issues, I haven't installed anything new that would obviously cause this. Hopefully the above information helps
same question too
This worked for me: Enable "Windows Hypervisor Platform" (Windows 虚拟机监控程序平台) in Turn Windows features on or off. Source: https://stackoverflow.com/a/78092729
My configuration was silently disabled by an Android virtualization software without any notification. After re-enabling it, the WSL network started working properly again.
it's also worked for me
I have tried all the solutions above, none of which worked. Only restarting the PC can temporarily restore it for a period of time (a few days)
same
wsl --version
WSL 版本: 2.5.7.0
内核版本: 6.6.87.1-1
WSLg 版本: 1.0.66
MSRDC 版本: 1.2.6074
Direct3D 版本: 1.611.1-81528511
DXCore 版本: 10.0.26100.1-240331-1435.ge-release
Windows: 10.0.26100.4652
.wslconfig
[wsl2]
firewall=false
networkingMode=Mirrored
In my case, closing Clash-Verge can solve this problem.
WSL 版本: 2.6.0.0
内核版本: 6.6.87.2-1
WSLg 版本: 1.0.66
MSRDC 版本: 1.2.6228
Direct3D 版本: 1.611.1-81528511
DXCore 版本: 10.0.26100.1-240331-1435.ge-release
Windows: 10.0.26120.2705
I ran Netch once and it recovered.
I just use ipconfig /flushdns solved this problem, and I don't know why. this problem always appears when I restart my pc
如果安装了VMWare的话可以把VMWare的几个服务停掉试一下,这几个服务默认是开机自启动的,我排查半天猜测可能是它的原因,于是就把它关了,关掉之后的这两天倒是没出现这种情况了
æä»ææ³æ localhost 代çé
ç½®éåå° WSL ä¸ä»¥æ´å¿«å°å
é GitHub 项ç®ï¼è·çç½ç»ä¸çæç¨èµ°ä¹éå°äºè¿ä¸ªé®é¢ï¼å颿§è¡äº wsl --shutdown å wsl --update åå¯å¨ wsl è¿æ¯ä¸è¡ï¼éåæ %USERPROFILE%\.wslconfig ä»
[experimental]
autoMemoryReclaim=gradual
networkingMode=mirrored
dnsTunneling=true
firewall=true
autoProxy=true
æ¹ä¸º
[wsl2]
firewall=false
networkingMode=Mirrored
åæ§è¡ wsl --shutdown å wsl å°±æ£å¸¸äºï¼éåæåæ %USERPROFILE%\.wslconfig ä»
[wsl2]
firewall=false
networkingMode=Mirrored
æ¹æäº
[experimental]
autoMemoryReclaim=gradual
networkingMode=mirrored
dnsTunneling=true
firewall=true
autoProxy=true
ï¼æ§è¡ wsl --shutdown å wsl åå´ä¸æ¥éäºï¼ä¸ç¥éæ¯ä»ä¹åå ã
卿§å¶å°æ§è¡ wsl --version çè¾åºå¦ä¸ã
WSL çæ¬: 2.6.1.0
å
æ ¸çæ¬: 6.6.87.2-1
WSLg çæ¬: 1.0.66
MSRDC çæ¬: 1.2.6353
Direct3D çæ¬: 1.611.1-81528511
DXCore çæ¬: 10.0.26100.1-240331-1435.ge-release
Windows: 10.0.26100.6725
å¨ WSL å
æ§è¡ curl -I https://www.google.com çç»æä¸ºï¼
HTTP/1.1 200 Connection established
HTTP/2 200
content-type: text/html; charset=ISO-8859-1
content-security-policy-report-only: object-src 'none';base-uri 'self';script-src 'nonce-mdHG4l3Mp_gXmBcCtWnyaQ' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp
accept-ch: Sec-CH-Prefers-Color-Scheme
p3p: CP="This is not a P3P policy! See g.co/p3phelp for more info."
date: Wed, 15 Oct 2025 15:53:23 GMT
server: gws
x-xss-protection: 0
x-frame-options: SAMEORIGIN
expires: Wed, 15 Oct 2025 15:53:23 GMT
cache-control: private
set-cookie: AEC=AaJma5v3zHxLmhlh7b9itbk8LeCvG1YODTN_BndcvTkNQF5fIeYZ1S2rk-0; expires=Mon, 13-Apr-2026 15:53:23 GMT; path=/; domain=.google.com; Secure; HttpOnly; SameSite=lax
set-cookie: NID=525=fuwA2SGcRUsi5BXACwXd15Q67aarrH6LvaFGstv3L9QhpXyIOBUMSqCS32x-5bsfpKQ44cMG0aSguPTdUzQkgcaBpIkfEVFvCeSWUKt-bGqkv40CrJrhmfYwsv3Ej3WEIeyxAxkzckyYovW3_BZUVvBjwwkDDjYkqdwXAofJkM1jK9lX9IHN063R4l5-w-9wDqesnLHtTWKmhRcAkwRt; expires=Thu, 16-Apr-2026 15:53:23 GMT; path=/; domain=.google.com; HttpOnly
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
æ¤å¤ï¼æç¨å½ä»¤ netstat -ano | find ":53 " çäºä¸å ç¨ 53 端å£çè¿ç¨ IDï¼å©ç¨ä»»å¡ç®¡çå¨è·³è½¬å°å®çæå¡ï¼éååç°å®æ¯ä¸ä¸ªç³»ç»æå¡ï¼ä¸ç»ææå¡è¿ç¨å°±ä¼èªå¨éå¯ï¼èä¸ä¸å
许å°ç¶æè®¾ç½®ä¸ºâå·²ç¦ç¨âï¼æ¤æå¡å¨ Windows èªå¸¦ç services.msc ä¸é¾ä»¥æ¾å°ï¼æå¡å¯¹åºç注å表路å¾ä¸º HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccessã
Same case. I tried all solutions mentioned above but remain same situation. Btw, I use sparkle(which is similar to clash verge )and enable DNS overried. I also use adguardhome(which listen to port 53 also). I tried to turn off both of them but it take no effects.
Win + R, type services.msc and restart WSL Service, then start wsl worked for me
mark
same issue