17

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?

Tak3r07
  • 547
  • 3
  • 6
  • 16
  • Got it. I am really dumb. Didnt see that i have copied the modules and \n was inserted instead of a new line. – Tak3r07 Oct 18 '14 at 14:41
  • http://stackoverflow.com/a/28736885/2652524 this also the same answer as jiajia jiang – Gujarat Santana Apr 08 '16 at 23:02
  • 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 Sep 13 '17 at 01:46

9 Answers9

30
sudo /etc/init.d/vboxdrv setup
Assem
  • 11,574
  • 5
  • 59
  • 97
jiajia jiang
  • 299
  • 3
  • 3
  • It fix the error, however, if I open a android 5.1 (Lollipop) the error comes up again, other versions were doing fine. – ralphgabb Jul 30 '15 at 00:20
19
sudo apt-get install linux-headers-generic build-essential dkms
sudo apt-get remove --purge virtualbox-dkms
sudo apt-get install virtualbox
smok
  • 304
  • 2
  • 9
  • 1
    Can you explain how this solves the issue? He mentioned that he tried re-installing everything and that didn't help. – Brett Dec 23 '14 at 17:23
  • I have solved my problem myself (see comment in OP). Btw what you have posted may helps for debian or ubuntu based systems, but not arch – Tak3r07 Dec 24 '14 at 20:25
  • OP says "I am on arch", why have you posted a debian / ubuntu solution? – Denys Vitali Feb 21 '16 at 13:45
  • Ohh yeah! thanks! if anyone have some issue with the first command, try `sudo dpkg --configure -a` before it. – Felipe Augusto Mar 16 '19 at 02:07
16

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
krishnan muthiah pillai
  • 2,711
  • 2
  • 29
  • 35
10

If you have not vboxdrv file

Reinstall virtualbox-dkms:

sudo apt-get --reinstall install virtualbox-dkms
Yuliia Ashomok
  • 8,336
  • 2
  • 60
  • 69
  • @luliia This removes currently installed virtualbox packages (downloaded from vb's website) and installs virtualbox and dependencies from ubuntu repo on my Ubuntu 17.04. – sziraqui Jul 11 '17 at 17:03
1

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

jarh1992
  • 603
  • 7
  • 8
0

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
Sergei K
  • 967
  • 11
  • 12
0

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

Prashant Abdare
  • 2,175
  • 14
  • 24
0

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

darksoulsong
  • 13,988
  • 14
  • 47
  • 90
-3

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

Nathan Tuggy
  • 2,237
  • 27
  • 30
  • 38