Install virtualbox 6 instead of 7 (Laravel Homestead)

Hello!
I’ve been trying to start a virtual machine with Laravel Homestead.
Although the homestead manual require virtualbox 6 version, I still tried with the latest version (community/virtualbox 7.0.4-1).

So, I tried to download virtualbox 6.1.8-2 and virtualbox host dkms 6.1.8-2 from Arch Linux Archive and I installed with:

$ sudo pacman -R virtualbox-host-dkms virtualbox 
 sudo pacman -U # ... packages

Now I can’t open virtualbox:

$ virtualbox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (6.1.1-arch1-1) 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.
$ sudo /sbin/vboxconfig
sudo: /sbin/vboxconfig: command not found
$ sudo pacman -Qs virtualbox
local/linux 6.1.1.arch1-1
    The Linux kernel and modules
local/virtualbox 6.1.8-2
    Powerful x86 virtualization for enterprise as well as home use
local/virtualbox-host-dkms 6.1.8-2
    VirtualBox Host kernel modules sources
$ dkms status
nvidia/525.60.11, 6.1.1-arch1-1, x86_64: installed
vboxhost/6.1.8_OSE: added

Have you tried rebooting?

yes! I still obtain this:

$ virtualbox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (6.1.1-arch1-1) 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.

and I get this error:

Failed to create the VirtualBoxClient COM object.
The application will now terminate.
Details:
Callee RC: 
REGDB_E_CLASSNOTREG (0x80040154)

It is possible that those older packages are no longer compatible with the current libraries.

You may not be able to simply install the old packages out of the archive and have it work.

It’s a mantainence package. Last update came out a month ago. From the official virtualbox download page I can read:

Version 6.1 will remain supported until December 2023.

At the moment, Homestead doesn’t support virtualbox 7.

Why on Ubuntu it works out-of-the-box?

But that isn’t what you are installing. You are going back into the archive and installing a package from months ago. Arch/EOS is rolling. That means that the library versions that exist today are different than the ones from months ago when that package was built.

Arch generally doesn’t keep older versions of software around so there is no Arch release of version 6.1.

It may be possible to install Virtualbox some other way but grabbing an older package from the archive is probably not the way to do it.

Ubuntu is a static release distro which means that the major library versions only change when the Ubuntu version changes.

Send output of these:

sudo dkms autoinstall
sudo rmmod vboxhost
sudo modprobe vboxhost
virtualbox
$ sudo dkms autoinstall
[sudo] password di lorenzo: 
Sign command: /usr/lib/modules/6.1.1-arch1-1/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.1.1-arch1-1 -C /usr/lib/modules/6.1.1-arch1-1/build M=/var/lib/dkms/vboxhost/6.1.8_OSE/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.1-arch1-1 (x86_64)
Consult /var/lib/dkms/vboxhost/6.1.8_OSE/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
$ sudo rmmod vboxhost
rmmod: ERROR: Module vboxhost is not currently loaded

$ sudo modprobe vboxhost
modprobe: FATAL: Module vboxhost not found in directory /lib/modules/6.1.1-arch1-1
$ virtualbox
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
         available for the current kernel (6.1.1-arch1-1) 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.

nice

Solved here!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.