Virtualbox: VM does not start after creating a snapshot. EFail (0x80004005)

Hi,

when using vhd disks or when you convert other  disk formats (vmdk, vhd)  to vdi and you create  a snapshot, the virtual machine won’t boot.

An error occurs while starting the vm:

Fehlercode: E_FAIL (0x80004005)
Component: ProgressProxy
Interface: IProgress {c20238e4-3221-4d3f-8891-81ce92d9f913}

In this case the manager for virtual medias shows an error that the parent UUID of the snapshot file does not matches the UUID of parent medium stored in the media registry c:\Users\Username\.virtualbox\VirtualBox.xml.

This can be fixed 🙂 Get the UUID of the parent disk


D:\> vboxmanage internalcommands dumphdinfo harddisk0.vdi
--- Dumping VD Disk, Images=1
Dumping VD image "harddisk0.vdi" (Backend=VHD)
Header: Geometry PCHS=20573/16/255 LCHS=0/0/0 cbSector=512
Header: uuidCreation={b76d8026-e222-470a-9c83-bc91351bb307}
Header: uuidParent={00000000-0000-0000-0000-000000000000}

and the properties the the snapshot:

D:\>vboxmanage internalcommands dumphdinfo "c:\Users\UserName\VirtualBox VMs\VMName\Snapshots\{fdb2b61d-2212-45cc-8d29-b9f598d06f39}.vhd"
--- Dumping VD Disk, Images=1
Dumping VD image "c:\Users\UserName\VirtualBox VMs\VMName\Snapshots\{fdb2b61d-2212-45cc-8d29-b9f598d06f39}.vhd" (Backend=VHD)
Header: Geometry PCHS=20573/16/255 LCHS=0/0/0 cbSector=512
Header: uuidCreation={fdb2b61d-2212-45cc-8d29-b9f598d06f39}
Header: uuidParent={00000000-0000-0000-0000-000000000000}

The parent UUID (00000000-0000-0000-0000-000000000000) isn’t set correctly. Set it to its parent disk:

D:\>VBoxManage.exe internalcommands sethdparentuuid "c:\Users\UserName\VirtualBox VMs\VMName\Snapshots\{fdb2b61d-2212-45cc-8d29-b9f598d06f39}.vhd" {b76d8026-e222-470a-9c83-bc91351bb307}
UUID changed to: b76d8026-e222-470a-9c83-bc91351bb307

From now on your VM should start as expected, also new snapshots are possible.

Michael

