{"id":5438,"date":"2020-03-13T10:01:11","date_gmt":"2020-03-13T17:01:11","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/commandline\/?p=5438"},"modified":"2020-06-22T12:26:19","modified_gmt":"2020-06-22T19:26:19","slug":"wsl2-will-be-generally-available-in-windows-10-version-2004","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/commandline\/wsl2-will-be-generally-available-in-windows-10-version-2004\/","title":{"rendered":"WSL 2 will be generally available in Windows 10, version 2004"},"content":{"rendered":"<p>WSL 2 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 WSL 2 is installed and serviced on your machine. We\u2019ve heard lots of community feedback that the install experience could be streamlined, and we\u2019re taking the first step towards this by improving the servicing model of the Linux kernel. We\u2019ve 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 WSL 2. Read on to learn more about how you\u2019ll see this in the user experience.<\/p>\n<h2>How will I notice this change?<\/h2>\n<p>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 WSL 2 will be serviced via this dynamic model, and no one will be left in a middle state using the prior system.<\/p>\n<h2>Automatic install and updates<\/h2>\n<p>If you\u2019ve ever gone to your Windows settings, and clicked \u2018Check for Updates\u2019 you might have seen some other items being updated like Windows Defender malware definitions, or a new touchpad driver, etc. The Linux kernel in WSL 2 will now be serviced in this same method, which means you\u2019ll 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 \u2018Check for Updates\u2019 button, or you can let Windows keep you up to date just like normal.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/03\/wsl1.png\" alt=\"Image wsl1\" width=\"615\" height=\"526\" class=\"aligncenter size-full wp-image-5448\" srcset=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/03\/wsl1.png 615w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/03\/wsl1-300x257.png 300w\" sizes=\"(max-width: 615px) 100vw, 615px\" \/><\/p>\n<p>If you\u2019re installing WSL for the first time, we\u2019ll check for updates and install the Linux kernel for you during the WSL install process.<\/p>\n<h2>Temporary experience of manually installing the Linux kernel in Windows 10, version 2004 and Windows Insiders slow ring<\/h2>\n<p>After updating to Windows 10 build 19041.153, when you run any of the following commands:<\/p>\n<ul>\n<li><code>wsl<\/code> (If a WSL 2 distro is your default distro) <\/li>\n<li><code>wsl --set-version &lt;Distro&gt; 2<\/code>, &#8211; <code>wsl --set-default-version 2<\/code> <\/li>\n<li><code>wsl --import<\/code> and <code>wsl --export<\/code> targeting WSL 2 <\/li>\n<\/ul>\n<p>You\u2019ll see a one-time message instructing you to update your kernel. It will instruct you to go to the link: <a href=\"https:\/\/aka.ms\/wsl2kernel\">https:\/\/aka.ms\/wsl2kernel<\/a>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/03\/wsl2-1.png\" alt=\"Command Prompt showing WSL\" width=\"1281\" height=\"460\" class=\"aligncenter size-full wp-image-5453\" srcset=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/03\/wsl2-1.png 1281w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/03\/wsl2-1-300x108.png 300w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/03\/wsl2-1-1024x368.png 1024w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2020\/03\/wsl2-1-768x276.png 768w\" sizes=\"(max-width: 1281px) 100vw, 1281px\" \/><\/p>\n<p>Once there, follow the instructions to download the MSI package, run it to install your Linux kernel, and you\u2019ll be finished and ready to use WSL 2. When automatic install and update of the Linux kernel is added you\u2019ll start getting automatic updates to your kernel right away.<\/p>\n<h2>Future plans and where to learn more<\/h2>\n<p>We\u2019re excited for the release of WSL2, and to keep working on the WSL install experience. If you&#8217;d like to learn more about WSL 2, check out our latest overview video <a href=\"https:\/\/www.youtube.com\/watch?v=MrZolfGm8Zk\">WSL 2: Code faster on the Windows Subsystem for Linux<\/a>. Please stay tuned for more updates from us soon!<\/p>\n<p>As always you can reach <a href=\"https:\/\/twitter.com\/i\/lists\/1131397802204864512\/members\">members of the WSL team that are on Twitter<\/a>, or me personally <a href=\"https:\/\/twitter.com\/craigaloewen\">@craigaloewen<\/a> on Twitter if you have any general questions. For technical issues please file an issue on the <a href=\"https:\/\/github.com\/microsoft\/WSL\">WSL Github Repo<\/a>. We always love hearing your feedback, thank you for helping make WSL amazing, and we\u2019ll see you with the next update soon!<\/p>\n<p><strong>Updates:<\/strong><\/p>\n<ul>\n<li><strong>3\/13\/2020<\/strong> &#8211; 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!<\/li>\n<li><strong>3\/13\/2020<\/strong> &#8211; Added link to WSL 2 explanation video<\/li>\n<li><strong>6\/22\/2020<\/strong> &#8211; Changed verbage to &#8216;WSL 2&#8217;<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>WSL 2 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 WSL 2 is installed and serviced on your machine. We\u2019ve heard lots of community feedback that the install experience could [&hellip;]<\/p>\n","protected":false},"author":2191,"featured_media":4568,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,9],"tags":[],"class_list":["post-5438","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-commandline","category-bash-on-ubuntu-on-windows"],"acf":[],"blog_post_summary":"<p>WSL 2 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 WSL 2 is installed and serviced on your machine. We\u2019ve heard lots of community feedback that the install experience could [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/posts\/5438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/users\/2191"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/comments?post=5438"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/posts\/5438\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/media\/4568"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/media?parent=5438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/categories?post=5438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/tags?post=5438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}