介绍

https://packages.debian.org/sid/linux-image-cloud-amd64

This package depends on the latest Linux kernel and modules for use on Amazon EC2, Google Compute Engine and Microsoft Azure cloud platforms.

在基于虚拟化的64位设备,如 KVM Xen(不包括VMWare)的虚拟服务器(VPS)中,Cloud内核往往是最佳选择。 且本人已成功在128M内存安装并启动Debian10。

安装步骤

安装所需依赖

apt install -y lsb-release

添加 Backports 源

1
2
3
4
5
6
7
8
cat >> /etc/apt/sources.list.d/backports.list << EOF
deb http://deb.debian.org/debian $(lsb_release -sc)-backports main 
EOF

#国内可考虑使用中科大的源
cat >> /etc/apt/sources.list.d/backports.list << EOF
deb https://mirrors.ustc.edu.cn/debian $(lsb_release -sc)-backports main 
EOF

执行升级

apt -t $(lsb_release -sc)-backports update && apt -y -t $(lsb_release -sc)-backports upgrade

注:更新的同时可能会自动更新新内核,可重启后卸载掉

安装内核

apt -t $(lsb_release -sc)-backports install linux-image-cloud-amd64 linux-headers-cloud-amd64

安装成功后重启即可食用,可使用uname -r查看内核是否安装成功

卸载原来内核

1
2
dpkg -l | grep linux-image
apt-get purge 欲卸载的旧内核

其他注意事项

  • 该内核仅有amd64位版本
  • 该内核精简了云平台几乎不可能用到的驱动,如WiFi,蓝牙,故体积较小VMWare不能安装此内核