From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2NYt-0004HL-WA for qemu-devel@nongnu.org; Wed, 02 Jul 2014 12:39:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2NYo-0003uq-81 for qemu-devel@nongnu.org; Wed, 02 Jul 2014 12:39:11 -0400 Message-ID: <53B435A6.9000605@redhat.com> Date: Wed, 02 Jul 2014 10:39:02 -0600 From: Eric Blake MIME-Version: 1.0 References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5IF8WM0UBQnjuA3BcBu9arWN48cKn6QLf" Subject: Re: [Qemu-devel] [libvirt] Not able to run "virsh qemu-agent-command" when socat is working List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Puneet Bakshi , libvir-list@redhat.com, qemu-devel@nongnu.org, qemu-discuss@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --5IF8WM0UBQnjuA3BcBu9arWN48cKn6QLf Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 07/02/2014 01:13 AM, Puneet Bakshi wrote: > Hi, >=20 > 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". >=20 > *Host CentOS system* >=20 > socat returns response appropriately. > [root@sdsr720-14 ~]# echo "{'execute':'guest-ping'}" | socat > stdio,ignoreeof /var/lib/libvirt/qemu/g06.agent > {"return": {}} Note your spelling... >=20 > *"virsh qemu-agent-command" returns blank.* >=20 > [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. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --5IF8WM0UBQnjuA3BcBu9arWN48cKn6QLf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTtDWmAAoJEKeha0olJ0NqZoEH/iwv1UEcduPECNBFdxxJEDwJ EuoJ2TuSKHHGQtrfpbkB+o6JIvOY7fMLx+5CNVDENG2rMAfQBzSGPCNuQDObcCQD FJ1NlzTmqJxjhfQD3vT8IUsu8JNo1qXuth3QLhQJSm9L2F4W/Nd7oc11r+w0fGyX ZoHUKTgT3Qfam9tJVb+2fEBgC8X6ZmUs3ZRTZbONMgcR/eKH91IMGZIS0FTio6xN d35d1sJnOnCM57KdyWpWLFbJ38f/k86GMjw4h8zAaFhOQMS27lvGbpvCGbkFfLWd Ivap9Kj4GwE4ymDBCKGiuYggv3fB8EKzO4wmTGN9uRnnOPeIrSrWCOFUv/Ua8bI= =lfdr -----END PGP SIGNATURE----- --5IF8WM0UBQnjuA3BcBu9arWN48cKn6QLf--