On 11/20/19 11:14 AM, Timo Schneider wrote:
Hi,
I am wondering if the --print-xml option is working correctly. The
output for two snapshot-create commands are the same, even though the
first one includes additional options (no-metadata and atomic).
--no-metadata and --atomic merely pass additional flags to the API call;
they do not affect the XML. Remember, it is the combination of both the
XML and the API flags that control what the API will do.
I want to use the generated XML to create a snapshot via a perl script,
and Sys::Virt only seems to support snapshots using a XML description
of the arguments.
Yes, the perl bindings don't have the convenience wrappers like virsh,
so you'll need the XML; but the perl bindings DO let you also pass in
flags for the case where virsh has bool options for setting a flag.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization:
qemu.org |
libvirt.org