Page 1 of 1

Failed to create hard disk image - VERR_ACCESS_DENIED

PostPosted: 25. Jun 2021, 08:48
by Strydez
I'm getting the following error after clicking create in the create virtual hard disk page

Code: Select all   Expand viewCollapse view
Could not create the medium storage unit 'I:\VirtualBox Machines\dd\dd.vdi'.
VDI: cannot create image 'I:\VirtualBox Machines\dd\dd.vdi' (VERR_ACCESS_DENIED).


Result Code:
VBOX_E_FILE_ERROR (0x80BB0004)
Component:
MediumWrap
Interface:
IMedium {ad47ad09-787b-44ab-b343-a082a3f2dfb1}


I tried running virtual box with administrator but it is of no avail.

Re: Failed to create hard disk image - VERR_ACCESS_DENIED

PostPosted: 25. Jun 2021, 10:30
by mpack
The error message seems quite straightforward to me. Try copying a file (ideally with the same name) to that folder while logged into the same user account. If you can't do it then neither can VirtualBox.

Re: Failed to create hard disk image - VERR_ACCESS_DENIED

PostPosted: 25. Jun 2021, 10:49
by Strydez
I managed to edit the permissions of the folder which allowed the creation of the folder with the name of the machine. However, I'm getting this error now.

I'm able to copy paste a file into the folder
gyazo(*.*)com/fdbbcb2e4bccc46cf6c556d7cb129b09

Re: Failed to create hard disk image - VERR_ACCESS_DENIED

PostPosted: 25. Jun 2021, 11:50
by mpack
If that was an attempt to reference an image hosting site, then we don't allow that. Crop the image so that only important information remains then upload images as local file attachments (see Upload attachment tab when composing a message). Alternatively, just report the text of the error message.

Re: Failed to create hard disk image - VERR_ACCESS_DENIED

PostPosted: 25. Jun 2021, 13:11
by Strydez
attached

Re: Failed to create hard disk image - VERR_ACCESS_DENIED

PostPosted: 25. Jun 2021, 15:38
by mpack
I'm not sure I'd consider the penguin image to be "important information", nor much of the other background stuff. I can barely read the text on the error dialog, but I'm still seeing an "access denied" error from the host OS, which you need to fix in the host OS.

Re: Failed to create hard disk image - VERR_ACCESS_DENIED

PostPosted: 25. Jun 2021, 17:27
by Strydez
The size limit on the forum limits the quality of the image so yeah, I had to downsize it.

How can I solve that access denied problem?

Re: Failed to create hard disk image - VERR_ACCESS_DENIED

PostPosted: 25. Jun 2021, 19:52
by mpack
Strydez wrote:The size limit on the forum limits the quality of the image so yeah, I had to downsize it.

Or you could have cropped it to include only relevant info.

Strydez wrote:How can I solve that access denied problem?

As I said, that's a host OS issue. I can't tell you who owns what folders on your PC. This really has nothing to do with VirtualBox, it merely reports what the host OS is telling it.