Sunday, September 24, 2023
rated 0 times [  4] [ 0]  / answers: 1 / hits: 12698  / 8 Months ago, sun, february 5, 2023, 10:48:31

I am trying to run a Linux program on my laptop for the first time. My machine is running Windows 11. I've followed online guides for installing Ubuntu on WSL such as the ones here:

But when I install Ubuntu I get the error in the picture below:

error message

Here are the commands I've been running to try to resolve.

Confirming WSL is installed:

PS C:UsersUser> wsl --install

Windows Subsystem for Linux is already installed.
The following is a list of valid distributions that can be installed.
Install using 'wsl --install -d <Distro>'.

Ubuntu Ubuntu
Debian Debian GNU/Linux
kali-linux Kali Linux Rolling
SLES-12 SUSE Linux Enterprise Server v12
SLES-15 SUSE Linux Enterprise Server v15
Ubuntu-18.04 Ubuntu 18.04 LTS
Ubuntu-20.04 Ubuntu 20.04 LTS
OracleLinux_8_5 Oracle Linux 8.5
OracleLinux_7_9 Oracle Linux 7.9

PS C:UsersUser> wsl -l -v
Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:

Install Ubuntu, launch, get the error message in the attached image. Follow the command instructions in that error message:

PS C:UsersUser> wsl --shutdown
PS C:UsersUser> wsl --unregister Ubuntu
There is no distribution with the supplied name.

Uninstall Ubuntu manually:

PS C:UsersUser> wsl --install -d Ubuntu
Installing: Ubuntu
Ubuntu has been installed.
Launching Ubuntu...

In a separate Ubuntu shell:

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
Press any key to continue...

I've already enabled virtualization, confirmed with systeminfo.exe:

PS C:UsersUser> systeminfo.exe
Hyper-V Requirements: VM Monitor Mode Extensions: Yes
Virtualization Enabled In Firmware: Yes
Second Level Address Translation: Yes
Data Execution Prevention Available: Yes


Yes, you do seem to have virtualized enabled in the firmware, as you indicate:

Hyper-V Requirements:      VM Monitor Mode Extensions: Yes
Virtualization Enabled In Firmware: Yes

But you don't appear to have the Virtual Machine Platform (VMP) enabled. It should have been enabled during the initial wsl --install, but it looks like something went wrong.

On a Windows 11 system with the VMP (or Hyper-V) enabled, you'd see something slightly different in the systeminfo.exe results:

Hyper-V Requirements:      A hypervisor has been detected. Features required for Hyper-V will not be displayed.

While this next suggestion is unlikely to fix the problem (but we can hope), it may at least give us a clue as to why the VMP isn't enabled.

From an Administrative PowerShell, run:

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

From Manual Installation - Step 3 - Enable Virtual Machine feature

Then restart the machine.

Watch closely during the reboot for any error messages that might appear. If things look normal during the reboot, then from a non-admin PowerShell, try:

wsl --set-default-version 2

Followed by the wsl --install -d Ubuntu again.

[#206] Sunday, February 5, 2023, 8 Months  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 303
Total Questions: 121
Total Answers: 103

Location: Colombia
Member since Mon, May 2, 2022
1 Year ago
erettor questions
Mon, Oct 10, 22, 02:52, 1 Year ago
Thu, Jul 7, 22, 03:25, 1 Year ago
Mon, Apr 24, 23, 20:52, 5 Months ago