With Windows 2004 in the final run-up to launch, what's happening to Microsoft's Linux tools?
It's been a while since Microsoft unveiled the re-architecture of its Windows Subsystem for Linux (WSL) at its Build conference. Since then it's been tested as part of the 20H1 series of Insider previews and will launch as part of Windows 10's next major update, which will be called Windows 2004.
That update is now close to feature complete, with only bug fixes expected between now and its likely April launch date. The long delay between completion and launch is part of Microsoft's new approach to Windows 10 updates, giving it longer in the Slow and Release Preview rings to identify and fix bugs and issues. That provides an opportunity to experiment with WSL 2 and look at how it will fit into your toolchain.
There's a big change at the heart of WSL 2. Instead of using a translation layer to convert Linux kernel calls into Windows calls, WSL 2 now offers its own isolated Linux kernel running on a thin version of the Hyper-V hypervisor. The WSL 2 hypervisor is similar to that used by the Windows Sandbox, letting Windows and Linux share the same timers to avoid one OS dominating the other. That allows Linux files to be hosted in a virtual disk with a Linux native ext4 file system using the 9p protocol for interactions between Windows and Linux.
It's important to note that using WSL 2 and the Windows hypervisor platform can affect using other virtualisation tools with Windows. Make sure you have one that can work with Hyper-V before you switch to WSL 2.
You're not getting the latest and greatest Linux kernel with WSL 2. Microsoft has made the decision to base it on the Kernel.org long-term support releases. Initially that means using Linux 4.19, with plans to rebase on new releases as they enter LTS. Microsoft has made its own modifications, keeping memory use to a minimum and only supporting specific devices. You shouldn't expect Microsoft to add additional device support -- it's not building a Linux desktop, only providing a way of running Linux binaries in Windows with a focus on developers building applications for cloud-hosted Linux systems.
With a WSL 2 install the virtual disk is initially limited to 256GB. If you need more space, you have to use Windows' DiskPart tool to resize the VHD manually. Once the disk has been resized, you then need to use Linux's filesystem tools to resize its file system. In practice, 256GB should be enough for most purposes -- especially if you're passing files to and from Windows, and using Windows tools alongside Linux.
Running in a thin hypervisor gives WSL 2 some advantages over traditional virtual machines. Microsoft can preload much of the OS in memory before starting up, giving it a very fast boot time. The intent is to give WSL 2 the feel of an integrated Windows command-line application, and by booting quickly it's possible to go from startup to working in only a few seconds.
WSL 2, here running Ubuntu 18.04.3 on Windows 10, now uses an isolated Linux kernel running on a thin version of Hyper-V.
Image: Simon Bisson/TechRepublic
Microsoft has significantly extended the utility of the underlying WSL management tooling by adding more features to the wsl command that manages the WSL service, bringing in commands that were previously part of wslconfig. You can now use it to switch a distribution downloaded from the Windows Store between WSL 1 and WSL 2, as well as defining which is the default WSL distribution. There's no change to the wsl.conf files used to manage WSL 1 installs, so you can use the same configuration files to mount drives and setup network configurations.
SEE:Windows 10: A cheat sheet(TechRepublic)
Moving from a translation layer to a virtual machine does affect how WSL 2 works with networking, and that can disrupt using tools like X410 for X-based graphical applications. Currently shared loopback addresses are only shared one way, from Windows to WSL. Internally WSL has its own IP address, and if you're configuring X you need a script to automatically set the DISPLAY environment variable before launching any X application in WSL 2.
Microsoft's new Terminal is another part of the WSL 2 story. It's a big update on the old Windows command-line experience, with support for it, for PowerShell, for Azure's Cloud Shell, and for all your WSL installs, both WSL 1 and WSL 2. Reworking the Windows Terminal adds support for console text effects, so you can use more Linux applications without worrying about display compatibility. Some features, like graphical backgrounds, show how customisable the Terminal is, while others, like the ability to split terminals into multiple panes, add features that mimic classic Unix features.
The Windows Terminal brings a new monospaced console font to Windows, Cascadia Code. It's an important update to the original Windows terminal fonts, making consoles easy on the eye. While not yet the default, it's actually well worth switching your terminal configurations to use the new font. Cascadia is installed alongside the Windows Terminal, although if you want to manage your own installs you can find the font on GitHub.
One important development has been the release of remote editing for Visual Studio Code, available in both WSL 1 and WSL 2. Using the WSL release of Ubuntu, type 'code' to launch Visual Studio Code. The first time you do this it'll download the server components into your WSL install. Now when you need to edit a file in WSL all you need to do is type 'code
If you're using the new Docker Desktop tools with WSL 2, you can use this integration to work directly with your Linux containers from the Windows desktop. While it's still very much in beta, Docker Desktop shows promise, if only to indicate that enterprise software platforms are looking very closely at WSL, and at the benefits of a hybrid operating system.
Microsoft's switch to hosting WSL on Hyper-V is a step forward; it allows it to quickly support changes to the Linux kernel without having to modify its Windows integration layer and offering complete API support to Linux binaries. The result is an effective hybrid of the two operating systems, especially once you get WSL 2 working with X. But don't expect it to be a complete Linux desktop for every user: WSL remains targeted at developers who want to bring existing macOS- and Linux-based UNIX toolchains to Windows to build containers for cloud-native applications.
Be your company's Microsoft insider with the help of these Windows and Office tutorials and our experts' analyses of Microsoft's enterprise products. Delivered Mondays and Wednesdays
- Two new higher education institutions select OnBase hosted in the Hyland Cloud - PRNewswire - February 27th, 2020
- Cloud Hosting Service Market Types and Applications Outlook, Industry Drivers, Ongoing Trends, Future Demand, Challenges, Top Companies & Forecast... - February 27th, 2020
- Alibaba to give out free cloud to help businesses affected by Coronavirus - Data Economy - February 27th, 2020
- Arizona Health Information Exchange Launches NextGen Healthcare Health Data Hub to Improve the Physician Experience and Enhance Patient Care - Yahoo... - February 27th, 2020
- Financial organisations leading the way for hybrid cloud, Nutanix finds - DataCentreNews Europe - February 27th, 2020
- LINX Cardiff Becomes LINX Wales as Regional Internet Exchange Welcome NGD to the Network - RealWire - February 27th, 2020
- ServerCentral Turing Group and Digital Realty Expand Partnership for Hybrid Cloud Solutions - HostReview.com - February 27th, 2020
- How CPAs Can Have a Stronger IT Infrastructure - Accountingweb.com - February 22nd, 2020
- Cohere Cyber Secure announces Fully Integrated "Cyber-Managed Security as a Service" Targeting High-Demand Enterprises in Healthcare and... - February 22nd, 2020
- Software Asset Management Market 2020 Analysis, End Users, Business Growth, Top Key Players and Forecast to 2025 - News Times - February 22nd, 2020
- Cloud Hosting Service Market Insights with Statistics and Growth Prediction 2020 to 2026 - Instant Tech News - February 21st, 2020
- Will VMware's New Fees Trigger Rush to the Cloud? - Toolbox - February 21st, 2020
- Infoblox Core DDI and Cloud Platform appliance products are now certified as Nutanix Ready - Help Net Security - February 21st, 2020
- HMRC chief gives thumbs up to five-year cloud migration programme - PublicTechnology - February 21st, 2020
- How can government manage the growing digital market choice? - The Mandarin - February 21st, 2020
- The long read: 20 years in ITS - Highways Magazine - February 21st, 2020
- ResellerClub Turns 14, Celebrates With Big Birthday Bash Sale on Web Hosting and Servers - Yahoo Finance - February 18th, 2020
- Will Gaia-X deliver the independent cloud network Europe needs? - Techerati - February 18th, 2020
- 6 reasons why the cloud is great for your business - Techaeris - February 18th, 2020
- When Robotic Process Automation (RPA) bots break: 3 things to know - The Enterprisers Project - February 18th, 2020
- Right Networks Partners with Fintainium to Streamline Cloud-Based Accounting Services - JSA - February 18th, 2020
- STG Announces Partnership with Infosys Finacle to Bring Powerful Cloud Native Banking Platform to US Community Banks - PR Web - February 18th, 2020
- The Best Cloud Web Hosting Services for 2020 | PCMag - February 17th, 2020
- Mahomes Tech Interview Why Has This Web Hosting Company Become A Leader - Instant Tech News - February 17th, 2020
- Data Center Outsourcing and Hybrid Infrastructure Managed Services Market To Wi - News by aeresearch - February 17th, 2020
- Business Process as a Service Market Is Thriving Worldwide with CA technologies, Dell, International Business Machines - Nyse Nasdaq Live - February 17th, 2020
- Take care of ERP data security when moving to the cloud - TechTarget - February 17th, 2020
- Dish gets its day in the sun, becomes No. 4 US wireless carrier - FierceWireless - February 17th, 2020
- Three-year-old partner Solution Tech buys thirty-year-old partner Modern Computer System - CRN Australia - February 17th, 2020
- Cloud Hosting Service Providers Market investigated in the latest research - WhaTech Technology and Markets News - February 13th, 2020
- Mastering the complexity of multi-cloud in 2020 - Intelligent CIO ME - February 13th, 2020
- Weather Source uses Snowflake to keep ahead of extreme weather - ComputerWeekly.com - February 13th, 2020
- Video Hosting Software Market Investigation Highlights Growth Trends in the Coming Years: Wistia, Vimeo, BombBomb - Nyse Nasdaq Live - February 13th, 2020
- Innovative Report on Cloud-based Database Market with Competitive Analysis, New Business Developments and Top Companies: Amazon Web Services, Google,... - February 13th, 2020
- One.com buys its second Nordics web hosting firm in months - Data Economy - February 13th, 2020
- alwaysAI now open to meet growing demand from computer vision developers - PR Web - February 13th, 2020
- Matic nodes now available for deployment on the Ankr cloud - CryptoNinjas - February 10th, 2020
- The National Archives is looking for some more cloud - FedScoop - February 10th, 2020
- UKCloud survey reveals why public sector organisations are turning to multi-cloud - Intelligent CIO Africa - February 10th, 2020
- Build your own cloud infrastructure with Nextcloud and Collabora - IT PRO - February 10th, 2020
- Web hosting firms to take down unsavoury content without court orders - Law Society of Ireland Gazette - February 10th, 2020
- The Top 7 Google Cloud Books You Need to Read in 2020 - Solutions Review - February 8th, 2020
- Teresa Carlson, AWS Worldwide Public Sector VP, Named to 2020 Wash100 for Cloud Innovation, Business Expansion and New Educational Platforms -... - February 8th, 2020
- 7 online courses that will help you improve your technical skills - Ladders - February 8th, 2020
- Cloud Technology Solutions CEO on keeping pace with Google Clouds growth - NS Tech - February 8th, 2020
- Anurag Goel on Cloud Native Platforms, Developer Experience, and Scaling Kubernetes - InfoQ.com - February 8th, 2020
- Goodbye Google: Is it possible to live online without Google? - Stuff Magazines - February 8th, 2020
- 5 Companies That Came To Win This Week - CRN: Technology news for channel partners and solution providers - February 8th, 2020
- Azubuike named Kareem Abdul-Jabaar Center of the Year Award finalist - Salina Post - February 8th, 2020
- WIPL enters into partnership with Plesk to offer fully integrated cloud hosting services in India - Web Hosting | Cloud Computing | Datacenter |... - February 6th, 2020
- What Type of Server Provides the Highest ROI? - Techiexpert.com - TechiExpert.com - February 6th, 2020
- Health Care Cloud and Hosting Market likely to touch new heights by end of fore - News by aeresearch - February 6th, 2020
- Health Care Cloud And Hosting Market 2020 Industry Trends, Opportunities and Forecast to 2026 - Instant Tech News - February 6th, 2020
- The 20 Coolest Cloud Infrastructure Companies Of The 2020 Cloud 100 - CRN: Technology news for channel partners and solution providers - February 6th, 2020
- Five benefits of colocation: Why it should be part of your hybrid cloud strategy - Intelligent CIO ME - February 6th, 2020
- What Are the Benefits of Using Cloud Hosting Over Traditional One? - India West - January 30th, 2020
- IT Solutions & Services Provider Technologent Partners with Armor to Bring Cloud Security and Compliance Solutions to its Customers - Yahoo... - January 30th, 2020
- Hotel Operations in The Cloud: What Are Your Options? - Hospitality Net - January 30th, 2020
- Five New Domain Extensions Coming from XYZ in 2020 - Web Hosting | Cloud Computing | Datacenter | Domain News - Daily Host News - January 30th, 2020
- Hit Rail awarded hosting and operation of ProRail Common Interface - Global Railway Review - January 30th, 2020
- 4 contact center trends that drive customer experience - TechTarget - January 30th, 2020
- Improving Information Security with ISO 27001 - IDM.net.au - January 30th, 2020
- The 3 fundamentals of hybrid cloud architecture management - TechTarget - January 30th, 2020
- Data Protection Day: Why protection is better than a cure - Verdict - January 30th, 2020
- 2020 vision: edtech in 2020 with Ashley Cartwright - Education Technology - January 30th, 2020
- Cybersecurity in 2020: The rise of the CISO - MIT Technology Review - January 30th, 2020
- 'Financing the Future' with Barry Gross, Partner at BCLP Law - Finvest Summit Special - Data Economy - January 30th, 2020
- Ways In Which Cloud Hosting Affects SEO Services And Results - HostReview.com - January 13th, 2020
- Home Office reinforces commitment to AWS with 100m cloud hosting deal - ComputerWeekly.com - January 13th, 2020
- The biggest govtech deals of the week (13/01/20) - NS Tech - January 13th, 2020
- Lost in Migration? Attributing carbon when outsourcing to cloud - Data Economy - January 13th, 2020
- UKCloud announces new discounts to help organisations thrive and build an increasingly independent national capability - RealWire - January 13th, 2020
- How Cloud Computing is Driving the Industrial Revolution 4.0 - Elets - January 13th, 2020
- Informatica expands its leadership team and appoints Amit Walia as CEO - Data Economy - January 8th, 2020
- Enhancing Hyperscale Cloud Growth at the infra // STRUCTURE Summit - Yahoo Finance - January 8th, 2020
- Green House Data Adds Digital Transformation Expert Victor Tingler to Executive Team to Lead Enterprise Consulting Services - Yahoo Finance - January 8th, 2020
- Five Things To Do in St. Cloud, Jan. 13-17 - SC Times - January 8th, 2020
- FASB cloud computing cost standard to soon take effect - Compliance Week - January 3rd, 2020
- Amazon, Google, Microsoft: Who had the best year in cloud in 2019? - The Register - January 3rd, 2020
- Recovery In The Cloud: An Online Alternative To Face-To-Face AA Meetings - Forbes - January 3rd, 2020