WSL2 on Windows 11 VM

alexsmith2709

Well-Known Member
Reaction score
357
Location
UK
Does anyone know if its possible to use WSL2 through a Windows 11 VM? Im using the VirtualBox 6.1.28 and when i try to use WSL2 within the VM i get the error:
Code:
please enable the virtual machine platform windows feature and ensure virtualization is enabled in the BIOS
These features are enabled with in the Win11 environment and I have also enabled "Nested VT-x/AMD-V" in VirtualBox. Nested Paging is also enabled.
I am running this on a Windows 10 host.

Please note, this is about running WSL2 inside the VM, not along side VirtualBox as a lot of threads and suggestions out there have fixes for.

I would like to be able to use WSL2 within a VM to keep what i am doing away from my main environment. I know i can just use a Linux VM (which i also do) but being able to do this would make my life a lot easier and keep all my scripts in one place.
 
Back
Top