12

Virtualbox: 虚拟机在创建快照后就打不开了,错误码 (0x80004005)

 3 years ago
source link: https://blog.chaofan.io/archives/virtualbox-%e8%99%9a%e6%8b%9f%e6%9c%ba%e5%9c%a8%e5%88%9b%e5%bb%ba%e5%bf%ab%e7%85%a7%e5%90%8e%e5%b0%b1%e6%89%93%e4%b8%8d%e5%bc%80%e4%ba%86%ef%bc%8c%e9%94%99%e8%af%af%e7%a0%81-0x80004005
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
主页 › Virtualbox: 虚拟机在创建快照后就打不开了,错误码 (0x80004005)

Virtualbox: 虚拟机在创建快照后就打不开了,错误码 (0x80004005)

本站内容版权属于本人。转载须告知本人,写明出处,并在文首提供指向本站对应文章的链接。
本文链接:Virtualbox: 虚拟机在创建快照后就打不开了,错误码 (0x80004005)

最近用VirtualBox的时候遇到了这个问题,上网搜到了解决方案。原文链接: https://michlstechblog.info/blog/virtualbox-no-boot-after-snapshot-efail-0x80004005/

以下是原文:

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

浏览人数: 343

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK