23

I've made three snapshots on VirtualBox virtual machine (Windows XP).

I want to go back to Snapshot 2.

  • If I click on "Snapshot 2" and click Start, it goes back to the current state.
  • I can click on "Current State" and "revert to current snapshot" (unclear: what is the "current snapshot", since I have 3 snapshots), but after it is finished, I can't discern what it did exactly and when I click start, it returns to the current state.

How do I go back to Snapshot 2?

alt text

2
  • Typo in question ;-)
    – grrussel
    Oct 28, 2009 at 10:55
  • 1
    @gareth I can't find this menu... Where is it?! I have a snap but I don't see the menu where I can revert to it... Extra dumb today? Jan 24, 2013 at 23:42

5 Answers 5

13

Simply click on the snapshot you want to go back to, then click the "Restore" icon:

enter image description here

Note that your current state will be discarded when you restore a snapshot.

All further snapshots from the restored one will be conserved and you will simply start a new branch of snapshots starting from the restored one.

0
5

I know I'm a little late to answer this question, but maybe you'll still find these thoughts helpful.

As of today (4/30/10), the current version of VirtualBox allows you to revert to any snapshot WITHOUT having to delete child snapshots.

For instance, grrussell suggested that you have to delete snapshot 3 in order to return to snapshot 2. I don't know if this was the case in earlier versions of VirtualBox, but the most current version does not require this.

You can revert to snapshot 2 and make changes, and then either save a new snapshot (which would be a sibling of snapshot 3) or discard your changes and revert to snapshot 3 (or the "base" snapshot, if you so desire).

1

The first answer is incorrect. You can restore ANY snapshot, but it will replace your CURRENT STATE with the new snapshot.

In the example above, if you restore Snapshot 2, it will now become your current snapshot so you've essentially created a branch of Snapshot 2 and Snapshot 3 is a different branch of Snapshot of 2 which is now frozen in time unless you restore Snapshot 3 at some point in the future.

0

As of current version 7.0 this setting is changed.

enter image description here

enter image description here

The text reads:

“You are about to restore snapshot before-Switching-Desktop-Env.

You can create a snapshot of the current state of the virtual machine first by checking the box below; if you do not do this the current state will be permanently lost. Do you wish to proceed?”

1
  • I added text from the image, but it would be much better if you could edit your question to type in an explanation of how things have changed yourself. Feb 2 at 19:03
-1

Afaict, you have to discard the snapshot 3 to return to snapshot 2. See section 3.4.4 of the User manual, downloadable in PDF.

Quote:

To revert to an earlier snapshot, you right-click on the “Current state” item and select “Revert to current snapshot”. This will bring the VM back to the state of the nearest (most recent) snapshot. Similarly, you can merge several earlier snapshots into one by right-clicking on a snapshot and selecting “Discard snapshot”.

Note: The snapshot reverted to will affect the virtual hard drives that are connected to your VM, as the entire state of the virtual hard drive will be reverted as well. This means also that all files that have been created since the snapshot and all other file changes will be lost. In order to prevent such data loss while still making use of the snapshot feature, it is possible to add a second hard drive in “write-through” mode using the VBoxManage interface and use it to store your data. As write-through hard drives are not included in snapshots, they remain unaltered when a machine is reverted. See chapter 5.3, Configuring image write operations, page 78 for details

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .