Deleting old snapshots

This is for discussing general topics about how to use VirtualBox.
Post Reply
ReyJavikVI
Posts: 39
Joined: 26. May 2009, 00:21
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu, Windows 7, Gentoo

Deleting old snapshots

Post by ReyJavikVI »

Since I've been doing a lot of complicated stuff in a VM, I took a lot of snapshots. But I no longer need the older ones, because I didn't make any mistakes so they weren't necessary. How do I delete them?

EDIT: Another question: Can I revert to a previous snapshot but keep a backup of the current state? Suppose I make a snapshot before installing a program. The program doens't work right, and I think reinstalling it may be a solution. I'd have to load the previous snapshot, but I want to keep the current state of the VM saved.
ReyJavikVI
Posts: 39
Joined: 26. May 2009, 00:21
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu, Windows 7, Gentoo

Re: Deleting old snapshots

Post by ReyJavikVI »

Anybody?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Deleting old snapshots

Post by Perryg »

ReyJavikVI wrote:Since I've been doing a lot of complicated stuff in a VM, I took a lot of snapshots. But I no longer need the older ones, because I didn't make any mistakes so they weren't necessary. How do I delete them?

EDIT: Another question: Can I revert to a previous snapshot but keep a backup of the current state? Suppose I make a snapshot before installing a program. The program doens't work right, and I think reinstalling it may be a solution. I'd have to load the previous snapshot, but I want to keep the current state of the VM saved.

The first thing I would do to preserve what you have is to export the good working VM. Since this will not include the snapshots you will have a good working final version and can import it again if something goes wrong or simply use it for the final version. Deleting the old snapshots are doable, saving them and using them again are not.
ReyJavikVI
Posts: 39
Joined: 26. May 2009, 00:21
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu, Windows 7, Gentoo

Re: Deleting old snapshots

Post by ReyJavikVI »

If I delete old snapshots, I don't want to revert back to them. How do I delete them?

And thanks for the other answer.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Deleting old snapshots

Post by Perryg »

Because this is a very confusing area you should read section 3.4.4. Snapshots of the Users Guide to make sure that you understand it. This can not be undone and can (if not done correctly) kill your VM (the reason to export it so you have a known good copy). What I do is to click on one and then right click and select discard, now be sure and click on the snapshot only. I know it says that it will merge them which makes no sense to me but if you think about it the current state is really a copy of all of them. At least that is the way they explained it me.
alukin
Posts: 17
Joined: 4. Jul 2009, 13:27
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win XP, Fedora 12

Re: Deleting old snapshots

Post by alukin »

Only HD image file is really matters. You can even delete entire virtual machine if you do not like it. It is safe. Deleting snapshot does not affect guest
OS disk. If your guest OS is so weak that it can not survive "reset" button, you can get some problems with deleting snapshot. But most OS'es are aware of front-panel reset button and can survive in such crude environments. :)
Post Reply