Re: Unable to setup qemu-guest-agent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I was able to solve the error. It was a stupid mistake. There was a mismatch between versions of virsh and the libvirt daemon.


On Mon, Jun 17, 2013 at 3:56 PM, Michal Privoznik <mprivozn@xxxxxxxxxx> wrote:
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@xxxxxxxxxx>
AuthorDate: Mon Jun 3 16:12:52 2013 +0200
Commit:     Peter Krempa <pkrempa@xxxxxxxxxx>
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



--
Nehal J. Wani
UG2, BTech CS+MS(CL)
IIIT-Hyderabad
http://commanlinewani.blogspot.com
--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]