简体   繁体   中英

Where vagrant .box stores in Linux (Centos7)

Note: For creating clone of Vagrant Box

I have created vagrant box for centos from atlas.hasicorp. ` https://atlas.hashicorp.com/matyunin/boxes/centos7 '

`[user@localhost vagrant_ssh]$ vagrant init matyunin/centos7' This command creates VagrantFile in vagrant_ssh directory.

[user@localhost vagrant_ssh]$ vagrant up --provider virtualbox . Now this will download this vagrant box.

Now I want to create clone of this vagrant box. I can easy to by doing transfer the .box file to the other machine, add the box and run vagrant up. But I am not able to find the location of vagrant box in Centos 7 . In this link , someone mentioned path for vagrant in Mac/linux is ~/.vagrant.d/boxes , but I didn't find this path on Centos7

The box is not stored in the vm but on the host machine, so search for the files on your system

The default path is :

  • Mac OS / Linux: ~/.vagrant.d/boxes
  • Windows: C:/Users/USERNAME/.vagrant.d/boxes

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM