Skip to main content

How to Upgrade from WSL to WSL2 on Windows 10

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.

     

Comments

Popular posts from this blog

Heating with Electric Radiators

You want to heat your small garage using a couple of electric radiators. The power and voltage requirements for each radiator are 1200 W, 240 V. But you are not sure how to wire the radiators to the power supplied to the garage. Should you use the wiring diagram on the left or the one on the right? Does it make any difference?

How to Play a Sound After a Terminal Command Completes

  Sometimes, while working on the terminal, especially during long-running processes, it’s useful to have an audible notification when the task is finished. In this guide, we’ll show you how to make your terminal play a sound after any command completes, ensuring you're alerted without constantly checking the terminal. Why Do This? This trick can save time and improve workflow, especially when: You’re running lengthy build processes or installations. You’re waiting for large file transfers. You're programming embedded systems and need confirmation when flashing is done. Let’s dive into how to do this on a Linux system. Step-by-Step Guide to Playing a Sound After a Command 1. Using paplay or aplay to Play Sounds On most Linux distributions, you can use paplay or aplay to play sound files directly from the terminal. Here's how you can append a sound notification after a command. Basic Command Structure : PC:~$ your_command && paplay /path/to/soundfile.oga  Or, if...

Industrial Internet Use-Cases

The potential for the Industrial Internet is vast with opportunities spread over wide areas of productivity, such as logistics, aviation, transportation, healthcare, energy production, oil and gas production, and manufacturing. As a result, many use-cases will make industry executives wake up and consider the possibilities of the IIoT. After all, industry only requires a minimal shift in productivity to deliver huge revenue, an example is that even an increase of 1% of productivity can produce huge revenue benefits such as aviation fuel savings. In order to realize these potential profits, industry has to adopt and adjust to the Industrial Internet of Things. However, spotting, identifying, and then strategically targeting the opportunities of the IIoT is not quite as easy as it might seem. It is important, therefore, to create use-cases that are appropriate to vertical businesses. For instance, the requirements of manufacturing differ from logistics, which also differs to healthcare....