[opensuse] how to configure grub to show its menu through a serial console?
Hello. Maybe a stupid question because I only started trying to configure a serial terminal to access a headless SuSE 10.2 server. I need to be able to select from grub boot menu from serial console, not going to the real host for this. I was following this guide (very detailed and nice written guide I think) https://secure-support.novell.com/KanisaPlatform/Publishing/584/3456486_f.SA... I configured serial console by folling that guide, everything works except only one thing, the boot menu is still displayed on the SuSE server (not on my serial terminal). (After that everything is on serial line). According to the guide adding these lines to menu.lst should work: serial --unit=0 --speed=115200 terminal --timeout=15 serial console And I tripple checked I do have this in my menu.lst. I am going to dig into grub document for this, but drop a message on the list too in case someone happen to know if I have done it wrong. Thanks a lot in advance! Here is my menu.lst # Modified by YaST2. Last modification on 四 1月 25 17:35:46 CST 2007 default 0 timeout 5 gfxmenu (hd0,1)/boot/message ##YaST - activate serial --unit=0 --speed=115200 terminal --lines=37 serial ###Don't change this comment - YaST2 identifier: Original name: linux### title openSUSE 10.2 root (hd0,1) kernel /boot/vmlinuz-2.6.18.2-34-default root=/dev/hdb2 resume=/dev/hdb1 splash=silent showopts vmalloc=256M console=ttyS0,115200 # kernel /boot/vmlinuz-2.6.18.2-34-default root=/dev/hdb2 vga=0x314 resume=/dev/hdb1 splash=silent showopts vmalloc=196M fbcon=map:4 initrd /boot/initrd-2.6.18.2-34-default ###Don't change this comment - YaST2 identifier: Original name: failsafe### title Failsafe -- openSUSE 10.2 root (hd0,1) kernel /boot/vmlinuz-2.6.18.2-34-default root=/dev/hdb2 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3 initrd /boot/initrd-2.6.18.2-34-default -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Here is the mistake I made. The two lines serial --unit=0 --speed=115200 terminal --timeout=15 serial console MUST be used at the very begining of menu.lst configuration file. If it's used in wrong place like my example config file (see end of this email) it has no effect. 在 2007-01-27六的 01:26 +0800,Zhang Weiwu写道:
Hello. Maybe a stupid question because I only started trying to configure a serial terminal to access a headless SuSE 10.2 server.
I need to be able to select from grub boot menu from serial console, not going to the real host for this. I was following this guide (very detailed and nice written guide I think) https://secure-support.novell.com/KanisaPlatform/Publishing/584/3456486_f.SA...
I configured serial console by folling that guide, everything works except only one thing, the boot menu is still displayed on the SuSE server (not on my serial terminal). (After that everything is on serial line).
According to the guide adding these lines to menu.lst should work: serial --unit=0 --speed=115200 terminal --timeout=15 serial console
And I tripple checked I do have this in my menu.lst. I am going to dig into grub document for this, but drop a message on the list too in case someone happen to know if I have done it wrong. Thanks a lot in advance!
Here is my menu.lst
# Modified by YaST2. Last modification on 四 1月 25 17:35:46 CST 2007 default 0 timeout 5 gfxmenu (hd0,1)/boot/message ##YaST - activate serial --unit=0 --speed=115200 terminal --lines=37 serial
###Don't change this comment - YaST2 identifier: Original name: linux### title openSUSE 10.2 root (hd0,1) kernel /boot/vmlinuz-2.6.18.2-34-default root=/dev/hdb2 resume=/dev/hdb1 splash=silent showopts vmalloc=256M console=ttyS0,115200 # kernel /boot/vmlinuz-2.6.18.2-34-default root=/dev/hdb2 vga=0x314 resume=/dev/hdb1 splash=silent showopts vmalloc=196M fbcon=map:4 initrd /boot/initrd-2.6.18.2-34-default
###Don't change this comment - YaST2 identifier: Original name: failsafe### title Failsafe -- openSUSE 10.2 root (hd0,1) kernel /boot/vmlinuz-2.6.18.2-34-default root=/dev/hdb2 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3 initrd /boot/initrd-2.6.18.2-34-default
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 26 January 2007 11:34, Zhang Weiwu wrote:
Here is the mistake I made. The two lines serial --unit=0 --speed=115200 terminal --timeout=15 serial console
MUST be used at the very begining of menu.lst configuration file. For clarification... are you saying that you made this work? You now get the grub boot screens (can enter grub commands) on the serial device? You serial device can be an actual boot-up console?
Thanks. -- Kind regards, M Harris <>< -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I think there was some RS-232 related article on openSUSE wiki, but can't find it recently. Try this: http://www.linux.com/howtos/Remote-Serial-Console-HOWTO/ -Alexey Eremenko -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 26 January 2007 16:43, Alexey Eremenko wrote:
Try this: http://www.linux.com/howtos/Remote-Serial-Console-HOWTO/ Beauty...
... I use a serial console on all of my headless servers, but I have not been able to get grub to come across the serial connection... the same problem Zhang experienced. I put the whole thing on the back burner and haven't messed with it since... now yous guys have motivated me to try it again. Thanks! ;-) -- Kind regards, M Harris <>< -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 26 January 2007 17:44, M Harris wrote:
I use a serial console on all of my headless servers, but I have not been able to get grub to come across the serial connection... the same problem Zhang experienced. Actually, I had the same problem Zhang reported, and another...
... I also forgot to remove the gfxmenu line from menu.lst (duh) So, whalla--- my serial consoles not only display kernel messages, they also display grub. Yessssss. Big thank you from me to Alexey and Zhang Weiwu ! -- Kind regards, M Harris <>< -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
在 2007-01-27六的 01:34 +0800,Zhang Weiwu写道:
Here is the mistake I made. The two lines serial --unit=0 --speed=115200 terminal --timeout=15 serial console
MUST be used at the very begining of menu.lst configuration file. If it's used in wrong place like my example config file (see end of this email) it has no effect.
No. My method doesn't work. It only worked one time, after that it never worked again. I only see one time when grub menu appeared on the terminal by that time I happen to have just had moved the two lines to the begining of grub's menu.lst. Later using the same grub menu.lst file always display menu on tty0. Strange. Still looking into grub documents. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 27 January 2007 19:04, Zhang Weiwu wrote:
No. My method doesn't work. It only worked one time, after that it never worked again. hi Zhang Weiwu,
... well you helped me... and it worked great! Try making your connection slower. I tried 115200 also, and it was erratic. I took it all the way back to 9600 and worked up from there... 19200 or 38400 should be more than sufficient. My lines are as follows: serial --unit=0 --speed=9600 --word=8 --parity=no --stop=1 terminal --timeout=5 serial console -- Kind regards, M Harris <>< -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Alexey Eremenko
-
M Harris
-
Zhang Weiwu