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)
On 6/17/13, Osier Yang <jyang(a)redhat.com> wrote:
On 17/06/13 14:00, Nehal J. Wani wrote:
> Could anyone please list out the steps required to run the command
> $virsh qemu-agent-command
>
> Steps that I followed:
>
> 1. Clone the latest source code of libvirt
> 2. Create a vm of f18 (source:liveCD)
> 3. Edit f18 domain xml and add this:
>
> <channel type='unix'>
> <source mode='bind'
path='/var/lib/libvirt/qemu/f16x86_64.agent'/>
> <target type='virtio' name='org.qemu.guest_agent.0'/>
> </channel>
>
> 4. On host: #./tools/virsh start f18
> 5. On guest: #yum install qemu-guest-agent -y
> 6. On host: # ./tools/virsh qemu-agent-command f18
> '{"execute":"guest-network-get-interfaces"}'
>
> Expected Response:
>
> {"return":[{"name":"lo","ip-
>
addresses":[{"ip-address-type":"ipv4","ip-address":"127.0.0.1","prefix":8},{"ip-address-type":"ipv6","ip-address":"::1","prefix":128}],"hardware-address":"00:00:00:00:00:00"},{"name":"eth0","ip-addresses":[{"ip-address-type":"ipv4","ip-address":"192.168.122.62","prefix":24},{"ip-address-type":"ipv6","ip-address":"fe80::5054:ff:fe14:9998","prefix":64}],"hardware-address":"52:54:00:14:99:98"}]}
>
> Actual result:
> error: unknown procedure: 3
What's your running libvirtd's version? It sounds like it's old enough
without
the API used by "qemu-guest-agent".
Osier
--
Nehal J. Wani
UG2, BTech CS+MS(CL)
IIIT-Hyderabad
http://commanlinewani.blogspot.com