This is a vagrant environment quickstart project (which help you to quickstart your environment with Vagrant).
使用 Vagrant 快速开始你的开发、测试环境
Supported Vagrant Boxes Environment
-
alpine3
: Alpine Linux 3 Vagrant Environment -
centos7
: CentOS 7.7 Vagrant Environment Speed up with China Mirrors (Around 250MB) -
centos8
: CentOS 8.0 Vagrant Environment Speed up with China Mirrors -
centos7-docker
: CentOS 7.7 Docker Environment -
centos7-python
: CentOS 7.7 Python Environment with Jupyter Notebook (Around 300MB) -
centos7-elasticstack
: CentOS 7.7 ElasticStack Environment (Less than 800MB) -
rockylinux8
: Rocky Linux 8.5 (Around 500MB)
You can choose below VM for your environment
-
VirtualBox (Recommended): VirtualBox is a free and opensource virtualizer for x86 hardware.
- Goto https://www.virtualbox.org/wiki/Downloads to download the right package of your OS.
- Install with it by double click ;)
-
VMware Fusion: Please notice that both VMware Fusion and the Vagrant vmware_desktop are not free, you need get the licenses for them if you wanna to use Vagrant with VMware!
# [ Go to the space you like: ]
cd centos7
# [ OR ]
cd centos8
# [ 启动虚机 / Run-up the VM box ]
vagrant up
# [ 连接虚机 / Login to the VM -- SSH ]
vagrant ssh
# [ 停止虚机 / Halt and Stop the VM ]
vagrant halt
# [ 销毁虚机 / Terminate and destroy the VM ]
vagrant destroy -f
- https://app.vagrantup.com/zyz/boxes/centos7
- https://app.vagrantup.com/zyz/boxes/centos7-docker
- https://app.vagrantup.com/zyz/boxes/centos7-python
- https://app.vagrantup.com/zyz/boxes/centos8
- Vagrant boxes:
After downloaded the offline vagrant boxes, you can add to your local environment by:
# Add VirtualBox CentOS 7 box:
vagrant box add zyz/centos7 --provider virtualbox centos7.7_virtualbox_2.0.0.box
vagrant box add zyz/centos7-elasticstack --provider virtualbox xxx.box
vagrant box add zyz/centos7-python --provider virtualbox xxx.box
vagrant box add zyz/centos7-docker --provider virtualbox xxx.box
# Add VMware Desktop CentOS 7 box (Unless you have VMware vagrant plugin like me :) ):
vagrant box add zyz/centos7 --provider vmware_desktop centos7.7_vmware_2.0.0.box
vagrant box add zyz/centos7-elasticstack --provider vmware_desktop xxx.box
vagrant box add zyz/centos7-python --provider vmware_desktop xxx.box
vagrant box add zyz/centos7-docker --provider vmware_desktop xxx.box
- GET /api/vmnet giving up after 5 attempts
sudo launchctl stop com.vagrant.vagrant-vmware-utility
sudo launchctl start com.vagrant.vagrant-vmware-utility