Genymotion Error: Unable to load Virtualbox engine

2019-03-15 02:38发布

问题:

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?

回答1:

sudo /etc/init.d/vboxdrv setup


回答2:

sudo apt-get install linux-headers-generic build-essential dkms
sudo apt-get remove --purge virtualbox-dkms
sudo apt-get install virtualbox


回答3:

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


回答4:

If you have not vboxdrv file

Reinstall virtualbox-dkms:

sudo apt-get --reinstall install virtualbox-dkms


回答5:

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



回答6:

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


回答7:

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



回答8:

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



回答9:

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