在redhat rel 内核版本2.6.18-53.el5xen安装 linux2.6.22

下载自己想要的内核,
以linux-2.6.22.tar.gz内核为例。(rel5 linux kernel is 2.6.18)
>tar -zxvf linux-2.6.22.tar.gz
>su
>password:
>mv linux-2.6.22 /usr/src
>cp /usr/src/linux-2.6.22
>cp /boot/.config  ./    //use the defaut kernel config that your current linux config
>make menuconfig

choose Load an Alternate Configuration File . use .config  (in the current dirctory)

press TAB key choose OK  to go to main menu ,then  TAB key to exit

>make bzImage
for 20 min , then compile ok!

>make modules  // compile modules that selected by default config  through  .config file

for 20min ,then compile OK!

>make modules_install //install modules

>make install // install kernel

that is ok!

Look the change of /boot/gurb/grub.conf

>cat /boot/grub/grub.conf

# 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/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.22)
        root (hd0,0)
        kernel /vmlinuz-2.6.22 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.22.img
title Red Hat Enterprise Linux Server (2.6.18-53.el5xen)
        root (hd0,0)
        kernel /xen.gz-2.6.18-53.el5
        module /vmlinuz-2.6.18-53.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        module /initrd-2.6.18-53.el5xen.img
title Red Hat Enterprise Linux Server-base (2.6.18-53.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-53.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.18-53.el5.img

the first title is the new kernel !!

>reboot

enter the timeout interface ! please enter ESC key to choose selecting kernel UI

test!!!!!!


Also you can modify /boot/grub/grub/gurb.conf to set default kernel

default=1  //default kernel
timeout=10

default=1 // defalut : the second title is default val


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

john_liqinghan

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值