WHY & How do I fix this??????????

Discussion in 'General' started by cowboy47, Jul 9, 2008.

  1. cowboy47

    Joined:
    Jun 14, 2007
    Messages:
    276
    Likes Received:
    0
    It seems that the main reason that yum update is screwing up everything is that I noticed that every server that I have, after I have done a yum update, the default image to load is XEN. Why did this happen, before, xen was the second option, not the first, so with an unattended reboot, my system boot up in xen, not the normal image. I do not recall how to fix this so if anyone can give me the steps, it would be appreciated.

    C
     
  2. elastixguy

    Joined:
    Mar 1, 2008
    Messages:
    36
    Likes Received:
    0
    I'm facing the same issue.

    I can't install the Sangoma drivers because the xen image is being loaded by default
     
  3. elastixguy

    Joined:
    Mar 1, 2008
    Messages:
    36
    Likes Received:
    0
    Re:WHY & How do I fix this??????????

    Have just changed it in /boot/grub/grub.conf

    Seems to be working again, but... Why is there so many images on the boot menu? Why can't delete the old ones?<br><br>Post edited by: elastixguy, at: 2008/07/08 21:47
     
  4. cowboy47

    Joined:
    Jun 14, 2007
    Messages:
    276
    Likes Received:
    0
    ok, here is how I solved it. Now I am not sure if this will remain stable though.

    I went into:

    cd /boot/grub

    in that directory is a file called grub.conf.

    I changed the order. My grub.conf file looks like this now and is coming up in the normal mode of centos not xen.

    # 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/sda2
    # initrd /initrd-version.img
    #boot=/dev/sda
    default=0
    timeout=5
    splashimage=(hd0,0)/grub/splash.xpm.gz
    #hiddenmenu
    title CentOS (2.6.18-53.1.19.el5)
    root (hd0,0)
    kernel /vmlinuz-2.6.18-53.1.19.el5 ro root=LABEL=/1
    initrd /initrd-2.6.18-53.1.19.el5.img
    title CentOS (2.6.18-53.1.19.el5xen)
    root (hd0,0)
    kernel /xen.gz-2.6.18-53.1.19.el5
    module /vmlinuz-2.6.18-53.1.19.el5xen ro root=LABEL=/1
    module /initrd-2.6.18-53.1.19.el5xen.img
    title CentOS-base (2.6.18-8.el5)
    root (hd0,0)
    kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/1
    initrd /initrd-2.6.18-8.el5.img
    title CentOS (2.6.18-8.el5xen)
    root (hd0,0)
    kernel /xen.gz-2.6.18-8.el5
    module /vmlinuz-2.6.18-8.el5xen ro root=LABEL=/1
    module /initrd-2.6.18-8.el5xen.img


    I used WinSCP to edit the file and saved it, then did a reboot. You can verify if it worked by typing uname -a at the prompt and if it was successful, you will see:

    Linux mirror.sercompanama.com 2.6.18-53.1.19.el5 #1 SMP Wed May 7 08:20:19 EDT 2008 i686 athlon i386 GNU/Linux


    note the 2.6.18-53.1.19.el5 does NOT have xen at the end.

    Now we just need to ensure that the developers do not change this again.
     
  5. cowboy47

    Joined:
    Jun 14, 2007
    Messages:
    276
    Likes Received:
    0
    I do not have a response on why so many images, except if the developers were scared of problems and wanted a fall back.

    Remember there are two things that work in conjunction in grub.conf. The first is the setting of default=0 which means that it will go to the image that is 1st listed.

    The 2nd is the order of the images. The 1st image, which starts with title CentOS is number 0.

    C
     
  6. jjidea

    Joined:
    Jan 7, 2008
    Messages:
    15
    Likes Received:
    0
    You can remove old kernels with
    Code:
    yum remove kernel-2.6.18-8.el5xen
    or which you want
    
     
  7. elastixguy

    Joined:
    Mar 1, 2008
    Messages:
    36
    Likes Received:
    0
    But should I?

    I mean, is there a reason not to? I'm not very experienced with linux and would appreciate advices from others.
     
  8. elastixguy

    Joined:
    Mar 1, 2008
    Messages:
    36
    Likes Received:
    0
    Re:WHY & How do I fix this??????????

    <br><br>Post edited by: elastixguy, at: 2008/07/09 07:59
     

Share This Page