[FYI] Skript to extract qcow2 snapshot info to libvirt snapshot xml

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Sincerely
Philipp Hahn

PS: An a drink of their reasonable choosing to the first one writing a 
qemu-img version printing (shell-)parsable output :-(
-- 
Philipp Hahn           Open Source Software Engineer      hahn@xxxxxxxxxxxxx
Univention GmbH        Linux for Your Business        fon: +49 421 22 232- 0
Mary-Somerville-Str.1  D-28359 Bremen                 fax: +49 421 22 232-99
                                                   http://www.univention.de/

Attachment: qcow2-snap-scan.sh
Description: application/shellscript

Attachment: signature.asc
Description: This is a digitally signed message part.

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]