Virtualbox 7.0.10 won't run on kernel 6.2.0-33

Discussions related to using VirtualBox on Linux hosts.
Post Reply
chiefcomplainster
Posts: 2
Joined: 28. Sep 2023, 18:57

Virtualbox 7.0.10 won't run on kernel 6.2.0-33

Post by chiefcomplainster »

Hey guys,

I haven't used Virtualbox for a while, but now when I tried to install and run it after a while, it always crashes with one of following errors:

Code: Select all

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (6.2.0-32-generic) or it failed to
         load. Please recompile the kernel module and install it by
           sudo /sbin/vboxconfig
         You will not be able to start VMs until this problem is fixed.

Code: Select all

Failed to acquire the VirtualBox COM object. The application will now terminate.

Code: Select all

Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing
'/sbin/vboxconfig'
as root.
If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT. 
I tried of course doing "sudo /sbin/vboxconfig", but it ends with the same error message. I followed various tips in discussions, no help. I tried downgrading my kernel to 6.2.0-32, nothing. I tried installing testing version 7.0.11, same thing. With some permutations, I can get Virtualbox running, but it won't run a VM.

I am running Ubuntu 22.04, Secure Boot is disabled.

Anyone knows what the culprit might be?
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Virtualbox 7.0.10 won't run on kernel 6.2.0-33

Post by scottgus1 »

chiefcomplainster wrote: 30. Sep 2023, 16:09 kernel module is not loaded
I suspect this is the problem. There are prerequisites for official Virtualbox from https://www.virtualbox.org/wiki/Downloads , please see https://www.virtualbox.org/manual/ch02. ... nux-prereq. The big moose on campus is usually that the OS kernel headers aren't loaded, and then Virtualbox can't build. (Note that this applies to official Virtualbox from virtualbox.org, not the Linux distro fork.)

I'd try purging Virtualbox from the Linux OS, reboot, run the prerequisites, then official Virtualbox again. And you might have to use the test builds or development snapshots.
chiefcomplainster
Posts: 2
Joined: 28. Sep 2023, 18:57

Re: Virtualbox 7.0.10 won't run on kernel 6.2.0-33

Post by chiefcomplainster »

There are prerequisites for official Virtualbox from ...
I tried installing Qt ad SDL. Results:

Code: Select all

The following packages have unmet dependencies:
 libpulse-dev : Depends: libpulse0 (= 1:15.99.1+dfsg1-1ubuntu1) but 1:15.99.1+dfsg1-1ubuntu2 is to be installed
                Depends: libpulse-mainloop-glib0 (= 1:15.99.1+dfsg1-1ubuntu1) but 1:15.99.1+dfsg1-1ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.

Code: Select all

Setting up gcc (4:11.2.0-1ubuntu1) ...
update-alternatives: error: alternative path /usr/bin/gcc doesn't exist
dpkg: error processing package gcc (--configure):
 installed gcc package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 gcc
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have also followed one discussion's advice:

Code: Select all

sudo sh -x /sbin/vboxconfig    
sudo apt-get install --reinstall gcc
but:

Code: Select all

This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
This system is currently not set up to build kernel modules.
Please install the gcc make perl packages from your distribution.
Installing Virtualbox as a .run file (which should build the kernel modules according to documentation) also doesn't help.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Virtualbox 7.0.10 won't run on kernel 6.2.0-33

Post by scottgus1 »

Getting the host OS to be ready to build kernel modules would be a good web-search on the OS's help channels. It would be off topic here. Try the host OS's forums.
oso2276
Posts: 20
Joined: 11. Sep 2023, 15:58

Re: Virtualbox 7.0.10 won't run on kernel 6.2.0-33

Post by oso2276 »

To build modules you will need linux headers plus additional software.

I would begin with the following:

Code: Select all

sudo apt install build-essential dkms
Then for the headers

Code: Select all

sudo apt install linux-headers-generic-hwe-22.04
Post Reply