Skip to content

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

Closed

Description

@devsuitup
  • 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 !

Activity

  1. changed the title [-]WslRegisterDistribution fails with error 0x80070057 - Incorrect parameter[/-] [+]WSL2 - Windows 19041.264 - WslRegisterDistribution fails with error 0x80070057 - Incorrect parameter[/+] on Jun 2, 2020
  2. devsuitup commented on Jun 5, 2020

    @devsuitup
    Author

    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.
    
  3. benhillis commented on Jun 5, 2020

    @benhillis
    Member

    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

  4. devsuitup commented on Jun 5, 2020

    @devsuitup
    Author

    Hi Ben Hillis (@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 !

  5. benhillis commented on Jun 5, 2020

    @benhillis
    Member

    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

  6. devsuitup commented on Jun 6, 2020

    @devsuitup
    Author

    Ben Hillis (@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

  7. devsuitup commented on Jul 25, 2020

    @devsuitup
    Author
  8. mwt commented on Jul 27, 2020

    @mwt

    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?

  9. mkuder commented on Aug 31, 2020

    @mkuder

    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).

  10. dmitridb commented on Jan 5, 2021

    @dmitridb

    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.

  11. kall commented on Mar 11, 2021

    @kall

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

  12. tigercosmos commented on Mar 27, 2021

    @tigercosmos

    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

  13. 8 remaining items

  14. mtncork commented on May 4, 2021

    @mtncork

    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]

  15. mtncork commented on May 4, 2021

    @mtncork

    I fixed this. I was missing a .wslconfig file in my user directory.

  16. gmag11 commented on May 5, 2021

    @gmag11

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

    This worked in my setup, thank you

  17. timmy3780 commented on Sep 14, 2021

    @timmy3780

    On an Administrative command line:

    wsl --set-default-version 1
    then install the Linux.
    Window needs to update the wsl documentation.

  18. corneliusroot commented on Apr 15, 2022

    @corneliusroot

    I created a new Virtual Switch in Hyper-V Manager. Then it works well. 0x80070057 error did not occurred.
    I was able to replicate this. Creating a new switch worked! I shared it on my site:
    https://www.tidbitsfortechs.com/2022/04/wsl2-wont-start-0x80070057-the-parameter-is-incorrect/

  19. kgambrah commented on May 27, 2022

    @kgambrah

    Removing the existing install with wsl --unregister ubuntu-18.04 and installing again worked for me.

  20. amirhoseinJ commented on Jun 15, 2022

    @amirhoseinJ

    Anyone having this issue might also want to try cleaning existing ".wslconfig" file which could cause the problem.

  21. jfrgagnon commented on Nov 21, 2022

    @jfrgagnon

    I had that issue on Ubuntu and Ubuntu 20.04 after installing the WSL2-Linux-Kernel . I don't know why it broke my WSL2 installation, but I realized that it was the kernel setting in the ./.wslconfig file that was creating this bug...

    Skipping this setting with "#" in front of the line resolve the issue for me...

  22. taksqth commented on Jul 13, 2023

    @taksqth

    I have the same problem, tried a couple different options but no luck.

    • I was able to install the distro by rolling back to wsl 1. I'm not able to update to wsl2 later, it results in the same error. This happens at least on both Ubuntu, Ubuntu-22.04 and Debian, I did not try others.
    • There is no .wslconfig file in my %UserProfile% directory
    • wsl does not list (prior to the wsl1 installation) any distros installed, it's a clean setup
    • Going a little deeper in the point above, I've tried deleting everything. WSL, the distros and I have disabled the "Virtual Machine Platform" and "Windows Subsystem for Linux" features. Reinstalling WSL reenabled the first one automatically, the second one only comes back after I manually enable it. The error happens regardless if it's on or off after this procedure. I even tried cleaning the microsoft store cache.
    • This is all after I've reset my windows installation (keeping my old files).
    • I've tried disabling and enabling network adapters based on WslRegisterDistribution failed with error: 0x80070057 #8216 (comment) , since I have both ethernet and wifi. It also didn't work.
  23. as-thanhdao commented on Jul 14, 2023

    @as-thanhdao

    the latest update of Windows is suck, tried to rollback then it works now.

  24. tek-aevl commented on Jul 16, 2023

    @tek-aevl

    ^This

  25. aristizabal95 commented on Jul 28, 2023

    @aristizabal95

    Indeed, it appears the windows update Windows 11 Insider Preview 25905.1000 (rs_prerelease) was the problem. Today I installed Windows 11 Insider Preview 25915.1000 (rs_prerelease) and the issue is gone now.

  26. microsoft-github-policy-service commented on Aug 1, 2024

    @microsoft-github-policy-service
    Contributor

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions