Ubuntu error 0x80370102

Все, что нужно сделать, чтобы исправить ошибку WslRegisterDistribution failed with error: 0x80370102 при установке Linux Distro подсистемы Windows для Linux 2 (WSL2).

Ошибка с кодом 0x80370102 сопровождается сообщением «WslRegisterDistribution failed with error». Имеет привычку появляться при попытке установить дистрибутив Linux для доступа через подсистему Windows к Linux 2 (WSL2). Таким образом процедура развертывания саб-системы обрывается и сам смысл свежевыпущенной функции Windows испаряется. Инсталляция Linux Distro обрывается сообщением:

WslRegisterDistribution failed with error: 0x80370102

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

Содержание

  • Причины ошибки 0x80370102
  • Что делать при ошибке 0x80370102?
    • 1. Включить аппаратную виртуализацию в BIOS
    • 2. Активировать аппаратную виртуализацию в PowerShell и настроить ОЗУ
    • 3. Запустить компонент Hyper-V

Причины ошибки 0x80370102

Речь идет о совсем новой ошибке, ведь она начала появляться только с конца лета 2021 года с выпуском WSL2. Она начала появляться не только при попытке установить подсистему Linux, но и Debian. В силу новизны, у нее пока нет подробного технического разбора со стороны разработчиков, и мы полагаемся на пользователей и их отчеты. Они указывают на наличие следующих нескольких проблем:

  • Используется сборка Windows Insider Preview. Многие пользователи инсайдерской версии Windows испытывают данную проблему и это нормально, ведь речь идет о незавершенной системе. Нужно ждать обновлений.
  • Проблемы перехода с WSL 1 на WSL 2. Результат опять же недоработанного программного обеспечения.
  • Выключена или отсутствует аппаратная виртуализация. Ее должен поддерживать процессор. Если такой функции в ЦП не предусмотрено, воспользоваться подсистемой Linux не получится. Может быть, что опция просто отключена и ее нужно включить.
  • Выключен Hyper-V. Это важный компонент виртуальной среды, который участвует в запуске нескольких операционных систем на одной физической машине. Его нужно обязательно активировать.

Что делать при ошибке 0x80370102?

Все исправления вытекают из причин ошибки. Пока что мы можем только включить аппаратную виртуализацию и Hyper-V. Если ваша версия Windows (от 2004, май 2020 года) и оборудование позволяет использовать подсистему WSL2, она должна заработать после ручного включения обязательных компонентов.

1. Включить аппаратную виртуализацию в BIOS

Если попытаться запустить Ubuntu или другую разновидность Linux в VirtualBox без активации аппаратной виртуализации, Windows отобразит сразу ряд ошибок. Система начнет грешить на распределение регистров WSL, звук и другие сбои. Данная функция обязательно должна быть включена, иначе запустить виртуальную систему не получится. К сожалению, активируется опция в BIOS, поэтому придется сделать несколько лишних телодвижений.

Как исправить ошибку 0x80370102:

  1. Нажимаем на виртуальную кнопку в Пуске – «Перезагрузить».
  2. В момент включения компьютера должна быть подсказка снизу с тем, какую клавишу нужно нажать для активации BIOS. Обычно это Del, Esc, F2, но может отличаться. Если не удастся войти с первого раза, нужно будет снов перезагрузить ПК.
  3. Находим вкладку CPU config, Processor или Chipset.
  4. Ищем параметр Virtualization или Виртуализация.
  5. Нажимаем напротив него и выбираем опцию Enable. В зависимости от производителя он может называться Intel Virtualization Technology, AMD-V, Hyper-V, VT-X, Vanderpool, or SVM.
  6. Возвращаемся в начальное окно и жмем на вариант «Save & Exit».

Ошибка WslRegisterDistribution failed with error: 0x80370102

2. Активировать аппаратную виртуализацию в PowerShell и настроить ОЗУ

Есть и другой вид виртуализации, так называемая вложенная, позволяющая запускать Hyper-V в виртуальной машине. Она нужна для запуска эмулятора телефона Visual Studio внутри виртуальной машины или тестировать конфигурации оборудования с использованием нескольких хостов. Части пользователей удалось исправить свою ошибку активацией вложенной виртуализации.

