From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj7Wo-00017d-CR for qemu-devel@nongnu.org; Mon, 05 Oct 2015 11:18:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zj7Wh-0002QW-KA for qemu-devel@nongnu.org; Mon, 05 Oct 2015 11:18:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj7Wh-0002QO-Ew for qemu-devel@nongnu.org; Mon, 05 Oct 2015 11:18:07 -0400 References: <56113F3B.4040701@gmail.com> From: Paolo Bonzini Message-ID: <561294AA.4090507@redhat.com> Date: Mon, 5 Oct 2015 17:18:02 +0200 MIME-Version: 1.0 In-Reply-To: <56113F3B.4040701@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] CharUDP - Connection refused List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: poma , "qemu-devel@nongnu.org" Cc: libvir-list@redhat.com, Gal Hammer , Amit Shah , Cole Robinson On 04/10/2015 17:01, poma wrote: >=20 > qemu-system-x86_64 ... \ > -chardev udp,id=3Dcharserial0,host=3D127.0.0.1,port=3D4555,localaddr=3D= 127.0.0.1,localport=3D4556 \ > -device isa-serial,chardev=3Dcharserial0,id=3Dserial0 >=20 >=20 > # netstat -an | grep 4555 > udp 0 0 127.0.0.1:4556 127.0.0.1:4555 EST= ABLISHED >=20 > How is it supposed to work? You should use "nc -up 4555 localhost 4556". Just like QEMU needs both ends, so does nc (the source host can also be specified, optionally, with nc's -s option). Paolo >=20 > =3D DOMAIN: >=20 > $ hostnamectl status | egrep Chassis\|Virtualization > Chassis: vm > Virtualization: kvm >=20 > $ cat /proc/cmdline=20 > BOOT_IMAGE=3Dvmlinuz0 initrd=3Dinitrd0.img root=3Dlive:CDLABEL=3DRawhid= e-Xfce-Live-1003 rootfstype=3Dauto ro rd.live.image console=3Dtty0 consol= e=3DttyS0 >=20 > $ systemctl status serial-getty@ttyS0.service=20 > =E2=97=8F serial-getty@ttyS0.service - Serial Getty on ttyS0 > Loaded: loaded (/usr/lib/systemd/system/serial-getty@.service; disab= led; vendor preset: disabled) > Active: active (running) since Sun 2015-10-04 09:02:06 EDT; 48s ago > Docs: man:agetty(8) > man:systemd-getty-generator(8) > http://0pointer.de/blog/projects/serial-console.html > Main PID: 1109 (agetty) > CGroup: /system.slice/system-serial\x2dgetty.slice/serial-getty@ttyS= 0.service > =E2=94=94=E2=94=801109 /sbin/agetty --keep-baud 115200 38400= 9600 ttyS0 vt220 >=20 > Oct 04 09:02:06 localhost systemd[1]: Started Serial Getty on ttyS0. >=20 >=20 > =3D SW VERSIONS: >=20 > $ qemu-system-x86_64 -version > QEMU emulator version 2.4.0.1 (qemu-2.4.0.1-2.fc24), Copyright (c) 2003= -2008 Fabrice Bellard > $ libvirtd --version > libvirtd (libvirt) 1.2.20 > $ virt-manager --version > 1.2.1 >=20 > $ rpm -q qemu libvirt virt-manager > qemu-2.4.0.1-2.fc24.x86_64 > libvirt-1.2.20-1.fc24.x86_64 > virt-manager-1.2.1-3.fc24.noarch >=20 >=20 > [1] > char: udp chardev shouldn't require an explicit open. > http://patchwork.ozlabs.org/patch/311730 >=20 >=20