Vagrant
Vagrant is an open-source software product for building and maintaining portable virtual software development environments.
Installation
Vagrant uses VirtualBox to manage the virtual dependencies. You can directly download VirtualBox and install it or install the VirtualBox package which is available in the Ubuntu's repositories:
sudo apt install virtualbox
You can directly download Vagrant and install it or install the Vagrant package which is available in the Ubuntu's repositories:
sudo apt install vagrant
Usage
To create and configure the virtual machine according to the Vagrantfile:
vagrant up
To ssh into the virtual machine:
vagrant ssh
To stop the virtual machine:
vagrant halt
To destroy all resources that were created during the creation of the machine:
vagrant destroy