Skip to content

Feature Request: System-Level (Machine-Wide) WSL Distribution Installation #13983

@ScortYang

Description

@ScortYang

Problem Statement

Currently, WSL distributions are installed per-user, with configurations stored in HKEY_CURRENT_USER and VHD files in user-specific directories. This means each Windows user on the same machine must:

  • Download and install their own copy of the same distribution
  • Maintain separate VHD files, consuming additional disk space
  • Individually configure and update their distributions

This is inefficient for enterprise and multi-user scenarios.

Proposed Solution

Implement a system-level installation option for WSL distributions, similar to VS Code's "System" install mode:

  1. Shared Base Image: A single read-only distribution stored in a system-wide location (e.g., C:\ProgramData\WSL\Distributions\)

  2. Per-User Writable Layer: Each user gets a copy-on-write overlay for their modifications

  3. New CLI Options:

    wsl --install <distro> --system
    wsl --import <name> <path> <file> --system

Use Cases

  • Enterprise Deployment: IT admins deploy pre-configured Linux environments to all workstations
  • Educational Labs: Multiple students sharing the same machine
  • Disk Space Optimization: Avoid duplicating large distribution images across user profiles

Additional Context

This feature would significantly improve WSL adoption in enterprise and multi-user environments. Happy to provide additional details if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions