snapshot tree question

This is for discussing general topics about how to use VirtualBox.
Post Reply
faicker
Posts: 3
Joined: 19. Mar 2012, 15:19

snapshot tree question

Post by faicker »

when I read manual about "Differencing images",
in a snapshot tree,the below is the parent? or the upper is the parent?
thanks.
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: snapshot tree question

Post by mpack »

The upper is the parent.
faicker
Posts: 3
Joined: 19. Mar 2012, 15:19

Re: snapshot tree question

Post by faicker »

in the manual "Differencing images" abount snapshots, " If you later delete a snapshot in order to free disk space, for each disk attachment, one of the differencing images becomes obsolete. In this case, the differencing image of the disk attachment cannot simply be deleted. Instead, VirtualBox needs to look at each sector of the differencing image and needs to copy it back into its parent; this is called "merging" ",
and manual "VBoxManage snapshot", " The delete operation deletes a snapshot (specified by name or by UUID). This can take a while to finish since the differencing images associated with the snapshot might need to be merged with their child differencing images. ",
these confused me !!
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: snapshot tree question

Post by mpack »

I agree that is one complex paragraph. Very hard to read without being thoroughly immersed in the context.

It may help if you stop thinking of snapshots as files. Yes, I do it too when it's convenient, but I'm always aware that I'm using an inaccurate shorthand.

A snapshot in reality is just a marker. If you could imagine a timeline of all the changes made to a VM, then the snapshot is like a little flag that marks one point on that timeline. It is saying that if you do a "revert" then everything after that point on the timeline will be lost. This marker is implemented as frozen files from before the marker, and difference files hold changes made after the marker. - But you shouldn't worry about how it's implemented, you should only worry about how it functions.

Now interpret the cited paragraph in this way: if the marker is deleted then the difference file, which used to describe changes after the marked time, is now redundant, so the changes stored in the difference file can be copied to a neighboring file and the redundant file can be deleted.
faicker
Posts: 3
Joined: 19. Mar 2012, 15:19

Re: snapshot tree question

Post by faicker »

mpack wrote:I agree that is one complex paragraph. Very hard to read without being thoroughly immersed in the context.

It may help if you stop thinking of snapshots as files. Yes, I do it too when it's convenient, but I'm always aware that I'm using an inaccurate shorthand.

A snapshot in reality is just a marker. If you could imagine a timeline of all the changes made to a VM, then the snapshot is like a little flag that marks one point on that timeline. It is saying that if you do a "revert" then everything after that point on the timeline will be lost. This marker is implemented as frozen files from before the marker, and difference files hold changes made after the marker. - But you shouldn't worry about how it's implemented, you should only worry about how it functions.

Now interpret the cited paragraph in this way: if the marker is deleted then the difference file, which used to describe changes after the marked time, is now redundant, so the changes stored in the difference file can be copied to a neighboring file and the redundant file can be deleted.
oh,i see.Thank you for your reply. :P
Post Reply