Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL installation failure #11660

Closed
1 of 2 tasks
Shodhanam opened this issue Jun 5, 2024 · 2 comments
Closed
1 of 2 tasks

WSL installation failure #11660

Shodhanam opened this issue Jun 5, 2024 · 2 comments

Comments

@Shodhanam
Copy link

Windows Version

windows 11 Home

WSL Version

2.1.5.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

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

Copy link

github-actions bot commented Jun 5, 2024

View similar issues

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!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Diagnostic information
Detected appx version: 2.1.5.0
Error while parsing the logs. See action page for details

@Shodhanam
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant