Linode使用发行版内核(以Wheezy/Jessie为例)

本文编写于3545天前,最后编辑于 3542天前,部分内容可能已经过时,请您自行斟酌确认。

1.首先升级系统

apt-get update          
apt-get upgrade --show-upgraded

2.安装发行版自带内核
32位

apt-get install linux-image-686-pae
mkdir /boot/grub
apt-get install grub-legacy

64位

apt-get install linux-image-amd64
mkdir /boot/grub
apt-get install grub-legacy

3.生成/boot/grub/menu.lst

grub-set-default 1
update-grub

4.编辑/boot/grub/menu.lst,请注意不要取消注释里面的内容.

nano /boot/grub/menu.lst

修改timeout 5timeout 10
找到类似于下面这一行

# kopt=root=UUID=de400b9f-2578-488e-8664-250a8455a6fc ro

修改为

# kopt=root=/dev/xvda console=hvc0 ro quiet

找到带有groot=的这一行,确保是这样的

# groot=(hd0)

然后执行

update-grub

5.打开linode后台,修改内核为 pv-grub-x86_32或者pv-grub-x86_64,确保root device设置为/dev/xvda,禁用Xenify distro/Distro Helper选项,保存,重启就可以了
6.重启之后
测试

uname -a

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注