Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vagrant. The box you're attempting to add doesn't support the provider you requested

Tags:

vagrant

I created a vagrant box using vagrant package , uploaded it and released it.
Then I did vagrant init <username>/<box> which created a Vagrantfile. I even appended the box version to the Vagrantfile.
Next I did vagrant up --provider virtualbox. This tries to get the box locally and then when it can't find it, i get the error:

The box you're attempting to add doesn't support the provider
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn't
simply misspell it.

If you're adding a box from HashiCorp's Atlas, make sure the box is
released.

I have given virtualbox as the provider and virtual box works fine with other boxes I use.

like image 552
raviabhiram Avatar asked Sep 12 '16 14:09

raviabhiram


People also ask

What does vagrant box add do?

You can add a box to Vagrant with vagrant box add . This stores the box under a specific name so that multiple Vagrant environments can re-use it. If you have not added a box yet, do so now. Vagrant will prompt you to select a provider.

What is vagrant provider?

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.

Does vagrant require VirtualBox?

Vagrant comes with support out of the box for VirtualBox, a free, cross-platform consumer virtualization product. The VirtualBox provider is compatible with VirtualBox versions 4.0.


1 Answers

Make sure you have virtualbox installed if you are using ubuntu.

sudo apt install virtualbox-qt

like image 111
SLIMANI Mohammed Avatar answered Nov 16 '22 02:11

SLIMANI Mohammed