After installing virtualbox through garuda assistant, necessary VirtualBox kernel module needs to be loaded beforehand, otherwise vms won't start. Users usually fall into the trap that it's a bios issue related to secure boot and uefi stuff.
And it should consist
Would be great to see this happen right after VirtualBox installation by garuda assistant, will remove unnecessary hassle.
I've never heard that this is necessary - what exactly does this file do?
If a driver needs to be loaded after installation, wouldn't an equivalent just be
modprobe vboxdrv ?
Well, Virtualbox seems to require modprobing vboxdrv after every reboot otherwise starting the vm would fail. I also remember that it worked straight away some time ago though
Something is very wrong if this is the case...
On my system I have:
$ cat /usr/lib/modules-load.d/virtualbox-host-dkms.conf
so why is this not present on other systems?
Thats very interesting. The file does exist on my installation as well, still Virtualbox wouldn't start right away.
λ cat /usr/lib/modules-load.d/virtualbox-host-dkms.conf
Any recommended steps to take for further troubleshooting?
Anything interesting in either of
systemctl status systemd-modules-load
journalctl -u systemd-modules-load
I'm on the same boat.
Same contents of
virtualbox-host-dkms.conf and VirtualBox not working: it starts, but I get I think a kernel panic (Caps lock blinking) when I start a VM.
The issue occurs only with linux-zen 5.12.14.zen1-1. No problems with linux-lts 5.10.47-1.
pacman -Ss virtualbox | grep installed
core/linux-lts 5.10.47-1 [installed]
extra/linux-zen 5.12.14.zen1-1 [installed]
community/virtualbox 6.1.22-3 [installed]
community/virtualbox-ext-vnc 6.1.22-3 [installed]
community/virtualbox-guest-iso 6.1.22-1 [installed]
community/virtualbox-host-dkms 6.1.22-3 [installed]
community/virtualbox-sdk 6.1.22-3 [installed]
chaotic-aur/virtualbox-ext-oracle 6.1.22-1 [installed]
chaotic-aur/virtualbox-meta 2-1 [installed]
systemctl status systemd-modules-load
● systemd-modules-load.service - Load Kernel Modules
Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static)
Active: active (exited) since Tue 2021-07-06 13:12:14 CEST; 2min 29s ago
Process: 226 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=0/SUCCESS)
Main PID: 226 (code=exited, status=0/SUCCESS)
lug 06 13:12:14 garuda systemd-modules-load: Inserted module 'crypto_user'
lug 06 13:12:14 garuda systemd-modules-load: Inserted module 'uinput'
lug 06 13:12:14 garuda systemd-modules-load: Inserted module 'vboxdrv'
lug 06 13:12:14 garuda systemd-modules-load: Inserted module 'vboxnetadp'
lug 06 13:12:14 garuda systemd-modules-load: Inserted module 'vboxnetflt'
lug 06 13:12:14 garuda systemd: Finished Load Kernel Modules.
Notice: journal has been rotated since unit was started, output may be incomplete.
nothing strange in journalctl -u systemd-modules-load
.rw-r--r-- 8 root 5 lug 08:31 virtualbox.conf
That's a different issue.
What's in this file, and which package owns it? (Or is this what was implemented above?)
pacman -Qo virtualbox.conf
error: No package owns virtualbox.conf
I did not create the file, no idea...
In pacman.log I see (same day/time as that file:
[2021-07-06T08:30:21+0200] [ALPM] upgraded virtualbox-meta (1-1 -> 2-1)
pacman -Ql virtualbox-meta
pacman -Qo /etc/modules-load.d/virtualbox.conf
/etc/modules-load.d/virtualbox.conf is owned by virtualbox-meta 2-1
You may want to forgive me
After using the lts kernel and restarting my only VM, the issue does not occur anymore in the zen kernel (where I tried 3 times before).
My fault: it is an old VM unused since quite some time, for sure before the last VBox update.
Sorry again, also for the "hijacking", feel free to delete my posts if misleading v/s the thread/discussion status...
First one shows nothing, just that journal was rotated.
Second one: nothing related, in fact the output was very uninformative. Just lots of those:
-- Boot 890d690477444ea6b7861fbd671e8d2b --
Jul 03 18:49:01 T470-void systemd: systemd-modules-load.service: Deactivated successfully.
Jul 03 18:49:01 T470-void systemd: Stopped Load Kernel Modules.
Hm. So - if the module is being loaded, why doesn't VirtualBox run?
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.