Public bug reported: Currently I am not able to build and sign Virtualbox drivers on the ubuntu with snapped kernel (boot-managed-by-snapd). The directory is read-only.
Maybe we should have this handled by building the dkms somewhere else, but even if so, then how would I be able to sign them and insert? I attached the Virtualbox log .. # LD [M] /tmp/vbox.0/vboxdrv.ko ld -r -m elf_x86_64 -z noexecstack --no-warn-rwx-segments --build-id=sha1 -T scripts/module.lds -o /tmp/vbox.0/vboxdrv.ko /tmp/vbox.0/vboxdrv.o /tmp/vbox.0/vboxdrv.mod.o # BTF [M] /tmp/vbox.0/vboxdrv.ko if [ ! -f vmlinux ]; then printf "Skipping BTF generation for %s due to unavailability of vmlinux " /tmp/vbox.0/vboxdrv.ko 1>&2; else LLVM_OBJCOPY="objcopy" pahole -J --btf_gen_floats -j --lang_exclude=rust --skip_encoding_btf_inconsistent_proto --btf_gen_optimized --btf_base vmlinux /tmp/vbox.0/vboxdrv.ko; ./tools/bpf/resolve_btfids/resolve_btfids -b vmlinux /tmp/vbox.0/vboxdrv.ko; fi; Skipping BTF generation for /tmp/vbox.0/vboxdrv.ko due to unavailability of vmlinux make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/6.8.0-54-generic/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 INSTALL_MOD_PATH= INSTALL_MOD_DIR=misc modules_install make -f ./scripts/Makefile.modinst \ sign-only= mkdir: cannot create directory ‘/lib/modules/6.8.0-54-generic/misc/’: Read-only file system # INSTALL /lib/modules/6.8.0-54-generic/misc/vboxdrv.ko cp /tmp/vbox.0/vboxdrv.ko /lib/modules/6.8.0-54-generic/misc/vboxdrv.ko cp: cannot create regular file '/lib/modules/6.8.0-54-generic/misc/vboxdrv.ko': No such file or directory make[2]: *** [scripts/Makefile.modinst:124: /lib/modules/6.8.0-54-generic/misc/vboxdrv.ko] Error 1 make[1]: *** [Makefile:1833: modules_install] Error 2 make: *** [/tmp/vbox.0/Makefile-footer.gmk:148: install] Error 2 ... This article suggest to build your own kernel and ship with these modules, but for regular user seems like an overkill. Is there an easier way ? ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: virtualbox (not installed) ProcVersionSignature: Ubuntu 6.8.0-54.56-generic 6.8.12 Uname: Linux 6.8.0-54-generic x86_64 NonfreeKernelModules: zfs ApportVersion: 2.28.1-0ubuntu3.3 Architecture: amd64 CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Tue Mar 4 22:29:11 2025 ProcEnviron: LANG=en_US.UTF-8 PATH=(custom, no user) SHELL=/bin/bash TERM=xterm-256color XDG_RUNTIME_DIR=<set> SourcePackage: virtualbox UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: virtualbox (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug noble wayland-session ** Attachment added: "vbox-setup.log" https://bugs.launchpad.net/bugs/2100900/+attachment/5862304/+files/vbox-setup.log -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2100900 Title: Virtualbox installation fails on Noble with snapped kernel (TPM FDE enabled) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/2100900/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs