[libvirt] Unable to setup qemu-guest-agent

Michal Privoznik mprivozn at redhat.com
Mon Jun 17 10:26:35 UTC 2013


On 17.06.2013 09:21, Nehal J. Wani wrote:
> The error:
> # ./tools/virsh qemu-agent-command f18
> '{"execute":"guest-network-get-interfaces"}'
> "error: unknown procedure: 3"
> 
> Comes when I clone from  $git clone git://libvirt.org/libvirt.git
> 
> But  when I download http://libvirt.org/sources/libvirt-1.0.6.tar.gz
> and make, I get:
> # ./tools/virsh qemu-agent-command f18
> '{"execute":"guest-network-get-interfaces"}'
> (null)
> 

Unfortunately, the patch which dispatches errors from qemu-agent-command has been submitted after the 1.0.6 release:

commit 0eb2f8aa90d26e75ce5d9449da03bb553da85d2d
Author:     Peter Krempa <pkrempa at redhat.com>
AuthorDate: Mon Jun 3 16:12:52 2013 +0200
Commit:     Peter Krempa <pkrempa at redhat.com>
CommitDate: Mon Jun 3 17:25:33 2013 +0200

    libvirt-qemu: Dispatch errors from virDomainQemuAgentCommand()
    
    The original implementation didn't follow the established pattern and
    did not dispatch errors in case of failure.

So if you could try out building the libvirt from git and get the real error.
Or if you want to use the 1.0.6 release, you'll find the error message in the libvirtd log.


Michal




More information about the libvir-list mailing list