Re: Not able to run "virsh qemu-agent-command" when socat is working

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

 



Sorry, that was a typo. But, it is still not working. (For some reason, I had to move to Windows2012 with name vm_win_05).

[root@sdsr720-14 virtio-win]# echo "{'execute':'guest-ping'}" | socat stdio,ignoreeof /var/lib/libvirt/qemu/g05.agent
{"return": {}}

[root@sdsr720-14 virtio-win]# virsh qemu-agent-command vm_win_05 '{ "execute":"guest-ping"}'

[root@sdsr720-14 virtio-win]#

Regards,
~Puneet


On Wed, Jul 2, 2014 at 10:09 PM, Eric Blake <eblake@xxxxxxxxxx> wrote:
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.
>     [root@sdsr720-14 ~]# echo "{'execute':'guest-ping'}" | socat
> stdio,ignoreeof /var/lib/libvirt/qemu/g06.agent
>     {"return": {}}

Note your spelling...

>
> *"virsh qemu-agent-command" returns blank.*
>
>     [root@sdsr720-14 ~]# 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


--
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]