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 edit a snapshot, run the following:

  1. 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-snapshotroot@kvm:~#





 

  1. Edit the disk snapshot and change its name and description:
root@kvm:~# virsh snapshot-edit kvm1 --snapshotname kvm1_ext_snapshot --rename<domainsnapshot> <name>kvm1_ext_snapshot_renamed</name> <description>Disk only external snapshot for kvm1</description> ...root@kvm:~#
  1. List the snapshots after the update:
root@kvm:~# virsh snapshot-list 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