全球主机交流论坛
标题:
解决!KVM装了centos6,但是为啥不让换内核呢
[打印本页]
作者:
zhc670
时间:
2018-5-17 19:58
标题:
解决!KVM装了centos6,但是为啥不让换内核呢
本帖最后由 zhc670 于 2018-5-17 20:35 编辑
RT
用了南琴浪的魔改 BBR 一键脚本,
然后手动又搞了一下,但是reboot以后还是2.6.32,
有大佬遇到过这个吗?
求指点。
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/vda1
# initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=1
timeout=1
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-696.28.1.el6.x86_64)
root (hd0,0)
kernel /boot/vmlinuz-2.6.32-696.28.1.el6.x86_64 ro root=UUID=2edd8cb0-8742-4c36-8595-03ab85a4bcce rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYS$
initrd /boot/initramfs-2.6.32-696.28.1.el6.x86_64.img
title CentOS (4.11.8-1.el6.elrepo.x86_64)
root (hd0,0)
kernel /boot/vmlinuz-4.11.8-1.el6.elrepo.x86_64 ro root=UUID=2edd8cb0-8742-4c36-8595-03ab85a4bcce rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYS$
initrd /boot/initramfs-4.11.8-1.el6.elrepo.x86_64.img
title CentOS (4.12.10-1.el6.elrepo.x86_64)
root (hd0,0)
kernel /boot/vmlinuz-4.12.10-1.el6.elrepo.x86_64 ro root=UUID=2edd8cb0-8742-4c36-8595-03ab85a4bcce rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SY$
initrd /boot/initramfs-4.12.10-1.el6.elrepo.x86_64.img
作者:
Kvm
时间:
2018-5-17 20:01
在vnc里面重启,然后一直按上下键,等grub选内核看看????
作者:
Smart
时间:
2018-5-17 20:04
旧内核直接删掉
作者:
zhc670
时间:
2018-5-17 20:39
# ls -l /boot/grub/grub.conf /etc/grub.conf
-rw------- 1 root root 1597 May 17 20:18 /boot/grub/grub.conf
lrwxrwxrwx. 1 root root 19 Jan 25 2017 /etc/grub.conf -> /boot/grub/menu.lst
不明白这两玩意咋不一致,一直是改/etc/grub.conf
最后发现/boot/grub/grub.conf只有2.6那两段,
/etc/grub.conf 覆盖掉就ok了,
从没遇到过这种问题,怪哉。
欢迎光临 全球主机交流论坛 (https://fd.vvwvv.eu.org/)
Powered by Discuz! X3.4