Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to vagrant up - how to set "providers"

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 ?

like image 563
Tomasz Avatar asked Apr 04 '15 19:04

Tomasz


People also ask

How do I set up a vagrant provider?

Just set VAGRANT_DEFAULT_PROVIDER to the provider you wish to be the default. For example, if you use Vagrant with VMware Fusion, you can set the environmental variable to vmware_desktop and it will be your default.

What is a provider in vagrant?

Vagrant uses Providers such as hypervisors (e.g VirtualBox, Hyper-V) or Docker to create and run virtual environments. Vagrant uses Provisioners (e.g Ansible, Puppet, Chef) as configuration tools to customize these environments, e.g carrying out installs and starting apps.

Which of the following providers are supported by vagrant?

Vagrant works with some Providers, as VirtualBox, Xen, VMWare, AWS, Digital Ocean and Docker.

Can vagrant work without VirtualBox?

Solutions that work with Vagrant include VirtualBox, VMware, Docker, Hyper-V, and custom solutions.


2 Answers

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.

like image 61
etusm Avatar answered Sep 22 '22 10:09

etusm


I was able to fix this simply by installing the latest version of Vagrant (as of this writing 1.7.4).

like image 35
Adam Avatar answered Sep 23 '22 10:09

Adam