On Thu, 16 Apr 2009, Fajar A. Nugraha wrote:
On Thu, Apr 16, 2009 at 10:39 AM, mantra UNIX <unix.mantra@xxxxxxxxx> wrote:
How do i configure a serial console for a f10/x86_64/PV guest to work.
title Fedora (220.127.116.11-170.2.56.fc10.x86_64)
kernel /vmlinuz-18.104.22.168-170.2.56.fc10.x86_64 ro
root=/dev/rootvg/root_lv rhgb quiet console=ttyS0
Try hvc0 instead of ttyS0.
I think that's the hvm device... but it doesn't really matter what the
name is as long as it matches everywhere... e.g. boot parameters,
/dev/, initab, and securetty
on an old RH 7.2 guest I had to setup a bunch of stuff by hand...
[root@bk4 /tmp/www.logs]# more /proc/cmdline
root=/dev/sda1 ro console=xvc0 aoe_iflist=eth1
[root@bk4 /tmp/www.logs]# ls -ld /dev/xvc0
crw------- 1 root tty 204, 191 Apr 11 23:58 /dev/xvc0
and an inittab entry:
[root@bk4 ~]# tail /etc/inittab
# this is the xen3.2 syntax apparently...!?
co:2345:respawn:/sbin/agetty xvc0 9600 vt100-nav
and make sure that whatever you call this is in /etc/securetty if
you want to be able to login as root!
Now, all the above said, on a modern centOS PV guest, I didn't
have to do any of that. /dev/console simply works.
[root@nineteen /home/farmers/farmersfresh]# more /proc/cmdline
root=/dev/sda1 ro aoe_iflist=eth1
co:12345:respawn:/sbin/agetty 9600 console
[root@nineteen /home/farmers/farmersfresh]# ls -l /dev/console
crw--w---- 1 root tty 5, 1 Apr 12 09:51 /dev/console
Obviously, your mileage may vary :)
Unless of course you REALLY want to route the console for one specific
guest out a physical serial port. I'm not sure how you'd do that. At times
the XEN serial console has conflicted with the serial port drivers... I
haven't looked at that for a long time though :(
Xen-users mailing list