User`s guide
Operations on Virtual Machines and Containers 74
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 (p. 72) for information on how you can do it.
The pctl snapshot-switch co
mmand 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.
Deleting a Snapshot
In Parallels Server Bare Metal, you can use the pctl snapshot-delete command to
delete those snapshots that you do not need any more. Assuming that you want to delete the
snapshot with ID {903c12ea-f6e6-437a-a2f0-a1d02eed4f7e} for the MyVM virtual
machine, you can run this command:
# pctl snapshot-delete MyVM --id {903c12ea-f6e6-437a-a2f0-a1d02eed4f7e}
Deleting the snapshot...
The snapshot has been successfully deleted.
When you delete a parent snapshot, its children are not deleted, and the information the parent
snapshot contains is merged into them.
For example, the following session demonstrates the process of deleting the snapshot with ID
{903c12ea-f6e6-437a-a2f0-a1d02eed4f7e} acting as a parent for another snapshot:
# pctl snapshot-list MyVM
PARENT_SNAPSHOT_ID SNAPSHOT_ID
{989f3415-3e30-4494-936e-a0bbc104bd20}
{989f3415-3e30-4494-936e-a0bbc104bd20} {063615fa-f2a0-4c14-92d4-4c935df15840}
{063615fa-f2a0-4c14-92d4-4c935df15840} *{58c9941e-f232-4273-892a-82e836536889}
# pctl snapshot-delete MyVM --id {903c12ea-f6e6-437a-a2f0-a1d02eed4f7e}
Deleting the snapshot...
The snapshot has been successfully deleted.
# pctl snapshot-list MyVM
PARENT_SNAPSHOT_ID SNAPSHOT_ID
{063615fa-f2a0-4c14-92d4-4c935df15840}
{063615fa-f2a0-4c14-92d4-4c935df15840} *{58c9941e-f232-4273-892a-82e836536889}










