Public bug reported:

This is NOT a duplicate of #2136499 which is about kernel HWE Kernel 6.17.
The fix for #2136499 released via virtualbox (7.0.16-dfsg-2ubuntu1.3) does NOT 
fix this issue.

Ubuntu has a long history of releasing virtualbox packages with
incompatible HWE kernels. This goes back to at least 18.04 LTS (c.f.
#1856492) and keeps happening over and over and over again. Most
recently about 3 months ago with #2136499. Since this is a frequently
occurring regression I strongly suggest to implement some additional
tests that prevent HWE kernels to be released with incompatible
virtualbox versions in the LTS release. *Please* catch and fix this
*before release of new HWE kernels* because the recurring breakage and
required workarounds till a fixed package is released are major
nuisance, especially when they occur on the LTS branch which many users
choose for better stability.

Details about the issue:

uname -a
Linux reactor 6.17.0-40-generic #40~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Jun 
23 16:48:12 UTC 2 x86_64 x86_64 x86_64 GNU/Linux


sudo apt-cache policy virtualbox-dkms virtualbox
virtualbox-dkms:
  Installed: 7.0.16-dfsg-2ubuntu1.3
  Candidate: 7.0.16-dfsg-2ubuntu1.3
  Version table:
 *** 7.0.16-dfsg-2ubuntu1.3 500
        500 http://de.archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 
Packages
        100 /var/lib/dpkg/status
     7.0.16-dfsg-2 500
        500 http://de.archive.ubuntu.com/ubuntu noble/multiverse amd64 Packages
virtualbox:
  Installed: 7.0.16-dfsg-2ubuntu1.3
  Candidate: 7.0.16-dfsg-2ubuntu1.3
  Version table:
 *** 7.0.16-dfsg-2ubuntu1.3 500
        500 http://de.archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 
Packages
        100 /var/lib/dpkg/status
     7.0.16-dfsg-2 500
        500 http://de.archive.ubuntu.com/ubuntu noble/multiverse amd64 Packages

sudo apt update && sudo apt dist-upgrade
...
Setting up linux-headers-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 7.0.0-28-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
make -j32 KERNELRELEASE=7.0.0-28-generic -C /lib/modules/7.0.0-28-generic/build 
M=/var/lib/dkms/virtualbox/7.0.16/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 7.0.0-28-generic (x86_64)
Consult /var/lib/dkms/virtualbox/7.0.16/build/make.log for more information.
dkms autoinstall on 7.0.0-28-generic/x86_64 failed for virtualbox(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 7.0.0-28-generic
   ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-7.0.0-28-generic (--configure):
 installed linux-headers-7.0.0-28-generic package post-installation script 
subprocess returned error exit status 11
dpkg: dependency problems prevent configuration of 
linux-headers-generic-hwe-24.04:
 linux-headers-generic-hwe-24.04 depends on linux-headers-7.0.0-28-generic; 
however:
  Package linux-headers-7.0.0-28-generic is not configured yet.

dpkg: error processing package linux-headers-generic-hwe-24.04 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-hwe-24.04:
 linux-generic-hwe-24.04 depends on linux-headers-generic-hwe-24.04 (= 
7.0.0-28.28~24.04.1); however:
  Package linux-headers-generic-hwe-24.04 is not configured yet.

dpkg: error processing package linux-generic-hwe-24.04 (--configure):
 dependency problems - leaving unconfigured
Processing triggers for linux-image-7.0.0-28-generic (7.0.0-28.28~24.04.1) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 7.0.0-28-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
make -j32 KERNELRELEASE=7.0.0-28-generic -C /lib/modules/7.0.0-28-generic/build 
M=/var/lib/dkms/virtualbox/7.0.16/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 7.0.0-28-generic (x86_64)
Consult /var/lib/dkms/virtualbox/7.0.16/build/make.log for more information.
dkms autoinstall on 7.0.0-28-generic/x86_64 failed for virtualbox(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 7.0.0-28-generic
   ...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-7.0.0-28-generic (--configure):
 installed linux-image-7.0.0-28-generic package post-installation script 
subprocess returned error exit status 11
Errors were encountered while processing:
 linux-headers-7.0.0-28-generic
 linux-headers-generic-hwe-24.04
 linux-generic-hwe-24.04
 linux-image-7.0.0-28-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo tail -n 200 /var/lib/dkms/virtualbox/7.0.16/build/make.log
DKMS make.log for virtualbox-7.0.16 for kernel 7.0.0-28-generic (x86_64)
Fri 17 Jul 12:40:45 CEST 2026
make: Entering directory '/usr/src/linux-headers-7.0.0-28-generic'
make[1]: Entering directory '/var/lib/dkms/virtualbox/7.0.16/build'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 
13.3.0-6ubuntu2~24.04.1) 13.3.0
  You are using:           gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0
warning: pahole version differs from the one used to build the kernel
  The kernel was built with: 125
  You are using:             0
  CC [M]  vboxdrv/linux/SUPDrv-linux.o
  CC [M]  vboxdrv/SUPDrv.o
  CC [M]  vboxdrv/SUPDrvGip.o
  CC [M]  vboxdrv/SUPDrvSem.o
  CC [M]  vboxdrv/SUPDrvTracer.o
  CC [M]  vboxdrv/SUPLibAll.o
  CC [M]  vboxdrv/common/string/strformatrt.o
  CC [M]  vboxdrv/combined-agnostic1.o
  CC [M]  vboxdrv/combined-agnostic2.o
  CC [M]  vboxdrv/combined-os-specific.o
  LD [M]  vboxdrv/vboxdrv.o
  CC [M]  vboxnetflt/linux/VBoxNetFlt-linux.o
  CC [M]  vboxnetflt/VBoxNetFlt.o
  CC [M]  vboxnetflt/SUPR0IdcClient.o
  CC [M]  vboxnetflt/SUPR0IdcClientComponent.o
  CC [M]  vboxnetflt/linux/SUPR0IdcClient-linux.o
  LD [M]  vboxnetflt/vboxnetflt.o
  CC [M]  vboxnetadp/linux/VBoxNetAdp-linux.o
  CC [M]  vboxnetadp/VBoxNetAdp.o
  LD [M]  vboxnetadp/vboxnetadp.o
  MODPOST Module.symvers
ERROR: modpost: module vboxdrv uses symbol kvm_enable_virtualization from 
namespace module:kvm-amd,kvm-intel, but does not import it.
ERROR: modpost: module vboxdrv uses symbol kvm_disable_virtualization from 
namespace module:kvm-amd,kvm-intel, but does not import it.
ERROR: modpost: module vboxdrv uses symbol cr4_update_irqsoff from namespace 
module:kvm,kvm-amd,kvm-intel, but does not import it.
ERROR: modpost: module vboxdrv uses symbol cr4_read_shadow from namespace 
module:kvm,kvm-amd,kvm-intel, but does not import it.
make[3]: *** 
[/usr/src/linux-headers-7.0.0-28-generic/scripts/Makefile.modpost:147: 
Module.symvers] Error 1
make[2]: *** [/usr/src/linux-headers-7.0.0-28-generic/Makefile:2065: modpost] 
Error 2
make[1]: *** [/usr/src/linux-headers-7.0.0-28-generic/Makefile:248: __sub-make] 
Error 2
make[1]: Leaving directory '/var/lib/dkms/virtualbox/7.0.16/build'
make: *** [Makefile:248: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-7.0.0-28-generic'

** Affects: virtualbox (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2161081

Title:
  virtual-box dkms breaks with Linux HWE Kernel AGAIN (7.0.0-28)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/2161081/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to