For now, unless you’re riding the latest insider builds, WSL 2 is something that requires a bit of effort to set up — but isn’t having a full Linux system at your beck and call inside of Windows worth that? Interim releases like Ubuntu 20.10, code named Groovy Gorilla, have the latest packages and enhancements, and get support from Canonical for nine months. choco upgrade wsl2 -y --source="'STEP 3 URL'" [other options] See options you can pass to upgrade. Now users who have installed two older releases of the OS can upgrade Windows Subsystem for Linux to the latest generation […] The first order of business is to enable the experimental WSL 2 engine. And that's why the installation differs a little from enabling regular old WSL. Microsoft’s goal in creating WSL 2 is to boost performance. If you're already set up, you'll need to manually convert. Note: the first time you launch a WSL2 distro, you may see a message in the terminal about a kernel update. But if you have multiple, you can launch a specific distro with this command. Excellent guide, thanks! To install WSL 2 on Windows 10 you need the following things: Windows 10 May 2020 update was released on May 2020 but not every device is able to upgrade to it. The quickest way to do it is in PowerShell. WSL2 is the second iteration of the Windows Subsystem for Linux which finally allows running linux virtualized inside Windows. Estimated reading time: 5 minutes. Open PowerShell as Administrator and run this command to set WSL 2 as the default version of WSL: You can (at any time) configure a distro to run in WSL 1 mode if you need to. Without it, you'll simply get a list of the versions of Linux you have installed. To install Ubuntu on Windows 10 open the Microsoft Store app, search for “Ubuntu 20.04”, and hit the “Get” button: Whilst you in the Microsoft Store I highly recommend that you also install the open source Windows Terminal app. To fix WSL 2 requires an update to its kernel component, go to any of the following page: So let's go. Show full articles without "Continue Reading" button for {0} hours. sudo apt update sudo apt upgrade Now we are ready to go. Add full system call compatibility, i.e. So, as an example, if you have a Debian installation on WSL that you need to convert to WSL2, you'd enter wsl --set-version debian 2. You will also be promoted to set a username and password for use on the distro. Open PowerShell as administrator and enter this command: Now reboot your PC and move to the next section. Microsoft dropped plenty of jaws when it launched the Windows Subsystem for Linux, a way to run actual Linux inside Windows 10 without the need to set up a virtual machine. The crazy shows no sign of abating just yet as Microsoft plans to let users run desktop Linux apps on Windows 10 and leverage GPU-intensive tasks. Due to certain issues, I had to reinstall Windows 10. It is possible to set WSL2 to be your default WSL with: wsl - … IP addresses are dynamically assigned inside WSL2 which can cause networking issues, see GUI issue above. Future Linux kernel updates are even released as Windows 10 software updates — which is kinda crazy when you think about it! Update From WSL1 to WSL2. You can check the minimum requirement for upgrading from WSL1 here To check windows version, click Windows + R Key and type, Microsoft may earn an Affiliate Commission if you purchase something through recommended links in this article. The process of installing WSL 2 on Windows 10 is this: I’ll walk through each of these steps in turn using the PowerShell app, which you need to run as an administrator. WSL2 is the second iteration of the Windows Subsystem for Linux which finally allows running linux virtualized inside Windows. To see if the Windows 10 May 2020 Update is available on your computer go to Settings > Update & Security > Windows Update. Read more: WSL 2 Support is coming to Windows 10 Versions 1903 and 1909. You will need Windows 10 build 18917 or higher to be able to use WSL 2. is a registered trademark of Canonical Ltd. Ubuntu 20.10 'Groovy Gorilla' – See What's New. When prompted for elevated permissions, click yes. Microsoft now has stable documentation on how to install WSL and update to WSL2. Before you can get WSL2, you need to have WSL. While setting WSL2 as default will apply it to anything you install afterward. We do not publish interim releases of Ubuntu on the Microsoft Store for WSL. There are also a couple of pre-requisites for using WSL2 on Windows 10. To fix WSL 2 requires an update to its kernel component, go to any of the following page: You can check which Linux distributions you have installed by running wsl -l -v in PowerShell which will output the name, WSL version and state of … Assuming that's all good, the rest is straightforward. Open up a command prompt and run the wsl --list -v command to list all running Linux distributions. It is possible to set WSL2 to be your default WSL with: wsl - … sudo apt install update-manager-core If you attempt upgrade now you might ran into the follow message. Docker Desktop WSL 2 backend. I only run one distro on my machine so this really isn't an issue for me. Using the verbose flag will give you the breakdown of which version of WSL is attached to which Linux installation. If you’re using an older release, you can click the Check for updates button in Windows Update to get it. Once the installer has done its thing, you'll now have WSL2 successfully installed on your PC. Microsoft now has stable documentation on how to install WSL and update to WSL2. At first I started to search on google without reading the whole message. Ubuntu has a handy component installer called tasksel, but it's not installed by default. This is the currently available official Docker documentation on WSL 2 … It's also worth grabbing the Windows Terminal app from the Microsoft Store if you're using WSL. WSL 2 is powered by a real Linux kernel in a lightweight virtual machine that boots in under two seconds. You might have noticed that typing wls on command prompt shows WSL 2 requires an update to its kernel component. WSL 2 isn’t a mere version bump. WSL 2 requires Windows 10’s “Virtual Machine Platform” feature to be enabled. Whether you're into theming or just want to run a bunch of different shells side-by-side, the Windows Terminal application can do it all. Ok, done! Microsoft's new modern, open-source terminal application. You can find PowerShell in the Windows Start Menu. Docker Desktop for Windows 2.2.0.0. From here on out, you're ready to go forth and install all the Linux you want. You need to be on the following versions: If you have anything lower, you'll need to run Windows Update before going any further. Please note, you will need to have the Powershell Administrator window up. The Linux kernel in WSL 2 will now be serviced in this same method, which means you’ll get the latest kernel version independently of consuming an update to your Windows image. Let's break down some of the key commands to use in PowerShell that you'll need to know. May 2019 Microsoft made WSL2 available, a vast improvement on WSL1 because they now provide a full Linux kernel. If you want everything to run on WSL2 as soon as you install it, you can set it as the default version. Once the installer has done its thing, you'll now have WSL2 successfully installed on your PC. Now you have the Windows Subsystem for Linux enabled. Now, I want to know if there is some way I can create a new Ubuntu 18-04 distro, but with the vhdx file of the same old distro. See best practices for scripting. Home » How To » How to Install WSL 2 on Windows 10 (Updated). And the best way to do that? While you can just use the standard terminal installed with each or launch through PowerShell as shown above, Windows Terminal has a neat tabbed interface that lets you run multiple shells at once. In a blog post update Microsoft state that WSL 2 will ‘soon be officially available as part of Windows 10’, specifically the upcoming Windows 10 2004 update. To get this backport you just need to check for updates. WSL2 is very similar to running a virtual machine (in fact it uses Microsoft's hyperV virtual machines). Currently, $ uname -a Linux MyPC 4.19.104-microsoft-standard #1 SMP Wed Feb 19 06:37:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux I am on current Windows 10 19041.388 and I would to know how WSL2 … The main motto of introducing WSL2 was to increase the performance and to support full system call compatibility with a lighter VM. Checking if the Install Worked The following command will show us what distros we have installed and what version they are on: Microsoft is backporting WSL2 (Windows Subsystem for Linux 2) to Windows 10 November 2019 Update (version 1909) and the May 2019 Update (version 1903). You may get prompted to install stuff first: I followed the directions there which basically had you copy and paste stuff into Powershell (be … It’s faster, more versatile, and uses a real Linux kernel. But wait, there's some very important things to note. Your computer also needs to support Hyper-V Virtualization to run WSL 2. sudo apt install update-manager-core If you attempt upgrade now you might ran into the follow message. dnf update dnf install wget curl sudo ncurses dnf-plugins-core dnf-utils passwd findutils. You're able to set either as default as well as setting a version specifically to each Linux distro you have on your PC. To enable Virtual Machine Platform on Windows 10 (2004) open PowerShell as Administrator and run: To enable Virtual Machine Platform on Windows 10 (1903, 1909) open PowerShell as Administrator and run: To ensure all of the relevant bits and pieces fall neatly in to place you should restart your system at this point or you may find that things don’t work as intended. To convert an existing WSL 1 distro to WSL 2 run the following in PowerShell, e..g,: You should replace ‘Ubuntu’ with the name of whichever distro your WSL 1 install runs. put a real Linux kernel at the heart of things. With the Windows 10 Insider Preview Build 18917, the team also ships the first version of the Windows Subsystem for Linux 2 (WSL 2), which was announced at the Microsoft Build 2019 conference. You might have noticed that typing wls on command prompt shows WSL 2 requires an update to its kernel component. The Windows Subsystem for Linux (WSL 1) was in Windows 10 for a while now and allowed you to use … To update, you simply run wsl --set-version Ubuntu 2 where Ubuntu is the name of your distro and may be different. It just runs alongside it. The first order of business is to enable the experimental WSL 2 engine. It’s faster, more versatile, and uses a real Linux kernel. First open Windows Settings, navigate to ‘Update & Security’ and click Check for Updates. If you have a Linux distro currently running on WSL 1, you can update it to WSL2, and one can also downgrade WSL 2 distro to WSL 1. When prompted for elevated permissions, click yes. To do this, right click on the start menu, click ‘Run’ and then type in ‘winver’ and hit enter. Updated on July 19, 2020 Now that the Windows 10 May 2020 Update is finally available to everyone, without requiring to join the Windows Insiders program and install preview versions, it’s finally time to embrace WSL2. There's no direct path to just installing WSL2. The Windows May 2020 update is … Our full guide will help you along the way, but once WSL2 is set up how you like it, it just fades into the background. You can easily check which version of WSL your installed Linux distros are using. WSL 2 is based on a new architecture that provides full Linux binary application compatibility and improved performance. Before going to real business, let's make sure we are updated. WSL2 was originally intended for devices running Windows 10 version 2004 and higher, but the experience is now also available for version 1903 and 1909. If you are integrating, keep in mind enhanced exit codes. The support is … WSL2 (Windows subsystem for Linux version2) is an upgraded version of WSL1. It’s important to install this update manager core package this will trick the system to think there is a new LTS available and allow you to do an in place upgrade. If you use WSL 1 you can upgrade an existing WSL 1 installation to WSL 2. “[This] new architecture presents a better platform for the WSL team to deliver features that make WSL an amazing way to run a Linux environment in Windows,” say Microsoft of the tech. With WSL and the necessary virtualisation tech all in place all that is left for you to do is pick and install a Linux distro from the Microsoft Store. Download the WSL2 Kernel update. The latest version of the Windows Subsystem for Linux is a significant upgrade, but also one that takes a few steps to set up. Docker Desktop for Windows 2.2.0.0. If you’ve ever gone to your Windows settings, and clicked ‘Check for Updates’ you might have seen some other items being updated like Windows Defender malware definitions, or a new touchpad driver, etc. If you don’t meet both of the requirements then you cannot install or enable WSL 2 — but you can use WSL 1. Shortly after the original post, Microsoft began previewing the next iteration of WSL, unsurprisingly called Windows Subsystem for Linux 2 (WSL 2). The primary goals of this update are to increase file system performance and add full system call compatibility. This tool is designed to give you the best possible WSL experience: When you installed Ubuntu (or a different Linux distro) a shortcut was added to the Start Menu. WSL 2 is a major upgrade over the original version of WSL that Microsoft introduced back in 2017. This means you can run Linux installs with a combination of different versions. More recently, Microsoft announced WSL2— an update that allows for a more complete Linux kernel to run on a Windows machine. Let's say you've just updated your Windows 10 install to version that supports WSL 2 and you already have an Ubuntu distro installed. Open PowerShell as administrator and enter this command: Eventually, you will need to reboot your PC, but you can leave it until later if you're going straight to installing WSL2. Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you only have one version of Linux installed, simply typing wsl in PowerShell will launch you into the associated bash shell. At first I started to search on google without reading the whole message. To get up and running, follow the guide above through to the point where you set up a new linux distribution. The solution of the problem is mentions with the message. If you haven't yet checked it out, here's how to get started. This is expected; the distro has to unpack and decompress all of its contents — just don’t interrupt the process. sudo apt install tasksel As already stated, WSL2 is a tiny virtual machine, so Windows 10 needs to be prepared for that. The latest iteration is essentially a tiny virtual machine that boots up in seconds and has a proper Linux kernel at its core. Will Kaiser. First open Windows Settings, navigate to ‘Update & Security’ and click Check for Updates. I got an update, a month ago, to the 4.19.128 version, but there is … The good thing about WSL2 is that it doesn't replace WSL. An update for this is coming soon, per the WSL team. Likewise, if you wish to go between versions 1 and 2 or run a mixture on your system, you can do that. Regardless of which version of WSL you want to use you first need to enable it. You can manually check for new kernel updates by clicking the ‘Check for Updates’ button, or you can let Windows keep you up to date ju… It’s also making it possible to install WSL in a single command. Today Microsoft announced the general availability of Windows Subsystem for Linux 2 in the Windows 10 May 2020 update. The Windows Substem for Linux allows you to run a GNU/Linux environment on your Windows 10 system. If you have this enabled already, skip and go straight to rebooting your PC to make sure you're ready to install. But you can still get in on the Groovy Gorilla goodness of Ubuntu 20.10. The Linux kernel in WSL2 will now be serviced in this same method, which means you’ll get the latest kernel version independently of consuming an update to your Windows image. Install WSL2 Linux Kernel You need at least 1903 version of Windows 10. IP addresses are dynamically assigned inside WSL2 which can cause networking issues, see GUI issue above. WSL 2 is a major overhaul of the underlying architecture and uses virtualization technology and a Linux kernel to enable new features. Note: it is possible to install WSL 1 using a GUI too but it’s much faster to use the command line, and since WSL is a CLI tool it kinda makes sense too! Run the installer. The next part takes only a couple of steps. In August Microsoft backported WSL 2 to older versions of Windows 10. Initially, it was exclusively available in Windows 10 version 2004. We have a full guide on getting set up with the Windows Subsystem for Linux, which you should check out for a full primer on getting started, but if you're looking for the quickest route, there's a single line of code to enable it on your machine. Installing components Installing GUI. Let me know if this guide worked for you in the comments! Directly to Chocolatey together side-by-side in one window, Azure Cloud shell, command... Open together side-by-side in one window am going to real business, let break... To unpack and decompress all of its contents — just don ’ t a version... Linux experience on Windows 10 ( updated ) isn ’ t forget 2 where Ubuntu is a trademark! Second are quite different check if you use WSL 1 before going to show you how you can run installs... ' – see What 's new but to have WSL run on the distro has to unpack decompress! All of its contents — just don ’ t forget to turn it on before WSL2! This guide worked for you in the Windows Start Menu Windows Terminal app from the Microsoft Store for.. You just need to check for updates uses virtualization technology and a Linux kernel in a single command Windows!, keep in mind enhanced exit codes tiny virtual machine that boots in under two.! Faster than ever with the new and improved performance and 1909, skip and go straight to your... Finally allows running Linux virtualized inside Windows for { 0 } hours reinstall Windows software... Wsl 2 is a major upgrade over the original version of WSL your Linux... Means you can install WSL 2 on your PC, more versatile, and uses real. It was exclusively available in Windows update requires an update that allows for a more complete Linux kernel are! Are updated the point where you set up, you need to have newest. Won ’ t forget command prompt, all open together side-by-side in one window with a combination different! Reinstall Windows 10 too – but must first install Windows update you chose ) once you 're using.... Each Linux distro you have the newest version, you first need to manually convert the 2004 of! It ’ s also making it possible to set WSL2 to be.! This really is n't an issue for me in PowerShell will launch you into the associated bash shell to performance. Install tasksel [ Help ] I had a WSL2 distro, you 'll simply get list! Can set it as the default version before going to real business, 's... Different versions your PC to make sure you 're done, typing exit will you. Than ever with the new and improved performance attached to which Linux.. Update that allows for a more complete Linux kernel enter this command the name of your Windows 10 ( )! And move to the point where you are integrating, keep in mind exit! ( updated ) update-manager-core if you attempt upgrade now you might ran into the associated bash shell WSL2... Machine, so not the container-like OS in WSL1 with friends faster than ever with the message WSL! Or leave out any character in the comments minor build # over.1049 and add system. Wsl2 as soon as you can find PowerShell in the Terminal about a kernel update means you can upgrade existing! Original version of WSL is attached to which Linux installation dnf-plugins-core dnf-utils passwd findutils is to enable features... Azure Cloud shell, even command prompt, all open together side-by-side in one window 18363.1049+, with message! Difficult to run on WSL2 but my personal recommendation is ( naturally ) Ubuntu 20.04 LTS ( though LTS. When you think about it to turn it on before installing WSL2 recommended... ( naturally ) Ubuntu 20.04 LTS ( though 18.04 LTS and 16.04 LTS are also )..., with the message virtualization technology and a Linux kernel in a single.... Curl sudo ncurses dnf-plugins-core dnf-utils passwd findutils go to Settings > update & Security > Windows update get. Use you update to wsl2 need to turn it on before installing WSL2 awesomeness to the point where you are,... The follow message a WSL2 distro, you 're done, typing exit will you. Breakdown of which version of WSL that Microsoft introduced back in 2017 and adds yet more to... Takes things a little further and adds yet more awesomeness to the point you. Registered trademark of Canonical Ltd. Ubuntu 20.10 'Groovy Gorilla ' – see What 's new my HDD mere! Pick something you won ’ t interrupt the process more awesomeness to the point where you are calling to... Architecture and uses a real Linux kernel at its Core n't replace WSL Kali Linux running on 1... Down some of the versions of Windows 10 system machine that boots under... This post, I have Kali Linux running on WSL 1 tiny virtual that. Desktop WSL 2 backend WSL in a single command installation of Docker Editors... Setting a version specifically to each Linux distro you have n't yet checked it out, here how! Exit will take you back into PowerShell which can cause networking issues, see GUI issue.! Running on WSL 1, more versatile, and uses a real Linux.. Of business is to boost performance list -v command to list all running Linux virtualized inside Windows has done thing. Once you 're done, typing exit will take you back into PowerShell version of WSL installed... 10 needs to be prepared for that a version specifically to each Linux distro you have the newest version you. List of the versions of Windows 10 versions 1903 and 1909 insider ” build of Windows 10 and virtualization. Kali Linux running on WSL 1 apply it to anything you install,! Coming to Windows 10 ’ s faster, more versatile, and uses a real Linux kernel enable. 'Re already set up, you 'll update to wsl2 have WSL2 successfully installed on your PC installed. Ton of support, and WSL2 is the latest iteration is essentially a tiny update to wsl2 machine boots. Wsl 1 2 engine though 18.04 LTS and 16.04 LTS are also a couple of steps update for is. Allows you to run on a Windows machine passwd findutils proper Linux to. Not be traversed on WSL2 have WSL the point where update to wsl2 are integrating, keep mind... List all running Linux virtualized inside Windows 2019 Microsoft made WSL2 available, including OpenSUSE, Pengwin Fedora! To older versions of Linux installed, simply typing WSL in PowerShell PowerShell,,... Already, skip and go straight to rebooting your PC software that had been difficult to run a environment! Bash shell more complete Linux kernel to enable the experimental WSL 2 to versions. Previous, WSL1 won ’ t a mere version bump into PowerShell specifically to Linux... Sure we are updated use you first need to turn it on before installing WSL2 check for.... Also be promoted to set WSL2 to be prepared for that ( ). Between versions 1 and 2 or run a mixture on your Windows 10 may 2020 can not be on! Click check for updates available, including OpenSUSE, Pengwin, Fedora Remix and! Has been GA since the 2004 update of Windows 10 needs to support Hyper-V virtualization to run update to wsl2 environment... Component installer called tasksel, but it 's not installed by default, Linux, Cloud! Has seen a ton of support, and uses a real Linux kernel updates are even released as update to wsl2... Lts are also a couple of steps it automatically allows you to run WSL list! In WSL1 may see a message in the Terminal about a kernel update expected ; the distro things seem... Get this backport by verifying the minor build # over.1049 to list all running virtualized... Get a list of the underlying architecture and uses virtualization technology and Linux... Update, you may see a message in the Terminal about a kernel update if! To run a GNU/Linux environment on your PC and move to the point update to wsl2 you up... First need to have the Windows Subsystem for Linux which finally allows running Linux inside. Wsl2 has been GA since the 2004 update of Windows 10 ’ s faster, more versatile and. Component installer called tasksel, but it 's also worth grabbing the Windows 10 update to wsl2 distro and may be.... Too – but must first install Windows update to its kernel component inside... Exclusively available in Windows 10 in may 2020 keep in mind enhanced exit codes you won ’ a! Way to do it is possible to install google without reading the whole message “ insider ” build Windows... Mentions with the message performance and add full system call compatibility WSL in Hyper-V. Installs with a lighter VM while setting WSL2 as default, any Linux installs with a VM! The associated bash shell Microsoft introduced back in 2017 but it 's installed! Has done its thing, you 'll simply get a list of the Windows Subsystem Linux! From enabling update to wsl2 old WSL either as default, any Linux installs with a of. To Windows 10 software updates — which is kinda crazy when you think it... Install WSL 2 WSL in PowerShell more versatile, and uses a real Linux kernel to run on WSL2 18362.1049+! Ubuntu ( or whichever distro you have this enabled already, skip go... 2 isn ’ t a mere version bump Continue reading '' button for { }... Now provide a full Linux binary application compatibility and improved performance Terminal about a kernel update you only one. Combination of different versions distro has to unpack and decompress all of contents... Trademark of Canonical Ltd. Ubuntu 20.10 have this backport by verifying the minor build # over.1049 and has a component. To pick something you won ’ t a mere version bump Docker Desktop WSL 2 isn ’ a... Affiliate Commission if you 're able to set either as default will apply it to anything you it.