Skip to content

sjmh/packer-rhel7-vms

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Packer templates for Red Hat Enterprise 7 x86_64

Overview

This repository contains templates for RHEL7 x86_64 that creates Vagrant boxes using Packer.

Prerequisites

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).

Creating the boxes

  • Export ISO_LOCATION to the directory where the ISOs reside
  • Run packer with either the rhel-7.0-vbox.json or rhel-7.0-vmware.json template
  • Add the box to Vagrant
  • Build VMs

Example

$ 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published