Dec 31 2009

Access Linux from HP iLO Interface

Published by at 2:46 pm under Linux,SSH




iLO is a management interface supporting SSH, available on HP Proliant servers. It provides interesting features such as remotely powering the server on and off.
But it is also possible to access the Linux console and reboot in single mode remotely. How handy is that!?
 

BIOS

While booting up, press F9 to go in the BIOS Setup
Go in ‘BIOS Serial Console & EMS’ menu
Set ‘BIOS Serial Console Port’ to COM2
Set ‘BIOS Serial Console Baud Rate’ to 115200
Press ESC then F10 to save
Selecting COM1 only redirects the output on to the screen in the slow serial mode fashion.
 

iLO

Press F8 to configure iLO
Set the iLO parameters that suit your network and define users
 

Boot loader

Once Linux installed, edit /boot/grub/menu.lst or /boot/grub/grub.conf
And add the following lines:

# Setup serial (COM2) with baudrate 115200
# Use --unit=0 for COM1
serial --unit=1 --speed=115200
terminal --timeout=5 console serial

And add console=tty0 (screen) console=ttyS1 (ttyS0 for COM1) to the kernel line.
Here’s my grub.conf for instance:

splashimage=(hd0,0)/grub/splash.xpm.gz
serial --unit=1 --speed=115200
terminal --timeout=5 console serial
title Red Hat Enterprise Linux Server (2.6.18-164.el5PAE)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-164.el5PAE ro root=/dev/system/root
        console=tty0 console=ttyS1
        initrd /initrd-2.6.18-164.el5PAE.img

 

Init Files

This is normally it. On some systems, you may have to add the following line to /etc/inittab to get the login prompt on the console:

s0:12345:respawn:/sbin/agetty -L 115200 ttyS1 vt100

 
Also check ttyS1 is listed in /etc/securetty if you want to log in as root.
 

Notes

F9 or F8 keys have to be switched with ESC+9 and ESC+8. They will lead you to the CLI mode, a command-prompted interface that provides equivalent functionality to the menu-based mode. Check HP for the RBSU user guide.
 
Now, SSH to your iLO IP address, log in and type ‘power on’ to boot the server.
Type in ‘vsp’ to open the virtual console and you’ll get BIOS messages, Grub menu, Linux boot messages including services, and the login prompt on the display!


2 responses so far

2 Responses to “Access Linux from HP iLO Interface”

  1. c0m0on 24 Jul 2012 at 10:35 pm

    what happeng if i need boot my server in single user mode?

    if think this it\’s wrong
    ===========================================
    s0:2345:respawn:/sbin/agetty -L 115200 ttyS1 vt100
    ===========================================
    should be
    ===========================================
    s0:12345:respawn:/sbin/agetty -L 115200 ttyS1 vt100
    ===========================================

  2. daveon 25 Jul 2012 at 10:54 am

    Well spotted, it’s been corrected

Comments RSS

Leave a Reply