VERR_VD_IMAGE_READ_ONLY error

Discussions related to using VirtualBox on Windows hosts.

VERR_VD_IMAGE_READ_ONLY error

Postby spiffikins » 18. May 2009, 23:22

Hi all -

I am trying to set up a guest 32bit WinXP vm using virtualbox, on my 64bit Vista Home laptop. Everything seemed to be going well - I set up the VM, installed XP and was running it last night without issues. Then I rebooted my machine and logged in this morning, and now when I try to start the winXp guest system, I get the following error:

Failed to start the virtual machine xp

failed to open image 'C:\Program Files\Sun\XVM VirtualBox\images\xp32.vdi' for writing due to wrong permissions (VERR_VD_IMAGE_READ_ONLY).

Failed to attach driver below us! Image is read-only.
(VERR_VD_IMAGE_READ_ONLY).

PIIX3 cannot attach drive to the Primary Master
(VERR_VD_IMAGE_READ_ONLY).

Unknown error createing VM (VERR_VD_IMAGE_READ_ONLY).

Details:
Result code: E_FAIL (0x80004005)
Component: console
Interface: Iconsole (huge string of numbers/letters)

I am running Virtualbox 2.2.2 and this happened once last night, but I had de-installed and reinstalled virtualbox, so figured it was something I had done - so I rebuilt the virtual machine. This time, I didn't do anything except shut down the machine and restart it a few times.

I did check the obvious - the .vdi file is *not* read only. I've tried starting up virtual box as myself and as administrator, but starting as administrator gives a bunch of other errors - and I installed it as myself.

I tried googling for this error message but only get changesets - nothing to indicate what I should be doing to fix it

any help would be greatly appreciated!
spiffikins
 
Posts: 3
Joined: 18. May 2009, 23:14
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: WinXP

Re: VERR_VD_IMAGE_READ_ONLY error

Postby vbox4me2 » 18. May 2009, 23:30

Did you install vbox as administrator? this is a must even if your own account is admin equal.
vbox4me2
Volunteer
 
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam

Re: VERR_VD_IMAGE_READ_ONLY error

Postby spiffikins » 19. May 2009, 06:45

thanks for that idea - I had not explicitly installed as administrator. I uninstalled virtualbox and reinstalled it - and the guest xp host now starts up.

I'm not sure why it would have started up before? I guess I'll be skeptical that this fully solves my problem until I've had a couple of cycles of rebooting and having the vm start up :)
spiffikins
 
Posts: 3
Joined: 18. May 2009, 23:14
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: WinXP

Re: VERR_VD_IMAGE_READ_ONLY error

Postby spiffikins » 19. May 2009, 23:26

Unfortunately, that didn't work.

I uninstalled virtualbox last night, reinstalled it as the administrator, and all was happy.

I shut everything down, and today after restarting, I tried starting up the guest host in virtualbox and got the same error.

I cannot seem to get the installation to function past a reboot/shutdown cycle - each time I want to use it, I need to uninstall and reinstall virtualbox - the .vdi continues to work - but the program itself needs to be reinstalled daily to get past this error.
spiffikins
 
Posts: 3
Joined: 18. May 2009, 23:14
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: WinXP

Re: VERR_VD_IMAGE_READ_ONLY error

Postby vbox4me2 » 19. May 2009, 23:38

Reinstall VBox again and select repair, if that doesn't do it their must be some sort of policy reverting installations.
vbox4me2
Volunteer
 
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam

Re: VERR_VD_IMAGE_READ_ONLY error

Postby mshahid » 20. May 2009, 10:25

I encountered the same error. My VirtualBox was locked and I had to forcefully terminate the process. After that when I restarted my virtualbox and started getting this same error. I believed that some kind of "status flag" was not reset and VDI was in readonly mode. I am unable to find any way to clear that "flag." I used VBoxManage to create a clone of my hd in VHD format. I wanted to make sure the new image doesn't inherit any VDI header that's why I changed the output format.

VBoxManage clonevdi \VirtualBox\Ubuntu\ubuntu.vdi --format VHD \VirtualBox\Ubuntu\ubu.vhd

