Some time ago, I managed to successfully install Ubuntu in WSL in Windows 10 running in VirtualBox on my host Ubuntu 22.04.
Now, I have Windows 11 running in VirtualBox on the same host Ubuntu 22.04. But, I cannot install Ubuntu in WSL.
Notes:
- I have turned on the guest's VirtualBox Settings > System > Processor > Extended Features > Enable Nested VT-x/AMD-V.
- Some of the instructions come from Ubuntu's instructions.
Here are the steps that I've tried (I've also tried variations on this). These are all in the guest Windows 11 machine.
- Control Panel > Programs > Programs & Features > Turn Windows features on or off > turn on:
- Virtual Machine Platform
- Windows Hypervisor Platform
- Windows Subsystem for Linux
- and then restart Windows.
- In PowerShell as an Administrator, run wsl --update and then restart Windows.
- In PowerShell as an Administrator, run wsl --install --distribution Ubuntu . This gives the following error:
Code:
Installing: Ubuntu
Ubuntu has been installed.
Launching Ubuntu...
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
Unfortunately, the given link doesn't help me. It says to use this command:
Code:
Set-VMProcessor -VMName <VMName> -ExposeVirtualizationExtensions $true
But, alas, Set-VMProcessor is not recognised as a command.
I didn't have any of these problems when I installed Ubuntu on WSL in Windows 10, yet in Windows 11, I get problems.
What can I do to install it successfully, please?
More information
- Host: Ubuntu 22.04
- VirtualBox version 7.0.20 r163906 (Qt5.15.3)
- Guest: Windows 11 Home, installed with Guest Additions enabled
- The Windows 11 installation is fairly barebones, with nothing installed other than what came on the installation ISO directly from the Microsoft website. It's fully up-to-date.
Thank you