kvm kernel missing nbd module
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-kvm (Ubuntu) |
Fix Released
|
Undecided
|
Kamal Mostafa | ||
Xenial |
Fix Released
|
Undecided
|
Kamal Mostafa | ||
Bionic |
Fix Released
|
Undecided
|
Kamal Mostafa |
Bug Description
The "nbd" module is missing from linux-modules-
root@ubuntu:~# /sbin/modprobe nbd max_part=16
modprobe: FATAL: Module nbd not found in directory /lib/modules/
root@ubuntu:~# uname -a
Linux ubuntu 4.15.0-1021-kvm #21-Ubuntu SMP Tue Aug 28 09:57:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
root@ubuntu:~# dpkg-query -l | grep linux-modules
ii linux-modules-
ii linux-modules-
ii linux-modules-
ii linux-modules-
nbd exists for the generic kernel, but not kvm.
root@ubuntu:~# find /lib/modules -name '*nbd*'
/lib/modules/
root@ubuntu:~# dpkg-query -S /lib/modules/
linux-modules-
In fact, there are many more modules in the generic kernel:
root@ubuntu:~# dpkg-query -L linux-modules-
514
root@ubuntu:~# dpkg-query -L linux-modules-
1285
I checked if there is a linux-modules-extra for kvm and this kernel version, but there is not - only for azure.
root@ubuntu:~# apt-cache search linux-modules-
linux-modules-
root@ubuntu:~#
There is a "linux-
root@ubuntu:~# dpkg-query -L linux-image-
/.
/usr
/usr/share
/usr/share/doc
/usr/share/
/usr/share/
/usr/share/
As a workaround, I expect I can use the generic kernel - but this won't be optimised for kvm.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-modules-
ProcVersionSign
Uname: Linux 4.15.0-1021-kvm x86_64
ApportVersion: 2.20.9-0ubuntu7.3
Architecture: amd64
Date: Sun Sep 23 19:43:56 2018
Dependencies:
InstallationDate: Installed on 2018-06-15 (100 days ago)
InstallationMedia: Ubuntu-Server 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
ProcEnviron:
LANG=en_GB.UTF-8
TERM=xterm-
SHELL=/bin/bash
XDG_RUNTIME_
PATH=(custom, no user)
SourcePackage: linux-kvm
UpgradeStatus: No upgrade log present (probably fresh install)
CVE References
Changed in linux-kvm (Ubuntu): | |
status: | New → In Progress |
Changed in linux-kvm (Ubuntu Xenial): | |
status: | New → In Progress |
Changed in linux-kvm (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in linux-kvm (Ubuntu): | |
assignee: | nobody → Kamal Mostafa (kamalmostafa) |
Changed in linux-kvm (Ubuntu Xenial): | |
assignee: | nobody → Kamal Mostafa (kamalmostafa) |
Changed in linux-kvm (Ubuntu Bionic): | |
assignee: | nobody → Kamal Mostafa (kamalmostafa) |
Changed in linux-kvm (Ubuntu Bionic): | |
status: | In Progress → Fix Committed |
Changed in linux-kvm (Ubuntu Xenial): | |
status: | In Progress → Fix Committed |
Changed in linux-kvm (Ubuntu): | |
status: | In Progress → Fix Committed |
We will be happy enable nbd in the linux-kvm kernels. We'll post to this bug to indicate the kernel versions which will include the change.
Regarding your note that "there are many more modules in the generic kernel" -- indeed, the reduced size is one of the design features of the linux-kvm kernel.