CentOS Serial Console

Probably not needed soon, but I needed it so here it is.

For CentOS 6 add:

console=tty0 console=ttyS1,115200n8

To your kernel. The OS will take care of setting up getty, etc. That easy. Note that this assumes you want serial on ttyS1 and at 115200. Don’t forget to reboot.

CentOS 7/8 add:

console=ttyS1,115200n8

Don’t forget to run:

grub2-mkconfig -o /boot/grub2/grub.cfg

or, if you’re using EFI:

grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg

OS should take care of everything else. Don’t forget to reboot.

Leave a Reply

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