Virtualbox on linux Troubleshooting

The vboxdrv kernel module is not loaded.

Symptoms:

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

Solution:

Arch-Linux, Manjaro

# look for actual 
sudo pacman -Ss virtualbox-host-modules
# install 
sudo pacman -S linux54-virtualbox-host-modules
# add module
sudo modprobe vboxdrv

Virtualbox have no access to USB devices

Reason

# ls -ls /dev/  | grep vboxusb
0 drwxr-x---  3 root vboxusers       60 Apr  6 09:14 vboxusb

Solution

usermod -a -G vboxusers {YOUR_ACCOUNT}

Failed Extension pack Install/Uninstall

Simptoms


Message:
Failed to execute child process “/usr/lib/virtualbox/VBoxExtPackHelperApp –stdout /tmp/VBoxExtPackHelper-8oryvn/stdout –stderr /tmp/VBoxExtPackHelper-8oryvn/stderr –elevated uninstall –base-dir /usr/lib/virtualbox/ExtensionPacks –name ‘Oracle VM VirtualBox Extension Pack’” (No such file or directory)

Solution

Remove parts from command:

   --stdout /tmp/VBoxExtPackHelper-8oryvn/stdout --stderr /tmp/VBoxExtPackHelper-8oryvn/stderr

Run command:

# Example
/usr/lib/virtualbox/VBoxExtPackHelperApp  --elevated install --base-dir /usr/lib/virtualbox/ExtensionPacks --cert-dir /usr/share/virtualbox/ExtPackCertificates --name 'Oracle VM VirtualBox Extension Pack' --tarball /home/dima/Downloads/Oracle_VM_VirtualBox_Extension_Pack-6.1.14.vbox-extpack --sha-256 b224e796e886b19bce69f0aaedf6ca82bad0ca29c61fb0ed86166efb84356942