WSL2(Windows Subsystem for Linux) will be generally available in Windows 10, version 2004

whitestar_999

Super Moderator
Staff member
Source: WSL2 will be generally available in Windows 10, version 2004 | Windows Command Line

WSL2 will soon be officially available as part of Windows 10, version 2004! As we get ready for general availability, we want to share one additional change: updating how the Linux kernel inside of WSL2 is installed and serviced on your machine. We’ve heard lots of community feedback that the install experience could be streamlined, and we’re taking the first step towards this by improving the servicing model of the Linux kernel. We’ve removed the Linux kernel from the Windows OS image and instead will be delivering it to your machine via Windows Update, the same way that 3rd party drivers (like graphics, or touchpad drivers) are installed and updated on your machine today. This change will give you more agility and flexibility over Linux kernel updates in WSL2. Read on to learn more about how you’ll see this in the user experience.

How will I notice this change?
Our end goal is for this change to be seamless, where your Linux kernel is kept up to date without you needing to think about it. By default this will be handled entirely by Windows, just like regular updates on your machine. Inside of the initial release of Windows 10, version 2004, and in the latest Windows Insiders slow ring preview build you will temporarily need to manually install the Linux kernel, and will receive an update in a few months that will add automatic install and servicing capabilities. We made this change now and will have a patch later to ensure that all users in the initial general release of WSL2 will be serviced via this dynamic model, and no one will be left in a middle state using the prior system.

Automatic install and updates
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. 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. 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 just like normal.

*devblogs.microsoft.com/commandline/wp-content/uploads/sites/33/2020/03/wsl1.png

If you’re installing WSL for the first time, we’ll check for updates and install the Linux kernel for you during the WSL install process.

Temporary experience of manually installing the Linux kernel in Windows 10, version 2004 and Windows Insiders slow ring
After updating to Windows 10 build 19041.153, when you run any of the following commands:

  • wsl (If a WSL2 distro is your default distro)
  • wsl --set-version <Distro> 2, – wsl --set-default-version 2
  • wsl --import and wsl --export targeting WSL2
You’ll see a one-time message instructing you to update your kernel. It will instruct you to go to the link: Updating the WSL 2 Linux kernel.

*devblogs.microsoft.com/commandline/wp-content/uploads/sites/33/2020/03/wsl2-1.png

Once there, follow the instructions to download the MSI package, run it to install your Linux kernel, and you’ll be finished and ready to use WSL2. When automatic install and update of the Linux kernel is added you’ll start getting automatic updates to your kernel right away.

Future plans and where to learn more
We’re excited for the release of WSL2, and to keep working on the WSL install experience. If you’d like to learn more about WSL2, check out our latest overview video WSL2: Code faster on the Windows Subsystem for Linux. Please stay tuned for more updates from us soon!

As always you can reach members of the WSL team that are on Twitter, or me personally @craigaloewen on Twitter if you have any general questions. For technical issues please file an issue on the WSL Github Repo. We always love hearing your feedback, thank you for helping make WSL amazing, and we’ll see you with the next update soon!

Updates:

  • 3/13/2020 – Thank you to our WSL distro partners: Canonical, Debian, openSUSE, Kali Linux, and Pengwin for adding a change to their distro launcher to help support this experience!
  • 3/13/2020 – Added link to WSL2 explanation video
@Desmond David @Nerevarine May be you can test it & post some small review here.:)
 

Desmond

Destroy Erase Improve
Staff member
Admin
I could. However, I don't update windows frequently. So, I don't know when that will actually be.
 

Vyom

The Power of x480
Staff member
Admin
I have latest version of windows (and it's updated too). But is it something to get excited about?
I can use terminal on windows command prompt. But why? I can simply use Putty?
 

Nerevarine

Incarnate
Windows is the only OS that doesnt support ncurses/curses based terminal. Let that sink in, millions of OS and Windows is the only one.
Glances developer once said only reason Glances runs in server mode (and not in terminal mode) is because of this.
Finally, there is proper terminal support.
 

Desmond

Destroy Erase Improve
Staff member
Admin
Windows is the only OS that doesnt support ncurses/curses based terminal. Let that sink in, millions of OS and Windows is the only one.
Glances developer once said only reason Glances runs in server mode (and not in terminal mode) is because of this.
Finally, there is proper terminal support.
IMO Windows should just drop Command Prompt and Powershell and just adopt a Unix-like shell for more universal accessibility.
 
OP
W

whitestar_999

Super Moderator
Staff member
Noob here. What's the use case of Windows Subsystem for Linux ?
I am also not much of a user of linux but basically it means that you can install a linux distro inside win 10 & run all supporting linux software natively, kind of like running a virtual linux machine without using vmware or virtualbox.
 

Desmond

Destroy Erase Improve
Staff member
Admin
Noob here. What's the use case of Windows Subsystem for Linux ?
Basically a compatibility layer for running Linux applications in Windows. It does not use the Linux kernel, so it's not actually Linux.

The use case could be to allow users to run tools such as Docker that don't exist natively on Windows or Mac. So good for developers who are required to work on Windows without having to switch to Linux simply for testing their code or to avoid using Dockers clunky Windows implementation.

Sent from my GM1911 using Tapatalk
 
Top Bottom