Restoring a snapshot for KVM

Last Updated : Jan 15, 2020 |
Prolog information
Use this procedure to return to the memory, settings and state of the virtual machine to the state when you took the snapshot. The power and data states of the virtual machine return to the state when you took the parent snapshot.
Use the following procedure to delete a snapshot for the virtual machine(VM). The filename KVM-SBCE-8.1 is an example of how you could name the filename.
Important:
Do not perform any activity on the virtual application until the snapshot restoration is complete.
Before you begin
Verify with the system administrator that the required privilege Virtual machine.State.Revert to snapshot is available on the virtual machine
  1. Log in to the KVM host with root permissions.
  2. At the console, enter the following command:
    ADDITIONAL INFORMATION:
    virt-manager
    STEP RESULT:
    The system displays the Virtual Machine Manager GUI.
  3. Type 2 for CLI mode.
  4. List the created snapshots, using the virsh snapshot-list KVM-SBCE-8.1 command.
    STEP RESULT:
    The system displays the list of all the created snapshots.
  5. Restore the snapshot, using the following command:
    ADDITIONAL INFORMATION:
    virsh snapshot-revert KVM-SBCE-8.1 <name of the snapshot>
    STEP RESULT:
    The system restores the specified snapshot.