Vagrant is an open source software for building, maintaining and shipping development environments.
The idea here is that the required development environment can be made available as a VM, complete with all the necessary utilities compiled, with a keen focus on portability and usability.
This project aims to provide a linux based development environment.
The repository provides a Vagrantfile which configures the linux environment.
Prior to using this, ensure that the necessary packages are installed:
- Install Virtualbox.
- Install vagrant.
Once the required packages are installed, cd to the current working directory where the Vagrantfile is present.
This also can mount folders onto the vm. The location of the folder to be mounted is set in the config.yaml file present in the current directory header.
# Run the vagrant machine
vagrant up
# ssh vm
vagrant ssh
# Pause vm
vagrant suspend
# Halt vm
vagrant halt
It is often useful to save a snapshot of the vagrant machine.
# Halt before saving snapshots
vagrant halt
vagrant snapshot save pristine-install
# Restoring snapshots
vagrant snapshot restore pristine-install
# Listing snapshots
vagrant snapshot list
- Currently tested on OSX
- Supports only private networking.
- Test support with Windows OS.
Virtualbox: https://www.virtualbox.org/wiki/Downloads
Vagrant: https://www.vagrantup.com/downloads.html