-
Notifications
You must be signed in to change notification settings - Fork 841
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
"The parameter is incorrect" when launching wsl #8129
Comments
I also tried rolling back to kernel version |
I was able to find a temporary workaround and more clear cause for this. I read #6085 (comment) and put together that my system had stopped working when i was on a different network with only wifi, but had been working when I was at home connected to an ethernet dock. I disabled my wifi network adapter and restarted my PC, which then allowed Hyper-V to create its virtual ethernet adapter, which I assume had been failing, and WSL2 started up without a hitch, and I could re-enable the adapter. To narrow down the steps for reproducing:
|
I have the same problem
|
in EventLog I have this |
I had a similar issue after changing the IP of a Nat network, which I'm using for one of my HyperV VMs. Once the change was done, my Default Network for HyperV disappeared and I could also no longer works with Ubuntu in WSL2. In the end I saw en error in the event log pointing to the NetNat service not being able to start. This then lead me to a SO article pointing to a potential registry issue with the settings under Therefore, I tried resetting my network more thoroughly as suggested by one or more network protocols are missing and did a complete reset using the commands as admin
For some netsh commands I got Once the permissions were set, the netsh commands above worked without complaining about access. Then I removed HyperV, Virtual Machine Platform and Windows Subsystem for Linux again rebooted and just installed HyperV after another reboot. To my joy, the previously missing Default Network adapter reappeared after that step. Next I reinstalled Virtual Machine Platform and Windows Subsystem for Linux again and also deleted the old package information for the canonical package (as I was using Ubuntu) under After that I reinstalled the package via the store and WSL2 worked again for me. |
Getting this error as of today. Pretty frustrating that it's been around for more than a year with no obvious recourse. |
Same, machine restarted last night im assuming windows update....what the hell microsoft, i have a production environment all setup that is now all screwed up after working for a year. |
The parameter is incorrect. |
+1 |
Same here. This is pretty lame. |
Getting this as of today. Yesterday it did just work normally. |
I got the "Parameter is incorrect" after updating WSL with "wsl --update" |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Version
Microsoft Windows [Version 10.0.19044.1586]
WSL Version
Kernel Version
5.10.60.1
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
Open any wsl terminal or try running wsl from powershell.
Expected Behavior
It should work and allow execution as normal.
Actual Behavior
I have tried using the .wslconfig + guiapplications fix as specified in other issues, but that did not change my results. After some effort with this, my pc restarted and WSL was working fine again, but now a few days later I am back to having this issue again. I also noticed that according to the wslconfig specs that guiApplications setting isnt even recognized if you arent on Windows 11.
Notable is that an Ubuntu 18.04 instance installed from the Microsoft Store running on WSL v1 will work as expected.
Diagnostic Logs
wsl.zip
The text was updated successfully, but these errors were encountered: