qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Not able to run "virsh qemu-agent-command" when socat is wo


From: Puneet Bakshi
Subject: [Qemu-devel] Not able to run "virsh qemu-agent-command" when socat is working
Date: Wed, 2 Jul 2014 12:43:20 +0530

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".


Guest VM xml

    <controller type='virtio-serial' index='0'>
      <alias name='virtio-serial0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </controller>

    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/g06.agent'/>
      <target type='virtio' name='org.qemu.guest_agent.1'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
 

Guest win2k8 is running following command

    C:\qemu-ga> qemu-ga.exe -t c:\qemu-ga -p \\.Global\org.qemu.guest_agent.1


Host CentOS system

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

"virsh qemu-agent-command" returns blank.

    address@hidden ~]# virsh qemu-agent-command vm_win_06 '{ "execute": "guest_ping"}'

    address@hidden ~]#


Why "virsh qemu-agent-command" is not working? Am I doing something wrong here?

Regards,
~Puneet


reply via email to

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