[libvirt] [FYI] Skript to extract qcow2 snapshot info to libvirt snapshot xml
Daniel P. Berrange
berrange at redhat.com
Thu Oct 20 08:57:33 UTC 2011
On Thu, Oct 20, 2011 at 08:50:35AM +0200, Philipp Hahn wrote:
> Hello,
>
> I sometimes get foreign qcow2 images with embedded snapshots. Without the
> corresponding XML files libvirt doesn't recognize them. Therefor I created
> the attached script to fake-create the missing snapshot XML files.
> Be advised that the XML files might not work in all cases, especially when the
> configuration was changed between snapshots, but at least I prefer a solution
> working 95% of the times instead of 0% ;-)
> And since I already wrote it, others might find it useful as well.
I wonder if we ought to put this in the libvirt source tree under
examples/ or something like that. Or turn it into a proper script
at tools/virt-qemu-import-snapshots ?
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list