17
votes

I am on Arch using VirtualBox from community repo and Genymotion from AUR. Whenever i want to start a virtual device it says:

Unable to load VirtualBox engine.

Make sure that it is properly installed before starting Genymotion.

For more information please refer to: https://cloud.genymotion.com/page/faq/#vbox

I've already reinstalled everything nothing seems to work.

When i use

#vboxreload

"vboxnetadp vboxnetflt vboxpci vboxdrv" are loaded and genymotion works for this session until i reboot the system.

I use a virtualbox.conf at /etc/modules-load.d/ to load "vboxnetadp vboxnetflt vboxpci vboxdrv".

$cat /etc/modules-load.d/virtualbox.conf 
vboxdrv\nvboxnetflt\nvboxnetadp\nvboxpci

I'm not a linux crack but I thought /etc/modules-load.d/virtualbox.conf would automatically load the modules - so i do not need to use #vboxreload after each reboot?

9
Got it. I am really dumb. Didnt see that i have copied the modules and \n was inserted instead of a new line.Tak3r07
stackoverflow.com/a/28736885/2652524 this also the same answer as jiajia jiangGujarat Santana
Do not have enough rep here to add an answer. Came across this in google search. On Fedora had to put selinux into permissive mode.Panther

9 Answers

30
votes
sudo /etc/init.d/vboxdrv setup
19
votes
sudo apt-get install linux-headers-generic build-essential dkms
sudo apt-get remove --purge virtualbox-dkms
sudo apt-get install virtualbox
16
votes

In Linux VirtualBox Module compilation by running following command:

sudo /etc/init.d/vboxdrv setup

If the above command fails, use:

sudo /sbin/rcvboxdrv setup

then restart virtualBox

/usr/bin/VirtualBox restart
10
votes

If you have not vboxdrv file

Reinstall virtualbox-dkms:

sudo apt-get --reinstall install virtualbox-dkms
1
votes

In my case (Ubuntu 18) I installed the last Vbox and after I disabled the secure boot from the BIOS

0
votes

You can have a problem like me. I had same errors but advices didn't help me. But I found a lot of host-only networks in my virtualbox (you can check it, run virtualbox file->preference->networks->host-only networks). I removed all "vboxnetXXX" and genymotion became to execute.

You can use sh script to remove it all:

for i in $(seq 0 255); do 
     VBoxManage hostonlyif remove vboxnet$i
done
0
votes

For Linux Mint sudo /sbin/rcvboxdrv setup command worked for me. I guess same should work on Ubuntu and other debian builds.

0
votes

In my case, it was a problem with VirtualBox itself and UEFI secure boot. I disabled it in the BIOS and it sorted out.

-3
votes

Change the version of VirtualBox and start Genymotion again. It will work fine.