Skip to content

Instantly share code, notes, and snippets.

@cavearr
Last active August 25, 2021 21:51
Show Gist options
  • Save cavearr/2c14edb59fbdd7e1751417158a44dc07 to your computer and use it in GitHub Desktop.
Save cavearr/2c14edb59fbdd7e1751417158a44dc07 to your computer and use it in GitHub Desktop.
Install WSL2 Window 10

Install WSL + WSL2

1.- Open Powershell as administrator. 2.- Execute:

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

3.- Check Hiper-V compatibility, for it, launch msinfo32 and check compatibility.

4.- Install wsl2 and restart:

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

5.- After restart, install latest linux kernel for wsl2 from here:

https://go.skimresources.com/?id=133312X1596319&url=https%3A%2F%2Fwslstorestorage.blob.core.windows.net%2Fwslblob%2Fwsl_update_x64.msi&sref=https%3A%2F%2Fwww.wikiversus.com%2Finformatica%2Fwindows%2Fcomo-instalar-wsl-windows-subsystem-for-linux-windows-10%2F&pref=&xuuid=af550d2913f1fb8fa63ed0abbba0cc58&xtz=-120&xs=1&jv=amp%401.0.3

6.- Set wsl2 as default (you have wsl and wsl2 simultaneously):

wsl –set-default-version 2

7.- Install linux distribution from windows store.

Accesing wsl file system from windows:

Open File Explorer. Type \wsl$ in the address bar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment