本文链接:Virtualbox: 虚拟机在创建快照后就打不开了,错误码 (0x80004005)
最近用VirtualBox的时候遇到了这个问题,上网搜到了解决方案。原文链接: https://michlstechblog.info/blog/virtualbox-no-boot-after-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:
1 2 3 |
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
1 2 3 4 5 6 7 8 |
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