Re: CharUDP - Connection refused

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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
> 
> 

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]