Installing WSL2 on Windows 10

You will get performant access to the filesystem with WSL2!

  • From elevated PowerShell (Run as Administrator):
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2

You're basically done.

  • From Windows Store do a search for WSL. A bunch of distros will come up - I went for Ubuntu 20.04 as the simplest to manage.

You don't have to install the distro from the Windows Store though! For example, here's a gist covering how to run Arch on WSL2:

Instructions taken from:

Dmitry Avtonomov
Software Engineer

My main research interests are data visualization and processing for mass spectrometry.