Skip to main content
//Let's learn Something New.ROBOTICS · EMBEDDED SYSTEMS · RESEARCH
Preferences
PERSONALIZE YOUR VIEW
Appearance & reading

Choose how you explore the notebook.

QUICK THEMES

How to Upgrade from WSL to WSL2 on Windows 10

Share
Share this article Facebook

On Windows 10, it is possible to upgrade the Windows Subsystem for Linux platform to version 2, this included the already installed Distributions, and in this article are the steps required to convert to WSL2. The Windows Subsystem for Linux 2 (WSL2) is an updated version of the implementation that uses a very light virtual machine instead of a direct translation between both operating systems, allowing for noticeable improvements in performance and complete call compatibility support.

In this article are the steps to upgrade WSL to WSL2 and convert Linux distros to version 2 on Windows 10. 


  1.  Download this WSL2 kernel update (required
  2.  Install the downloaded file 
  3.  Open Start.
  4. Run PowerShell in Administrative Option 
  5. Type the following command to set Windows Subsystem for Linux 2 your default architecture for new distros you’ll install and press Enter:
    wsl --set-default-version 2

     


  6.  Type the following command to get a list of all the distros installed on your device and press Enter:
    wsl -l -v
  7. Type the following command to convert the distro from WSL 1 to WSL 2 and press Enter:
    wsl --set-version DISTRO-NAME 2
    In the command, make sure to replace DISTRO-NAME for the actual name of the Linux distribution.
  8. Type the following command to verify the version of the distro and press Enter:
    wsl -l -v

    1. Confirm the distros are set to version 2.

       All done  

    Once you complete the steps, you may need to repeat steps 7 through 10 to convert the remaining distros to version 2.

     
THE DISCUSSION

Comments

Ask a question, share a result, or add something useful.

0

Be the first to comment.Start the conversation below.