qemu-discuss
[Top][All Lists]
Advanced

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

Re: [Qemu-discuss] [libvirt] Not able to run "virsh qemu-agent-command"


From: Eric Blake
Subject: Re: [Qemu-discuss] [libvirt] Not able to run "virsh qemu-agent-command" when socat is working
Date: Wed, 02 Jul 2014 10:39:02 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 07/02/2014 01:13 AM, Puneet Bakshi wrote:
> Hi,
> 
> I am running qemu guest agent in Windows 2k8. I am able to execute
> "qemu-agent-commands" using socat but not through "virsh
> qemu-agent-command".
> 

> *Host CentOS system*
> 
> socat returns response appropriately.
>     address@hidden ~]# echo "{'execute':'guest-ping'}" | socat
> stdio,ignoreeof /var/lib/libvirt/qemu/g06.agent
>     {"return": {}}

Note your spelling...

> 
> *"virsh qemu-agent-command" returns blank.*
> 
>     address@hidden ~]# virsh qemu-agent-command vm_win_06 '{ "execute":
> "guest_ping"}'

and compare it to here.  There is no guest_ping command, only
guest-ping.  It's a bug in libvirt that guest-agent-command doesn't
output a useful error message when attempting to run a non-existing
command, but you'll never hit that bug if you pass valid commands to the
agent in the first place.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]