geeks
geeks

Reputation: 2055

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

Upvotes: 0

Views: 442

Answers (1)

Frederic Henri
Frederic Henri

Reputation: 53793

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

Upvotes: 1

Related Questions