Bug#504709: #504709 Xen console problems
found 504709 2.6.26-13
thanks
On one Xen Dom0 I have Lenny DomUs with and without this problem. Same
inittab on all (the one created by xen-create-image/debootstrap)
DomUs, so it shouldn't be the cause.
Main difference are the kernels: The working DomUs run Etch Xen
kernels, the DomUs with broken console Lenny Xen kernels. The Dom0
runs Lenny.
Config of one Xen DomU with broken console is untouched as created by:
xen-create-image --fs ext3 --kernel /boot/vmlinuz-2.6.26-1-xen-amd64 --memory 128 --passwd --size 5G --swap 512 --dist lenny --mirror http://ftp.ch.debian.org/debian --dhcp --mac 00:16:3E:ab:42:23 --lvm vg0 --hostname alohomora
Some more observations on workarounds:
+ Installing udev helps around the missing /dev/pts which prevents ssh
logins (but not calling non-terminal-needing programs), too, so
adding --role udev prevents that issue.
+ ssh works without /dev/pts for non-terminal-needing programs, so you
can do 'ssh root@alohomora aptitude install udev' even without
/dev/pts -- you seem to need to reboot afterwards though.
+ Adding an appropriate /dev/pts line ("devpts /dev/pts devpts
rw,noexec,nosuid,gid=5,mode=620 0 0 ") to /etc/fstab helps of
course, too and can be done via ssh, too.
The above mentioned alohomora Xen DomU is my test box so if anyone
wants me some tests to run, I can do that.
Some gory details of which I believe can contain helpful information:
Inside the DomU the following processes are running after a naked
install plus udev:
alohomora:~# ps auxwwf
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 2 0.0 0.0 0 0 ? S< 09:19 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S< 09:19 0:00 \_ [migration/0]
root 4 0.0 0.0 0 0 ? S< 09:19 0:00 \_ [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< 09:19 0:00 \_ [watchdog/0]
root 6 0.0 0.0 0 0 ? S< 09:19 0:00 \_ [events/0]
root 7 0.0 0.0 0 0 ? S< 09:19 0:00 \_ [khelper]
root 19 0.0 0.0 0 0 ? S< 09:19 0:00 \_ [xenwatch]
root 20 0.0 0.0 0 0 ? S< 09:19 0:00 \_ [xenbus]
root 51 0.0 0.0 0 0 ? S< 09:19 0:00 \_ [kblockd/0]
root 60 0.0 0.0 0 0 ? S< 09:19 0:00 \_ [ksuspend_usbd]
root 66 0.0 0.0 0 0 ? S< 09:19 0:00 \_ [khubd]
root 69 0.0 0.0 0 0 ? S< 09:19 0:00 \_ [kseriod]
root 102 0.0 0.0 0 0 ? S 09:19 0:00 \_ [pdflush]
root 103 0.0 0.0 0 0 ? S 09:19 0:00 \_ [pdflush]
root 104 0.0 0.0 0 0 ? S< 09:19 0:00 \_ [kswapd0]
root 105 0.0 0.0 0 0 ? S< 09:19 0:00 \_ [aio/0]
root 230 0.0 0.0 0 0 ? S< 09:19 0:00 \_ [net_accel/0]
root 524 0.0 0.0 0 0 ? S< 09:19 0:00 \_ [kstriped]
root 529 0.0 0.0 0 0 ? S< 09:19 0:00 \_ [ksnapd]
root 567 0.0 0.0 0 0 ? S< 09:19 0:00 \_ [kjournald]
root 1 0.0 0.5 10312 744 ? Ss 09:19 0:00 init [2]
root 648 0.0 0.7 16792 1036 ? S<s 09:19 0:00 udevd --daemon
root 1062 0.0 0.3 6296 504 ? Ss 09:19 0:00 dhclient3 -pf /var/run/dhclient.eth0.pid -lf /var/lib/dhcp3/dhclient.eth0.leases eth0
root 1147 0.0 1.1 60240 1476 ? Sl 09:19 0:00 /usr/sbin/rsyslogd -c3
root 1165 0.0 0.8 48864 1176 ? Ss 09:19 0:00 /usr/sbin/sshd
root 1224 0.4 2.4 66060 3160 ? Ss 09:35 0:00 \_ sshd: root@pts/0
root 1227 0.0 1.2 17444 1704 pts/0 Ss 09:35 0:00 \_ -bash
root 1232 0.0 0.7 14724 948 pts/0 R+ 09:36 0:00 \_ ps auxwwf
root 1185 0.0 0.6 18548 836 ? Ss 09:19 0:00 /usr/sbin/cron
root 1202 0.0 0.4 3796 572 tty1 Ss+ 09:19 0:00 /sbin/getty 38400 tty1
alohomora:~#
All relevant parts of /etc/inittab (which are the default though):
alohomora:~# egrep -v '^#|^$' /etc/inittab
id:2:initdefault:
si::sysinit:/etc/init.d/rcS
~~:S:wait:/sbin/sulogin
l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
z6:6:respawn:/sbin/sulogin
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
pf::powerwait:/etc/init.d/powerfail start
pn::powerfailnow:/etc/init.d/powerfail now
po::powerokwait:/etc/init.d/powerfail stop
1:2345:respawn:/sbin/getty 38400 tty1
alohomora:~#
root@phd-xenhost:/etc/xen/ # egrep -v '^#|^$' /etc/xen/alohomora
kernel = '/boot/vmlinuz-2.6.26-1-xen-amd64'
ramdisk = '/boot/initrd.img-2.6.26-1-xen-amd64'
memory = '128'
root = '/dev/sda2 ro'
disk = [
'phy:/dev/vg0/alohomora-swap,sda1,w',
'phy:/dev/vg0/alohomora-disk,sda2,w',
]
name = 'alohomora'
dhcp = 'dhcp'
vif = [ 'mac=00:16:3E:ab:42:23' ]
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
root@phd-xenhost:/etc/xen/ #
Kind regards, Axel Beckert
--
Axel Beckert <beckert@phys.ethz.ch> support: +41 44 633 26 68
IT Services Group, HPT D 17 voice: +41 44 633 41 89
Departement of Physics, ETH Zurich
CH-8093 Zurich, Switzerland http://nic.phys.ethz.ch/
Reply to: