Skip to content

An example using packer (http://packer.io) for creating a basic ubuntu VM with a single package install (git)

License

Notifications You must be signed in to change notification settings

chadinfiniteskills/packer-example

 
 

Repository files navigation

Example: Building Systems With Packer

This is a simple example for using Packer (http://packer.io) to build two types of systems:

  1. A VMWare Fusion Virtual Machine (Mac OS X)
  2. 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.

Instructions

  1. Install http://packer.io according to directions.
  2. Clone this repository.
  3. 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.)
  4. To create a VMWare Fusion machine run the command (from the git checkout directory) packer build vmware-example.json
  5. To create an Amazon AMI run the command packer build ami-example.json
  6. 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

About

An example using packer (http://packer.io) for creating a basic ubuntu VM with a single package install (git)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%