
Where ‘mynewbox' is any name you choose (preferrably similar to the name of the box you just added) and ‘mynew.box' is the file name of the box you just created $ vagrant box add mynewbox mynew.box box at the end $ vagrant package -output mynew.box Where ‘mynew.box' is any name you choose while adding. Repackage the server we just created into a new vagrant base box Clear the Bash History and exit the VM $ cat /dev/null > ~/.bash_history & history -c & exit Now continue from the vagrant command lineĥ. Not sure what this does $ sudo dd if=/dev/zero of=/EMPTY bs=1MĤ. Make the box as small as possible $ sudo apt-get clean You can also use this tutorial and script to initialize and install a lemp stack:Ģ.

First, initialize vagrant, ssh into the box and install whatever you want on it.

This tutorial will create a base box using Ubuntu 16.04ġ.
