[libvirt-users] QemuAgentCommand API documents
Praveen Kumar
prkumar at redhat.com
Thu Aug 22 10:17:45 UTC 2013
----- Original Message -----
> From: "Michal Privoznik" <mprivozn at redhat.com>
> To: "Praveen Kumar" <prkumar at redhat.com>
> Cc: libvirt-users at redhat.com
> Sent: Thursday, August 22, 2013 1:15:54 PM
> Subject: Re: [libvirt-users] QemuAgentCommand API documents
>
> The API you're looking for is the one you've found:
> virDomainQemuAgentCommand. As the second argument it accepts qemu guest
> agent commands described in [3]. I'd also recommend reading [4].
Thanks for command reference, I am able to figure out that along with libvirt,
libvirt_qemu also need to import because it will contain QmenuAgentCommand() function
definition, but now I am confuse about the parameters.
As per definition : def qemuAgentCommand(domain, cmd, timeout, flags), I passed below parameteres:
domain : A active virDomain object
command : 'guest-info'
timeout : 10
flags : 0
But it's raise libvirt.libvirtError('virDomainQemuAgentCommand() failed')
In function documentation it's not clearly mention about types of parameters need to pass.
Any Idea/Suggestions?
> >
> > [0] http://www.redhat.com/archives/libvir-list/2012-August/msg00489.html
> > [1] http://libvirt.org/html/libvirt-libvirt.html
> >
>
> 3: http://git.qemu.org/?p=qemu.git;a=blob;f=qga/qapi-schema.json;hb=HEAD
> 4: http://wiki.qemu.org/Features/QAPI/GuestAgent
>
--
Praveen Kumar
More information about the libvirt-users
mailing list