Failed to create hard disk image - VERR_ACCESS_DENIED

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Strydez
Posts: 4
Joined: 25. Jun 2021, 08:47

Failed to create hard disk image - VERR_ACCESS_DENIED

Post by Strydez »

I'm getting the following error after clicking create in the create virtual hard disk page

Code: Select all

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.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Failed to create hard disk image - VERR_ACCESS_DENIED

Post 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.
Strydez
Posts: 4
Joined: 25. Jun 2021, 08:47

Re: Failed to create hard disk image - VERR_ACCESS_DENIED

Post 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
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Failed to create hard disk image - VERR_ACCESS_DENIED

Post 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.
Strydez
Posts: 4
Joined: 25. Jun 2021, 08:47

Re: Failed to create hard disk image - VERR_ACCESS_DENIED

Post by Strydez »

attached
Attachments
fdbbcb2e4bccc46cf6c556d7cb129b09.jpg
fdbbcb2e4bccc46cf6c556d7cb129b09.jpg (91.28 KiB) Viewed 7172 times
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Failed to create hard disk image - VERR_ACCESS_DENIED

Post 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.
Strydez
Posts: 4
Joined: 25. Jun 2021, 08:47

Re: Failed to create hard disk image - VERR_ACCESS_DENIED

Post 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?
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Failed to create hard disk image - VERR_ACCESS_DENIED

Post 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.
Post Reply