$ 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
$ 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)
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.
$ 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.