1 First steps As an exception, if your virtual machine has any snapshots (see the next chapter), you can use this option to quickly restore the current snapshot of the virtual machine. In that case, powering off the machine will not disrupt its state, but any changes made since that snapshot was taken will be lost. The “Discard” button in the VirtualBox Manager window discards a virtual machine’s saved state. This has the same effect as powering it off, and the same warnings apply. 1.9 Snapshots With snapshots, you can save a particular state of a virtual machine for later use. At any later time, you can revert to that state, even though you may have changed the VM considerably since then. A snapshot of a virtual machine is thus similar to a machine in “saved” state, as described above, but there can be many of them, and these saved states are preserved. You can see the snapshots of a virtual machine by first selecting a machine in the VirtualBox Manager and then clicking on the “Snapshots” button at the top right. Until you take a snapshot of the machine, the list of snapshots will be empty except for the “Current state” item, which represents the “Now” point in the lifetime of the virtual machine. 1.9.1 Taking, restoring and deleting snapshots There are three operations related to snapshots: 1. You can 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 currently running, select “Take snapshot” from the “Machine” pull-down menu of the VM window. If your VM is currently in either the “saved” or the “powered off” state (as displayed next to the VM in the VirtualBox main window), click on the “Snapshots” tab on the top right of the main window, and then either on the small camera icon (for “Take snapshot”) or right-click on the “Current State” item in the list and select “Take snapshot” from the menu. In any case, a window will pop up and ask 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 in the “Description” field if you want. 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 will be displayed in sequence, and each subsequent snapshot is derived from an earlier one: 23
Previous Page Next Page