This repository contains templates for RHEL7 x86_64 that creates Vagrant boxes using Packer.
To build all the boxes, you will need Packer and both VirtualBox and VMware Fusion installed. You will also need the RHEL7 64-bit ISO from Red Hat and, if using VirtualBox, the guest additions ISO matching the version of VirtualBox you are using (see here). VMWare Fusion comes packaged with their tools.
Once you've obtained the ISOs, copy all of them into the same directory (e.g. /usr/local/isos).
- Export
ISO_LOCATION
to the directory where the ISOs reside - Run packer with either the
rhel-7.0-vbox.json
orrhel-7.0-vmware.json
template - Add the box to Vagrant
- Build VMs
$ export ISO_LOCATION=file:///usr/local/isos
$ packer build rhel-7.0-vbox.json
$ packer build rhel-7.0-vmware.json
$ vagrant box add rhel-7.0-vbox ./rhel-7.0-vbox.box
$ vagrant box add rhel-7.0-vmware ./rhel-7.0-vmware.box