Skip to content

An easy toolbox to spawn up the vagrant environments 💻

Notifications You must be signed in to change notification settings

zhouyuanzhen/vagrant-quickstart

Repository files navigation

Vagrant Environment QuickStart

GitHub stars GitHub stars GitHub stars

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)

Before You Start (准备工作)

Install the Virtualizer (安装虚拟机)

You can choose below VM for your environment

  • VirtualBox (Recommended): VirtualBox is a free and opensource virtualizer for x86 hardware.

  • 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!


Example for QuickStart (快速开始)

# [ Go to the space you like: ]
cd centos7
# [ OR ]
cd centos8

Play with Vagrant / (玩转 Vagrant)

# [ 启动虚机 / 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

Pre-built Vagrant Box(构建好的 Vagrant Box)

Get the vagrant box from Vagrant Cloud

Offline Vagrant boxes 百度网盘的离线 Vagrant Boxes

Add Offline 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

FAQ

  • GET /api/vmnet giving up after 5 attempts
sudo launchctl stop com.vagrant.vagrant-vmware-utility
sudo launchctl start com.vagrant.vagrant-vmware-utility

About

An easy toolbox to spawn up the vagrant environments 💻

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published