OS-OE Knowledge/Linux-Unix KB

RHEL/HPE ProLiant Server의 iLO Console VSP 출력

스쳐가는인연 2019. 5. 15. 19:21

HPE ProLiant Server의 iLO Virtual Console 화면을 Virtual Serial Port로 출력하기 (HPE iLO VSP 구성)


iLO Virtual Console을 공유하고자 하는 Server A

A로부터 화면을 공유 받는 장치 B, 


A에서,

1. Hardware Configuration

 

HPE iLO 4 User Guide
https://h20628.www2.hp.com/km-ext/kmcsdirect/emr_na-c03334051-19.pdf#m94362
P.224. Using the iLO Virtual Serial Port

Configuring the iLO Virtual Serial Port in the UEFI System Utilities
1. Access the UEFI system utilities -> Press <F9> during POST

2. Set the Virtual Serial Port COM port.
a. move to System Configuration -> BIOS/Platform configuration (RBSU) -> System Options -> Serial Port Options.
b. Select Virtual Serial Port, and Select the COM 2. (default)

3. Set the BIOS serial console port COM port
Select BIOS Serial Console and EMS
-> Select BIOS Serial Console Port -> "Auto" to "Virtual Serial Port"
-> Select BIOS Serial Console Emulation Mode -> VT100+ (default).
-> Select BIOS Serial Console Baud Rate -115200 (default).
-> EMS Console -> Disabled (default)

 

2. Software Configuration.
1) RHEL OS의 Grub Configure (커널 파라메터 추가, 뒤에 나열된 터미널이 주 콘솔)
# vim /boot/grub/grub.conf
------------------------------------------

# ttyS0 and unit 0 are for com1 and ttyS1 and unit 1 are for com2.
# rear is primary display
console=tty0 console=ttyS1,115200
------------------------------------------

e.g.)

------------------------------------------
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux 6 (2.6.32-573.el6.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-573.el6.x86_64 ro root=/dev/mapper/vg_dl380g9j7u1-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vg_dl380g9j7u1/lv_root SYSFONT=latarcyrheb-sun16 crashkernel=128M rd_LVM_LV=vg_dl380g9j7u1/lv_swap  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet console=tty0 console=ttyS1,115200
        initrd /initramfs-2.6.32-573.el6.x86_64.img
------------------------------------------
        kernel /vmlinuz-2.6.32-573.el6.x86_64 ro root=/dev/mapper/vg_dl380g9j7u1-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vg_dl380g9j7u1/lv_root SYSFONT=latarcyrheb-sun16 crashkernel=128M rd_LVM_LV=vg_dl380g9j7u1/lv_swap  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM console=tty0 console=ttyS1,115200 intremap=no_x2apic_optout elevator=deadline nmi_watchdog=0 intel_idle.max_cstate=0 processor.max_cstate=0

------------------------------------------

 

2) check teminial in list (목록에 있는지 검토)
# /etc/securetty
------------------------------------------
ttyS1
------------------------------------------

 

 

Note: Optional (커널 파라메터 추가 하는 방법 중 다른 방법, OS 버전마다 구성이 일부 다를 수 있으니 참고)
# vim /boot/grub/grub.conf
------------------------------------------
# splashimage=(hd0,0)/grub/splash.xpm.gz  << Comment out (add '#', 주석처리)

Add below two line in top (아래 2 줄 추가, '-'가 2회 필요함에 주의, 가이드에서 1회처럼 기록됨)
serial --unit=0 --speed=115200
terminal --timeout=10 serial console


# cat /boot/grub/grub.conf
------------------------------------------
serial --unit=0 --speed=115200
terminal --timeout=10 serial console

default=0
timeout=5
#splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux 6 (2.6.32-573.el6.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-573.el6.x86_64 ro root=/dev/mapper/vg_dl360g9c8u13-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vg_dl360g9c8u13/lv_root SYSFONT=latarcyrheb-sun16 crashkernel=128M rd_LVM_LV=vg_dl360g9c8u13/lv_swap  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet console=tty0 console=ttyS1,115200
        initrd /initramfs-2.6.32-573.el6.x86_64.img
------------------------------------------


NOTE: UEFI 환경인 경우,

------------------------------------------

# vim /etc/default/grub
 
add below line's tail - "console=tty0 console=ttyS1,115200"
GRUB_CMDLINE_LINUX="crashkernel=384M rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet console=tty0 console=ttyS1,115200"

# grub2-mkconfig -o /boot/grub2/grub.cfg
# grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg

------------------------------------------


B 에서,

A server의 iLO IP Address로 ssh 접속 후, vsp 실행

</>hpiLO-> vsp


참고문서:
How to setup virtual serial console for a HP system with iLO's VSP?
https://access.redhat.com/solutions/28555

How does one set up a serial terminal and/or console in Red Hat Enterprise Linux?
https://access.redhat.com/articles/3166931

반응형