IPMI SOL access configuration for Ubuntu OS

  • BIOS accessibility via ipmitool:

Baud-rate speed used for SOL access is Volatile Bit Rate (kbps). It requires serial communication redirection to be enabled in BIOS. Serial communication speed should match Baud-rate speed.

  • Serial console access:

Configuring the console login process

  • Identify the serial port for the BMC from dmesg:

 $ dmesg |grep tty

 [    0.000000] console [tty0] enabled

 [    1.073325] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

 [    1.094732] 00:03: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

 [    1.115064] 0000:00:16.3: ttyS1 at I/O 0x9080 (irq = 17) is a 16550A

ttyS1 is for the BMC.

  • Create a file called /etc/init/ttyS1.conf containing the following:

  # ttyS1 – getty

  #

  #This service maintains a getty on ttyS1 from the point the system is

  # started until it is shut down again.

  start on stopped rc or RUNLEVEL=[2345]

  stop on runlevel [!2345]

  respawn

  exec /sbin/getty -L 57600 ttyS1 vt102

  • Ask upstart to start the getty

$ sudo start ttyS1

  • Restart init

 $ sudo /sbin/telinit q

 

  1. Check: On another system that supports IPMI v2, run

  # ipmitool -I lanplus -H <System’s BMC IP address> -U <userid> -P <password> sol activate

This should enable see login prompt and being able to login using a system user.

  • Configuring grub for bootup process to be visible:
  1. Edit /etc/default/grub

  # If you change this file, run ‘update-grub’ afterwards to update

  # /boot/grub/grub.cfg.

  GRUB_DEFAULT=0

  GRUB_TIMEOUT=1

  GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`

  GRUB_CMDLINE_LINUX=”console=tty0 console=ttyS1,57600n8″

 # Uncomment to disable graphical terminal (grub-pc only). Unit number indicates serial communication port. COM1 – 0, COM2 – 1, COM3 – 2, etc

  GRUB_TERMINAL=”serial console“

  GRUB_SERIAL_COMMAND=”serial –speed=57600 –unit=1 –word=8 –parity=no –stop=1″

  # The resolution used on graphical terminal

  # note that you can use only modes which your graphic card supports via VBE

  # you can see them in real GRUB with the command `vbeinfo’

  #GRUB_GFXMODE=640×480

  # Uncomment if you don’t want GRUB to pass “root=UUID=xxx” parameter to Linux

  #GRUB_DISABLE_LINUX_UUID=true

Note: Comment GRUB_HIDDEN_TIMEOUT=0 and GRUB_HIDDEN_TIMEOUT_QUIET=true if they are in the original grub.cfg.

Additionally, if OS is installed via MAAS then above settings need to be configured in file /etc/default/grub.d/50-curtin-settings.cfg .

  1. update grub

# update-grub

  • Finally, following are useful ipmitool commands to manage the IPMI SOL interface:
  • IPMI SOL interface access via command –

# ipmitool -I lanplus -H <IPMI-IP> -U <username> -P <password> -C3 sol activate

  • Stop IPMI SOL interface access via command –

# ipmitool -I lanplus -H <IPMI-IP> -U <username> -P <password> -C3 sol deactivate

  • Check IPMI SOL configuration –

# ipmitool -I lanplus -H <IPMI-IP> -U <username> -P <password> -C3 sol info 1

  • Configure IPMI SOL configuration parameters –

# ipmitool -I lanplus -H <IPMI-IP> -U <username> -P <password> -C3 sol set volatile-bit-rate <value>

2 thoughts on “IPMI SOL access configuration for Ubuntu OS

  1. Johny Jackson Reply

    always i used to read smaller articles or reviews which also clear their motive, and that is also happening with this article which I am
    reading at this place.

Leave a Reply

Your email address will not be published. Required fields are marked *