This is a simple example for using Packer (http://packer.io) to build two types of systems:
- A VMWare Fusion Virtual Machine (Mac OS X)
- An Amazon AMI
The end result will be output machine templates that run a basic Ubuntu 12.04 LTS release and an install of "Git". This can obviously be extended to use provisioners and create more interesting machines - but I intend this to be a simple example of using Packer to build basic machines.
- Install http://packer.io according to directions.
- Clone this repository.
- Modify some basic settings (you may want to use a local Ubuntu ISO rather than downloading from the internet) and add your Amazon Access Key / Secret Access Key (etc.)
- To create a VMWare Fusion machine run the command (from the git checkout directory)
packer build vmware-example.json
- To create an Amazon AMI run the command
packer build ami-example.json
- To create both at the same time, run
packer build system-build.json
NOTE: There might be some issues downloading the ubuntu preseed file based on your local network environment - you can also download the preseed cfg file and host it on a 'local' web server.
This project was originally created with Packer v. 0.4.1