WSL2 fails to start with Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0x80070424
Windows Version
Microsoft Windows [Versión 10.0.22621.2428]
WSL Version
2.0.9.0
Are you using WSL 1 or WSL 2?
- [X] WSL 2
- [ ] WSL 1
Kernel Version
No response
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
Try to start WSL from command line.
Expected Behavior
WSL starts and we have access to Linux shell.
Actual Behavior
WSL throws an error about not being able to setup the network and drops to PowerShell again:
PS C:\Users\rpedroche> wsl
No se pudo configurar la red (networkingMode Nat). Para deshabilitar las redes, establezca "wsl2.networkingMode=None" en C:\Users\rpedroche\.wslconfig
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/HNS/0x80070424
PS C:\Users\rpedroche>
This happens since today's update to 2.0.9.0.
Diagnostic Logs
Hi I'm an AI powered bot that finds similar issues based off the issue title.
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. Thank you!
Open similar issues:
- Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/0x80041002 (#9016), similarity score: 0.89
- Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/ERROR_FILE_NOT_FOUND upon executing WSL (#9840), similarity score: 0.88
- WSL error: Wsl/Service/CreateInstance/CreateVm/ERROR_FILE_NOT_FOUND (#9547), similarity score: 0.87
- Wsl/Service/CreateVm/ConfigureNetworking/ERROR_NOT_FOUND (#9365), similarity score: 0.87
- wsl does not work. wsl list returns error: "Insufficient system resources exist to complete the requested service." Wsl/Service/CreateInstance/CreateVm/0x800705aa (#9666), similarity score: 0.86
- install the wsl2 with WslRegisterDistribution failed with error: 0x80070002Error: 0x80070002 ???????????;Update wsl1 to wsl2 with Error code: Wsl/Service/CreateVm/ConfigureNetworking/ERROR_FILE_NOT_FOUND (#10107), similarity score: 0.86
Closed similar issues:
- WSL fails to start with error code Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/0x800700b7 (#10435), similarity score: 0.92
- Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/0x80041002 (#9845), similarity score: 0.89
- Error on first start: Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/0x800706bf (#8841), similarity score: 0.88
- {Application Error} The exception %s (0x Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/0x8007023e (#9888), similarity score: 0.87
You can give me feedback by thumbs upping or thumbs downing this comment.
Hi, I've resolved with these steps:
I have only WSL, no vm no hyper-v machines and other virtualization tool. Take care of possible side effects or issues with the removal of hyper-v services
- removed Optional Features: Hyper-v platform and Hyper-V managment tool
- reboot
- start WSL: it will ask to install virtual platform service. confirm to install
- reboot
- wsl works
let me know if these steps also work for you.
Regards.
same issue, after windows update
+1 after a Windows update
Hi, I've resolved with these steps:
I have only WSL, no vm no hyper-v machines and other virtualization tool. Take care of possible side effects or issues with the removal of hyper-v services
- removed Optional Features: Hyper-v platform and Hyper-V managment tool
- reboot
- start WSL: it will ask to install virtual platform service. confirm to install
- reboot
- wsl works
let me know if these steps also work for you.
Regards.
that helped
Hi, I've resolved with these steps:
I have only WSL, no vm no hyper-v machines and other virtualization tool. Take care of possible side effects or issues with the removal of hyper-v services
- removed Optional Features: Hyper-v platform and Hyper-V managment tool
- reboot
- start WSL: it will ask to install virtual platform service. confirm to install
- reboot
- wsl works
let me know if these steps also work for you.
Regards.
It has fixed the problem for me too.
Same here. I see it after the computer got rebooted by WU for installing KB5032883, KB5032007 and KB5032190 (not sure which would be the relevant one here).
Problem is... I do use Hyper-V in this machine and I don't feel comfortable just removing it. Is there any other suggestion?
Closed? Issue is still there..
Same here. I see it after the computer got rebooted by WU for installing KB5032883, KB5032007 and KB5032190 (not sure which would be the relevant one here).
Problem is... I do use Hyper-V in this machine and I don't feel comfortable just removing it. Is there any other suggestion?
I also use Hyper-V. Enabling it again and a third reboot restore the Hyper-V virtual machines.
Disable Hyper-V Enable the Virtual Machine. Reboot and problem solved. This means that WSL2 is not only not compatible with Hyper-V, but also conflicts with it.
I'm a VirtualBox user so I couldn't remove Hyper-V. But I found I didn't have Virtual Machine or Hypervisor installed now and I can't remember if they were. Once I check them off and rebooted, I could start Ubuntu without the network error message. However, it started in root. To fix this I issued the following in Admin Powershell: ubuntu config --default-user (your user id)
I manually re-enabled Virtual Machine platform and that un-bricked things after the Windows Update caused the above problem. Now WSL starts up but it now starts as root instead of my usual user, how bizarre :D (su myuser is a workaround for now).
Resetting Ubuntu back to default via wsl --setdefault Ubuntu in powershell solved the "default user is root" issue (despite Ubuntu being the only distro I have installed, god knows what screwed up the WSL config so badly in this update)
I manually re-enabled Virtual Machine platform and that un-bricked things after the Windows Update caused the above problem. Now WSL starts up but it now starts as root instead of my usual user, how bizarre :D (
su myuseris a workaround for now).
This worked for me. No apparent side-effects on existing VMs. No reboot needed.
I too had the default user as root. I had to use <dist>.exe config --default-user <user> to reset it.
Now WSL starts up but it now starts as root instead of my usual user, how bizarre :D (
su myuseris a workaround for now).
To fix this I issued the following in Admin Powershell: ubuntu config --default-user (your user id)
Hi, I've resolved with these steps:
I have only WSL, no vm no hyper-v machines and other virtualization tool. Take care of possible side effects or issues with the removal of hyper-v services
- removed Optional Features: Hyper-v platform and Hyper-V managment tool
- reboot
- start WSL: it will ask to install virtual platform service. confirm to install
- reboot
- wsl works
let me know if these steps also work for you.
Regards.
Hi, I've resolved with these steps:
I have only WSL, no vm no hyper-v machines and other virtualization tool. Take care of possible side effects or issues with the removal of hyper-v services
- removed Optional Features: Hyper-v platform and Hyper-V managment tool
- reboot
- start WSL: it will ask to install virtual platform service. confirm to install
- reboot
- wsl works
let me know if these steps also work for you.
Regards.
That helps me, Thanks.
Hi, I've resolved with these steps:
I have only WSL, no vm no hyper-v machines and other virtualization tool. Take care of possible side effects or issues with the removal of hyper-v services
- removed Optional Features: Hyper-v platform and Hyper-V managment tool
- reboot
- start WSL: it will ask to install virtual platform service. confirm to install
- reboot
- wsl works
let me know if these steps also work for you.
Regards.
Thank you Marco! You saved my day!
Hi, I've resolved with these steps: I have only WSL, no vm no hyper-v machines and other virtualization tool. Take care of possible side effects or issues with the removal of hyper-v services
- removed Optional Features: Hyper-v platform and Hyper-V managment tool
- reboot
- start WSL: it will ask to install virtual platform service. confirm to install
- reboot
- wsl works
let me know if these steps also work for you. Regards.
Worked for me too (step 3 specifically is in windows terminal: wsl.exe --install --no-distribution).
How did they manage to push this update in production and just forget about WSL2 users? 🤡 Breaking our systems to push half-baked features (the multi-desktop transition effect still needs a good polish).
I manually re-enabled Virtual Machine platform and that un-bricked things after the Windows Update caused the above problem. Now WSL starts up but it now starts as root instead of my usual user, how bizarre :D (
su myuseris a workaround for now).
This worked for me without the user issue.
Hi, I've resolved with these steps:
I have only WSL, no vm no hyper-v machines and other virtualization tool. Take care of possible side effects or issues with the removal of hyper-v services
- removed Optional Features: Hyper-v platform and Hyper-V managment tool
- reboot
- start WSL: it will ask to install virtual platform service. confirm to install
- reboot
- wsl works
let me know if these steps also work for you.
Regards.
appreciated!It works for me and helps me a lot.