Linode新KVM架构VPS更换内核以安装锐速BBR等程序

安装Grub
安装过程中可能会询问安装位置,不需要安装到MBR

Arch Linux

pacman -S linux grub
CentOS 7

yum install kernel grub2
Debian

apt-get install linux-image-amd64 grub2
Fedora 22

dnf install kernel-core grub2
Ubuntu

apt-get install linux-image-virtual grub2
Gentoo

echo “GRUB_PLATFORMS=”coreboot pc”” >> /etc/portage/make.conf
emerge –ask sys-boot/grub sys-kernel/gentoo-sources genkernel
eselect kernel list
eselect kernel set [# of new kernel]
zcat /proc/config.gz > /usr/src/linux/.config
genkernel –oldconfig all
配置Grub

编辑/etc/default/grub,修改以下项目:

GRUB_TIMEOUT=10
GRUB_CMDLINE_LINUX=”console=ttyS0,19200n8″
GRUB_DISABLE_LINUX_UUID=true
GRUB_SERIAL_COMMAND=”serial –speed=19200 –unit=0 –word=8 –parity=no –stop=1″
GRUB_TERMINAL=serial
更新bootloader,更新内核后需要再一次运行该命令来更新GRUB目录,默认为列表第一个内核启动:

Arch Linux

grub-mkconfig -o /boot/grub/grub.cfg
Debian 8 & Ubuntu 15.04

update-grub
CentOS 7

mkdir /boot/grub
grub2-mkconfig -o /boot/grub/grub.cfg
Fedora 22 – Replace with the current kernel version

dracut /boot/initrd-4.0.5-300.fc22.x86_64.img 4.0.5-300.fc22.x86_64
mkdir /boot/grub
grub2-mkconfig -o /boot/grub/grub.cfg
Gentoo

mkdir /boot/grub
grub2-mkconfig -o /boot/grub/grub.cfg
重启到Grub2 模式

在LINODE面板选择编辑你的配置文件
Click on Edit under the Configuration Profiles section

在Boot Settings选项的Kernel列表里选择GRUB 2
In the Boot Settings section, select GRUB 2 from the Kernel drop down menu

点Save Changes保存,重启机子后就可以按通常方式更换发行版内核了。
启动中可能会出现以下错误,可以忽略。

error: file `/boot/grub/i386-pc/all_video.mod’ not found.
Loading Linux linux …
Loading initial ramdisk …

Press any key to continue…

相关推荐: 编译安装go语言运行环境

1、下载安装包官网地址:https://golang.org/dl/如果无法访问备用地址:https://golang.google.cn/dl/根据自己的操作系统选择对应的版本我这里以树莓派为例选择arm6版本下载 wget -c https://golan…

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享
评论 抢沙发

请登录后发表评论