Opened 10 months ago
Closed 10 months ago
#21957 closed defect (wontfix)
Virtualbox 7.0.12 doesn't run on Ubuntu 22:04:03 running kernel 6.5.0-14
Reported by: | nickwh | Owned by: | |
---|---|---|---|
Component: | host support | Version: | VirtualBox-7.0.12 |
Keywords: | vbox drivers not building | Cc: | |
Guest type: | Linux | Host type: | Linux |
Description
A VM in Virtualbox 7.0.12 created on Ubuntu kernel 6.2.0-39 and running ok but after upgrading to latest released Ubuntu kernel 6.5.0-14 doesn't start. There are no drivers in the /lib/modules/6.5.0-14-generic/misc directory of the kernel. In fact the misc directory has not been created.
Reviewing the logs in /var/log, shows:
Building the main VirtualBox module. Error building the module: make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/6.5.0-14-generic/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j8 modules make[1]: warning: -j8 forced in submake: resetting jobserver mode. warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
and later
/bin/sh: 1: gcc-12: not found
There is no gcc-12 installed on the system with the latest being gcc-11, which is a link from /usr/bin/gcc
It appears the drivers are not being built because the kernel was built with gcc-12 so virtualbox goes looking for gcc-12.
Is gcc-12 a prerequisite for virtualbox modules to work with the 6.5.0-14 kernel and has it been tested?
Full log file attached
Attachments (1)
Change History (2)
by , 10 months ago
Attachment: | vbox-setup.log added |
---|
comment:1 by , 10 months ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Hi nickwh,
This issue is not related to VirtualBox, but rather to Ubuntu itself. Had the same issue after upgrade. Just install gcc-12 and issue will disappear.
vbox-setup.log