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

Updating WSL broke the installation #11013

Closed
1 of 2 tasks
hhalaby opened this issue Jan 12, 2024 · 6 comments
Closed
1 of 2 tasks

Updating WSL broke the installation #11013

hhalaby opened this issue Jan 12, 2024 · 6 comments

Comments

@hhalaby
Copy link

hhalaby commented Jan 12, 2024

Windows Version

Microsoft Windows [Version 10.0.22631.3007]

WSL Version

2.0.14.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.133.1-1

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

I am not sure that these steps will reproduce the error as I can't test it anymore

  • Ran wsl.exe --update from PowerShell. I had temporary admin rights when I ran this command
  • Run WSL after update, some errors reported on terminal but things were running correctly and errors no longer produced in subsequent terminals. (did not bother to log these errors unfortunately)
  • Restart computer with admin rights disabled.
  • WSL does not start

Expected Behavior

WSL starts correctly after update

Actual Behavior

Failed to attach disk 'C:\Program Files\WSL\system.vhd' to WSL2: The system cannot find the file specified.
Error code: Wsl/Service/CreateInstance/CreateVm/MountVhd/HCS/ERROR_FILE_NOT_FOUND

[process exited with code 4294967295 (0xffffffff)]
You can now close this terminal with Ctrl+D, or press Enter to restart.

Diagnostic Logs

I checked the registry for this key:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss and the versions there are older than the ones I get in the terminal using wsl.exe --version .
Registry vs Terminal Versions:

(Default)               REG_SZ      (value not set)
GraphicsVersion         REG_SZ      1.0.27          ==> 1.0.59 (terminal)
KernelVersion           REG_SZ      5.10.102.1      ==> 5.15.133.1-1 (terminal)
NatGatewaylpAddress     REG_SZ      192.168.48.1
NatNetwork              REG_SZ      192.168.48.0/20
RollbackKernelVersion   REG_SZ      5.10.16
SystemDistro            REG_SZ      C:\ProgramData\Microsoft\WSL\system.vhd
VirtioFsClassld         REG_SZ      {DF380B4F-9282-46B6-AAAB-E94BDD7EC5BB}

Copying the file system.vhd from C:\ProgramData\Microsoft\WSL\system.vhd to C:\Program Files\WSL\system.vhd allows WSL to start again normally but I feel like this is a really dirty solution and I don't know what will happen when I update again.

Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

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. Thank you!

Open similar issues:

Closed similar issues:

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

@hhalaby
Copy link
Author

hhalaby commented Jan 12, 2024

It seems like this issue is similar to mine but I have provided more information than the other, I feel like the other could be closed.

All the rest are not the same

@hhalaby
Copy link
Author

hhalaby commented Jan 12, 2024

  • I followed the steps here to solve the issue. Once I completely uninstalled WSL,
  • I installed Ubuntu 22.04 again from the store, upgraded through the terminal from 2.0.9.0 to 2.0.14.0 and a similar error occurred, WSL was not able to find the system.vhd file.
  • I uninstalled completely again, installed through the terminal using wsl --install, updated again and the error didn't appear

@OneBlue
Copy link
Collaborator

OneBlue commented Jan 16, 2024

Closing since the issue is resolved.

@OneBlue OneBlue closed this as completed Jan 16, 2024
@hhalaby
Copy link
Author

hhalaby commented Jan 16, 2024

@OneBlue I don't think reinstalling the kernel from scratch without understanding why it happens can be considered a solution to close the issue

@erSitzt
Copy link

erSitzt commented Jan 18, 2024

@OneBlue same issue here after updating to 2.0.14

please reopen this is not solved, that is a hacky workaround

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

3 participants