Virtualbox: fixing VERR_VD_IMAGE_READ_ONLY

Recently I had a crash in my guest OS and my Virtualbox did not like that too much. When I tried to restart the virtual machine machine i got the above error. The VDI had been marked read-only, and it was impossible to boot the machine. IO found the following solution in the Virtualbox forums:

Postby Frank Mehnert » 6. Oct 2010, 13:50

Virtual diskimages must be normally writable, otherwise VirtualBox will refuse to start. However, with

VBoxManage setextradata VM_NAME "VBoxInternal/Devices/piix3ide/0/LUN#0/AttachedDriver/Config/ReadOnly" 1

The exact path to the disk can be found int the VBox.log file in the config tree.
Advertisements
This entry was posted in VirtualBox. Bookmark the permalink.

14 Responses to Virtualbox: fixing VERR_VD_IMAGE_READ_ONLY

  1. Anonymous bin Ich says:

    Thanks! This really helped (because google was giving me strange answers about re-installing virtualbox).

  2. mcduncan.chen@gmail.com says:

    In my case, run VirtualBox as administrator, and no such error pop up anymore.

    • Cuicago Mom says:

      Thank you! Thank you ! Thank you !

      You saved me HOURS of work reinstalling my .OVA file.
      I did select ‘Run as administrator’ and the image loaded and the Vbox was up and running in no time.

      How wonderful of you and this blog to share the knowledge.

  3. suchit says:

    what if my disk type is in SATA primary slot …??/

  4. chase abbington says:

    Thanks! This worked like a charm. Note to anyone–if you’re having problems figuring out which device is the boot device just follow the path in the VM settings in the GUI Manager. Mine was down the AHCI tree.

  5. Marco says:

    Thanks that’s working for me 🙂

  6. Suh says:

    Can someone elaborate on “The exact path to the disk can be found int the VBox.log file in the config tree.” …

  7. Luis Muniz says:

    In my VBox.log files, (inside .VirtualBox\Machines\<Machine>\Logs) I see:

    00:00:01.459 [/Devices/ahci/0/LUN#0/AttachedDriver/Config/] (level 6)
    00:00:01.460 Format = “VDI” (cb=4)
    00:00:01.460 Path = “F:\Virtual machines\HardDisks\aurora2\Aurora-base.vdi” (cb=54)
    00:00:01.460 UseNewIo = 0x0000000000000001 (1)
    0

    So in this case it would be:

    /Devices/ahci/0/LUN#0

  8. caledo says:

    Thanks !! : )

  9. Elimar Oliva says:

    Perfect

  10. Nino Alba says:

    Disable your antivirus for *.vdi

  11. shaz says:

    I still can’t understand what to change and where to change? Where is the option located?

  12. Alex says:

    HERO OF THE DAY! 😀
    Many thanks for the post!

  13. Thanks buddy.. ..The most concise and friendly solution description I could find on the net.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s