-
Notifications
You must be signed in to change notification settings - Fork 822
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
Can't start distro on WSL 2.0.5 with any networkingMode besides None #10666
Comments
Do you have any third-party firewall or security software installed? |
@keith-horton - looks like the user has Hyper-V enabled by not virtual machine platform. HcnEnumerateNetworks is returning an error: HcnEnumerateNetworks({"SchemaVersion":{"Major":0,"Minor":0},"Filter":"{"Flags": 328}"}) {"Success":false,"Error":"The specified service does not exist. vfpext driver is either not installed or is not enabled.","ErrorCode":2147943643} |
@leonardobsjr - could you take another trace with networkingMode=NAT please? I want to see if it's a different error path. |
We can see VMP is not installed. @leonardobsjr , if you go through the Start menu, you can open the "Turn Windows features on or off" -- from there, you will need to install "Virtual Machine Platform". |
@keith-horton - thanks. We should make this error condition a bit more clear, I'll see what I can come up with. |
Yeah, that's it, @keith-horton nailed it. Thanks for the feedback guys and sorry for the trouble. I was using WSL2 (or maybe not? it was 1.2.5 before), I had absolutely no idea I had to install anything else. The fact that I was able to make it work with None or bridged mode was even weirder. I see on troubleshoot guide this but that wasn't the message I was getting so I didn't even consider it. Commenting this but not closing because I don't really now know how your guys workflow works. :) |
I just made a fix that will make the error message cleaner if you're in this state. Thanks for posting! |
I have the same problem here.
|
@huiminghao I also experienced the problem, but like as the original reporter,I had Hyper-V enabled, but did not have VM platform installed. |
Select Start, enter Windows features, and select Turn Windows features on or off from the list of results. |
Fixed in https://github.com/microsoft/WSL/releases/tag/2.0.7. @huiminghao - you seem to be hitting something else, please open a new issue. |
Windows Version
Microsoft Windows [Version 10.0.22621.2428]
WSL Version
2.0.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
Start a distro
Expected Behavior
Being able to use the distro
Actual Behavior
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/0x800704db and asks me to change the networking mode to NAT. It also doesn't work on NAT and asks me to change it to None,
Diagnostic Logs
WslLogs-2023-10-23_13-01-01.zip
The text was updated successfully, but these errors were encountered: