Parent vhd info lost during snapshot merge

Discussions related to using VirtualBox on Windows hosts.
Post Reply
940607
Posts: 57
Joined: 24. Sep 2012, 10:32
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: Archlinux
Location: Russia

Parent vhd info lost during snapshot merge

Post by 940607 »

The header of a differencing VHD usually contains path to parent VHD. It is not used by VBox, but is important, if you want to attach a differencing disk to host.
For example:

Code: Select all

original state:
snap   vhd    parent
-----  ------ -------
a      a.vhd    -
b      b.vhd  a.vhd
c      c.vhd  b.vhd

after delete snapshot b:
snap   vhd    parent
-----  ------ -------
a      a.vhd    -
c      c.vhd  b.vhd
If now you try to attach c.vhd with diskpart, it will print:
DiskPart has encountered an error: The chain of virtual hard disks is inaccessible. There was an error opening a virtual hard disk further up the chain.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Parent vhd info lost during snapshot merge

Post by mpack »

IMHO maintaining and verifying the correctness of a file path which VirtualBox has no use for goes beyond what's necessary in supporting a foreign file format.
Post Reply