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

Version 2.3.26 renders my vhdx WSL2 inoperable, revert to 2.3.24 solves the issue. #12264

Open
1 of 2 tasks
secult opened this issue Nov 13, 2024 · 7 comments
Open
1 of 2 tasks
Labels
emailed-logs Logs have been emailed

Comments

@secult
Copy link

secult commented Nov 13, 2024

Windows Version

Microsoft Windows [Version 10.0.22631.4317]

WSL Version

0.0.0.0 but 2.3.26.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.153.1-2

Distro Version

Debian 11

Other Software

Corporate Windows with blocked Microsoft Store.

Repro Steps

After automatic upgrade, described in the event logs as 9P9TQF7MRM4R-MicrosoftCorporationII.WindowsSubsystemforLinux, WSL was nowhere to find. Running wsl.exe gave a message 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.
I use a Debian installation and it's stored at %homedir%\AppData\Local\Packages\TheDebianProject.DebianGNULinux_76v4gfsz19hv4\LocalState\ext4.vhdx, not at the default path.
I tried to pick the distro from the wsl settings, specifying path to the ext4.vhdx file, but it is not possible to pick the vhdx file in the settings, only vhd. After converting I got an E_ACCESSDENIED error, so that was not an option either.

Eventually I reverted back to version 2.3.24.0 and wsl started to work again.

Expected Behavior

I would like to have a working version of WSL after automatic upgrade :-)

Actual Behavior

wsl.exe gives 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
also wsl settings doesn't allow me to pick files with .vhdx suffix

Diagnostic Logs

No response

@secult secult changed the title Version 2.3.26 renders my WSL2 inoperable, revert to 2.3.24 solves the issue. Version 2.3.26 renders my vhdx WSL2 inoperable, revert to 2.3.24 solves the issue. Nov 13, 2024
Copy link

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

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.

Copy link

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

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.

@secult
Copy link
Author

secult commented Nov 13, 2024

/emailed-logs

Copy link

Diagnostic information
Found '/emailed-logs', adding tag 'emailed-logs'

@github-actions github-actions bot added the emailed-logs Logs have been emailed label Nov 13, 2024
@secult
Copy link
Author

secult commented Nov 13, 2024

Custom system distro picker screenshot not giving an option to select vhdx. Not sure whether it's related or anyhow useful.
Image

@TheoGibbons
Copy link

Thanks for posting this 😁, I had the exact same issue, downgrading fixed it.

@dx23366
Copy link

dx23366 commented Nov 13, 2024

Same problem and solution here too. In case anybody is wondering about how you downgrade: just grab the MSI for the version you want from here and install it.

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

No branches or pull requests

3 participants