Windows Version
Windows 11 23H2 OS Build 22631.4169
WSL Version
2.6.3.0
Are you using WSL 1 or WSL 2?
Kernel Version
6.6.87.2-1
Distro Version
Ubuntu 24.04.4
Other Software
No response
Repro Steps
wsl --set-default-version 1
wsl --install -d Ubuntu
- Ubuntu installs successfully as WSL1
- Run
wsl --set-version Ubuntu 2
Expected Behavior
Ubuntu should convert from WSL1 to WSL2 successfully.
Actual Behavior
Conversion fails with:
无法将磁盘“C:\Program Files\WSL\system.vhd”附加到 WSL2: 找不到元素。
错误代码: Wsl/Service/CreateVm/MountDisk/HCS/ERROR_NOT_FOUND
Additional Notes
wsl --version works normally
wsl --install -d Ubuntu fails under WSL2 path, but succeeds under WSL1
Microsoft-Windows-Subsystem-Linux is Enabled
VirtualMachinePlatform is Enabled
DISM /Online /Cleanup-Image /RestoreHealth completed successfully
sfc /scannow found no integrity violations
C:\Program Files\WSL\system.vhd exists
net start vds was tried, but the issue remained
Diagnostic Logs
I collected logs with collect-wsl-logs.ps1.
WslLogs-2026-03-20_21-00-35.zip