Hi, I was going through the maillist[0] and found virDomainQemuAgentCommand() support function added to python module. I also checked the API documentation and didn't able to find any pointer for this particular function. Is API documentation[1] not updated with these function details yet or I am looking to a wrong place? Another question is I am using libvirt-1.0.5.5-1.fc19.x86_64 and using virsh with qemu-agent-command I am able to execute stuff from host. but I am not able to find any API method to do that, any suggestions? [0] http://www.redhat.com/archives/libvir-list/2012-August/msg00489.html [1] http://libvirt.org/html/libvirt-libvirt.html -- Praveen Kumar
On 22.08.2013 07:13, Praveen Kumar wrote:> Hi, > > > I was going through the maillist[0] and found virDomainQemuAgentCommand() support function added to python module. I also checked the API documentation and didn't able to find any pointer for this particular function. Is API documentation[1] not updated with these function details yet or I am looking to a wrong place? > > Another question is I am using libvirt-1.0.5.5-1.fc19.x86_64 and using virsh with qemu-agent-command I am able to execute stuff from host. but I am not able to find any API method to do that, any suggestions? >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]. Michal> > [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
----- Original Message -----> From: "Michal Privoznik" <mprivozn@redhat.com> > To: "Praveen Kumar" <prkumar@redhat.com> > Cc: libvirt-users@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
Possibly Parallel Threads
- QemuAgentCommand API documents
- Re: QemuAgentCommand API documents
- [PATCH v3 00/34] Configurable policy for handling deprecated interfaces
- Re: [PATCH v4 00/34] Configurable policy for handling deprecated interfaces
- [PATCH v4 00/34] Configurable policy for handling deprecated interfaces