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

Gil*_*mas 5 apt kernel amazon-ec2 quota

我似乎无法安装 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
Run Code Online (Sandbox Code Playgroud)

获取配额模块的正常技巧是为您的内核安装 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'
Run Code Online (Sandbox Code Playgroud)

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
Run Code Online (Sandbox Code Playgroud)

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

小智 2

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

\n

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

\n
\n

Launchpad 上有一个关于此bugs.launchpad.net/ubuntu/+source/linux-aws/+bug/1773172 \xe2\x80\x93 MrSpock Mar\n12 \'19 at 14:12 的错误报告

\n
\n

希望这也对其他人有帮助。

\n