From what I read it should be possible to run WSL2 with Ubuntu in a Windows 11 VirtualBox VM running on a Windows 11 Host, right?
I've tried everything. In the end, I had to enable Hyper-V on the host PC (so the native Windows 11 installation on my PC). Without enabling this on the host, the Windows 11 VM always got to automatic repair and would not boot to the desktop anymore.
The VirtualBox settings for the Windows 11 VM are:
- [x] Enable PAE/NX
[x] Enable Nexted VT-s/AMD-V
Paravirtualization interface: Hyper-V
Hardware Virtualization: [x] Enable Nested Paging
However, when trying to run Ubuntu (which is the default distro being installed in Windows 11 when running wsl --install), I'm getting the following text in the black Ubunto command window:
Code: Select all
Ubuntu is already 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 aka<dot>ms/enablevirtualization
Press any key to continue...
The Virtual Machine Platform feature is enabled in the VM (but not on the host OS) and the hypervisorlaunchtype on the VM (and also on the host OS) is set to auto:
Code: Select all
PS C:\Windows\system32> bcdedit /enum | findstr -i hypervisorlaunchtype
hypervisorlaunchtype Auto