GreenQloud's Packer Templates is a project that encapsulates Packer templates for building virtual machine images for CloudStack. There are also templates for creating Vagrant baseboxes, which are used for testing Single Node Developer Setups.
Packer validate: packer validate template.json
Packer debug and logging: . debug.rc
(in project's main directory)
Packer build template: packer build template.json
(make is often a better option)
Packer build with specified builder: packer build -only=vmware-iso template.json
The virtual machine images built for CloudStack are currently made for two types of hypervisors; QEMU/KVM and VMWare.
The CloudStack templates are located under templates
.
Builders: QEMU, VMware
VMware: make windows-2008-r2-vmware
QEMU: make windows-2008-r2-qemu
Not implemented yet.
Builders: QEMU, VMware
QEMU: make centos-6.5-qemu
VMware: make centos-6.5-vmware
Current developer baseboxes include chef, and depending on the version an upgraded kernel, dependencies already installed.
Baseboxes that come with chef.
gqdev_centos-6.5_chef_latest.box
Baseboxes used for testing chef recipies come with Linux kernel 3.10.
gqdev_centos-6.5_kernel-3.10.box
Baseboxes used for testing CloudStack.
gqdev_centos-6.5_cs-base.box
Basically a CloudStack installation in a box, combined with upgrade scripts this could be used to get a development environment setup with little effort.
gqdev_centos-6.5_cs-full.box
First, install Packer and then clone this project.
Inside the packer
directory, a JSON file describes each box that can be built. You can use packer build
to build the
boxes.
$ packer build centos-6.5-x86_64.json
If you want to use a another mirror site, use mirror variable.
$ packer build -var 'mirror=http://fedora.is/CentOS' debian-7.2.0-i386.json
- Author: Jon Thor Kristinsson ([email protected])
- Author: Jordi Amorós ([email protected])
Copyright 2014, Greenqloud (<[email protected]>)