Inspecting snapshots
In this short recipe, we are going to see examples on how to obtain more information on existing virtual machine snapshots.
Getting ready
For this recipe, we are going to need the following:
- A libvirt host with the QEMU toolset
- The snapshots we created in the Creating snapshots recipe
How to do it...
To inspect a snapshot, run the following commands:
- List all available 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-snapshot root@kvm:~#
- Get information about the running snapshot:
root@kvm:~# virsh snapshot-info kvm1 --snapshotname 1492797458 Name: 1492797458 Domain: kvm1 Current: no State: running Location: internal Parent: - Children: 1 Descendants: 1 Metadata: yes root@kvm:~#
- Get information about the disk snapshot:
root@kvm...