There are three operations related to snapshots, as follows:
Take a snapshot. This makes a copy of the machine's current state, to which you can go back at any given time later.
If your VM is running:
Select Take Snapshot from the Machine menu in the VM window.
The VM is paused while the snapshot is being created. After snapshot creation, the VM continues to run as normal.
If your VM is in either the Saved or the Powered Off state, as displayed next to the VM name in the machine list:
Display the Snapshots window and do one of the following:
Click Take in the Snapshots window toolbar.
Right-click on the Current State item in the list and select Take.
A dialog is displayed, prompting you for a snapshot name. This name is purely for reference purposes, to help you remember the state of the snapshot. For example, a useful name would be "Fresh installation from scratch, no Guest Additions", or "Service Pack 3 just installed". You can also add a longer text description in the Snapshot Description field.
Your new snapshot will then appear in the snapshots list. Underneath your new snapshot, you will see an item called Current State, signifying that the current state of your VM is a variation based on the snapshot you took earlier. If you later take another snapshot, you will see that they are displayed in sequence, and that each subsequent snapshot is derived from an earlier one.
Restore a snapshot. In the Snapshots window, select the snapshot you have taken and click Restore in the toolbar. By restoring a snapshot, you go back or forward in time. The current state of the machine is lost, and the machine is restored to the exact state it was in when the snapshot was taken.
Restoring a snapshot 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
To avoid losing the current state when restoring a snapshot, you can create a new snapshot before the restore operation.
By restoring an earlier snapshot and taking more snapshots from there, it is even possible to create a kind of alternate reality and to switch between these different histories of the virtual machine. This can result in a whole tree of virtual machine snapshots.
Delete a snapshot. This
does not affect the state of the virtual machine, but only
releases the files on disk that
Whereas taking and restoring snapshots are fairly quick operations, deleting a snapshot can take a considerable amount of time since large amounts of data may need to be copied between several disk image files. Temporary disk files may also need large amounts of disk space while the operation is in progress.
There are some situations which cannot be handled while a VM is running, and you will get an appropriate message that you need to perform this snapshot deletion when the VM is shut down.