WSL icon indicating copy to clipboard operation
WSL copied to clipboard

WSL2 - Windows 19041.264 - WslRegisterDistribution fails with error 0x80070057 - Incorrect parameter

Open devsuitup opened this issue 6 years ago • 33 comments

  • Microsoft Windows [version 10.0.19041.264]

  • What you're doing and what's happening: I updated to this version of Windows. I already have docker on this machine, that detected WSL2 possibility. I followed https://docs.microsoft.com/fr-fr/windows/wsl/install-win10 to the letter, with an apparent success.

  • What's wrong / what should be happening instead: When installing Debian, then ubuntu I get the same result at the initial lauch image

Also docker is having a similar issue when trying to register its distribution :

[Engines ][Error] Start failed with Failed to deploy distro docker-desktop to [...]\AppData\Local\Docker\wsl\distro: exit code: -1
 stdout: Paramètre incorrect.

i tried to uninstall WSL et install it again, I tried to reset, delete and reinstall images, reinstall docker, etc. Always stops here. Also not an issue of legacy console. I tried to stop, start, restart, and tried in between LxssManager.

Thank you for your attention !

devsuitup avatar May 29 '20 17:05 devsuitup

Please, I really need some help people, i re-installed everything (wsl, wsl2, windows components, etc..) Same result :

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070057
Error: 0x80070057 ParamÞtre incorrect.

devsuitup avatar Jun 05 '20 16:06 devsuitup

@devsuitup - Could you please take a trace so I can figure out where the error is coming from?https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#8-detailed-logs

benhillis avatar Jun 05 '20 16:06 benhillis

Hi @benhillis , thank you for your attention. You will find the logs attached to this post, in a zip file -- .etl isn't supported by github

lxcore_logs.zip

Thanks !

devsuitup avatar Jun 05 '20 18:06 devsuitup

@devsuitup - Thanks for the logs. It looks like the failure is coming from trying to create our virtual network. Could you please also collect the networking logs detailed here: https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#9-networking-logs

benhillis avatar Jun 05 '20 22:06 benhillis

@benhillis FYI, after your answer I uninstalled NordVPN, Hamachi, FortiClient and restarted the machine -- and got the same issue.

Here is the trace : https://aka.ms/AA8lxay

devsuitup avatar Jun 06 '20 11:06 devsuitup

@benhillis Any news ?

devsuitup avatar Jul 25 '20 14:07 devsuitup

