Creating a Vagrant box

Before we can upload anything to the Vagrant Cloud platform, we need to create a box. Our Vagrant box will be a repackaged version of the ubuntu/xenial64 base box that can be found on the Vagrant Cloud platform. To keep it simple, we will simply be repackaging this box and uploading it using a different name.

First of all, you will need to make sure you have the ubuntu/xenial64 box installed on your system. You can check this by running the vagrant box list command. You can see that I have it installed on my system as it appears in the following screenshot:

If you do not have it installed, run the vagrant box add ubuntu/xenial64 ...

Get Hands-On DevOps with Vagrant now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.