Microsoft Releases WSL Containers for Windows with User-Level VM Architecture

A modern metallic lock mechanism surrounding a glowing Linux penguin silhouette on a dark blue background.

Microsoft has officially moved WSL Containers out of public preview into general availability. Accessible by updating Windows Subsystem for Linux via the command line, the release ships with the wslc.exe CLI tool and the native WSL Containers API. The release carries the version number WSL 3.0.1 on GitHub, though Microsoft clarified earlier that it is not considered WSL 3.

Command Line and API Features

WSL Containers provides developers with wslc.exe (also accessible via the container.exe alias) to build, run, and manage Linux containers natively on Windows. For programmatic access, Microsoft released the Microsoft.WSL.Containers NuGet package, offering C# and C++/WinRT projections. The API supports standard IO streams, file mounts, networking, and GPU access.

Integration extends to developer tools such as VS Code Dev Containers, VS Code Containers, and .NET Aspire, which can be configured to use wslc as their binary container driver.

Architectural Changes and Performance

Instead of relying on a privileged host service to maintain persistent ownership of container virtual machines, WSL Containers shifts responsibilities to a child process named wslcsession.exe. Running under individual user context, this process creates containers, mounts directories, and binds network ports. Microsoft attributes stronger session isolation and lower privilege exposure to this design.

Each session stores its virtual hard disk within the user's local AppData path. File transfers between the Windows host and containers rely on virtiofs, which Microsoft reports is approximately twice as fast as the plan9 protocol used in standard WSL distros. Network management is handled via an architecture called Consommé, routing VM Ethernet frames into a virtio queue handled by a user-level Windows process to improve compatibility with VPNs and host firewalls.

Enterprise Management and Current Limitations

The general availability release brings IT administration controls. Microsoft Intune can enable or disable WSL Containers and restrict image pulling to approved registries. Microsoft Defender for Endpoint has also been expanded to monitor process, file, and network activity inside container instances. WSL Containers is supported on Windows 10, Windows 11, and Windows Server in production.

Several mature container platform capabilities remain in development. Native support for multi-container orchestration through a wsl compose command is planned for future iterations, and privileged container execution is currently unreleased in the main channel.

AI-generated editorial illustration; not a documentary photograph.

Source: Microsoft’s then-CEO called Linux a cancer, and now Windows 11 ships Linux containers with upgraded WSL

Share this article
FacebookThreadsLinkedInX

Leave a Reply

Your email address will not be published. Required fields are marked *