Where does Vagrant download its .box files to?

前端 未结 8 2062
误落风尘
误落风尘 2020-12-07 06:29

What happens to the .box file after the following command is executed?

vagrant box add lucid32 http://files.vagrantup.com/lucid32.box

I can

相关标签:
8条回答
  • 2020-12-07 07:31

    To change the Path, you can set a new Path to an Enviroment-Variable named: VAGRANT_HOME

    export VAGRANT_HOME=my/new/path/goes/here/
    

    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

    0 讨论(0)
  • 2020-12-07 07:33

    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 for VAGRANT_HOME.

    In my case I set VAGRANT_HOME to e:\vagrant_home, and the boxes get stored under e:\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.

    0 讨论(0)
提交回复
热议问题