29

I have a Macbook Pro 13 inch with OS X Yosemite [Memory 8 GB, Graphics Intel Iris Graphics 6100 1536 MB]. I am trying to setup Genymotion as Android Emulator. I installed Oracle VirtualBox first from https://www.virtualbox.org/wiki/Downloads [VirtualBox-5.0.0-101573-OSX.dmg], and then Genymotion for personal use from Genymotion [genymotion-2.5.0.dmg].

But I get the following error -

Unable to load VirtualBox engine

I checked all the previous answers on StackOverflow and the Google search results, and I did the following, but none of them solved the problem.

1. (a)

sudo /Library/Startupitems/VirtualBox/VirtualBox restart

OR (b)

sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh restart

Since my /Library/Startupitems/ is empty, I tried option (b).

2. Open VirtualBox -> Preferences -> Network, Under "Host-only Networks", I deleted the one that was listed. Under "Nat Networks", there is an Active network called "NatNetwork", which is checked.

3. vboxmanage is added to path & has nothing under hostonlyifs

Terminal:

$ which vboxmanage
/usr/local/bin/vboxmanage

$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin: <others>

$ vboxmanage list hostonlyifs
## no output - prints nothing

These are all I found through Google Search. How do I get the Genymotion working for Yosemite ?

{ If possible, please provide a solution that is not too technical, since I am new to Mac, and it might also help people using Mac for the first time. I know this is not a new question on StackOverflow. But none of the previous posts had helped me. }

Thanks for your help.

Ashok Bijoy Debnath
  • 1,493
  • 1
  • 17
  • 27

9 Answers9

75

I had the problem that VBoxManage was installed at /usr/local/bin/ which was not in the path for GUI apps. I did:

sudo ln -s /usr/local/bin/VBoxManage /usr/bin/VBoxManage
mixel
  • 25,177
  • 13
  • 126
  • 165
Moritz
  • 1,590
  • 13
  • 8
  • 1
    Ok this is interesting! When VirtualBox 4.3.30 and 5.0 versions didn't work for me, vboxmanage was in /usr/local/bin/, and VirtualBox 4.3.28 worked and its vboxmanage was in /usr/bin/ for me! So this means that the location of vboxmanage was causing the error ? Both /usr/local/bin and /usr/bin are in PATH; so I don't know why it should matter ! – Ashok Bijoy Debnath Jul 13 '15 at 10:00
  • 1
    OS X has different paths for GUI vs console apps, both /etc/paths and .profile do not work for GUI apps :( – Moritz Jul 13 '15 at 10:11
  • 10
    sudo ln -s /usr/local/bin/VBoxManage /usr/bin/VBoxManage - worked for me on OS X 10.11 – Oleksii Malovanyi Jul 13 '15 at 18:16
  • 1
    @Nekromancer mching's was the first answer, and before this answer was posted, I had already fixed the issue by using VBox 4.3 as suggested by mching, so that is why, it was accepted earlier. – Ashok Bijoy Debnath Aug 23 '15 at 02:34
  • 1
    this is the only solution that worked for me! i must've tried 10 other "tips" posted around the web, but only this worked! also keep in mind that genymotion is recommending [VirtualBox 5.0.26](http://download.virtualbox.org/virtualbox/5.0.26/VirtualBox-5.0.26-108824-OSX.dmg) as of July 31, 2017 – Mr. T Jul 31 '17 at 22:59
  • Not working on OSX 10.13.1, tried many VirtualBox versions. 4.3, 5.0, 5.1.3 – Gil Beyruth Dec 02 '17 at 00:29
6

I've had the same problem, Use VirtualBox 4.3 instead of 5.0 That did the trick for me.

mching
  • 69
  • 2
6

This work for me:

  1. Remove current Virtual version and install VirtualBox version 4.3.

  2. Run terminal and execute this line:

sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh restart

  1. Continue this line:

sudo cp /usr/local/bin/VBoxManage /usr/bin/VBoxManage

Now can run Genymotion.

dphans
  • 1,543
  • 19
  • 20
6

I tried all these and nothing working with me except this one

VirtualBox from the unidentified developer so OSX refuse to install it so you need unlock this option from Security and privacy --> general tab

enter image description here

reference

https://medium.com/@DMeechan/fixing-the-installation-failed-virtualbox-error-on-mac-high-sierra-7c421362b5b5

Mina Fawzy
  • 20,852
  • 17
  • 133
  • 156
5
brew cask install virtualbox

I had this issue after upgrading to OS X 10.11.1 moving to Virtual Box 5.0.8 fixed it

Luke
  • 13,678
  • 7
  • 45
  • 79
JakeWilson801
  • 1,036
  • 7
  • 20
2

I've reported it on Google Groups here. I think for now there is no other way then downgrading - we have to wait for update.

  • In the Google Group you linked to, Samuel said it is supposed to work with VirtualBox 5.0. I think the problem is only with location of VBoxManage in PATH (but I don't know why that would be a problem). Check Moritz's answer : http://stackoverflow.com/a/31379463/1682975 – Ashok Bijoy Debnath Jul 13 '15 at 10:05
2

I solved this issue updating Genymotion to Genymotion 2.5.1

Eugenia Pais
  • 152
  • 7
2

In my case I just update VirtualBox from 4.3 to 5.0 https://www.virtualbox.org

this issue occurs after update to OS X El Capitan 10.11.4

Deni Erdyneev
  • 1,779
  • 18
  • 26
2

Although this is one year later, this worked for me on mac (after switching from windows). Just install virtual box 5.0. (Or whatever is the latest version at time of reading this).

Ruchir Baronia
  • 7,406
  • 5
  • 48
  • 83
  • Thanks this worked for me. The symlink did not work because my installation is already in `/usr/bin` Instead, I went to [the VirtualBox Downloads section](https://www.virtualbox.org/wiki/Downloads), selected the amd64 link for OS X, opened it, ran the pkg installer. By default, it installed overtop of the existing app. So I opened VirtualBox and got some weird error that I totally ignored. Then went to Genymotion and everything worked, perfectly. – gMale Mar 21 '16 at 18:48