Expand description
WSL2 detection, health checks, and provisioning guidance.
Provides:
- WSL2 detection — positive and negative cases, no timeout (VAL-WIN-003, VAL-WIN-004)
- WSL2 provisioning guidance — actionable steps when WSL2 not installed (VAL-WIN-005)
- WSL2 health checks — distro running, ROCm accessible, GPU nodes (VAL-WIN-006)
§Detection Strategy
On Windows: invokes wsl --list --verbose via Command
On Linux: checks /proc/version for “microsoft” or “WSL” indicators
All detection completes within 5 seconds. No panics on missing commands.
Structs§
- WslHealth
Result - Result of a single WSL2 health check.
Enums§
- WslStatus
- Status of WSL2 on the current system.
Functions§
- check_
wsl_ health - Perform WSL2 health checks.
- detect_
wsl2 - Detect WSL2 availability on the current system.
- provisioning_
guidance - Generate provisioning guidance for the given WSL2 status.