Unable to vagrant up - how to set "providers"

56,201

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

enter image description here

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.

  1. click on "This PC" / "My Computer" on windows desktop
  2. Select "Properties"
  3. Go to "Advanced" tab
  4. Click "Environment Variables..." at the bottom
  5. Under System Variables click "New..."
  6. Set "Variable name" to "VBOX_INSTALL_PATH"
  7. Set "Variable value" to "C:\Program Files\Oracle\VirtualBox\"
  8. 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.

Share:
56,201
Tomasz
Author by

Tomasz

PHP web deweloper

Updated on July 05, 2022

Comments

  • Tomasz
    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
    icc97 over 8 years
    I 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
    Ricky Nelson over 8 years
    Actually 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
    Valerie Parham-Thompson over 8 years
    Thanks! -- 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
    activatedgeek almost 8 years
    Thanks for reporting! Was struggling for a while now.
  • feilong
    feilong almost 8 years
    Dude! Life saver, this should be the answer for OSx 10.11
  • Steffo
    Steffo almost 8 years
    Correct. 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
    gottlike almost 8 years
    FYI: Vagrant 1.8.5 should work with 5.1 (just checked Vagrant's changelog on Github), but is unreleased as of today.
  • itsricky
    itsricky almost 8 years
    Awesome - 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
    Taylor Hughes almost 8 years
    Verified this fixes it, here is the bug: github.com/mitchellh/vagrant/issues/7578
  • ArneHugo
    ArneHugo over 7 years
    Same 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
    Teddy Belay over 7 years
    Had similar issue with Vagrant 1.9.1 with older versions of virtual box. I installed virtual box 5.1 and it works perfect.
  • Leon
    Leon over 6 years
    As comment above, I had this issue... updating to Virtualbox 5.1.26 and Vagrant 1.9 works on OSX 10.11 El Capitan :)
  • truedat101
    truedat101 about 6 years
    Thank 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
    claytonjwong over 4 years
    This worked for me. I was trying to use VirtualBox v6.1.0 which was not supported by Vagrant. Thanks, Clayton