View Issue Details

IDProjectCategoryView StatusLast Update
0006368CentOS-6grubpublic2013-04-05 20:23
Reporterjsievert Assigned To 
PriorityhighSeverityblockReproducibilityalways
Status newResolutionopen 
Platformx86_64OSCentOSOS Version6.4
Product Version6.4 
Summary0006368: Installing via serial console results in a non bootable system
DescriptionI have several Open Compute systems (20+) that I am installing via the serial console via IPMI. On CentOS 6.3 and 6.4 if I add "serial console=ttyS1,57600n8" to the kernel parameters the install works fine and I can see the progress from the SoL port however after the system reboots all I get is a blinking cursor. If I boot from a CD and go into rescue mode I can see that it is installed properly, grub is there in the MBR and everything is fine but the system will not boot from the HDD. After some trial an error I found that commenting out the serial line in the grub.cfg I could reboot the system.

#serial --unit=1 --speed=57600

To fix this I added a simple sed command to the post section of the kickstart and all is good.
sed -i "s/\(.*\)\(speed\)/#\1\2/g" /boot/grub/grub.conf
Steps To ReproduceInstall a system via serial console
Reboot
TagsNo tags attached.

Activities

jsievert

jsievert

2013-04-05 17:57

reporter   ~0017095

One thing to note is that I am also seeing a similar issue in Ubuntu however the behavior is different. In Ubuntu enabling the serial console in Grub results in an error message being displayed.
https://bugs.launchpad.net/opencompute/+bug/1164686
tru

tru

2013-04-05 19:59

administrator   ~0017096

does it work on the "real" hardware serial console ttyS0?
could you post the grub.conf file?
jsievert

jsievert

2013-04-05 20:04

reporter   ~0017097

I will give it a try on ttyS0. Need to go get a USB cdrom attached to recover the system after I uncomment the line. I will attach the generated grub config file.
jsievert

jsievert

2013-04-05 20:06

reporter  

CentOSgrub.txt (882 bytes)   
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/mapper/vg_ocpr0s12l-lv_root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
serial --unit=1 --speed=57600
terminal --timeout=5 serial console
title CentOS (2.6.32-358.el6.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-358.el6.x86_64 ro root=/dev/mapper/vg_ocpr0s12l-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vg_ocpr0s12l/lv_swap  KEYTABLE=us crashkernel=auto SYSFONT=latarcyrheb-sun16 rd_LVM_LV=vg_ocpr0s12l/lv_root console=ttyS1,57600n8 rd_NO_DM
        initrd /initramfs-2.6.32-358.el6.x86_64.img
CentOSgrub.txt (882 bytes)   
jsievert

jsievert

2013-04-05 20:22

reporter   ~0017098

I updated the grub config file to point to ttyS0 instead of ttyS1 and it looks to be working. To confirm the behavior change I will need to try install as well. I have attached the ttyS0 version of the config file for review.
jsievert

jsievert

2013-04-05 20:23

reporter  

CentOSgrubttyS0.txt (884 bytes)   
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/mapper/vg_ocpr0s12l-lv_root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
serial --unit=0 --speed=57600
terminal --timeout=5 serial console
title CentOS (2.6.32-358.el6.x86_64)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-358.el6.x86_64 ro root=/dev/mapper/vg_ocpr0s12l-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vg_ocpr0s12l/lv_swap  KEYTABLE=us crashkernel=auto SYSFONT=latarcyrheb-sun16 rd_LVM_LV=vg_ocpr0s12l/lv_root console=ttyS0,57600n8 rd_NO_DM
        initrd /initramfs-2.6.32-358.el6.x86_64.img
CentOSgrubttyS0.txt (884 bytes)   

Issue History

Date Modified Username Field Change
2013-04-04 20:07 jsievert New Issue
2013-04-05 17:57 jsievert Note Added: 0017095
2013-04-05 19:59 tru Note Added: 0017096
2013-04-05 20:04 jsievert Note Added: 0017097
2013-04-05 20:06 jsievert File Added: CentOSgrub.txt
2013-04-05 20:22 jsievert Note Added: 0017098
2013-04-05 20:23 jsievert File Added: CentOSgrubttyS0.txt