Инструкция по исправлению ошибки 0x80370102:

  1. Нажимаем правой кнопкой мыши по Пуску и выбираем PowerShell (или ищем через поиск). У нее должны быть права администратора.
  2.  Вставляем команду Set-VMProcessor <VMName> -ExposeVirtualizationExtensions $true и нажимаем Enter.
  3. Правым кликом мыши выбираем виртуальную машину посредством диспетчера Hyper-V и переходим в ее «Настройки».
  4. Жмем на вкладку «Память» в панели слева и выключаем параметр «Включить динамическую память», просто вручную увеличиваем значение вдвое.
  5. Запускаем виртуальную машину.
  6. Кликаем правой кнопкой мыши по ней и выбираем «Подключиться». После запуска Hyper-V произойдет перезагрузка и при повторной попытке запуска ошибка уже не должна появляться.

Ошибка WslRegisterDistribution failed with error: 0x80370102

3. Запустить компонент Hyper-V

Компонент Hyper-V нужен для того, чтобы администраторы могли получать больший контроль над собственным оборудованием при виртуализации нескольких операционных систем на одном оборудовании. Без него ошибка во время установки Linux гарантирована.

Нужно включить Hyper-V и вот, как это можно сделать:

  1. С помощью поиска переходим в «Панель управления».
  2. Открываем «Программы и компоненты».
  3. Жмем на элемент левого меню «Включение или отключение компонентов Windows».
  4. Ищем пункт Hyper-V (один из первых) и устанавливаем флаг возле него.
  5. Перезагружаем компьютер.

Ошибка WslRegisterDistribution failed with error: 0x80370102

Это лучшее, что мы можем предложить для исправления ошибки WslRegisterDistribution failed with error: 0x80370102. Перечисленные методы работают у большинства, на это указывают ответы в комментариях на форумах, поэтому без зазрений совести можем их рекомендовать к использованию.

  • Partition Wizard

  • Partition Magic

  • Fix: WSL Register Distribution Error 0x80370102 Windows 10 / 11

By Vega | Follow |
Last Updated October 18, 2022

This “WslRegistertionDistribution failed with Error: 0x80370102” error message occurs when users try to install a Linux distribution to access via Windows Subsystem for Linux 2. If you are also one of them, this article from MiniTool Partition Wizard is what you need.

Windows already includes this new feature and users can install the Linux subsystem simply by enabling the «Windows Subsystem for Linux» feature. However, when downloading Linux distributions through Windows Subsystem for Linux or WSL, users encounter this error message «WslRegisterDistribution failed with error: 0x80370102».

Windows Subsystem for Linux requires Hyper-V and virtualization to be enabled on our computer. Suppose you mistakenly disabled a feature on your computer after enabling Windows Subsystem for Linux. In this case, when starting WSL on your PC, you may encounter the error message:

WslRegisterDistribution failed with error: 0x80370102.

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

Well, how to fix this error? The detailed steps to solve “WslRegisterDistribution failed with Error: 0x80370102” are shown below.

Fix 1: Enable Hyper-V

Hyper-V is a must-have feature or functionality for using the Windows Subsystem for Linux on Windows computers. If you don’t enable it, it will generate an error when installing a Linux distribution to access via Windows. So, enabling Hyper-V might solve the “WslRegisterDistribution failed with Error: 0x80370102” problem.

Step 1: Type turn Windows features on or off on the Search box and click the best-matched result.

Step 2: Check the Hyper-V option and click OK.

enable Hyper-V

Then restart your computer and check if this issue gets fixed. If not, proceed with the next solution.

Fix 2: Enable Hardware Virtualization

In order to use the Hyper-V-powered Windows Subsystem for Linux on your PC, you need to turn on hardware virtualization. If you disabled WSL by mistake after installing it, you need to check and enable this feature from the BIOS. Until then, you can open Task Manager on your computer and switch to the Performance tab. Here you can find a tab called Virtualization.

Make sure the status shows Enabled. If not, you need to follow the steps below to enable hardware virtualization on your Windows PC.

Step 1: Restart your computer. Then press the specific hotkey to enter BIOS. The hotkeys may vary due to different brands. It usually is Esc, F2 or Del, etc.

Step 2: Once the BIOS window opens up, go to the Advanced tab, and press Enter to continue.

Note:

The Virtualization option may not be present in the Advanced tab on some computers. In this case, you’ll find it in the Performance tab.

Step 3: Use the arrows on your keyboard to select Virtualization and enable it.

After that, save the changes and reboot your computer.

Fix 3: Enable Nested Virtualization & Change RAM Settings

Nested virtualization is a feature that allows you to run Hyper-V inside a Hyper-V virtual machine (VM). This is useful for running the Visual Studio Phone Emulator in a virtual machine, or for testing configurations that typically require multiple hosts. Turning on nested virtualization has reportedly been a solution for many online users. So, follow these steps:

