Kernel 5.18 doesn't allow a Virtualbox machine to run

Asked by Paul Ubuntu

After install any 5.18 kernel, any Oracle Virtialbox machine will not run.

Log:
Building the main VirtualBox module.
Building the net filter module.
Error building the module:
make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/5.18.4-051804-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: gcc (Ubuntu 11.3.0-3ubuntu1) 11.3.0
  You are using: gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
-------------------------------------------------------------------------------------------------------------
Ubuntu 22.04 updated
Nvidia driver 515.48.07 (Latest)
"Oracle's" Virtual 6.1.34 r 150636 .1 (Latest)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Mainline Kernel Installer Edit question
Assignee:
No assignee Edit question
Solved by:
Paul Ubuntu
Solved:
Last query:
Last reply:
Revision history for this message
Paul Ubuntu (paulubuntu2) said (last edit ):
#1
Revision history for this message
Paul Ubuntu (paulubuntu2) said :
#2

Followed the above link https://www.virtualbox.org/ticket/20914 and install the VirtualBox-6.1.35-151864-Linux_amd64.run as there is not a .deb