How to Fix WSL Register Distribution Error 0x80370102?

When you encounter the WSL Register Distribution Error 0x80370102, it typically prevents you from installing a Linux distribution on your Windows Subsystem for Linux (WSL). This error code means that the virtual machine required by WSL could not start due to a missing or disabled system feature.

Error Notification

 

The most common cause is that virtualization is either not enabled in the BIOS/UEFI settings or that the Hyper-V feature is disabled in Windows. Other potential issues include conflicts with Virtualization-Based Security (VBS) or problems with the WSL installation itself.

Now that we’ve covered the potential causes of the WSL Register Distribution Error 0x80370102, let’s move on to practical solutions that can help you resolve this issue and get your WSL environment up and running smoothly.

Solution 1: Enable Hardware Virtualization from BIOS

When users try to run Ubuntu in a VirtualBox without enabling Hardware Virtualization, the system causes multiple errors, such as audio performance issues and the WSL Register Distribution error. A virtual machine acts like a real computer, letting you use different operating systems and software on your device. 

  1. Click Start, then select Power Option and click Restart.
    Restarting PC
  2. Depending on your BIOS manufacturer, the key to log into the BIOS will vary. Press the Del, Esc, F1, F2, or F4 key on your keyboard as soon as the screen goes black.Note: If you don’t get in the first time, restart your PC and try another key.
  3. Find the CPU configuration section (Menu can be called Processor, CPU config, Chipset).
  4. Find the Virtualization setting and Enable it.Note: The Virtualization setting may be named Intel Virtualization Technology, AMD-V, Hyper-V, VT-X, Vanderpool, or SVM.
  5. Choose the option Save & Exit.
  6. The computer will reboot with Hardware Virtualization enabled. Check to see if the issue persists. If it does, follow the next method.

Note: Make sure your device supports hardware virtualization. You can check if Virtualization is enabled under the Performance tab in the Task Manager.

Checking Virtualization

Solution 2: Enable the Hyper-V Feature

Hyper-V enables administrators to make better use of their hardware by virtualizing multiple operating systems to run off the same physical server simultaneously. If it is not enabled, an error may occur while installing a Linux distribution to access via Windows. 

  1. Click Start, search for Control Panel, and open it.
    Opening Control Panel
  2. Click on Programs.
    Opening Programs
  3. Click on Programs and Features.
  4. On the left panel, click on the Turn Windows Feature on or off option.
    Turning Windows Features ON or OFF
  5. Check the Hyper-V option and click OK.
    Checking Hyper-V
  6. Now Reboot your system for these changes to take effect. If this doesn’t help, proceed with the next solution.

Solution 3: Expose Virtualization Extensions & Change RAM Settings

Nested virtualization is a feature that allows you to run Hyper-V inside a Hyper-V virtual machine (VM). This helps run a Visual Studio phone emulator in a virtual machine or test configurations that ordinarily require several hosts. It has been reported that activating Nested Virtualization has worked as a solution for many users online. 

  1. Turn off your virtual machine in Hyper-V Manager.
  2. Press Win + X on the keyboard and select Windows PowerShell (Admin) from the pop-up list.
    Opening Windows PowerShell (Admin)
  3. Inside the PowerShell window, copy-paste this command to change the name and values to your VM processor.
    Set-VMProcessor <VMName> -ExposeVirtualizationExtensions $true
    Entering Command
  4. Press Enter to run it.
  5. Now right-click on your virtual machine in Hyper-V Manager and select Settings.
    Opening VM Settings
  6. Click on Memory in the left pane, untick Enable Dynamic Memory and double the RAM value e.g., 2048 > 4096.
    Changing Memory Settings
  7. Start your virtual machine.
  8. Right-click on your virtual machine and select Connect. This will run Hyper-V, and your system will restart. Try running Ubuntu again. This should finally fix your problem.
    Connecting VM
ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.

Comments

18
    NC
    Nobody Cares Jun 21, 2021

    me trying installing it on windows 11 got this error 🙁

      MZ
      Muhammad Zubyan Author Jun 22, 2021

      Windows 11 is basically similar to Windows 10 In some cases, I suggest you try the methods shown and let me know how it goes.

        OD
        Odian Oct 19, 2021

        Hyper-V is only available in Pro and Enterprise versions of Windows. However, using this batch script you can still enable this feature.

    JI
    JimTN Jul 4, 2021

    If you are running under Parallels on a Mac, you need to enable nested virtualization in the settings under memory/advanced. It is working nicely on Windows 11.

    Reply
    AM
    arthur melo Sep 30, 2021

    what if i dont have this hyper-v file ?

      MZ
      Muhammad Zubyan Author Oct 2, 2021

      Try the other methods and let me know how it goes.

    GP
    Gerard Miró Pugès Nov 30, 2021

    When I past the command in admin powershell it gives me error. What should I do?

      MZ
      Muhammad Zubyan Author Nov 30, 2021

      Can you please provide me screenshot of the error?

    CH
    Cheewy Feb 6, 2022

    Hi ! How can I get the name and values of my VM Processor ?

      MZ
      Muhammad Zubyan Author Feb 11, 2022

      You just have to enter the name of your Virtual Machine. That’s it.

    CH
    Cheewy Feb 9, 2022

    Hi ! I have enabled Virtualization in the BIOS, but I still have the same error. Any idea why ?

      MZ
      Muhammad Zubyan Author Feb 10, 2022

      It should also be enabled in Windows Settings try method 2.

        CH
        Cheewy Feb 10, 2022

        Thanks for ur help, but I acltually don’t know why now it’s working. Thanks again !

    LA
    languageoflight Jun 3, 2022

    What fixed it for me in powershell as admin:

    Get-Service LxssManager | Restart-Service

    Reply
    AR
    aramini Jun 13, 2022

    Kept getting the pesky 0x80370102 error when trying to install Debian from the MS Store and LinuxMintWSL (from github).

    – SVM (BIOS virtualization) was enabled

    – Hyper-V installed and enabled

    – Windows Virtual Platform installed and enabled

    – WSL installed and enabled

    – WSL Kernel update installed

    … basically all the requirements were met, but I still kept getting the error no matter what.

    The fix for me was to first set WSL default to v1:
    (Windows PowerShell Commands As Adminstrator)

    wsl.exe --set-default-version 1

    Then install the distros. Once the distros were installed, I upgraded them to WSL v2:

    wsl.exe --set-version Debian 2

    and

    wsl.exe --set-version Mint 2

    Then I verified the versions with:

    wsl.exe -l -v

    Output:


    NAME STATE VERSION

    Debian Running 2
    docker-desktop Running 2
    Mint Running 2
    docker-desktop-data Running 2

    Then I changed the default WSL version back to 2:

    wsl.exe --set-default-version 2

    And finally tried to run my distros in Windows Terminal and they worked fine. Was then able to
    sudo apt update
    and
    sudo apt dist-upgrade

    So everything appears to be working now.

    Reply
      ML
      Morris Lewis Sep 24, 2023

      Yes thank you so much, this is the only thing that has solved my issue

      XL
      xLethalx68 Oct 31, 2023

      God among men. Solved my issue

    LA
    lalalazero11 Aug 22, 2022

    thanks a lot !!! I made it by enable SVM (BIOS virtualization)