I mounted this new image to my virtual machine and voila! It worked perfectly.

I may create another clone from this VHD back to VDI format and I'm sure that would work as well.

Shahid
mshahid
 
Posts: 1
Joined: 20. May 2009, 10:13
Primary OS: MS Windows 2008
VBox Version: PUEL
Guest OSses: Ubuntu 9.0.4

Re: VERR_VD_IMAGE_READ_ONLY error

Postby steodatus » 5. Jul 2009, 05:52

had the same problem on vista 64 business. if you start virtualbox as administrator, it goes away. right-click the virtualbox icon (i do it from the quicklaunch toolbar) and choose "run as administrator".
steodatus
 
Posts: 1
Joined: 5. Jul 2009, 05:48
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: WINDOWS 7, FEDORA 11

Re: VERR_VD_IMAGE_READ_ONLY error

Postby TerryE » 5. Jul 2009, 13:15

My only Q is why you are creating your images in a subdirectory to C:\Program Files\Sun\XVM VirtualBox\? User data does not belong under C:\Program Files\ and this highly deprecated. I would suspect that normal user accounts no longer have write access to this hierarchy.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
TerryE
Volunteer
 
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS

Re: VERR_VD_IMAGE_READ_ONLY error

Postby serg36 » 28. Jul 2009, 02:32

You simply need to detach disk in Disk Management. :)
serg36
 
Posts: 1
Joined: 28. Jul 2009, 02:30
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Vista x86

Re: VERR_VD_IMAGE_READ_ONLY error

Postby paulellis » 11. Aug 2009, 10:55

spiffikins wrote:Unfortunately, that didn't work.

I uninstalled virtualbox last night, reinstalled it as the administrator, and all was happy.

I shut everything down, and today after restarting, I tried starting up the guest host in virtualbox and got the same error.

I cannot seem to get the installation to function past a reboot/shutdown cycle - each time I want to use it, I need to uninstall and reinstall virtualbox - the .vdi continues to work - but the program itself needs to be reinstalled daily to get past this error.


I think you need to run as administrator rather than just install as admin. It works the first time after install because you had 'Run after install' checked and you were still admin when it started up. Right-click on the desktop/start menu icon and select 'Run as Adminstrator'.

Paul
paulellis
 
Posts: 1
Joined: 11. Aug 2009, 10:46
Primary OS: MS Windows Vista
VBox Version: PUEL
Guest OSses: Ubuntu, openSUse, Win7

Re: VERR_VD_IMAGE_READ_ONLY error

Postby cstehno » 23. Dec 2009, 23:53

I had the same issue while using Windows 7. It turned out to be a permissions issue for the VDI file. Gave localhost\Users full access to the file in the Security settings and that did the trick.
cstehno
 
Posts: 1
Joined: 21. Jul 2009, 20:41
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu

Re: VERR_VD_IMAGE_READ_ONLY error

Postby amagard » 7. Feb 2010, 18:55

I had the same problem ( trying to install a WIN 95 guest on a WIN VISTA host ). It turned out that the read attribute had been set for my floppy images :shock: ( not sure when and how ). After turning it off problem was fixed.

Regards .... Axel
amagard
 
Posts: 16
Joined: 21. Dec 2008, 15:36

Re: VERR_VD_IMAGE_READ_ONLY error

Postby Donsaka » 8. Oct 2013, 07:47

Serg36! You sir are a genius! Why they don't tell us that when we are setting it up as newbs the first time I'd sure like to know. That and only that killed the error and made it work. Thanks. I really appreciate it. With this working I wont have to dual boot to XP just to get my email. Meh :(
You are a lifesaver!!!!!
Donsaka
 
Posts: 1
Joined: 8. Oct 2013, 07:45

Re: VERR_VD_IMAGE_READ_ONLY error

Postby mpack » 8. Oct 2013, 10:58

Most of the above thread is obsolete. Be warned that VirtualBox v4 equivalents use different commands, and the folder structure has totally changed.

Locking this.
mpack
Site Moderator
 
Posts: 26561
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: No registered users and 41 guests