那么 cloud 内核是什么呢?包页面对 linux-image-cloud-amd64 的说明是:This package depends on the latest Linux kernel and modules for use on cloud platforms including Amazon EC2, Microsoft Azure, and Google Compute Engine.
即专门为云平台而优化的,具体可以从 News from the Debian Cloud Team 中一探究竟:A cloud-specific Linux package (linux-image-cloud) allowed us to disable features that are not relevant in cloud environments and enable what is really important. For example, features related to bluetooth and sound support are disabled and some drivers needed by the cloud providers are enabled. To illustrate that, Amazon EC2 uses Elastic Network Adapter (ENA) support and Intel Corporation 82599 Ethernet Controller Virtual Function, and Microsoft Azure uses Mellanox Technologies MT27500/MT27520 Family [ConnectX-3/ConnectX-3 Pro Virtual Function], all of them are enabled by default in linux-image-cloud package (and are not needed at all by regular Debian users). Furthermore, the grub-cloud package was created to provide some specific cloud setup on top of regular grub packages, it installs grub for the PC/BIOS and the EFI-AMD64 architecture.
有些特性是云环境不需要的,像蓝牙、声音的支持,Cloud 内核剔除了这些无用模块的同时添加了几乎只有云平台会用到的驱动程序。在 KVM 虚拟化的机器中,cloud 内核表现良好。
一、更新package
1 | sudo apt-get update && sudo apt-get dist-upgrade |
二、查看系统现有内核
1 | dpkg -l|grep linux-image |
三、查看最新内核
1 | sudo apt-cache search linux-image |
四、安装Cloud内核
1 | sudo apt-get install linux-image-cloud-amd64 -y |
五、卸载老内核
1 | sudo apt-get remove linux-image-amd64 |
六、更新grub
1 | sudo update-grub |
七、重启
1 | reboot |
八、验证是否成功
1 | uname -r |
留言评论
暂无留言