Ticket #6388 (closed defect: fixed)
delete snapshot deletes primary master disk
|Reported by:||rkit||Owned by:|
|Version:||VirtualBox 3.1.4||Keywords:||delete snapshot|
In a szenario with differencing disks and snapshots deleting the last snapshot removes the primary master disk for the VM.
I have disks as follows:
Windows XP core disk --- Windows XP Base disk (differencing disk with Windows XP core disk as parent)
The VM 'Windows XP Base' uses 'Windows XP Base Disk' as primary master.
Two snapshots are created:
snapshot 1 ---- snapshot 2 --------current state
I then tried to delete snapshots 1 and 2 and merge their contents into 'Windows XP Base disk'. Deleting snapshot 2 (which is very small) leaves
snapshot 1 ---- current state
and everything looks normal.
Deleting snapshot 1 takes longer to merge and leaves only 'current state', but disk 'Windows XP Base disk' is gone. The VM is based on a disk in the machine's snapshot directory, which has 'Windows XP Core disk' as parent.
The VM is no longer bootable, VB reports that ntoskrnl.exe cannot be found.
I didn't try it yet, but it seems that restoring the VM from a backup would need heavy editing of the XML files, because the VMs information is not only kept in the <machine>.xml, but is strongly connected to the disk / snapshot hierarchy definition in the <MediaRegistry> within the Virtualbox.xml file.
- Status changed from new to closed
- Resolution set to duplicate
- Status changed from closed to reopened
- Resolution duplicate deleted