简体   繁体   English

流浪者.box在Linux(Centos7)中的存储位置

[英]Where vagrant .box stores in Linux (Centos7)

Note: For creating clone of Vagrant Box 注意:用于创建Vagrant Box的克隆

I have created vagrant box for centos from atlas.hasicorp. 我已经从atlas.hasicorp为centos创建了一个无聊的盒子。 ` https://atlas.hashicorp.com/matyunin/boxes/centos7 ' ` 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 init matyunin / centos7'此命令在vagrant_ssh目录中创建VagrantFile

[user@localhost vagrant_ssh]$ vagrant up --provider virtualbox . [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. 通过将.box文件传输到另一台计算机,添加该框并运行流浪汉,我可以轻松实现 But I am not able to find the location of vagrant box in Centos 7 . 但是我无法在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 在此链接中 ,有人提到Mac / linux中无业游民的路径是~/.vagrant.d/boxes ,但我在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 Mac OS / Linux:〜/ .vagrant.d / boxes
  • Windows: C:/Users/USERNAME/.vagrant.d/boxes Windows:C:/Users/USERNAME/.vagrant.d/boxes

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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