What happens to the .box file after the following command is executed?
vagrant box add lucid32 http://files.vagrantup.com/lucid32.box
I can't find the lucid32.box
file on the file system after download has completed.
What happens to the .box file after the following command is executed?
vagrant box add lucid32 http://files.vagrantup.com/lucid32.box
I can't find the lucid32.box
file on the file system after download has completed.
@Luke Peterson: There's a simpler way to get .box file.
Just go to https://atlas.hashicorp.com/boxes/search, search for the box you'd like to download. Notice the URL of the box, e.g:
https://atlas.hashicorp.com/ubuntu/boxes/trusty64/versions/20150530.0.1
Then you can download this box using URL like this:
https://vagrantcloud.com/ubuntu/boxes/trusty64/versions/20150530.0.1/providers/virtualbox.box
I tried and successfully download all the boxes I need. Hope that help.
As mentioned in the docs, boxes are stored at:
~/.vagrant.d/boxes
C:/Users/USERNAME/.vagrant.d/boxes
On Windows, the location can be found here. I didn't find any documentation on the internet for this, and this wasn't immediately obvious to me:
C:\Users\\{username}\\.vagrant.d\boxes
On Windows 10 with Vagrant 2.2.2, setting the environment variable
VAGRANT_HOME
will ensure that boxes are downloaded to a subfolder of the folder specified forVAGRANT_HOME
.In my case I set
VAGRANT_HOME
toe:\vagrant_home
, and the boxes get stored undere:\vagrant_home\boxes
.This works for me.
That's where the boxes are stored. The virtual machines are being created in the folder configured in Virtual Box. To set the VirtualBox VM storage folder, go to:
VirtualBox GUI --> File --> Preferences --> General --> Default Machine Folder
.To change the Path, you can set a new Path to an Enviroment-Variable named: VAGRANT_HOME
Thats maybe nice if you want to have those vagrant-Images on another HDD.
More Information here in the Documentations: http://docs.vagrantup.com/v2/other/environmental-variables.html
On Mac/Linux System, the successfully downloaded boxes are located at:
and unsuccessful boxes are located at:
On Windows systems it is located under the Users folder:
Hope this will help. Thanks