Installing Windows Subsystem for Linux (WSL) Inside VirtualBox VM

preview_player
Показать описание
#Windows #Linux #VirtualBox

--------------------------------------------------------------------
VirtualBox Settings
--------------------------------------------------------------------
   01. Launch VirtualBox
   02. Right click on the Windows 10 VM ≫ Settings...
   03. Select System from the left navigation ≫ Click the Processor Tab
   04. Check the Enable Nested VT-x/AMD-V box
   05. Click OK to close the settings dialog
   06. Right click on the Windows 10 VM ≫ Start ≫ Normal Start
 
--------------------------------------------------------------------
Installing WSL2 Inside the VM
--------------------------------------------------------------------
   01. Launch Powershell as administrator
   02. Run the following command
   03. Reboot
   04. If running Windows 2004 or newer, run the following additional commands to use WSL 2
         wsl --set-default-version 2
   05. Click the Start Button ≫ Search Microsoft Store ≫ Select Microsoft Store
   06. Search for the Linux distribution to install (Debian, Ubuntu, etc)
   07. Select the Linux distribution and click the Get button in the upper right corner
   08. After the Linux distribution downloads and installs, select the distribution from the Start menu to launch it
   09. Input a username and password to be used in the Linux environment
 

### Connect with me and others ###
Рекомендации по теме
Комментарии
Автор

I get this error:
Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
I enabled that one option in virtualbox.

MilMike
Автор

I just tried the same as you, but with windows 10. No luck! So still: the only way that I can get wsl2 Kali Linux to run in a VM is in windows 10 as a VM in parallels on the latest intel MacBook Pro.

cameronribeiro
Автор

Hi. Does the same work if your host is Ubuntu 24.04? Can you try: install a w11 VM and then install wsl2 Kali Linux in it. I am not able to get it to work but I refuse to use anything that is not a VM because for safety I like to clone my VM once a week. Try what I described above and see if you can get it to work. I have not been able to.

cameronribeiro