Unable to vagrant up - how to set "providers"
Solution 1
Quick note - Vagrant 1.8.4 and Virtualbox 5.1.X aren't compatible on MacOS 10.11 (can't set a provider).
Virtualbox 5.0.10 works just fine.
Solution 2
I was able to fix this simply by installing the latest version of Vagrant (as of this writing 1.7.4).
Solution 3
simply try to bring vagrant up and specify provider you want to use:
vagrant up --provider virtualbox
As per screenshot below, it will tell you the reason why specified provider is not working. In my case, it was an unsupported version of VirtualBox 5.2. I had to downgrade it to v 5.1
Solution 4
There seems to have been an issue reported since VirtualBox 4.3.12:
VirtualBox automatically create the following environment variable VBOX_MSI_INSTALL_PATH
However, vagrant (if you look for the base.rb
file) uses the variable VBOX_INSTALL_PATH
So you can
- update the variable name VBOX_MSI_INSTALL_PATH
and change it to VBOX_INSTALL_PATH
- create a new variable name VBOX_INSTALL_PATH
with the same value as VBOX_MSI_INSTALL_PATH
Reminder on windows go to My Computer (right click) --> Properties --> Advanced System Settings --> Environment Variables
and look for the variable you need to manage
Solution 5
ok so I was having the same issue with windows, vagrant and virtualbox and did this.
- click on "This PC" / "My Computer" on windows desktop
- Select "Properties"
- Go to "Advanced" tab
- Click "Environment Variables..." at the bottom
- Under System Variables click "New..."
- Set "Variable name" to "VBOX_INSTALL_PATH"
- Set "Variable value" to "C:\Program Files\Oracle\VirtualBox\"
- Select "OK" and close all the other settings windows
credit goes to here: https://github.com/mitchellh/vagrant/issues/3852
I am assuming that there is a Environment Variable ( or PATH for linux users I think :P) that needs the "path" to the virtualbox executable.
Comments
-
Tomasz almost 2 years
I am trying run vagrant but after
vagrant up
error appears:No usable default provider could be found for your system. Vagrant relies on interactions with 3rd party systems, known as "providers", to provide Vagrant with resources to run development environments. Examples are VirtualBox, VMware, Hyper-V. The easiest solution to this message is to install VirtualBox, which is available for free on all major platforms. If you believe you already have a provider available, make sure it is properly installed and configured. You can see more details about why a particular provider isn't working by forcing usage with `vagrant up --provider=PROVIDER`, which should give you a more specific error message for that particular provider.
I installed before VirtualBox version 4.3.26 r989888 and Linux Ubuntu (64 bit)
After:
vagrant box add precise32 http://files.vagrantup.com/precise32.box
==> box: Adding box 'precise32' (v0) for provider: box: Downloading: http://files.vagrantup.com/precise32.box box: Progress: 100% (Rate: 1425k/s, Estimated time remaining: --:--:--) ==> box: Successfully added box 'precise32' (v0) for 'virtualbox'!
when I list
vagrant box list
lucid32 (virtualbox, 0) precise32 (virtualbox, 0)
What is wrong with "provider"
vagrant package --base vagrant-ubuntu64
Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed. Vagrant uses the `VBoxManage` binary that ships with VirtualBox, and requires this to be available on the PATH. If VirtualBox is installed, please find the `VBoxManage` binary and add it to the PATH environmental variable.
How to help him detect VirtualBox ?
-
icc97 over 8 yearsI was on Vagrant 1.7.2 and VirtualBox 5.0.8 and upgrading to Vagrant 1.7.4 fixed this for me too
-
Ricky Nelson over 8 yearsActually 1.7.4 only made partial progress for me. What ultimately fixed it was removing the .vagrant folder from the project directory.
-
Valerie Parham-Thompson over 8 yearsThanks! -- updating to Vagrant 1.8.1 with VirtualBox 5.0.10 worked for me as well. Did not have to remove the .vagrant file. Now somebody tell us why. :)
-
activatedgeek almost 8 yearsThanks for reporting! Was struggling for a while now.
-
feilong almost 8 yearsDude! Life saver, this should be the answer for OSx 10.11
-
Steffo almost 8 yearsCorrect. Unfortunately vagrant up doesn't report this. For the records: vagrant package --base trusty Vagrant has detected that you have a version of VirtualBox installed that is not supported by this version of Vagrant. Please install one of the supported versions listed below to use Vagrant: 4.0, 4.1, 4.2, 4.3, 5.0
-
gottlike almost 8 yearsFYI: Vagrant 1.8.5 should work with 5.1 (just checked Vagrant's changelog on Github), but is unreleased as of today.
-
itsricky almost 8 yearsAwesome - Just installed 5.0.14 on MacOS 10.12 without error. I could run the stock vagrant box and an install of VirtualHostX 7 without error :)
-
Taylor Hughes almost 8 yearsVerified this fixes it, here is the bug: github.com/mitchellh/vagrant/issues/7578
-
ArneHugo over 7 yearsSame problem on Ubuntu 16.06. Had to donwload Vagant 1.8.5 from their site as the apt package version was only at 1.8.1.
-
Teddy Belay over 7 yearsHad similar issue with Vagrant 1.9.1 with older versions of virtual box. I installed virtual box 5.1 and it works perfect.
-
Leon over 6 yearsAs comment above, I had this issue... updating to Virtualbox 5.1.26 and Vagrant 1.9 works on OSX 10.11 El Capitan :)
-
truedat101 about 6 yearsThank you for providing the most in depth and insightful answer. So many of the responses on this particular question on other threads of this same topic provide a generic "this worked for me" without an explanation of what the root cause is, and plausible resolutions.
-
claytonjwong over 4 yearsThis worked for me. I was trying to use VirtualBox v6.1.0 which was not supported by Vagrant. Thanks, Clayton