Skip to content

We must be protected our data while using 3rd party vagrant boxes, ISOs, VDIs.

Notifications You must be signed in to change notification settings

salmanwaheed/vagrantbox

Repository files navigation

vagrantbox

We must be protected our data while using 3rd party vagrant boxes, ISOs, VDIs.

Install

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)

Prerequisites

  1. Clone the repository git clone git@github.com:deletify/vagrantbox.git <PROJECT_NAME>.
  2. Go into cd <PROJECT_NAME>.
  3. Open the vim config.yml, replace project_name: <PROJECT_NAME> and add multiple machines if you want (ub64 is default machine).
  4. Install required plugins vagrant plugin install vagrant-disksize vagrant-vbguest if you don't installed yet.

Setting Up a Virtual Machine

  • use ./setup.sh whenever config.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>.
  • if you are outside the <PROJECT_NAME> directory then run vagrant global-status and get the ID.
    • login vagrant ssh <ID>.
    • start machine vagrant up <ID>.
    • stop machine vagrant halt <ID>.