home_server:home_server_setup:other_services:ipmi_console

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
home_server:home_server_setup:other_services:ipmi_console [2020-05-13 Wed wk20 19:59] – [Related links] baumkphome_server:home_server_setup:other_services:ipmi_console [2023-12-24 Sun wk51 00:26] (current) – [Related links] baumkp
Line 1: Line 1:
 +{{tag>linux bmc grub IPMI, Console, Redirection, CLI}}
 ======IPMI Console Setup====== ======IPMI Console Setup======
 I have 3 computers from Supermicro with BMC and IPMI.  The Supermicro provided utility program IPMIView is good, but the iKVM console redirection facility is woefully unreliable and also seems to be poorly documented! (Probably because it is based upon Java.)  Interestingly this utility program is provided for Windows and Linux, and is even available in Manjaro AUR repositories.  (This probably actually makes sense as many Supermicro computers with BMC are used on servers that are more Linux focused than Windoz.)  I have actually been having these IPMIView Java console blues for many year now on Windows and one solution was to use an earlier version of IPMIView (2.14)that seem to allow more reliable Console redirection   I have 3 computers from Supermicro with BMC and IPMI.  The Supermicro provided utility program IPMIView is good, but the iKVM console redirection facility is woefully unreliable and also seems to be poorly documented! (Probably because it is based upon Java.)  Interestingly this utility program is provided for Windows and Linux, and is even available in Manjaro AUR repositories.  (This probably actually makes sense as many Supermicro computers with BMC are used on servers that are more Linux focused than Windoz.)  I have actually been having these IPMIView Java console blues for many year now on Windows and one solution was to use an earlier version of IPMIView (2.14)that seem to allow more reliable Console redirection  
Line 47: Line 48:
  
 I adjusted my grub boot loader configuration as follows ''sudo vim /etc/default/grub'': I adjusted my grub boot loader configuration as follows ''sudo vim /etc/default/grub'':
-<code>+<code JavaScript [enable_line_numbers="true"]>
 # If you change this file, run 'update-grub' afterwards to update # If you change this file, run 'update-grub' afterwards to update
 # /boot/grub/grub.cfg. # /boot/grub/grub.cfg.
Line 54: Line 55:
  
 GRUB_DEFAULT=0 GRUB_DEFAULT=0
-GRUB_TIMEOUT_STYLE=hidden +#GRUB_TIMEOUT_STYLE=hidden 
-GRUB_TIMEOUT=2+GRUB_TIMEOUT_STYLE=menu 
 +GRUB_TIMEOUT=8
 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
-GRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=ttyS1,115200n8+GRUB_CMDLINE_LINUX_DEFAULT="" 
-GRUB_CMDLINE_LINUX=""+GRUB_CMDLINE_LINUX="console=tty1 console=ttyS1,115200n8"
  
 # Uncomment to enable BadRAM filtering, modify to suit your needs # Uncomment to enable BadRAM filtering, modify to suit your needs
Line 86: Line 88:
  
 The key lines being: The key lines being:
-<code> +<code grub
-GRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=ttyS1,115200n8"+GRUB_CMDLINE_LINUX="console=tty1 console=ttyS1,115200n8"
 GRUB_TERMINAL=serial GRUB_TERMINAL=serial
 GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=1 --word=8 --parity=no --stop=1" GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=1 --word=8 --parity=no --stop=1"
Line 104: Line 106:
  
 The Ubuntu Documentation [[https://help.ubuntu.com/community/SerialConsoleHowto|SerialConsoleHowto]] instruction on server setup of stty are not optimal for systems running systemd, but still ok for Grub boot loader setup. (The client setup is based upon BMC IPMI so the client software setup description is also not relevant.) The BMC IPMI client setup is described below. The Ubuntu Documentation [[https://help.ubuntu.com/community/SerialConsoleHowto|SerialConsoleHowto]] instruction on server setup of stty are not optimal for systems running systemd, but still ok for Grub boot loader setup. (The client setup is based upon BMC IPMI so the client software setup description is also not relevant.) The BMC IPMI client setup is described below.
 +
 +On Debian 10 Buster I had some issued with getting ipmi console to work after grub login.  To resolve I modified the systemd configuration fill as follows:
 +''sudo vim /lib/systemd/system/serial-getty@.service''
 +I then modified the line:
 +<code>
 +#ExecStart=-/sbin/agetty -o '-p -- \\u' --keep-baud 115200,38400,9600 %I $TERM
 +ExecStart=-/sbin/agetty -o '-p -- \\u' 115200 %I $TERM
 +</code>
 +Then ''sudo systemctl daemon-reload'' followed by ''sudo systemctl restart serial-getty@ttyS1.service''
  
 ====BMC IPMI SOL Client Setup==== ====BMC IPMI SOL Client Setup====
Line 123: Line 134:
  
 =====tty terminal controls===== =====tty terminal controls=====
 +
 +The tty serial of IPMI connection is not as functional as a full modern Linux terminal and some terminal programs will not fucntion well or at all. That being said it allows basic full headless remote functionality of machine in control.  
 +
 +IPMI is know for not having strong security.  Hence it should only be operated in a restricted LAN, where only strict secure outside control is possible.
 +
 +One problem is the terminal does not autmatically resize, a couple of tools are available to assist with this:
 +  * The command ''stty'' can be used to manually set the terminal size, e.g. ''stty cols 132 rows 34''
 +  * The command ''resize''  automatically resizes the stty terminal to match the local terminal size. (Seems to require large overheads)
 +  * The command ''sudo stty -F /dev/ttyS1'' can be used to check the parameters of the ttyS1 serial connection.
 +  * The command ''sudo stty -F /dev/ttyS1 115200'' can be used to set the ttyS1 serial connection speed to 115200 baud.
 +The terminal number of columns and rows can be found with ''tput'' or ''stty''
 +  * ''tput cols'' returns the number of columns
 +  * ''tput rows'' returns the number of rows
 +  * ''echo -e "lines\ncols"|tput -S'' to get both using tput
 +  * ''stty size'', is POSIX compliant
 +  * ''stty size | cut -d" " -f1'' and ''stty size | cut -d" " -f2'' will get row and column
 +
 +Check the man pages or do an internet search on these commands for further information and details.
  
  
Line 131: Line 160:
   *Ubuntu Documentation [[https://help.ubuntu.com/community/SerialConsoleHowto|SerialConsoleHowto]]   *Ubuntu Documentation [[https://help.ubuntu.com/community/SerialConsoleHowto|SerialConsoleHowto]]
   *[[http://0pointer.net/blog/projects/serial-console.html|systemd for Administrators, Part XVI]]   *[[http://0pointer.net/blog/projects/serial-console.html|systemd for Administrators, Part XVI]]
 +  *[[https://stackoverflow.com/questions/263890/how-do-i-find-the-width-height-of-a-terminal-window|How do I find the width & height of a terminal window?]]
 +  *[[https://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux/20983251#20983251|How-to-change-the-output-color-of-echo-in-linux]]
  
 ---- ----
  
 <- home_server:home_server_setup:other_services:ipmi|Prev ^ home_server:home_server_setup:other_services:index|Start page ^ home_server:home_server_setup:other_services:disk|Next -> <- home_server:home_server_setup:other_services:ipmi|Prev ^ home_server:home_server_setup:other_services:index|Start page ^ home_server:home_server_setup:other_services:disk|Next ->
  • /app/www/public/data/attic/home_server/home_server_setup/other_services/ipmi_console.1589371189.txt.gz
  • Last modified: 2023-04-30 Sun wk17 17:44
  • (external edit)