1. Edit grub.conf with your favorite editor so you can manipulate grub and the boot process via remote console:
CODE
serial --unit=0 --speed=9600
terminal --timeout=10 serial console
terminal --timeout=10 serial console
Example:
CODE
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda3
# initrd /initrd-version.img
#boot=/dev/hda
serial --unit=0 --speed=9600
terminal --timeout=10 serial console
default=0
timeout=3
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hda3
# initrd /initrd-version.img
#boot=/dev/hda
serial --unit=0 --speed=9600
terminal --timeout=10 serial console
default=0
timeout=3
You will also need to add options to the kernel line if you want to see the kernel booting and if you need to do file system maintenance via the remote console (IE it is stuck at fsck errors):
CODE
console=tty0 console=ttyS0,9600
Example:
CODE
title Red Hat Enterprise Linux ES (2.4.21-27.EL)
root (hd0,0)
kernel (hd0,0)/vmlinuz-2.4.21-27.EL root=/dev/hda3 console=tty0 console=ttyS0,9600
initrd (hd0,0)/initrd-2.4.21-27.EL.img
root (hd0,0)
kernel (hd0,0)/vmlinuz-2.4.21-27.EL root=/dev/hda3 console=tty0 console=ttyS0,9600
initrd (hd0,0)/initrd-2.4.21-27.EL.img
NOTE Your kernel line may differ such as Kernel version and root= device. DO NOT CHANGE THESE, simply append the line with console options.
2. If you want shell console access after the boot process you will need to do the following:
Add the following to the bottom of /etc/inittab:
CODE
co:12345:respawn:/sbin/agetty -L 9600 ttyS0 vt100
Add the following to the bottom of /etc/securetty:
CODE
ttyS0
Restart getty to get immediate access to Remote Console:
CODE
telinit q
If you have any problems please submit a support ticket.
