On Mon, Mar 11, 2013 at 2:51 PM, Markus Armbruster <arm...@redhat.com> wrote:
> Kashyap Chamarthy <kashyap...@gmail.com> writes:
>
>> Heya,
>>
>> After building qemu, I tried to invoke QMP by via telnet:
>
> Exact version, please.  Commit hash if you build from git.
>
>> Build:
>> ==========
>>  #./configure --target-list=x86_64-softmmu --disable-werror
>> --enable-debug ; make -j5
>> ==========
>>
>> Invoke QMP:
>> ==========
>> kashyap@qemu$ ./x86_64-softmmu/qemu-system-x86_64 --enable-kvm -smp 2
>> -m 2048 /export/images/el6box1.qcow2 -qmp tcp:localhost:4444,server
>> --monitor stdio
>> QEMU waiting for connection on: tcp:127.0.0.1:4444,server
>
> I get
>
>     QEMU waiting for connection on: tcp::127.0.0.14444,server
>
> Note the misplaced colon.  Screwed up in commit f6bd5d6e back in
> December (I checked).  Leads me to believe you're using old code.

Ah, now see, thank you. I did a 'git pull' on my older tree, not sure
how it got screwed up, but I can't even seem to run the configure
script as of now on that tree.

>
>> Failed to start VNC server on `localhost:0,to=99': error parsing to= argument
>
> This error comes from inet_parse().  Looks like you compiled so that VNC
> is the default display.  I have no idea why it can't parse that;
> explicit "-vnc localhost:0,to=99" works for me.  The error is not fatal,
> you just don't get a working display.  It should not affect the QMP
> socket at all.
>
>> kashyap@qemu$
>> ==========
>>
>> The moment I tried to connect via telnet from a different terminal, it
>> fails this way:
>> ==========
>> kashyap@~$ telnet localhost 4444
>> Trying 127.0.0.1...
>> Connected to localhost.
>> Escape character is '^]'.
>> Connection closed by foreign host.
>> kashyap@~$
>> ==========
>
> Any output from QEMU when this happens?

Nothing specific, just what I noted above.

At the moment, QMP works just fine with a new clone. I'll post with
further information, if I hit it again.

Thanks Markus (and Stefan Hajnoczi) for answering my questions on IRC.

>
>> Any hints ?  I'm sure this worked for few weeks ago.

/kashyap

Reply via email to