Add a comment »29 comments to this article

  1. Very helpfull for me. Thanks a lot.

    Reply

  2. Life (well work) saver. Thanks.

    Reply

  3. Thanks a lot!

    Reply

  4. Thanks so much!

    Reply

  5. Thanks. It works.

    Reply

  6. Thanks, it was very helpful !

    Reply

  7. Thanks. Lifesaver.

    Reply

  8. Thank you. Very helpful..

    Reply

  9. Please help
    VBoxManage.exe: error: Format autodetect failed: VERR_PATH_NOT_FOUND

    Reply

  10. sorry for my english, i`m russian.
    my virtual mashine run some job about 3 month. a take snapshot 20.05.2016.
    two days ago virtual mashine war restart (i dont know why!).
    when i run virtual mashine its run but run as after restart.
    i want return the machine to a state 20/05/2016 and press “restore the snapshot”
    now my virtual mashine dont start:

    Parent UUID {00000000-0000-0000-0000-000000000000} of the medium ‘C:\Users\nik\VirtualBox VMs\XP-nik\Snapshots/{ab4aad8d-7b66-4569-bbfd-facb581deefc}.vhd’ does not match UUID {94b27e89-d561-4449-a1a7-83c2f1dd8d12} of its parent medium stored in the media registry (‘C:\Users\nik/.VirtualBox\VirtualBox.xml’).

    error code:
    E_FAIL (0x80004005)

    MediumWrap

    interface
    IMedium {4afe423b-43e0-e9d0-82e8-ceb307940dda}

    Reply

    • Hi nik,

      start a cmd.exe with Administrator permissions, navigate to the folder where VirtualBox is installed :
      And set the UID by this command:

      VBoxManage.exe internalcommands sethdparentuuid “C:\Users\nik\VirtualBox VMs\XP-nik\Snapshots\{ab4aad8d-7b66-4569-bbfd-facb581deefc}.vhd” {94b27e89-d561-4449-a1a7-83c2f1dd8d12}

      Have tried this?

      Michael

      Reply

  11. Hello. Sorry for long answer.

    Yes i tried this
    C:\Program Files\Oracle\VirtualBox>VBoxManage.exe internalcommands sethdparentuuid “c:\Users\nik\VirtualBox VMs\XP-nik\Snapshots\{ab4aad8d-7b66-4569-bbfd-facb581deefc}.vhd” {94b27e89-d561-4449-a1a7-83c2f1dd8d12}

    VBoxManage.exe: error: Format autodetect failed: VERR_PATH_NOT_FOUND

    Reply

    • Hi Nik,

      does the file exist?

      dir “C:\Program Files\Oracle\VirtualBox>VBoxManage.exe internalcommands sethdparentuuid “c:\Users\nik\VirtualBox VMs\XP-nik\Snapshots\{ab4aad8d-7b66-4569-bbfd-facb581deefc}.vhd”

      Michael

      Reply

  12. Yes, i have 4 files named like this in other directory

    C:\Users\nik.NUTEP\VirtualBox VMs\XP-nik\Snapshots\
    Sorry. my mistake.

    now command is working OK:
    C:\Program Files\Oracle\VirtualBox>VBoxManage.exe internalcommands sethdparentuu
    id “c:\Users\nik.nutep\VirtualBox VMs\XP-nik\Snapshots\{ab4aad8d-7b66-4569-bbfd-
    facb581deefc}.vhd” {94b27e89-d561-4449-a1a7-83c2f1dd8d12}
    UUID changed to: 94b27e89-d561-4449-a1a7-83c2f1dd8d12

    but virtual mashine is not run

    Parent UUID {00000000-0000-0000-0000-000000000000} of the medium ‘C:\Users\nik.NUTEP\VirtualBox VMs\XP-nik\Snapshots/{5ad80a47-8509-4b7d-9955-44bf137a77c7}.vhd’ does not match UUID {94b27e89-d561-4449-a1a7-83c2f1dd8d12} of its parent medium stored in the media registry (‘C:\Users\nik.NUTEP/.VirtualBox\VirtualBox.xml’).

    Error Code:
    E_FAIL (0x80004005)
    Компонент:
    MediumWrap
    Interface:
    IMedium {4afe423b-43e0-e9d0-82e8-ceb307940dda}

    Reply

    • Hi,

      the error in your latest comment refers to an other file as in yout previous comment:-) Try:

      VBoxManage.exe internalcommands sethdparentuuid C:\Users\nik.NUTEP\VirtualBox VMs\XP-nik\Snapshots\{5ad80a47-8509-4b7d-9955-44bf137a77c7}.vhd {94b27e89-d561-4449-a1a7-83c2f1dd8d12}

      Michael

      Reply

  13. sorry i see !!!
    i need change UUID in other vhd file – {5ad80a47-8509-4b7d-9955-44bf137a77c7}.vhd

    now it`s work !!!
    Michael Thank you !!!

    Reply

    • Your welcome 🙂

      Reply

  14. This is the exact fix needed for the longstanding bug in Virtualbox.
    You get these snapshots vhd files that are disconnected from their parents if the parent VHD files are not in the standard VM folder location (that is one directory above the Snapshots folder). This sequence of commands lets you fix the snapshot files

    Reply

  15. Hero! You made my free day!

    Reply

  16. Thank you, you saved my life!

    Reply

  17. Thanks, it works 🙂
    I’ve made a batch script so it gets as easy as it could.

    You can check this pastebin out to make your own script, so you don’t always have to manually make the change: pastebin. com/FGRYmv7F

    Reply

  18. Thank you, this was SUPER HELPFUL

    Reply

  19. Thank you very much, you just saved my ownCloud instance which has my password manager database on it!

    Reply

    • HI BB,

      you’re welcome 🙂

      Michael

      Reply

  20. Super, danke!

    Reply

  21. You made my day! Thank you so much!

    Reply

  22. You save my friday! Thank you so much! 😉

    Reply

  23. Thank you so much!

    Reply

  24. Thanks!It worked!

    Reply

Time limit is exhausted. Please reload CAPTCHA.

Original Theme by Schiy · Powered by WordPress