1. Edit the grub file;
~# vi /etc/default/grub
2. Add the "console=ttyS0,115200 loglevel=7 console=tty0 " into GRUB_CMDLINE_LINUX line;
eg: GRUB_CMDLINE_LINUX="crashkernel=auto resume=/dev/mapper/rhel-swap rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet console=ttyS0,115200 loglevel=7 console=tty0 "
3. mkconfig the grub file;
#For an MBR (BIOS-based) system:
~# grub2-mkconfig -o /boot/grub2/grub.cfg
#For a GPT (UEFI-based) system:
~# grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
Esc+2可以通过串口进BIOS