. 修改/boot/grub.conf
(样本示例, 红色处为添加部分)
#...
device (hd0) HD(1,800,64000,ffc1cc2d-32c9-4d30-9b7d-9988d257623b)
default=0
timeout=5
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
serial --uint=0 --speed=115200 --word=8 --parity=no --stop=1
terminal --timeout=10 serial console
title CentOS (2.6.39)
root (hd0,1)
kernel /vmlinuz-2.6.39 ro root=/dev/mapper/VolGroup-lv_root console=ttyS0,115200n8 rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
console=tty0
initrd /initramfs-2.6.39.img
. 在/etc/inittab中添加
S0:2345:respawn:/sbin/agetty -L -f /etc/issueserial 115200 ttyS0 vt100
. 在/etc/securetty中添加
+ttyS0
来源:oschina
链接:https://my.oschina.net/u/3208144/blog/4518969