Vagrant / How to import box into Vagrant

If vagrant up fails to find a box, this is probably because Vagrant doesn't know where to look for the box.

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:
* The box 'ubuntu_1404' could not be found.


How to add a box image into Vagrant:
 

$ vagrant box add ubuntu_1404 ubuntu_1404.box
Downloading box from URL: file:/home/user/project/dev-vm/ubuntu_1404.box
Extracting box...te: 38.5M/s, Estimated time remaining: 0:00:01)
Successfully added box 'ubuntu_1404' with provider 'virtualbox'!

No comments:

Post a Comment