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

Re: [Xen-users] f10 domU serial console



On Thu, 16 Apr 2009, Fajar A. Nugraha wrote:

On Thu, Apr 16, 2009 at 10:39 AM, mantra UNIX <unix.mantra@xxxxxxxxx> wrote:
Hi,
How do i configure a serial console for a f10/x86_64/PV guest to work.

/boot/grub/grub.conf:
...
title Fedora (2.6.27.21-170.2.56.fc10.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.27.21-170.2.56.fc10.x86_64 ro
root=/dev/rootvg/root_lv rhgb quiet console=ttyS0
        initrd /initrd-2.6.27.21-170.2.56.fc10.x86_64.img

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

boot parameters:
   [root@bk4 /tmp/www.logs]# more /proc/cmdline
    root=/dev/sda1 ro console=xvc0 aoe_iflist=eth1

device entry:

   [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 :(

-Tom
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.