Step 1: Shut down your virtual machine in Hyper-V Manager.

Step 2: Press Win + X on your keyboard and select Windows PowerShell (Admin) from the popup list.

Step 3: In the PowerShell window, copy-paste this command and press Enter:

Set-VMProcessor <VMName> -ExposeVirtualizationExtensions $true

enter the command

Step 4: Right-click your virtual machine in Hyper-V Manager and select Settings.

Step 5: Click Memory in the left pane, uncheck Enable Dynamic Memory, and set the RAM value to twice the current value, e.g.2048 > 4096.

Step 6: Click Apply and OK to save the changes.

Step 7: Start your virtual machine. Then right-click on your virtual machine and select Connect. This will run Hyper-V and your system will reboot.

Later, try running Ubuntu again to test to see if the “WslRegisterDistribution failed with Error: 0x80370102” issue is resolved.

About The Author

Vega

Position: Columnist

Vega joined MiniTool as an editor after graduation. She enjoys helping people with computer problems, including disk management, data recovery, and more. She is constantly expanding her knowledge in related fields. And she will continue to bring more easy-to-understand professional articles to help people solve various problems on the PC.

In her daily life, Vega enjoys hanging out with friends, shopping online and listening to music. She is someone who knows how to enjoy life.

This error arises when users try to install a Linux distribution to access via Windows Subsystem for Linux 2. After reviewing the user’s feedback and technical authorities in detail, users reported encountering the error message 0x80370102 when trying to install Linux Distro for Windows Subsystem for Linux 2 (WSL2). The error notification is as follows:

Error Notification

This error is extremely new and is not encountered just in Linux distros. This error has also been encountered when trying to install the Debian distro as well. We have listed the causes of this problem after reviewing the user’s feedback and technical authorities in detail. This problem may arise due to any of the following reasons:

  • Under-Development: This error arises when people try to run a Windows Insider Preview build. A user might be seeing defects or bugs in the build they are using, which is still under development.
  • Upgrading WSL: A completely developed version with all the required fixes will support the subsystem. WSL 2 is under development and there are still bugs in it so switching from WSL 1 TO WSL 2 will cause this error.
  • Virtualization Disabled: Virtualization is the process of creating a software-based, or virtual, representation of something, such as virtual applications, servers, storage, and networks. This error can occur if the virtualization setting was disabled in the BIOS under Security.
  • Hyper-V: It is a Microsoft technology that allows users to create virtual computer environments, and run and manage multiple operating systems on a single physical server. So Wsl Register Distribution Error occurs when Hyper-V is disabled from the bios.

Solution 1: Enable Hardware Virtualization from BIOS

