From: Paolo Bonzini <pbonzini@redhat.com>
To: poma <pomidorabelisima@gmail.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: libvir-list@redhat.com, Gal Hammer <ghammer@redhat.com>,
Amit Shah <amit.shah@redhat.com>,
Cole Robinson <crobinso@redhat.com>
Subject: Re: [Qemu-devel] CharUDP - Connection refused
Date: Mon, 5 Oct 2015 17:18:02 +0200 [thread overview]
Message-ID: <561294AA.4090507@redhat.com> (raw)
In-Reply-To: <56113F3B.4040701@gmail.com>
On 04/10/2015 17:01, poma wrote:
>
> qemu-system-x86_64 ... \
> -chardev udp,id=charserial0,host=127.0.0.1,port=4555,localaddr=127.0.0.1,localport=4556 \
> -device isa-serial,chardev=charserial0,id=serial0
>
>
> # netstat -an | grep 4555
> udp 0 0 127.0.0.1:4556 127.0.0.1:4555 ESTABLISHED
>
> 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
>
> = DOMAIN:
>
> $ hostnamectl status | egrep Chassis\|Virtualization
> Chassis: vm
> Virtualization: kvm
>
> $ cat /proc/cmdline
> BOOT_IMAGE=vmlinuz0 initrd=initrd0.img root=live:CDLABEL=Rawhide-Xfce-Live-1003 rootfstype=auto ro rd.live.image console=tty0 console=ttyS0
>
> $ systemctl status serial-getty@ttyS0.service
> ● serial-getty@ttyS0.service - Serial Getty on ttyS0
> Loaded: loaded (/usr/lib/systemd/system/serial-getty@.service; disabled; 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@ttyS0.service
> └─1109 /sbin/agetty --keep-baud 115200 38400 9600 ttyS0 vt220
>
> Oct 04 09:02:06 localhost systemd[1]: Started Serial Getty on ttyS0.
>
>
> = SW VERSIONS:
>
> $ 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
>
> $ 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
>
>
> [1]
> char: udp chardev shouldn't require an explicit open.
> http://patchwork.ozlabs.org/patch/311730
>
>
next prev parent reply other threads:[~2015-10-05 15:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-04 15:01 [Qemu-devel] CharUDP - Connection refused poma
2015-10-05 15:18 ` Paolo Bonzini [this message]
2015-10-05 16:21 ` poma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=561294AA.4090507@redhat.com \
--to=pbonzini@redhat.com \
--cc=amit.shah@redhat.com \
--cc=crobinso@redhat.com \
--cc=ghammer@redhat.com \
--cc=libvir-list@redhat.com \
--cc=pomidorabelisima@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).