To get this issue, and my other post's restart/shutdown problems, sorted
out -- I'm simplifying.
Step 1, proper serial port function.
I've built a clean box, running Opensuse 12.3/kernel-xen + grub1 + Xen
4.3 + systemd 195, trying to get Serial console output working.
It's not.
With the following config, I can't get any serial output from Dom0 over
cable at all.
I can't find a relevant, up-to-date document for the version 'mix'
above, and have cribbed from Xen wiki docs & mailing list posts.
Something's clearly still wrong.
With a goal of being well-informed rather than lucky, I'd appreciate
some guidance with getting the consoles (tty0/ttyS0/xvc0) properly
configured & working for serial port use on Opensuse/Xen.
Here's what I've done for the current instance; I've installed
lsb_release -rd
Description: openSUSE 12.3 (x86_64)
Release: 12.3
uname -a
Linux xentest.loc 3.7.10-1.16-xen #1 SMP Fri May 31
20:21:23 UTC 2013 (97c14ba) x86_64 x86_64 x86_64
GNU/Linux
rpm -qa | egrep -i "^xen|^systemd-1"
xen-tools-4.3.0_06-256.2.x86_64
xen-devel-4.3.0_06-256.2.x86_64
xen-libs-4.3.0_06-256.2.x86_64
xen-4.3.0_06-256.2.x86_64
systemd-195-13.29.1.x86_64
In grub1's /boot/grub/menu.lst, I configure for serial port use as
follows
...
serial --unit=0 --speed=57600 --word=8 --parity=no --stop=1
terminal --timeout=6 console serial
title XEN SERIAL TEST
root (hd0,0)
kernel /xen.gz vga=gfx-1280x1024x16 com1=57600,8n1,pci
console=vga,com1 dom0_mem=1024M,max:1024M
dom0_vcpus_pin=true dom0_max_vcpus=4
module /vmlinuz-xen root=/dev/sda1 rootfstype=ext4
noresume vga=0x31a earlyprintk=xen console=tty0
xencons=ttyS0
module /initrd-xen
...
Set up the getty listener for ttyS0
cat /etc/systemd/system/[email protected]
[Unit]
Description=Serial Getty on %I
Documentation=man:agetty(8)
man:systemd-getty-generator(8)
BindsTo=dev-%i.device
Conflicts=rescue.service
After=dev-%i.device systemd-user-sessions.service
plymouth-quit-wait.service
Before=getty.target
IgnoreOnIsolate=yes
[Service]
ExecStart=-/sbin/agetty -s %I 57600 vt102
Type=idle
Restart=always
RestartSec=0
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
KillMode=process
IgnoreSIGPIPE=no
KillSignal=SIGHUP
ls -al `find /etc/systemd/system | grep serial-getty`
lrwxrwxrwx 1 root root 48 Jul 2 10:38
/etc/systemd/system/getty.target.wants/[email protected]
-> /etc/systemd/system/[email protected]
-rw-r--r-- 1 root root 1.1K Jun 13 02:50
/etc/systemd/system/[email protected]
checking after boot,
ps ax | grep getty
1055 tty4 Ss+ 0:00 /sbin/agetty --noclear tty4
38400 linux
1056 tty5 Ss+ 0:00 /sbin/agetty --noclear tty5
38400 linux
1057 ttyS0 Ss+ 0:00 /sbin/agetty -s ttyS0 57600
vt102
1058 tty3 Ss+ 0:00 /sbin/agetty --noclear tty3
38400 linux
1059 tty2 Ss+ 0:00 /sbin/agetty --noclear tty2
38400 linux
1060 tty6 Ss+ 0:00 /sbin/agetty --noclear tty6
38400 linux
1061 tty1 Ss+ 0:00 /sbin/agetty --noclear tty1
38400 linux
and
dmesg | egrep -i "tty0|ttyS0|xvc0"
[ 0.000000] Command line: root=/dev/sda1 rootfstype=ext4 noresume
vga=0x31a earlyprintk=xen console=tty0 xencons=ttyS0
[ 0.000000] Kernel command line: root=/dev/sda1 rootfstype=ext4
noresume vga=0x31a earlyprintk=xen console=tty0 xencons=ttyS0
[ 0.000000] console [tty0] enabled, bootconsole disabled
[ 0.914285] Xen virtual console successfully installed as ttyS0
[ 20.851501] systemd[1]: Expecting device dev-ttyS0.device...
[ 26.350878] systemd[1]: Found device /dev/ttyS0.
--
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]