Received: from eggs.gnu.org ([2001:4830:134:3::10]:55620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTtCz-0000BF-UB for qemu-devel@nongnu.org; Thu, 11 Feb 2016 10:31:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTtCu-00006k-TX for qemu-devel@nongnu.org; Thu, 11 Feb 2016 10:31:05 -0500 Received: from indium.canonical.com ([91.189.90.7]:50520) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTtCu-000063-Nf for qemu-devel@nongnu.org; Thu, 11 Feb 2016 10:31:00 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1aTtCt-0003LS-Im for ; Thu, 11 Feb 2016 15:30:59 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 5E6A82E80C8 for ; Thu, 11 Feb 2016 15:30:59 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 11 Feb 2016 15:21:31 -0000 From: Prem Anand <1544524@bugs.launchpad.net> Sender: bounces@canonical.com References: <20160211115903.17778.55276.malonedeb@soybean.canonical.com> Message-Id: <20160211152131.4966.9305.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1544524] Re: "info chardev" not showing the real port in use Reply-To: Bug 1544524 <1544524@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Also on quickly connecting to the ports via the netcat tool (hoping that it= would make qemu to change its state from disconnected) I see the following error "Error in getpeername: Transport endpoint is not = connected" pharidos@uks2:~/$ qemu-system-x86_64 --enable-kvm -hda Sisk.qcow2 -serial t= elnet::0,server,nowait -serial telnet::0,server,nowait -nographic = QEMU 2.5.0 monitor - type 'help' for more information (qemu) info chardev parallel0: filename=3Dnull serial1: filename=3Ddisconnected:telnet::0,server serial0: filename=3Ddisconnected:telnet::0,server compat_monitor0: filename=3Dstdio (qemu) = # COnnect quickly to the serial ports via netcat pharidos@kvm:~/$ netstat -tupan 2>/dev/null | grep "LISTEN.* $(pgrep -f qem= u)/qemu" | cut -d: -f2 | cut -d' ' -f1 45814 42522 pharidos@kvm:~/$ ports=3D$(netstat -tupan 2>/dev/null | grep "LISTEN.* $(pg= rep -f qemu)/qemu" | cut -d: -f2 | cut -d' ' -f1) pharidos@kvm:~/$ for p in $ports; do echo | nc -w0 kvm $p >/dev/null; done # Check the port status again. We see the the error "Error in getpeername: = Transport endpoint is not connected" (qemu) info chardev parallel0: filename=3Dnull serial1: filename=3DError in getpeername: Transport endpoint is not connect= ed serial0: filename=3DError in getpeername: Transport endpoint is not connected compat_monitor0: filename=3Dstdio (qemu) -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1544524 Title: "info chardev" not showing the real port in use Status in QEMU: New Bug description: With Qemu 2.1.2 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D pharidos@uks2:~$ qemu-system-x86_64 -hda Disk.qcow2 -serial telnet::0,ser= ver,nowait -nographic QEMU 2.1.2 monitor - type 'help' for more information (qemu) info chardev parallel0: filename=3Dnull serial0: filename=3Dtelnet:0.0.0.0:44189,server =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0^^^^^^^^^^^^^^^^^^^^^^^^^^^ serial cons= ole is using port 44189 compat_monitor0: filename=3Dstdio (qemu) With Qemu 2.5.0 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D pharidos@uks2:~$ qemu-system-x86_64 -hda Disk.qcow2 -serial telnet::0,se= rver,nowait -nographic QEMU 2.5.0 monitor - type 'help' for more information (qemu) info chardev parallel0: filename=3Dnull serial0: filename=3Ddisconnected:telnet::0,server =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ serial co= nsole port not shown compat_monitor0: filename=3Dstdio (qemu) To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1544524/+subscriptions