ga('set', 'anonymizeIp', 1);
Categories: 运维

LINODE的XEN架构UBUNTU更换内核

最近把LINODE上的服务器从CENTOS6换成了UBUNTU,发现内核版本太新,装不了锐速XX这有点蛋痛。LINODE后台面板支持直接更换他们的一些不同内核,但有时需要使用其他内核,用之前的UBUNTU切换内核无法完成内核切换。那要怎么办呢?

按以下步骤来。
PS:LINODE的KVM架构LINUX更换内核

  1. 先安装默认内核,卸载grub2,安装grub

apt-get update

apt-get install linux-image-virtual

apt-get purge grub2 grub-pc

apt-get install grub

mkdir /boot/grub

update-grub
  1. 编辑/boot/grub/menu.lst

    nano /boot/grub/menu.lst

找到

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

改为

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

找到

# groot=(hd0,0)

改为

# groot=(hd0)
  1. 更新GRUB

    update-grub

  2. 打开文件/etc/init/hvc0.conf确认如下

    hvc0 - getty

    This service maintains a getty on hvc0 from the point the system is

    started until it is shut down again.

    start on stopped rc RUNLEVEL=[2345]
    stop on runlevel [!2345]

    respawn
    exec /sbin/getty -8 38400 hvc0

  3. 回到后台面板系统profile选择内核为pv-grub-x86_32 或 pv-grub-x86_64,视你安装的系统决定x86_64或x86_32

  4. 确认root device 是 xvda

  5. 在Filesystem/Boot Helpers 项目里, 禁用Distro Helper,然后点Save Profile保存,在面板里点reboot重启机器。

之后就可以按照UBUNTU切换内核进行切换内核了。

madlaxcb

View Comments

Recent Posts

解决WIN10显示器重启后分辨率变低窗口乱跳问题

  最近换了显示器,当有事离开…

2月 ago

宝塔开启堡塔防入侵会导致Chevereto的Cron运行失败

昨晚给服务器搬迁,新服务器装了…

7月 ago

chevereto V3和V4的改造

今天有空升级了cheveret…

11月 ago

win11开启bbr2

powershell: net…

1年 ago

OVH使用API安装发行版内核的系统(关于API,IPXE,RAID等)

OVH的新面板提供的系统模板比…

1年 ago