When users try to run Ubuntu in a VirtualBox without enabling the Hardware Virtualization then the system generates multiple errors such as audio performance issues, Wsl Register Distribution error, etc. A virtual machine emulates a computer system so anyone can run different operating systems and programs. Follow the steps below to enable Hardware Virtualization from BIOS:

  1. Click Start and then select Power Option and click Restart.
    Restarting PC
  2. Depending on your BIOS manufacturer, the key to log into BIOS will vary. Press 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: (Virtualization settings can be named as 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 see if Virtualization is enabled under the Performance tab of the Task Manager.

Checking Virtualization

Solution 2: Enable the Hyper-V Role

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 we do not enable it, it generates an error while installing Linux distribution to access via Windows. Follow the steps given below to enable Hyper-V:

  1. Click Start, search the Control Panel, and open it.
    Opening Control Panel
  2. Click on Programs.
    Opening Programs
  3. Click on Program and Features.
    Opening Programs and Features
  4. On the left panel, click on 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, then proceed with the next solution.

Solution 3: Expose Virtualization Extensions & Change RAM Settings

Source3

Nested virtualization is a feature that allows you to run Hyper-V inside of a Hyper-V virtual machine (VM). This helps run a Visual Studio phone emulator in a virtual machine, or testing configurations that ordinarily require several hosts. It has been reported that activating Nested Virtualization has worked out as a solution for many users online. Therefore, follow the steps given below to do so:

  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

Photo of Kevin Arrows

Kevin Arrows

Kevin is a dynamic and self-motivated information technology professional, with a Thorough knowledge of all facets pertaining to network infrastructure design, implementation and administration. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget.

Back to top button

Большое количество пользователей сообщило, что при попытке установить Linux Distro для Windows Subsystem для Linux 2 (WSL2) появляется сообщение об ошибке 0x80370102.

Не забудьте внести в белый список наш сайт. Это уведомление не исчезнет, ​​пока вы не сделаете это. Вы ненавидите рекламу, мы ее получаем. Мы делаем так же. К сожалению, это единственный способ для нас, чтобы продолжать предоставлять звездный контент и руководства о том, как решить ваши самые большие технические проблемы. Вы можете поддержать нашу команду из 30 человек, чтобы они продолжали выполнять свою работу, занеся в белый список наш сайт. Мы размещаем только несколько рекламных объявлений на странице, не препятствуя вашему доступу к контенту.

Эта ошибка является чрезвычайно новой, поскольку WSL2 был выпущен 12 июня этого года с Windows build 18917, и это касается не только дистрибутивов Linux. Эта ошибка также встречалась при попытке установить дистрибутив Debian.

Эта досадная ошибка не позволяет завершить установку виртуального устройства на вашем компьютере, поэтому вы не можете получить доступ к новым функциям, содержащимся в обновлении.

Несмотря на то, что это чрезвычайно свежая проблема и мало информации можно найти, мы рассмотрим некоторые из лучших доступных решений. Пожалуйста, внимательно следуйте инструкциям, представленным в этом списке, чтобы не вызывать других проблем.

Как я могу исправить ошибку 0x80370102 в Windows 10?

1. Проверьте, поддерживает ли ваш компьютер аппаратную виртуализацию

  1. Щелкните правой кнопкой мыши на панели задач Windows -> выберите диспетчер задач.
  2. В диспетчере задач выберите вкладку « Производительность » и проверьте, включены ли поддержка виртуализации и Hyper-V.

  3. Закройте диспетчер задач и следуйте следующему способу, чтобы активировать любой / оба отключенных параметра.

Запустите любую операционную систему в Windows 10 с этими приложениями!

2. Активируйте аппаратную виртуализацию из BIOS

  1. Перезагрузите компьютер.
  2. В зависимости от вашего производителя BIOS, ключ для входа в BIOS может отличаться. Нажмите клавиши Del, Esc, F1, F2 или F4 на клавиатуре, как только экран станет черным. (Если вы не получаете в первый раз, перезагрузите компьютер и попробуйте другой ключ).
  3. Найдите раздел конфигурации процессора (меню может называться Processor, CPU config, Chipset и т. Д.)
  4. Найдите параметр виртуализации и включите его (технология виртуализации Intel, AMD-V, Hyper-V, VT-X, Vanderpool или SVM).
  5. Выберите опцию Сохранить и выйти.
  6. Компьютер перезагрузится с включенной аппаратной виртуализацией.
  7. Проверьте, сохраняется ли проблема. Если это так, следуйте следующему методу.

3. Активируйте вложенную виртуализацию для виртуальных машин с помощью PowerShell (Admin)

  1. На главном компьютере (с выключенным целевым компьютером) -> нажмите Win + X и выберите PowerShell (Admin) из списка.
  2. Внутри окна PowerShell -> вставьте эту команду, изменив значения вашего процессора и имени виртуальной машины: Set-VMProcessorExposeVirtualizationExtensions $ true

  3. Нажмите Enter, чтобы запустить его.
  4. Если вы хотите включить эту службу на всех виртуальных машинах, установленных на вашем ПК, которые в данный момент отключены, вставьте эту команду в PowerShell: Get-VM | ? State -eq ‘Off’ | Set-VMProcessor -ExposeVirtualizationExtensions $ true

Мы рассмотрели некоторые из лучших способов решения кода ошибки 0x80370102 при попытке установить подсистему Linux или Debian Distro для Windows для Linux 2 (WSL2).

Мы надеемся, что эти шаги помогли вам решить вашу проблему. Пожалуйста, не стесняйтесь сообщить нам, помогло ли вам это руководство, используя раздел комментариев ниже.

ЧИТАЙТЕ ТАКЖЕ:

  • Как исправить фатальную ошибку виртуальной машины Java в Windows 10
  • Теперь вы можете создавать свои собственные пакеты дистрибутивов WSL для Microsoft Store
  • 4 великолепных эмулятора Linux для вашего ПК с Windows 10

Понравилась статья? Поделить с друзьями:
  • Ubuntu crazy error
  • U2200 ошибка форд фокус 2
  • U1512 mitsubishi l200 ошибка
  • U1418 ошибка додж калибр
  • U1411 ошибка jeep