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 delete a snapshot, follow these steps:

  1. List all snapshots present on the host:
root@kvm:~# virsh snapshot-list kvm1 Name                      Creation Time             State------------------------------------------------------------ 1492797458                2017-04-21 17:57:38 +0000 running 1492802417                2017-04-21 19:20:17 +0000 running kvm1_ext_snapshot_renamed 2017-04-21 18:08:49 +0000 disk-snapshotroot@kvm:~#
  1. Delete the latest snapshot based on the creation time:
root@kvm:~# virsh snapshot-delete kvm1 --snapshotname 1492802417Domain snapshot 1492802417 deletedroot@kvm:~#
  1. List the remaining snapshots:
root@kvm:~# virsh snapshot-list kvm1 Name                       Creation Time             State------------------------------------------------------------ 1492797458 2017-04-21 17:57:38 +0000 ...

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