On Thu, Nov 21, 2013 at 06:09:57PM +0200, Itamar Heim wrote:
i may be missing something, but wouldn't vdsm hooks be a better
fit:
http://www.ovirt.org/VDSM-Hooks
for example, I think the "checkimages" one would cover what you are
trying to do already?
http://gerrit.ovirt.org/gitweb?p=vdsm.git;a=tree;f=vdsm_hooks;
It seems like this could work. checkImage() could be replaced
with a function that called libguestfs code:
http://libguestfs.org/guestfs-python.3.html#example-2:-inspect-a-virtual-...
(Of course I have not tried it ...)
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages.
http://libguestfs.org