Issue with VirtualBox and Ubuntu 22.04 Kernel

Asked by David

I am trying to setup Game of Active Directory on a Ubuntu 22.04 machine that is on VMWare. I downloaded Virtualbox within the VM and attempted to use Vagrant to setup the environment. But I am getting this error when I run the command "Vagrant up". The error is as follows:

"""

The provider 'virtualbox' that was requested to back the machine
'GOADL-DC01' is reporting that it isn't usable on this system. The
reason is shown below:

VirtualBox is complaining that the kernel module is not loaded. Please
run `VBoxManage --version` or open the VirtualBox GUI to see the error
message which should contain instructions on how to fix this error.

"""

When I run "VBocManage --version" I get this:

"""

WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (6.5.0-28-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.
7.0.14r161095

"""

When I run "sudo /sbin/vboxconfig" I get this error:

"""

vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.

There were problems setting up VirtualBox. To re-start the set-up process, run
  /sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may 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.

"""

I don't know what to do from here. Any help would be appreciated!!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
David
Solved:
Last query:
Last reply:
Revision history for this message
Bernard Stafford (bernard010) said :
#1
Revision history for this message
David (david-lamoreaux) said :
#2

I installed the extension pack for Virtualbox and got the same errors unfortunately.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Did you try installing the virtualbox package from the Ubuntu repositories, or did you try downloading and installing the version from the virtualbox.org web pages?

Have you looked into /var/log/vbox-setup.log for details about what's going wrong?

What output do you receive for the command

sudo modprobe -v vboxdrv

Revision history for this message
David (david-lamoreaux) said :
#4

At first I tried to install the extension pack from the VirtualBox website and that did not fix the issue, but then I did from the command line and the "vagrant up" command worked! Thank you!