However, the first statement is incorrect.
The issue actually started when I installed virtualbox-bin, ever since then I started to get that error on boot when I install virtualbox from the official repos
In my original post, I solved the issue by installing virtualbox-bin from the AUR, but now I want to use the Official version from the repo.
From the log, it seems like the vboxdrv service is running the incorrect file, maybe there’s a way I can “reset” it?
The weird thing is that virtualbox-bin works perfectly fine.
UPDATE: I removed all the .service files relating to virtualbox, the error stopped showing up, but the kernel module won’t work (obviously)
I tried reinstalling the virtualbox and linux510/515/518-virtualbox-host-modules but that did not regenerate the kernel modules for some reason…
The only service file that is generated is the vboxweb.service file.
I tried:
❯ sudo modprobe vboxpci
modprobe: FATAL: Module vboxpci not found in directory /lib/modules/5.18.5-1-MANJARO
So I started looking around in the modules directory, and I found:
❯ ls /lib/modules/5.18.5-1-MANJARO/extramodules
nvidia-drm.ko.xz nvidia-peermem.ko.xz nvidia.ko.xz vboxnetadp.ko.xz version
nvidia-modeset.ko.xz nvidia-uvm.ko.xz vboxdrv.ko.xz vboxnetflt.ko.xz
a vboxdrv.ko.xz file… but I have no idea about what to do with it though
either install the package for your kernel linuxXYY-virtualbox-host-modules or install the package virtualbox-host-dkms and the correct header package linuxXYY-headers.
When you mention USB - next thought is that your extension package does not match the vritualbox version.
That happens on stable branch because the extension package expects Arch package level of virtualbox which you only get on unstable branch.
I installed the linux510+515+518-virtualbox-host-modules and the issue was not solved. (I rebooted afterwards obviously)
And I still get this:
❯ sudo systemctl enable vboxdrv.service
Failed to enable unit: Unit file vboxdrv.service does not exist.
❯ sudo modprobe vboxpci
modprobe: FATAL: Module vboxpci not found in directory /lib/modules/5.18.5-1-MANJARO
❯ sudo modprobe vboxdrv
# No output
I’m going to try virtualbox-host-dkms and see if that happens. linux510+515+518-headers are already installed.
The versions are matching and I’m added to all the vbox groups (I know vboxsf is for guest machines, but I still added myself anyway to see if that makes a difference - and it didn’t)
UPDATE: I installed the dkms package and got the exact results:
❯ sudo modprobe vboxdrv
[sudo] password for myms:
# No output
❯ systemctl start vboxdrv.service
Failed to start vboxdrv.service: Unit vboxdrv.service not found.
❯ sudo modprobe vboxpci
[sudo] password for myms:
modprobe: FATAL: Module vboxpci not found in directory /lib/modules/5.18.5-1-MANJARO
Have you tried starting pamac clicking on installed searching for virtualbox and deleting everything related including in the aur then reinstalling virtualbox.
Like when I run Kali? (this is pretty much all I use virtualbox for)
Regarding the USB problem, I’ve tried older versions of the extension pack, and kernels 510, 515, and 518 (They all ran the VMs surprisingly) but the USB popup remained as it is and the following remained the same too:
❯ vboxmanage list usbhost
Host USB Devices:
<none>
The last thing I will try is a brute force method, I’ll uninstall virtualbox, and then go through all my system files and delete everything to do with it, and then reinstall it and see if that makes any difference.
EDIT: I’ll try to run virtualbox from another user first. EDIT 2: The second user account produces the exact output, starting the brute force method EDIT 3: I forgot to mention that the problem is not with the extension pack, because shared folders work perfectly.
Welp, it was just an idea. I have no such issues with the virtualbox distributed by manjaro using kernel 5.15 and the extension pack downloaded from virtualbox. No idea why you’re having so many issues, good luck.
This issue is the remains of the virtualbox-bin package from the AUR, because I installed it, virtualbox (from the official repo) is now messed up.
Before I installed that package, virtualbox (from the official repo) worked perfectly fine.
So I removed every file/folder (except for the ones that returned a “Operation not permitted” error) that contains the word virtulabox or vbox and then reinstalled virtualbox and gained no success.
It looks like I’m going to have to stick with virtualbox-bin until I have time to reinstall Manjaro.
It doesn’t look like my investigation is going anywhere.