Packaging Vagrant boxes from ISO files

Packaging Vagrant environments for others is a very common problem. Packaging an environment can start from creating a simple base box with an operating system installed to repurposing existing virtual machines for use as Vagrant boxes. In either case, Vagrant can be a solution to the problem of sharing virtual machines with other team members.

In this example, we will create a Vagrant box from a machine (CentOS) created with VMware Fusion. The same method will apply to VMware Workstation (Windows and Linux) with similar steps required for VirtualBox.

Note

This recipe requires the use of the commercial VMware Fusion provider. For more information on this provider, see the provider homepage at https://www.vagrantup.com/vmware ...

Get Vagrant Virtual Development Environment Cookbook 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.