Windows 10: Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL

Discus and support Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL in Windows 10 Installation and Upgrade to solve the problem; I am trying to install Ubuntu WSL on Windows 10.I used the command wsl --installand it appeared to be working, but when I opened up Ubuntu, I saw this... Discussion in 'Windows 10 Installation and Upgrade' started by Fab49er, Nov 23, 2022.

  1. Fab49er Win User

    Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL


    I am trying to install Ubuntu WSL on Windows 10.I used the command wsl --installand it appeared to be working, but when I opened up Ubuntu, I saw this screen:Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x80370102 Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS. For information please visit https://aka.ms/enablevirtualization Press any key to continue...at which point I press any key, and the window closes.Things I tried:I enabled virtualization from the BIOS, as you can see in this screens

    :)
     
    Fab49er, Nov 23, 2022
    #1

  2. Resolving WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL 2?

    # Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL 2

    I am currently on the `Windows 10 Pro Insider Preview build 18922.rs_prerelease`, and am trying to install a Linux distribution to access via Windows Subsystem for Linux (2). I have tried this for both the Ubuntu and Debian distros and have encountered the
    same error in each.

    I have successfully downloaded both distros from the Microsoft store, but when I try to first "run" the Ubuntu or Debian "app" the respective console comes up and prints the following text:

    Code:
    Installing, this may take a few minutes...
    
    WslRegisterDistribution failed with error: 0x80370102
    
    Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.
    
    Press any key to continue...
    Pressing a key at this point automatically exits the console.
    ---

    ## Additional information:

    - Using the `wsl -l` command shows no installed distros.

    - I do have Hypervisor installed and running `bcdedit` does show that `hypervisorlaunchtype` is set to `Auto` in the `Windows Boot Loader` section.

    - I did previously have Ubuntu installed and working under WSL 1 before switching to the Windows Insider Program Fast Ring and gaining access to WSL 2, but I was encountering another issue when trying to have it use WSL 2. After
    trying to use the command `wsl --set-version Ubuntu 2` I was met with a request to "Enable the Virtual Machine Platform". I had already run `Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform` prior, according to the official microsoft
    tutorial here Install WSL | Microsoft Learn, but for good measure I did it again and got the same error, and Ubuntu was still on version 1 (I haven't explicitly mentioned it but I was restarting/shutting down when requested/suggested
    by windows and tutorials, so I don't believe me not restarting is a cause). In hopes to find a workaround, I ended up uninstalling Ubuntu and hoping I could reinstall it and have it obey the default defined by the `wsl --set-default-version 2` command (suffice
    it to say, this did not go as I'd hoped).

    - This might be an unrelated issue, but when I initially attempted reinstalling Ubuntu, the Microsoft store had a bit of a fit and could not complete the download- encountering an 'unknown error'. I did a restart, tried again, and
    got the same error, but then after telling it to 'try again' it succeeded. I had no such issues installing Debian from the store.

    ---

    ## Suggestions Welcome

    I've searched for a bit and can't find mention of this error code in particular anywhere else.

    In addition, is there anywhere I can look up/access these error codes in any sort of documentation? Ideally so I can make a better informed work-around attempt before bothering you all on here.

    All help is appreciated!
     
    SamuelLudwig, Nov 23, 2022
    #2
  3. WslRegisterDistribution failed with error: 0x80370102

    Upon the upgrade from WSL 1 to WSL 2, the requirement to have the Hyper-V feature enabled created a conflict with VirtualBox that brought VirtualBox VMs to a crawl. Because I needed VirtualBox, I was forced to disable Hyper-V and so lose access to WSL 2. Eventually, VirtualBox fixed this problem in an update, and I am now trying to reenable WSL 2, so I reenabled Hyper-V and I am running into nonsensical errors. Like WslRegisterDistribution failed with error: 0x80370102.

    System Specs:

    Microsoft Windows 11 Pro

    10.0.22000 Build 22000.

    11th Gen Intel Core i7-11850H.

    BIOS: VT enabled.

    Windows Features

    Hyper-V: Enabled

    Virtual Machine Platform: Enabled

    Windows Hypervisor Platform: Enabled

    Windows Subsystem for Linux: Enabled

    I have tried using an admin privilege PowerShell to run wsl --install -d ubuntu, and it ran as if it were successful, but upon launch of ubuntu, I get the error:

    WslRegisterDistribution failed with error: 0x80370102

    Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.

    I cannot seem to get any WSL to function at all.
     
    Ben Mordecai, Nov 23, 2022
    #3
  4. Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL

    WslRegisterDistribution failed with error: 0x80040324

    Whenever I try to install any Linux distro on WSL I get this error:

    WslRegisterDistribution failed with error: 0x80040324

    Error: 0x80040324 (null)
    Press any key to continue...

    This is my setup:

    Versione WSL: 0.67.6.0
    Versione kernel: 5.15.62.1
    Versione WSLg: 1.0.44
    Versione MSRDC: 1.2.3401
    Versione Direct3D: 1.606.4
    Versione DXCore: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
    versione Windows: 10.0.22621.521

    The Ubuntu distro is not listed in the installed distro:

    wsl --list --all

    Sottosistema Windows per Linux non ha distribuzioni installate.

    Usare 'wsl.exe --list --online' per elencare le distribuzioni disponibili e 'wsl.exe --install ' per l'installazione.

    È anche possibile installare le distribuzioni visitando il Microsoft Store: Weihnachtsmarkt-Bummel

    Error code: Wsl/WSL_E_DEFAULT_DISTRO_NOT_FOUND

    Anyway if I try to install Ubuntu I get this message:

    wsl --install -d Ubuntu

    Ubuntu è gi installato. (Ubuntu is alreday installed)
    Avvio di Ubuntu in corso...

    An then I get this message:

    Installing, this may take a few minutes...
    WslRegisterDistribution failed with error: 0x80040324
    Error: 0x80040324 (null)
    Press any key to continue...

    and here it stops.

    Hype-V is installed without adding any virtual machine or virtual switch in the control panel.

    Is someone having any clue?

    Thank you for any help.
     
    fabiovin70, Nov 23, 2022
    #4
Thema:

Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL

Loading...
  1. Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL - Similar Threads - Encountering WslRegisterDistribution error

  2. Cannot install any distros on WSL 2 with WslRegisterDistribution failed with error: 0x80370102

    in Windows 10 Gaming
    Cannot install any distros on WSL 2 with WslRegisterDistribution failed with error: 0x80370102: Hi everyone! I have the following problem: I have to use Docker, and to do that I need to install at least one distribution on wsl2. The problem is that I can't install any of them on wsl 2 although yes on wsl 1 and it gives me this error : WslRegisterDistribution failed with...
  3. Cannot install any distros on WSL 2 with WslRegisterDistribution failed with error: 0x80370102

    in Windows 10 Software and Apps
    Cannot install any distros on WSL 2 with WslRegisterDistribution failed with error: 0x80370102: Hi everyone! I have the following problem: I have to use Docker, and to do that I need to install at least one distribution on wsl2. The problem is that I can't install any of them on wsl 2 although yes on wsl 1 and it gives me this error : WslRegisterDistribution failed with...
  4. Cannot install any distros on WSL 2 with WslRegisterDistribution failed with error: 0x80370102

    in Windows 10 Installation and Upgrade
    Cannot install any distros on WSL 2 with WslRegisterDistribution failed with error: 0x80370102: Hi everyone! I have the following problem: I have to use Docker, and to do that I need to install at least one distribution on wsl2. The problem is that I can't install any of them on wsl 2 although yes on wsl 1 and it gives me this error : WslRegisterDistribution failed with...
  5. Cannot install any distros on WSL 2 with WslRegisterDistribution failed with error: 0x80370102

    in Windows 10 Gaming
    Cannot install any distros on WSL 2 with WslRegisterDistribution failed with error: 0x80370102: Hello! I have this problem: i have to use docker, and to do that i need a distro installed on wsl 2. The problem is that i can install distros on wsl 1 but when i try with wsl 2 i got this error: WslRegisterDistribution failed with error: 0x80370102.I tried all the guides i...
  6. Cannot install any distros on WSL 2 with WslRegisterDistribution failed with error: 0x80370102

    in Windows 10 Software and Apps
    Cannot install any distros on WSL 2 with WslRegisterDistribution failed with error: 0x80370102: Hello! I have this problem: i have to use docker, and to do that i need a distro installed on wsl 2. The problem is that i can install distros on wsl 1 but when i try with wsl 2 i got this error: WslRegisterDistribution failed with error: 0x80370102.I tried all the guides i...
  7. Cannot install any distros on WSL 2 with WslRegisterDistribution failed with error: 0x80370102

    in Windows 10 Installation and Upgrade
    Cannot install any distros on WSL 2 with WslRegisterDistribution failed with error: 0x80370102: Hello! I have this problem: i have to use docker, and to do that i need a distro installed on wsl 2. The problem is that i can install distros on wsl 1 but when i try with wsl 2 i got this error: WslRegisterDistribution failed with error: 0x80370102.I tried all the guides i...
  8. Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL

    in Windows 10 Gaming
    Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL: I am trying to install Ubuntu WSL on Windows 10.I used the command wsl --installand it appeared to be working, but when I opened up Ubuntu, I saw this screen:Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x80370102 Please enable the...
  9. Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL

    in Windows 10 Software and Apps
    Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL: I am trying to install Ubuntu WSL on Windows 10.I used the command wsl --installand it appeared to be working, but when I opened up Ubuntu, I saw this screen:Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x80370102 Please enable the...
  10. Resolving WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL 2?

    in Windows 10 Software and Apps
    Resolving WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL 2?: # Encountering WslRegisterDistribution error 0x80370102 when installing Linux Distro for WSL 2 I am currently on the `Windows 10 Pro Insider Preview build 18922.rs_prerelease`, and am trying to install a Linux distribution to access via Windows Subsystem for Linux (2). I...