Skip to content

Instantly share code, notes, and snippets.

View coolsvap's full-sized avatar
😊

Swapnil Kulkarni coolsvap

😊
View GitHub Profile
@ScriptAutomate
ScriptAutomate / Install-WSLAndUbuntu.ps1
Last active May 22, 2024 02:49
Enable WSL and Install Ubuntu 22.04 (or 20.04)
<#
- BIOS of host machine also needs to be configured to allow hardware virtualization
- Windows 10 Pro or otherwise is needed; Windows 10 Home Edition CANNOT get WSL
- This gist WSLv2, but can use WSLv1 instead. I needed v1 as I run Windows 10 in a VM in Virtualbox.
- WSLv2 has been giving me problems in Virtualbox 6.1, but WSLv1 works properly.
- vbox has issues with the GUI settings when it comes to nested virtualization on certain systems,
so run the following if needing to give a VM this enabled setting:
VBoxManage modifyvm <vm-name> --nested-hw-virt on
#>