We must be protected our data while using 3rd party vagrant boxes, ISOs, VDIs.
Virtualbox or any relavent tool is required to run Vagrant.
Linux (Debian, Ubuntu, Mint)
$ apt-get install virtualbox vagrant
MacOSx (don't forget to install Homebrew if you don't have one)
$ brew cask install virtualbox vagrant
Windows (Download from the following links)
- Clone the repository
git clone git@github.com:deletify/vagrantbox.git <PROJECT_NAME>
. - Go into
cd <PROJECT_NAME>
. - Open the
vim config.yml
, replaceproject_name: <PROJECT_NAME>
and add multiple machines if you want (ub64
is default machine). - Install required plugins
vagrant plugin install vagrant-disksize vagrant-vbguest
if you don't installed yet.
- use
./setup.sh
wheneverconfig.yml
updated. - use
./destroy.sh
whenever you want to destroy all machines at once. - if you are in
<PROJECT_NAME>
directory.- login via ssh
vagrant ssh <USERNAME>
. - stop machine
vagrant halt <USERNAME>
. - start machine
vagrant up <USERNAME>
.
- login via ssh
- if you are outside the
<PROJECT_NAME>
directory then runvagrant global-status
and get theID
.- login
vagrant ssh <ID>
. - start machine
vagrant up <ID>
. - stop machine
vagrant halt <ID>
.
- login