Using remote serial console on Linux
This assumes using virtual serial console of HP iLo.Modify grub.cfg / menu.lst
serial --unit=1 --speed=38400 --word=8 --parity=no --stop=1 terminal --timeout=30 serial console #splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-238.19.1.el5) root (hd0,0) kernel /vmlinuz-2.6.18-238.19.1.el5 ro root=/dev/vg_01/root console=tty0 console=ttyS1,38400n8 initrd /initrd-2.6.18-238.19.1.el5.img
Add to inittab
T0:2345:respawn:/sbin/agetty -h ttyS1 38400 xterm
Add to /etc/securetty
ttyS1
What about virtual environment?
One can use host-pipe to setup a virtual console. I use virtualbox and this is my setting:[x] Enable Serial Port Port Number: COM1 Port Mode: Host Pipe [x] Create Pipe Port/File path: /tmp/sl61.console
Once that's setup, you can use socat to interact with that file:
$ socat unix-client:/tmp/sl61.console stdout
� Welcome to Scientific Linux Starting udev: piix4_smbus 0000:00:07.0: SMBus base address uninitialized - upgrade BIOS or use force_addr=0xaddr
There are 5 comments on this page. [Display comments]