2018-03-29 10:42:14 +00:00
|
|
|
|
2018-03-29 11:22:14 +00:00
|
|
|
# Vagrant
|
|
|
|
|
2018-11-02 14:19:19 +00:00
|
|
|
```shell
|
|
|
|
# 插件安装
|
|
|
|
➜ vagrant plugin install vagrant-vbguest
|
|
|
|
➜ vagrant plugin install vagrant-hosts
|
|
|
|
```
|
|
|
|
|
2018-03-29 10:42:14 +00:00
|
|
|
```sh
|
2018-11-02 14:19:19 +00:00
|
|
|
➜ cd base
|
|
|
|
|
2018-03-29 11:22:14 +00:00
|
|
|
➜ wget https://www.dropbox.com/s/nuz6ts1hlx4vy27/vagrant-centos-7.2.box\?dl\=0 -O vagrant-centos-7.2.box
|
|
|
|
|
|
|
|
➜ vagrant box add -f centos-7.2 vagrant-centos-7.2.box
|
2018-03-29 10:42:14 +00:00
|
|
|
|
|
|
|
➜ vagrant up # 执行 init.sh 脚本时,最好保证能够 fq
|
|
|
|
|
|
|
|
➜ vagrant package --output centos-7.2-ehlxr.box
|
|
|
|
|
|
|
|
➜ vagrant box add -f centos-7.2-ehlxr centos-7.2-ehlxr.box
|
|
|
|
|
2018-11-02 14:19:19 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
```sh
|
|
|
|
# onedrive.live.com、drive.google.com、pan.baidu.com 下载 centos-7.2-ehlxr.box
|
|
|
|
|
|
|
|
➜ vagrant box add -f centos-7.2-ehlxr centos-7.2-ehlxr.box
|
2018-11-02 14:37:52 +00:00
|
|
|
# vagrant package --base vghost1 --output centos-ehlxr.box
|
2018-11-02 14:19:19 +00:00
|
|
|
|
|
|
|
➜ vagrant up # 执行 init.sh 脚本时,最好保证能够 fq
|
|
|
|
|
2018-03-29 10:42:14 +00:00
|
|
|
```
|