Thank you Eric for the quick reply!
Do you know if there's a way to remove (not revert) an external snapshot on a live domain?

I'm trying to backup (live) machines with the shortest downtime possible.

The script I'm using makes a (full) snapshot of a VM, restore its state, copies (with qemu-img convert) the snapshot out of the qcow file and removes the snapshot.   

Thanks again,
 Davide.

2012/10/24 Eric Blake <eblake@redhat.com>
On 10/24/2012 02:27 PM, Davide Guerri wrote:
> Hi all,
> it's possible to do an internal snapshot with the --disk-only option (for
> qcow2 images)?

Not with the current qemu implementation.  The qemu folks left room in
the 'blockdev-snapshot-async' monitor command to eventually allow for an
internal snapshot, but haven't wired it up yet.  But if they ever do
wire it up, then libvirt is ready to support it.

>
> The following command
>
> virsh snapshot-create-as my-dom my-snap my-description
>
> creates an internal snapshot but the following

Also, be aware that Peter just posted patches to allow for creating an
external snapshot without using --disk-only, with much better response
time than internal snapshots take:
https://www.redhat.com/archives/libvir-list/2012-October/msg01290.html

>
> virsh snapshot-create-as my-dom my-snap my-description --disk-only
>
> creates an external snapshot.
>

--
Eric Blake   eblake@redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org