[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

grub2 + serial redirect


So after 12+ years of using lilo on my server, I've decided that it might be time to upgrade my boot loader.  With lilo I'm using the standard serial redirect since I'm running a headless box (more specifically it's a guest of a VirtualBox host).

With Grub2, I've been able to get the standard serial redirect working with the following in my /etc/default/grub:

GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,9600"
GRUB_SERIAL_COMMAND="serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1"

This works fine once the kernel is booted (it redirects output to my serial port).  I am not able to see the boot menu with this new configuration however - it appears on the "video" portion of the screen, and I'm able to select a kernel that way, but the serial ouput gets nothing.  With Grub v.1 on other machines with serial redirect, I've been able to get the menu.  Is there some option that I'm missing?

Additionally, IIRC, the GRUB_CMDLINE_LINUX option above is conditional, meaning that if I want video vs. serial redirection while booting, I need to swap the two 'console' directives.  Given that there's only one way I can specify the linux command line option, how would I go about doing this?


Reply to: