Vagrant installs a new virtual machine automatically. In half a minute, you control the machine with ssh.
Install Vagrant and VirtualBox
$ sudo apt-get update $ sudo apt-get -y install vagrant virtualbox
Init a new machine
$ vagrant init bento/ubuntu-16.04 $ vagrant up $ vagrant ssh
And you’re in, with SSH.
When you want to destroy your guest virtual machine and all its files, ‘vagrant destroy’. To learn more about Vagrant, read my other Vagrant articles.
Adminstrivia
Tested with Xubuntu 16.04 LTS amd64 live USB.