全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
楼主: cgs3238

内核Kernel 4.9正式版(支持BBR) For CentOS 6/7 x86_64

  [复制链接]
发表于 2016-12-9 14:08:40 | 显示全部楼层
最新vultr.com CentOS 7 测试出现的问题
出现两个选项
  1. [root@vultr ~]# awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg | grep 4.9.0-rc8
  2. 0 : CentOS Linux 7 Rescue 78f7cabf5dbe44a6a43e2fe24c16f24b (4.9.0-rc8.el7.centos.x86_64)
  3. 1 : CentOS Linux (4.9.0-rc8.el7.centos.x86_64) 7 (Core)
复制代码


解决方法
  1. awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg | grep ${KVersion}|grep -v -i debug |grep -i -v rescue| cut -d' ' -f1
复制代码

点评

已修改脚本  发表于 2016-12-9 14:11
非常好,谢谢  发表于 2016-12-9 14:09
发表于 2016-12-9 14:16:51 | 显示全部楼层
cgs3238 发表于 2016-12-9 14:01
你是不是装过其他人分享的4.9.0内核?你这个错误我遇到过,我编译的内核已经解决了的 ...

原生态的
发表于 2016-12-9 14:23:28 | 显示全部楼层
yumin9822 发表于 2016-12-9 14:08
最新vultr.com CentOS 7 测试出现的问题
出现两个选项

linode Centos 7 用不了

  1. Start installing
  2. Retrieving http://soft.wellphp.com/kernels/x86_64/kernel-ml-4.9.0-rc8.el7.centos.x86_64.rpm
  3. Preparing...                          ################################# [100%]
  4. Updating / installing...
  5.    1:kernel-ml-4.9.0-rc8.el7.centos   ################################# [100%]
  6. grubby fatal error: unable to find a suitable template
  7. Checking if the installtion is ok
  8. Sorry, install failed, please contact the author
复制代码
发表于 2016-12-9 14:53:47 | 显示全部楼层
cgs3238 发表于 2016-12-9 14:01
你是不是装过其他人分享的4.9.0内核?你这个错误我遇到过,我编译的内核已经解决了的 ...


大佬 linode Centos 7 用不了


  1. Start installing
  2. Retrieving http://soft.wellphp.com/kernels/x86_64/kernel-ml-4.9.0-rc8.el7.centos.x86_64.rpm
  3. Preparing...                          ################################# [100%]
  4. Updating / installing...
  5.    1:kernel-ml-4.9.0-rc8.el7.centos   ################################# [100%]
  6. grubby fatal error: unable to find a suitable template
  7. Checking if the installtion is ok
  8. Sorry, install failed, please contact the author
复制代码
发表于 2016-12-9 15:08:53 | 显示全部楼层
cgs3238 发表于 2016-12-9 10:51
搬瓦工是OVZ,不行的

谢谢,明白了。
 楼主| 发表于 2016-12-9 15:18:13 | 显示全部楼层
linode-jspinosi 发表于 2016-12-9 14:53
大佬 linode Centos 7 用不了

没钱开linode测试,哈哈
发表于 2016-12-9 16:14:05 | 显示全部楼层
码一下,好用
发表于 2016-12-9 16:16:32 | 显示全部楼层
本帖最后由 yumin9822 于 2016-12-9 16:18 编辑
蓝鹰 发表于 2016-12-9 13:48
Sorry, I can only support x64 yet.


i386请使用这个
http://elrepo.org/people/ajb/devel/kernel-ml/el6/x86_32/RPMS/kernel-ml-4.9.0-0.rc8.el6.elrepo.i686.rpm

用了这个,LZ的脚本就得修改一下才能使用
发表于 2016-12-9 17:01:24 | 显示全部楼层
本帖最后由 yumin9822 于 2016-12-9 17:13 编辑

开了一个Linode小鸡测试,结果管理页面卡机了。登录不进去

初步看下来稍微麻烦点,更换内核
centos6参考这里
https://www.linode.com/docs/tools-reference/custom-kernels-distros/run-a-distributionsupplied-kernel-with-pvgrub#centos-6-and-newer

centos7参考这里
自己更换内核
XEN
http://madlax.pw/2016/06/15/57.html
KVM
http://madlax.pw/2016/12/03/103.html

centos6 KVM教程如下:
  1. yum install epel-release
  2. yum install grub grubby
  3. rpm -Uvh http://soft.wellphp.com/kernels/x86_64/kernel-ml-4.9.0-rc8.el6.x86_64.rpm
  4. cat >> /boot/grub/menu.lst<<-EOF
  5. timeout 5
  6. title CentOS6 (4.9.0-rc8)
  7. root (hd0)
  8. kernel /boot/vmlinuz-4.9.0-rc8.el6.x86_64 root=/dev/sda
  9. initrd /boot/initramfs-4.9.0-rc8.el6.x86_64.img
  10. EOF
复制代码

然后进入控制台按下面操作




重启后,进入系统就是新内核了。哈哈
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-28 02:13 , Processed in 0.072159 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表