﻿id	summary	reporter	owner	description	type	status	component	version	resolution	keywords	cc	guest	host
6388	delete snapshot deletes primary master disk	rkit		"In a szenario with differencing disks and snapshots deleting the last snapshot removes the primary master disk for the VM.
[[BR]]
I have disks as follows: [[BR]]

{{{
Windows XP core disk
--- Windows XP Base disk (differencing disk with Windows XP core disk as parent)
}}}
[[BR]]

The VM 'Windows XP Base' uses 'Windows XP Base Disk' as primary master.
[[BR]]

Two snapshots are created:[[BR]]

{{{
snapshot 1
---- snapshot 2
--------current state
}}}
[[BR]]

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[[BR]]

{{{
snapshot 1
---- current state
}}}
[[BR]]
and everything looks normal. [[BR]]
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. [[BR]]
The VM is no longer bootable, VB reports that ntoskrnl.exe cannot be found.[[BR]]
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.



"	defect	closed	virtual disk	VirtualBox 3.1.4	fixed	delete snapshot		Windows	Windows
