如何获取AWS内核上的配额内核模块?

如何获取AWS内核上的配额内核模块?

我似乎无法安装 Ubuntu 16.04 AWS 内核的配额模块。我已经启动了官方云映像(ami-e5d9439a来自Ubuntu 的云图像网站)。检查内核模块显示它们没有安装:

ubuntu@ip-10-0-0-78:~$ modprobe quota_v1
modprobe: FATAL: Module quota_v1 not found in directory /lib/modules/4.4.0-1060-aws
ubuntu@ip-10-0-0-78:~$ modprobe quota_v2
modprobe: FATAL: Module quota_v2 not found in directory /lib/modules/4.4.0-1060-aws

获取配额模块的常规技巧是安装内核的 linux-image-extra 包,但这个包不存在:

ubuntu@ip-10-0-0-78:~$ sudo apt-get update
...
ubuntu@ip-10-0-0-78:~$ sudo apt-get -y install linux-image-extra-`uname -r`
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-image-extra-4.4.0-1060-aws
E: Couldn't find any package by glob 'linux-image-extra-4.4.0-1060-aws'
E: Couldn't find any package by regex 'linux-image-extra-4.4.0-1060-aws'

linux-image-extra-virtual当然,安装没有帮助,因为它安装的所有内容都是错误的内核版本:

ubuntu@ip-10-0-0-78:~$ sudo apt-get install linux-image-extra-virtual
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  amd64-microcode crda intel-microcode iucode-tool iw libnl-3-200 libnl-genl-3-200 linux-firmware linux-image-4.4.0-127-generic
  linux-image-extra-4.4.0-127-generic linux-image-generic thermald wireless-regdb
Suggested packages:
  fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools linux-headers-4.4.0-127-generic
The following NEW packages will be installed:
  amd64-microcode crda intel-microcode iucode-tool iw libnl-3-200 libnl-genl-3-200 linux-firmware linux-image-4.4.0-127-generic
  linux-image-extra-4.4.0-127-generic linux-image-extra-virtual linux-image-generic thermald wireless-regdb
0 upgraded, 14 newly installed, 0 to remove and 0 not upgraded.
Need to get 110 MB of archives.
After this operation, 456 MB of additional disk space will be used.
Do you want to continue? [Y/n] yes
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libnl-3-200 amd64 3.2.27-1ubuntu0.16.04.1 [52.2 kB]
...
ubuntu@ip-10-0-0-78:~$ sudo reboot
...
ubuntu@ip-10-0-0-78:~$ uname -a
Linux ip-10-0-0-78 4.4.0-1060-aws #69-Ubuntu SMP Sun May 20 13:42:07 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
ubuntu@ip-10-0-0-78:~$ modprobe quota_v1
modprobe: FATAL: Module quota_v1 not found in directory /lib/modules/4.4.0-1060-aws
ubuntu@ip-10-0-0-78:~$ modprobe quota_v2
modprobe: FATAL: Module quota_v2 not found in directory /lib/modules/4.4.0-1060-aws

是否有可以安装的软件包来获取配额内核模块?或者,如果我想在 AWS 机器上使用磁盘配额,是否必须自行构建它们?

答案1

长话短说:安装linux-modules-extra-aws

我花了很多时间在这个问题上,答案却隐藏在问题本身的评论中。

启动板上有一个关于此问题的错误报告bugs.launchpad.net/ubuntu/+source/linux-aws/+bug/1773172— MrSpock 2019 年 3 月 12 日 14:12

希望这也能帮助其他人。

相关内容