Failed to create hard disk image - VERR_ACCESS_DENIED

Discussions related to using VirtualBox on Windows hosts.

Failed to create hard disk image - VERR_ACCESS_DENIED

Postby Strydez » 25. Jun 2021, 08:48

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

Re: Failed to create hard disk image - VERR_ACCESS_DENIED

Postby mpack » 25. Jun 2021, 10:30

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.
mpack
Site Moderator
 
Posts: 34718
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

Postby Strydez » 25. Jun 2021, 10:49

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

Re: Failed to create hard disk image - VERR_ACCESS_DENIED

Postby mpack » 25. Jun 2021, 11:50

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.
mpack
Site Moderator
 
Posts: 34718
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

Postby Strydez » 25. Jun 2021, 13:11

attached
Attachments
fdbbcb2e4bccc46cf6c556d7cb129b09.jpg
fdbbcb2e4bccc46cf6c556d7cb129b09.jpg (91.28 KiB) Viewed 1225 times
Strydez
 
Posts: 4
Joined: 25. Jun 2021, 08:47

Re: Failed to create hard disk image - VERR_ACCESS_DENIED

Postby mpack » 25. Jun 2021, 15:38

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.
mpack
Site Moderator
 
Posts: 34718
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

Postby Strydez » 25. Jun 2021, 17:27

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

Re: Failed to create hard disk image - VERR_ACCESS_DENIED

Postby mpack » 25. Jun 2021, 19:52

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


Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: Google [Bot] and 51 guests