{"id":10010,"date":"2024-05-30T09:00:11","date_gmt":"2024-05-30T16:00:11","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/commandline\/?p=10010"},"modified":"2024-05-30T06:05:35","modified_gmt":"2024-05-30T13:05:35","slug":"whats-new-in-the-windows-subsystem-for-linux-in-may-2024","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/commandline\/whats-new-in-the-windows-subsystem-for-linux-in-may-2024\/","title":{"rendered":"What&#8217;s new in the Windows Subsystem for Linux in May 2024"},"content":{"rendered":"<p>For this year&#8217;s Microsoft BUILD conference, we are thrilled to announce significant updates to WSL. This blog post will provide an overview of these enhancements and the recent developments in WSL.<\/p>\n<ul>\n<li><a href=\"#memory-storage-and-networking-improvements\">Memory, storage and networking improvements<\/a><\/li>\n<li><a href=\"#wsl-settings-gui-application-coming-soon\">WSL Settings GUI application coming soon<\/a><\/li>\n<li><a href=\"#wsl-zero-trust\">WSL Zero Trust<\/a><\/li>\n<li><a href=\"#manage-wsl-in-dev-home-coming-soon\">Manage WSL in Dev Home, coming soon!<\/a><\/li>\n<li><a href=\"#bonus-improvements\">Bonus improvements in Windows (Sudo for Windows, and AI powered dev container playground)<\/a><\/li>\n<\/ul>\n<h2>Memory, storage, and networking improvements<\/h2>\n<p>We <a href=\"https:\/\/devblogs.microsoft.com\/commandline\/windows-subsystem-for-linux-september-2023-update\/\">announced several improvements back in September as experimental features<\/a> and have since been moving these features from experimental to the default settings.<\/p>\n<p>The latest pre-release version of WSL contains improvements to fundamentals of WSL, including:<\/p>\n<ul>\n<li>Automatically release stored memory in WSL back to Windows \n<ul>\n<li>Default <code>autoMemoryReclaim=dropCache<\/code><\/li>\n<li>Address issues like <a href=\"https:\/\/github.com\/microsoft\/WSL\/issues\/8725\">GH#8725<\/a><\/li>\n<\/ul>\n<\/li>\n<li>Improve networking capability \n<ul>\n<li>Default <code>dnsTunneling=true<\/code> on Windows 11 machines<\/li>\n<li>Address issues like <a href=\"https:\/\/github.com\/microsoft\/WSL\/issues\/5068\">GH#5068<\/a> <a href=\"https:\/\/github.com\/microsoft\/WSL\/issues\/5336\">GH#5336<\/a> <\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Experimental features include: &#8211; <code>wsl --manage &lt;distro&gt; --set-sparse &lt;true\/false&gt;<\/code> to enable automatic disk space reclaim. &#8211; wslconfig setting of <code>networkingMode=mirrored<\/code> support to try the new mirrored networking mode, which adds new features like IPv6 support.<\/p>\n<h2>WSL Settings GUI application coming soon<\/h2>\n<p>To better help you customize, manage, and view the settings available in WSL, a WSL Settings GUI application is coming soon!<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2024\/05\/wslsettings.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2024\/05\/wslsettings.png\" alt=\"WSL Settings GUI\" width=\"2301\" height=\"1198\" class=\"aligncenter size-full wp-image-10012\" srcset=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2024\/05\/wslsettings.png 2301w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2024\/05\/wslsettings-300x156.png 300w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2024\/05\/wslsettings-1024x533.png 1024w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2024\/05\/wslsettings-768x400.png 768w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2024\/05\/wslsettings-1536x800.png 1536w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2024\/05\/wslsettings-2048x1066.png 2048w\" sizes=\"(max-width: 2301px) 100vw, 2301px\" \/><\/a><\/p>\n<p>In the past, you would need to <a href=\"https:\/\/learn.microsoft.com\/windows\/wsl\/wsl-config#wslconfig\">edit the contents of WSL\u2019s <code>.wslconfig<\/code> file<\/a> to control WSL settings. The Linux-style .wslconfig file, text-based approach works well for specific targeted changes. However, it can be difficult to know exactly what settings and input values are available to use in this text-based approach. The WSL Settings app addresses this by breaking out WSL settings into labeled categories, and indicating which ones are available on your machine.<\/p>\n<p>The best part is that the WSL Settings app is compatible with the <code>.wslconfig<\/code> text file, meaning that your existing settings will still be respected, and you can edit settings with the GUI app, a text editor, or both as you wish!<\/p>\n<p>Please stay tuned for a new WSL version with this feature.<\/p>\n<h2>WSL Zero trust<\/h2>\n<p>WSL is built on the principles of zero trust, and we\u2019re proud to demonstrate that by announcing new features and support for enterprises using WSL.<\/p>\n<p>First, Microsoft Defender for Endpoint\u2019s WSL 2 support is now out of public preview and is generally available! You can view the <a href=\"https:\/\/learn.microsoft.com\/microsoft-365\/security\/defender-endpoint\/mde-plugin-wsl\">plugin for WSL docs page here<\/a> to learn more about using Microsoft Defender for Endpoint to monitor your WSL environment.<\/p>\n<p>Secondly, further Intune features are coming to WSL with Linux Intune agent integration. As of today <a href=\"https:\/\/learn.microsoft.com\/windows\/wsl\/enterprise#configure-recommended-settings-with-intune\">you can manage WSL settings via Intune<\/a>, and we\u2019re expanding this by also allowing you to enforce conditional access scenarios based on the state of the Linux distro itself. This is available today as a public preview, which first ships with the ability to determine compliance on WSL distro names and versions using custom scripting. In the future we aim to improve this by allowing you to build your own custom Linux scripts for compliance. To <a href=\"https:\/\/learn.microsoft.com\/mem\/intune\/protect\/compliance-wsl\">learn more and start using the public preview please see this doc page<\/a><\/p>\n<p>Lastly , Microsoft Entra Id will also provide integration with WSL, starting with a public preview in the July and August timeframe. As a user this means that Microsoft\u2019s Authentication Library (MSAL) will be able to communicate with WSL in a secure way, letting you automatically log in using your Entra Id credentials on Windows from experiences in WSL like git, or using Microsoft Edge. For enterprise admins this improves security by providing a secure channel to acquire and utilize tokens bound to the host device. We\u2019ll be sure to post any news on the public preview, so stay tuned!<\/p>\n<h2>Manage WSL in Dev Home, coming soon!<\/h2>\n<p>Dev Home has a new \u2018Environments\u2019 feature, which lets you manage, launch, and create new development environments like Hyper-V machines, dev boxes and more. WSL is part of this story, as you will be able to also interact with WSL distros in this surface!<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2024\/05\/devenvironments2.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2024\/05\/devenvironments2.png\" alt=\"Dev Environments page in Dev Home\" width=\"2296\" height=\"1198\" class=\"aligncenter size-full wp-image-10013\" srcset=\"https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2024\/05\/devenvironments2.png 2296w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2024\/05\/devenvironments2-300x157.png 300w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2024\/05\/devenvironments2-1024x534.png 1024w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2024\/05\/devenvironments2-768x401.png 768w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2024\/05\/devenvironments2-1536x801.png 1536w, https:\/\/devblogs.microsoft.com\/commandline\/wp-content\/uploads\/sites\/33\/2024\/05\/devenvironments2-2048x1069.png 2048w\" sizes=\"(max-width: 2296px) 100vw, 2296px\" \/><\/a><\/p>\n<p>This work has been contributed by WSL community member: Carlos Ramirez from <a href=\"https:\/\/www.whitewaterfoundry.com\/\">Whitewater Foundry<\/a>, and we&#8217;d like to thank him for his awesome contributions! It was created following <a href=\"https:\/\/github.com\/microsoft\/devhome\/tree\/main\/docs\/extensions\/environments\">the extension interface provided by Dev Home environments<\/a>. You can view the work-in-progress source code <a href=\"https:\/\/github.com\/WhitewaterFoundry\/DevHomeWSLExtension\">here<\/a>. Whitewater Foundry has other WSL-based products and features, such as <a href=\"https:\/\/apps.microsoft.com\/detail\/9nv1gv1pxz6p\">Pengwin<\/a>, a WSL distro with Windows integrations, and <a href=\"https:\/\/www.whitewaterfoundry.com\/raft-wsl\">Raft WSL<\/a>, a program to manage WSL with some additional features like snapshotting your WSL distro state.<\/p>\n<p>If you\u2019d like to try this feature today, download the initial build of the WSL Dev Home extension from <a href=\"https:\/\/github.com\/WhitewaterFoundry\/DevHomeWSLExtension\/releases\">Whitewater Foundry\u2019s WSL extension Github repo<\/a> and install the MSIX. We are working on integrating this extension into Dev Home&#8230; stay tuned!<\/p>\n<h2>Bonus improvements<\/h2>\n<p>For us Linux on Windows fans, there are also other areas of the OS that are getting new and interesting improvements that are available now:<\/p>\n<ul>\n<li><a href=\"https:\/\/devblogs.microsoft.com\/commandline\/introducing-sudo-for-windows\/\">Sudo for Windows<\/a> was announced a few months ago. Just as the name says, you can enable this feature to use the <code>sudo<\/code> command in Windows and elevate specific commands. <\/li>\n<li><a href=\"https:\/\/aka.ms\/quickstartplayground\">Create new Linux development environments, using AI, with Dev Home\u2019s quickstart playground feature<\/a>. This new experimental feature allows you to enter a prompt like: \u2018Create a project to make the game Snake in Python\u2019, hit Generate, and have a full Linux dev container environment built for you using the power of AI. <a href=\"https:\/\/www.youtube.com\/watch?v=Y6dLxRmDESQ\">Here&#8217;s a demo of it in action<\/a>.<\/li>\n<\/ul>\n<h2>Thanks and feedback<\/h2>\n<p>We are hugely thankful to our awesome community for supporting WSL and its related efforts. For technical issues on WSL, please file them at the <a href=\"http:\/\/github.com\/microsoft\/wsl\">WSL GitHub repo<\/a>, and for general questions please don\u2019t be afraid to reach out on <a href=\"https:\/\/twitter.com\/craigaloewen\">X at craigaloewen<\/a>. For more BUILD announcements <a href=\"https:\/\/blogs.windows.com\/windowsdeveloper\/2024\/05\/21\/unlock-a-new-era-of-innovation-with-windows-copilot-runtime-and-copilot-pcs\/\">check out this blog post<\/a>. Thank you and happy coding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For this year&#8217;s Microsoft BUILD conference, we are thrilled to announce significant updates to WSL. This blog post will provide an overview of these enhancements and the recent developments in WSL. Memory, storage and networking improvements WSL Settings GUI application coming soon WSL Zero Trust Manage WSL in Dev Home, coming soon! Bonus improvements in [&hellip;]<\/p>\n","protected":false},"author":2191,"featured_media":10011,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[9],"tags":[],"class_list":["post-10010","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bash-on-ubuntu-on-windows"],"acf":[],"blog_post_summary":"<p>For this year&#8217;s Microsoft BUILD conference, we are thrilled to announce significant updates to WSL. This blog post will provide an overview of these enhancements and the recent developments in WSL. Memory, storage and networking improvements WSL Settings GUI application coming soon WSL Zero Trust Manage WSL in Dev Home, coming soon! Bonus improvements in [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/posts\/10010","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=10010"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/posts\/10010\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/media\/10011"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/media?parent=10010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/categories?post=10010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/tags?post=10010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}