WSL2 fails to mount C:\Program Files\WSL\system.vhd with HCS/ERROR_NOT_FOUND when converting distro to version 2
Open
Nobody has claimed this yet.
install
- Dominant language
- C++
- Stars
- 33.7k
- Forks
- 1.8k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 116
Description
Windows Version
Windows 11 23H2 OS Build 22631.4169
WSL Version
2.6.3.0
Are you using WSL 1 or WSL 2?
- WSL 2
- WSL 1
Kernel Version
6.6.87.2-1
Distro Version
Ubuntu 24.04.4
Other Software
No response
Repro Steps
wsl --set-default-version 1wsl --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 --versionworks normallywsl --install -d Ubuntufails under WSL2 path, but succeeds under WSL1Microsoft-Windows-Subsystem-Linuxis EnabledVirtualMachinePlatformis EnabledDISM /Online /Cleanup-Image /RestoreHealthcompleted successfullysfc /scannowfound no integrity violationsC:\Program Files\WSL\system.vhdexistsnet start vdswas tried, but the issue remained
Diagnostic Logs
I collected logs with collect-wsl-logs.ps1.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the documented commands, especially wsl --set-version Ubuntu 2, and review the collected WslLogs-2026-03-20_21-00-35.zip alongside the reported system.vhd path and HCS error. Done means Ubuntu converts from WSL1 to WSL2 successfully without the mount failure.
Written by the indexing model from the issue text.
Assessment
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100