Friday, July 3, 2020

Windows Subsystem For Linux 2 (WSL2) guide For windows 10 version 2004

To update to WSL 2, you must meet the following criteria:

Windows 10, updated to version 2004, Build 19041 or higher.

Please follow the Bellow Steps to complete 

here i have made a YouTube video you can watch the same


Install the Windows Subsystem for Linux

Before installing any Linux distributions on Windows, you must enable the "Windows Subsystem for Linux" optional feature.

open PowerShell using admin Privilege's   and copy this command 

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

Enable the 'Virtual Machine Platform' optional component

Open PowerShell as Administrator and run

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


Restart your machine to complete the WSL install and update to WSL 2.

Please follow the link (https://aka.ms/wsl2kernel) and install the MSI from that page on our documentation to install a Linux kernel on your machine for WSL 2 to use.

Set WSL 2 as your default version


Run the following command in PowerShell to set WSL 2 as the default version before installing a new Linux distribution:

"wsl --set-default-version 2"


Install your Linux distribution of choice

From the Microsoft Store you can  select your favorite Linux distribution.

The following distribution are available in Microsoft store:

  • Ubuntu 16.04 LTS
  • Ubuntu 18.04 LTS
  • Ubuntu 20.04 LTS
  • openSUSE Leap 15.1
  • SUSE Linux Enterprise Server 12 SP5
  • SUSE Linux Enterprise Server 15 SP1
  • Kali Linux
  • Debian GNU/Linux
  • Fedora Remix for WSL
  • Pengwin
  • Pengwin Enterprise
  • Alpine WSL

here am Providing Some useful PowerShell comments to manage WSL 


You can check the WSL version 

"wsl --list --verbose"

To change WSL version 

"wsl --set-version <distribution name> <versionNumber>"

Make sure to replace <distribution name> with the actual name of your distribution and <versionNumber> with the number '1' or '2'. You can change back to WSL 1 at anytime by running the same command as above but replacing the '2' with a '1'.





No comments:

Post a Comment