mitchellh/vagrant — Issue #520: "Vagrant could not detect VirtualBox!" with latest VirtualBox and latest Vagrant
Author: natea
Created: 2011-10-09 18:04:17+00:00
State: open

I just updated Vagrant to the latest VirtualBox 4.1.4 r74291:

$ /Applications/VirtualBox.app/Contents/Resources/VirtualBoxVM.app/Contents/MacOS/VBoxHeadless --version
Oracle VM VirtualBox Headless Interface 4.1.4
(C) 2008-2011 Oracle Corporation
All rights reserved.

4.1.4r74291

And when I ran vagrant box list, it says:

Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed.
If VirtualBox is installed, it may be an incorrect version. Vagrant currently
requires VirtualBox 4.0.x. Please install the proper version to continue.

So I updated to the latest Vagrant 0.8.7:

$ sudo gem install vagrant
Password:
Building native extensions. This could take a while...
Successfully installed archive-tar-minitar-0.5.2
Successfully installed net-scp-1.0.4
Successfully installed i18n-0.6.0
Successfully installed thor-0.14.6
Successfully installed ffi-1.0.9
Successfully installed virtualbox-0.9.2
Successfully installed vagrant-0.8.7
7 gems installed
Installing ri documentation for archive-tar-minitar-0.5.2...
Installing ri documentation for net-scp-1.0.4...
Installing ri documentation for i18n-0.6.0...
Installing ri documentation for thor-0.14.6...
Installing ri documentation for ffi-1.0.9...
Installing ri documentation for virtualbox-0.9.2...
Installing ri documentation for vagrant-0.8.7...
Installing RDoc documentation for archive-tar-minitar-0.5.2...
Installing RDoc documentation for net-scp-1.0.4...
Installing RDoc documentation for i18n-0.6.0...
Installing RDoc documentation for thor-0.14.6...
Installing RDoc documentation for ffi-1.0.9...
Installing RDoc documentation for virtualbox-0.9.2...
Installing RDoc documentation for vagrant-0.8.7...

But I still get the error:

$ vagrant box list
Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed.
If VirtualBox is installed, it may be an incorrect version. Vagrant currently
requires VirtualBox 4.0.x. Please install the proper version to continue.

Do I need to revert to an earlier version of VirtualBox?