Start from Vagrant – create your own VM Box

Here I will create a ubuntu 16 64bit server image. for which altas link in fact have issue some times. So we create from ubuntu cloud image directly:

After you get where is the URL for, then we can use this cmd to do things.

vagrant init boxname boxurl

vagrant init ubuntu/xenial64
less Vagrantfile
vagrant up
vagrant ssh

Then you install anything you want to customize your linux VM.
After every thing ready, just exit from your VM.  Shutdown it and pack as a new box.

vagrant halt
vagrant package --output

So you will get a new box named as Now you can release this box to team and they can use init command to create a VM at their local folder.


To make your new box smaller, there are some command you can use. see this article for details: