Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does Vagrant download its .box files to?

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.

like image 460
Calvin Cheng Avatar asked Apr 14 '12 17:04

Calvin Cheng


People also ask

Where does vagrant store its files?

By default, Vagrant stores its boxes after downloading in the directory defined by VAGRANT_HOME environment variable. As a result, On Mac OS X and Linux: ~/. vagrant.

How do I access vagrant files?

When you do 'vagrant ssh' you are not in the '/vagrant' directory but in /home/vagrant directory. Now run 'ls /vagrant'. You will see the VagrantFile in the directory. This is the same VagrantFile that is on your actual host machine.

What is a .BOX file VirtualBox?

Box File - This is a compressed ( tar , tar. gz , zip ) file that is specific to a single provider and can contain anything. Vagrant core does not ever use the contents of this file. Instead, they are passed to the provider. Therefore, a VirtualBox box file has different contents from a VMware box file and so on.


1 Answers

As mentioned in the docs, boxes are stored at:

  • Mac OS X and Linux: ~/.vagrant.d/boxes
  • Windows: C:/Users/USERNAME/.vagrant.d/boxes
like image 78
manojlds Avatar answered Sep 27 '22 20:09

manojlds