Previous page

Next page

Locate page in Contents

Print this page

Reverting to a Snapshot

You can use the pctl snapshot-switch command to revert to a snapshot. When you revert to a snapshot, the current state of the virtual machine is discarded, and all changes made to the system since the previous snapshot are lost. So, before returning to a specific snapshot, you may first wish to save these states by creating a new snapshot. Refer to the Creating a Snapshot subsection for information on how you can do it.

The pctl snapshot-switch command requires the virtual machine name and the snapshot ID to be specified as arguments:

pctl snapshot-switch "Windows XP" --id {cedbc4eb-dee7-42e2-9674-89d1d7331a2d}

Switch to the snapshot...

The VM has been successfully switched.

This command restores the snapshot with ID {cedbc4eb-dee7-42e2-9674-89d1d7331a2d} for the Windows XP virtual machine.