O'Reilly logo

KVM Virtualization Cookbook by Konstantin Ivanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

To list all existing snapshots, follow the next steps:

  1. List all snapshots for the specified KVM instance:
root@kvm:~# virsh snapshot-list kvm1 Name                 Creation Time               State------------------------------------------------------------ 1492797458           2017-04-21 17:57:38 +0000   running kvm1_ext_snapshot    2017-04-21 18:08:49 +0000   disk-snapshotroot@kvm:~#
  1. List only the disk-based snapshots:
root@kvm:~# virsh snapshot-list --disk-only kvm1 Name                Creation Time              State------------------------------------------------------------ kvm1_ext_snapshot   2017-04-21 18:08:49 +0000  disk-snapshotroot@kvm:~#
  1. List only the internal snapshots:
root@kvm:~# virsh snapshot-list --internal kvm1 Name         Creation Time              State------------------------------------------------------------ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required