From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yfsvt-0004WJ-Tm for qemu-devel@nongnu.org; Wed, 08 Apr 2015 12:34:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yfsvo-0003pK-O5 for qemu-devel@nongnu.org; Wed, 08 Apr 2015 12:34:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yfsvo-0003p8-Fj for qemu-devel@nongnu.org; Wed, 08 Apr 2015 12:34:24 -0400 Message-ID: <5525588D.3000503@redhat.com> Date: Wed, 08 Apr 2015 10:34:21 -0600 From: Eric Blake MIME-Version: 1.0 References: <1746798507.1094444.1428413473548.JavaMail.open-xchange@oxbaltgw09.schlund.de> <1428414139.25243.1.camel@profitbricks.com> <668770373.39977.1428509418086.JavaMail.open-xchange@oxbaltgw07.schlund.de> <5525546E.5020109@redhat.com> <1564966247.40468.1428510084034.JavaMail.open-xchange@oxbaltgw07.schlund.de> In-Reply-To: <1564966247.40468.1428510084034.JavaMail.open-xchange@oxbaltgw07.schlund.de> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="V5lnRtpHRwPIRrdcnm2w4sLVRKvut3rNA" Subject: Re: [Qemu-devel] Getting VM state from outside QEMU? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Erik Rull , paulo.vital@profitbricks.com Cc: "qemu-devel@nongnu.org" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --V5lnRtpHRwPIRrdcnm2w4sLVRKvut3rNA Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 04/08/2015 10:21 AM, Erik Rull wrote: >>> 172.17.48.45 ~ # telnet 127.0.0.1 4444 >>> {"QMP": {"version": {"qemu": {"micro": 0, "minor": 1, "major": 2}, >>> "package": >>> ""}, "capabilities": []}} >> >> You HAVE to use {"execute":"qmp_capabilities"} (possibly with an >> "id":...) as your first command on the monitor, before you can issue a= ny >> other command. I really wish we could improve the error message: > Thanks! That fixed it - even if I don't know why this was actually nece= ssary :-) docs/qmp/qmp-spec.txt It's part of the protocol, to allow us to make non-backwards-compatible changes to how QMP is parsed while still keeping sane interactions between mismatches in server vs. client (to date, we have wisely not needed to add any capabilities). --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --V5lnRtpHRwPIRrdcnm2w4sLVRKvut3rNA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJVJViNAAoJEKeha0olJ0NqT5UH/Avx/Ou+d74Y52ymvlJbuvpa H3CfMLeGt0k+Acf3xbTHtPF+P4igyesuwtUXTaObjua2TMdKyLqoCGNAvAt7s+cu jqPl4sWj7OWInIZBWlhYNYQEdLORak4dTTCKCJ8EkXxNcaioXfvYv/8Sx6uPDLpM UShQGR7WB6edHJjGjmUegb2ZTSsA6o9Lr3Boc3vwuovVcQPJw0LoZSsPErDZXxH3 Pdp/tnwU9OQ89DI9OEHk+Ge6T+m0BtKQYYO1hHS4fBqCjMD5psMUigVRwrH00/ly ZsFvQ/VbJEbDoyEHeCeESWYecPFhMkera6AXHoQg7oA/z9nBYhxASCQ9zqlwXhg= =8nUN -----END PGP SIGNATURE----- --V5lnRtpHRwPIRrdcnm2w4sLVRKvut3rNA--