You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Launched the windows powershell (x86) as administrator.
Ran the code wsl --install as guided in the microsoft official website.
The code ran and installed the ubuntu, but while launching the ubuntu it failed to attach to the disk 'C:\Users\shiva\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc\LocalState\ext4.vhdx' to wsl2 : the system cannot find the file specified.
Error code: Wsl/Service/CreateInstance/MountVhd/HCS/ERROR_FILE_NOT_FOUND
Expected Behavior
wsl installed successfully.
Actual Behavior
Failed to attach to disk 'C:\Users\shiva\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc\LocalState\ext4.vhdx' to wsl2 : the system cannot find the file specified.
Error code: Wsl/Service/CreateInstance/MountVhd/HCS/ERROR_FILE_NOT_FOUND
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!
Got lucky solving the issue.
First - 'wsl --unregister ubuntu'
Second - uninstall ubuntu from settings.
Third - Launch "Turn windows feature on or off"
From here the steps worked for me not sure if it will work for everyone.
Fourth - Uncheck Virtual Machine Platform and windows subsystem for linux, press ok and restart the pc.
Fifth - Again turn on (or check) Virtual Machine Platform and turn on windows subsystem for linux, press ok and again restart the pc.
Sixth - Open powershell as administrator and run wsl --install.
Windows Version
windows 11 Home
WSL Version
2.1.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
No response
Distro Version
No response
Other Software
No response
Repro Steps
Launched the windows powershell (x86) as administrator.
Ran the code wsl --install as guided in the microsoft official website.
The code ran and installed the ubuntu, but while launching the ubuntu it failed to attach to the disk 'C:\Users\shiva\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc\LocalState\ext4.vhdx' to wsl2 : the system cannot find the file specified.
Error code: Wsl/Service/CreateInstance/MountVhd/HCS/ERROR_FILE_NOT_FOUND
Expected Behavior
wsl installed successfully.
Actual Behavior
Failed to attach to disk 'C:\Users\shiva\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc\LocalState\ext4.vhdx' to wsl2 : the system cannot find the file specified.
Error code: Wsl/Service/CreateInstance/MountVhd/HCS/ERROR_FILE_NOT_FOUND
Diagnostic Logs
WslLogs-2024-06-05_23-21-20.zip
The text was updated successfully, but these errors were encountered: