-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
Description
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:
-
Shared Base Image: A single read-only distribution stored in a system-wide location (e.g.,
C:\ProgramData\WSL\Distributions\) -
Per-User Writable Layer: Each user gets a copy-on-write overlay for their modifications
-
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.
kazukitakamatsu