Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting The box 'hashicorp/precise32' could not be found on firing 'vagrant up' from terminal in ubuntu

I have installed Vagrant and once I am inside my project folder from the terminal I fire the following commands:

  1. vagrant box add hashicorp/precise32 http://files.vagrantup.com/precise32.box

Output:

[vagrant] Downloading with Vagrant::Downloaders::HTTP... 
[vagrant] Downloading box: files.vagrantup.com/precise32.box 
[vagrant] Downloading box: hashicorp-files.vagrantup.com/precise32.box 
[vagrant] Extracting box... 
[vagrant] Verifying box... 
[vagrant] Cleaning up downloaded box...
  1. vagrant init hashicorp/precise32

Output: A Vagrantfile has been placed in this directory

  1. vagrant up

I get an error that says:

The box 'hashicorp/precise32' could not be found
like image 397
Bhavika Avatar asked Feb 05 '15 09:02

Bhavika


1 Answers

All you need to do is edit you vagrant file and define the vm.box_url and vm.box options like this.

config.vm.box_url = "http://files.vagrantup.com/precise32.box"

config.vm.box = "precise32"

and then run "vagrant up"

like image 191
Shantanu Avatar answered Sep 18 '22 23:09

Shantanu