Reputation: 720
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.
Upvotes: 15
Views: 24002
Reputation: 465
Make sure you have virtualbox installed if you are using ubuntu.
sudo apt install virtualbox-qt
Upvotes: 9
Reputation: 61
1 - access the terminal (sudo) and, remove vagrant files
$ rm -rf /opt/vagrant
$ rm -f /usr/bin/vagrant
2 - then install it again as it has probably been corrupted.
$ curl -O https://releases.hashicorp.com/vagrant/2.2.9/vagrant_2.2.9_x86_64.deb
3 - install vagrant
$ sudo apt install ./vagrant_2.2.9_x86_64.deb
4 - confirm by viewing the installed vagrant version
& vagrant --version
Upvotes: -1
Reputation: 720
What I figured was that due to some reason vagrant had got corrupted. So doing a fresh install of vagrant did the trick.
Upvotes: 4