I solved a similar problem for myself (#5660) by uninstalling HyperV under "Turn Windows features on and off". Does this happen to work for you, @devsuitup, as well?

mwt avatar Jul 27 '20 20:07 mwt

I had this problem after installing Ubuntu or Ubuntu 20.04 either from the Store or PowerShell, the latter still complained that no distributions are installed. I had HyperV already disabled and LxssManager was running. What finally fixed it was just restarting the computer and Ubuntu 20.04 ran fine then. Using Windows build 19041.450 (2004 feature update).

mkuder avatar Aug 31 '20 13:08 mkuder

Amusingly, this only was fixed for me after I turned hyper-v on. I figured it was somehow essential to the operation of WSL2, so it's funny hearing that turning it off worked.

dmitridb avatar Jan 05 '21 23:01 dmitridb

I created a new Virtual Switch in Hyper-V Manager. Then it works well. 0x80070057 error did not occurred.

kall avatar Mar 11 '21 02:03 kall

Same issue. None of the methods above work :(

I have tried the following: Turn on and off Hyper-V Enable and disable WSL Install and uninstall Ubuntu Package image

Windows version 20H2

tigercosmos avatar Mar 27 '21 20:03 tigercosmos

This is still not resolved by the latest update for 20H2. I am wondering that not body encounters this issue but we? Seems only few discussion about the 0x80070057.

tigercosmos avatar Apr 08 '21 07:04 tigercosmos

I finally find a solution. Change back to WSL 1 works for me.

tigercosmos avatar Apr 08 '21 10:04 tigercosmos

Happens to me as well with latest build 21364

  • system info
PS C:\WINDOWS\system32> wsl --status;cmd /c ver
Default Version: 2

Windows Subsystem for Linux was last updated on 22/04/2021
The Windows Subsystem for Linux kernel can be manually updated with 'wsl --update', but automatic updates cannot occur due to your system settings.
To receive automatic kernel updates, please enable the Windows Update setting: 'Receive updates for other Microsoft products when you update Windows'.
For more information please visit https://aka.ms/wsl2kernel.

Kernel version: 5.10.16

Microsoft Windows [Version 10.0.21364.1]
  • networking
PS C:\WINDOWS\system32> netsh interface show interface

Admin State    State          Type             Interface Name
-------------------------------------------------------------------------
Enabled        Connected      Dedicated        Wi-Fi
Enabled        Disconnected   Dedicated        Local Area Connection
Enabled        Disconnected   Dedicated        Ethernet
  • networking on WSL2 machine with beta channel and WSL2 working fine
PS C:\WINDOWS\system32> netsh interface show interface

Admin State    State          Type             Interface Name
-------------------------------------------------------------------------
Enabled        Disconnected   Dedicated        Ethernet
Enabled        Connected      Dedicated        Local Area Connection
Enabled        Connected      Dedicated        Wi-Fi
Enabled        Connected      Dedicated        vEthernet (Default Switch)
Enabled        Connected      Dedicated        vEthernet (Ethernet)
Enabled        Connected      Dedicated        vEthernet (WSL)
Enabled        Connected      Dedicated        vEthernet (Wi-Fi)

virtual platform/hyper-v is installed (as you see wsl --status do not complain)

CoolCold avatar Apr 22 '21 09:04 CoolCold

I got the insider update to 21364 and was looking to try out the new GUI feature for WSl, but both my Debian and Ubuntu installations would not start with the message "The parameter is incorrect".

Tied uninstalled both and reinstalling but both still report: WslRegisterDistibution: failed with error: 0x80070057 Error: 0x80070057 The parameter is incorrect.

At least I'm not the only one...

StarNamer avatar Apr 22 '21 14:04 StarNamer

I solved this problem by returning to the previous version of windows thereby removing the Windows 10 Insider Preview Dev Build 21364.1 version.

renanlido avatar Apr 22 '21 18:04 renanlido

WSL2 distro not starting since 21364 build #6839 Apparently solves this problem as well.

renanlido avatar Apr 22 '21 18:04 renanlido

I got the insider update to 21364 and was looking to try out the new GUI feature for WSl, but both my Debian and Ubuntu installations would not start with the message "The parameter is incorrect".

Tied uninstalled both and reinstalling but both still report: WslRegisterDistibution: failed with error: 0x80070057 Error: 0x80070057 The parameter is incorrect.

At least I'm not the only one...

(replacing my last comment) Success!: Here is what worked for me: On an Administrative command line: > wsl --set-default-version 1 Then install the distribution of your choice (e.g. > wsl --install -d kali-linux)

Error is gone, and distribution is installed successfully (takes a while)

fractalspace avatar Apr 25 '21 22:04 fractalspace

I got the insider update to 21364 and was looking to try out the new GUI feature for WSl, but both my Debian and Ubuntu installations would not start with the message "The parameter is incorrect". Tied uninstalled both and reinstalling but both still report: WslRegisterDistibution: failed with error: 0x80070057 Error: 0x80070057 The parameter is incorrect. At least I'm not the only one...

(replacing my last comment) Success!: Here is what worked for me: On an Administrative command line: > wsl --set-default-version 1 Then install the distribution of your choice (e.g. > wsl --install -d kali-linux)

Error is gone, and distribution is installed successfully (takes a while)

But the error returns if I switch to wsl version 2

fractalspace avatar May 02 '21 00:05 fractalspace

I am getting this behavior, "Incorrect parameter" and the shell not created with insider build 21370 for Linux 18.04. Same behavior for WSL1 or WSL2.

From the Event Log in PerfView it looks like there's a failure creating a virtual machine due to an incorrect parameter:

ThreadID="15,496" FormattedMessage="onecore\vm\compute\shared\vmwp\lib\workerprocess.cpp(1315)\vmcompute.exe!00007FF66FD2BDF3: (caller: 00007FF66FC4E45C) Exception(50) tid(3c88) 80070057 The parameter is incorrect. CallContext:[\VirtualMachine_Start] " TraceData="onecore\vm\compute\shared\vmwp\lib\workerprocess.cpp(1315)\vmcompute.exe!00007FF66FD2BDF3: (caller: 00007FF66FC4E45C) Exception(50) tid(3c88) 80070057 The parameter is incorrect. CallContext:[\VirtualMachine_Start] " VmName=" - " VmId=" - " StackFrame="<<<EXCEPTION_DURING_VALUE_LOOKUP InvalidCastException>>>" Module="[{ Name="C:\WINDOWS\system32\vmcompute.exe", BaseAddress="140696412815360", SizeOfImage=4091904, TimeDateStamp=1438749299 },{ Name="C:\WINDOWS\SYSTEM32\ntdll.dll", BaseAddress="140703339642880", SizeOfImage=2109440, TimeDateStamp=1581716554 },{ Name="C:\WINDOWS\System32\KERNEL32.DLL", BaseAddress="140703317295104", SizeOfImage=774144, TimeDateStamp=-257251206 }]"

I was unable to attach wsl.etl.

Default Distribution: Ubuntu-18.04 Default Version: 2

Windows Subsystem for Linux was last updated on 5/4/2021 WSL automatic updates are on.

Kernel version: 5.10.16

Microsoft Windows [Version 10.0.21370.1]

mtncork avatar May 04 '21 22:05 mtncork