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

[Only 2.1.5.0] Error code: Wsl/Service/CreateInstance/MountVhd/HCS/E_ACCESSDENIED #11323

Closed
1 of 2 tasks
RickoNoNo3 opened this issue Mar 19, 2024 · 7 comments
Closed
1 of 2 tasks

Comments

@RickoNoNo3
Copy link

Windows Version

10.0.19045.4170

WSL Version

2.1.5.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

0.15.146.1-2

Distro Version

Ubuntu 22.04 (from imported vhdx)

Other Software

Both Docker and my own distro

Repro Steps

Update from an old WSL version to 2.1.5.0, then starting any of WSL distros will get the Error code: Wsl/Service/CreateInstance/MountVhd/HCS/E_ACCESSDENIED

Downgrading to 2.1.4.0 fully solved it.

Here is another report on StackExchange(not mine) that is same as my issue and is consistent with my solution

Expected Behavior

Run successully

Actual Behavior

Error code: Wsl/Service/CreateInstance/MountVhd/HCS/E_ACCESSDENIED

Diagnostic Logs

No response

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.

@OneBlue
Copy link
Collaborator

OneBlue commented Mar 19, 2024

/logs

@Morrigan-Ship
Copy link

same problem

@rtentser
Copy link

Same problem, downgrading didn't help

UPD1: Update to 2.2.4 helped
UPD2: But after reboot it's broken again
UPD3: So, after reboot it's broken with this error code, but after about 3 minutes of waiting it works
UPD4: Can reproduce with imported from external drive instance, but not with default ubuntu installation

@cramirezmartin
Copy link

cramirezmartin commented Jun 4, 2024

I have the same problem:

Failed to attach disk 'D:\Development\Ubuntu2204\ext4.vhdx' to WSL2: Access is denied.
Error code: Wsl/Service/CreateInstance/MountVhd/HCS/E_ACCESSDENIED

WSL version: 2.1.5.0
Kernel version: 5.15.146.1-2
WSLg version: 1.0.60
MSRDC version: 1.2.5105
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.525

Please help

@Morrigan-Ship
Copy link

i solved:
change full permission of drive that contain *.vhdx file of wsl change permission to everyone with sub folders and subfiles
if its drive c:\ dont do this it will destroy your Windows OS

@FortiJeremy
Copy link

I had the same problem, and was able to just grant full control to "Hyper-V Administrators" for the VHD itself to fix this issue. A little less invasive then granting everyone permissions to the entire drive.

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

No branches or pull requests

6 participants