如何快速生成vagrant box?
- 1 git clone https://github.com/chef/bento
- 2 修改 https://github.com/chef/bento/blob/master/centos/centos-7.5-x86_64.json 替换"mirror": “http://mirrors.kernel.org/centos”,为
- “mirror”: “https://mirrors.aliyun.com/centos”
- 3 cd bento/centos
- 4 packer build -only=virtualbox-iso centos-7.5-x86_64.json
这是最快的方法生成最新的box文件方法了