Packer build templates
Switch branches/tags
Nothing to show
Clone or download
Failed to load latest commit information.
alpine3.1.3 new build with virtualbox v5.0.8 to avoid kernel panic when CPUs set … Nov 10, 2015
alpine3.2.3 change to local build Nov 10, 2015
alpine3.3.1 Update Feb 27, 2016
alpine3.3 move to point releases Apr 20, 2016
alpine3.4 alpine 3.4 description/version bump 3.4.6/1.6.0 Nov 9, 2016
alpine3.5 upd: version May 2, 2017
alpine3.6 alpine v3.6.2 Sep 28, 2017
alpine3.7 add alpine 3.7 packer template Jan 8, 2018
centos6.3 switch to local build, packer push - timeout on atlas May 16, 2015
centos6.5 add centos 6.5 Nov 10, 2015
centos6.6 add centos 6.7, migrate centos 6.6 to vault for repos Feb 25, 2016
centos6.7 add centos 6.7, migrate centos 6.6 to vault for repos Feb 25, 2016
centos6.8 add CentOS 6.8 Mar 23, 2017
centos7.1.1503 switch centos 7.1.1503 to use vault Feb 13, 2016
centos7.2.1511 upd: vbga v5.1.10 Dec 12, 2016
centos7.3.1611 doc update Mar 23, 2017
centos7.4.1708 add CentOS 7.4.1708 Sep 28, 2017
centos7.5.1804 add: CentOS 7.5.1804 Oct 15, 2018
debian7.11 add: debian 7.11 (wheezy) Feb 22, 2017
debian8.7 add: debian 8.7 (jessie) Feb 22, 2017
debian9.1 vagrantcloud and add debian 9.1 Aug 10, 2017
omnios-r151006 attempt to reduce base image size May 17, 2016
omnios-r151014 upd: update build base to latest packages Jan 17, 2017
skel Initial Apr 21, 2015
ubuntu-14.04 add ubuntu 14.04.5 Mar 23, 2017
ubuntu-16.04 upd 16.04.2 release Mar 23, 2017
ubuntu-18.04 add: ubuntu 18.04.1 Oct 3, 2018
.gitignore ignore packer_cache directories Jan 8, 2018
LICENSE Initial Apr 21, 2015 doc: update readme with more relevant vagrant cloud information Oct 15, 2018 new build script supports local and vagrantcloud builds Sep 28, 2017 use bogus access key, cannot be empty w/packer 1.3.1 Oct 3, 2018

Packer Templates

Packer templates, mainly for use building boxes for Vagrant Cloud.


Latest versions of: packer, vagrant, and VirtualBox

Current boxes

Use existing template

Using centos7.5.1804 as an example:

  1. cd centos7.5.1804
  2. Edit centos-7.5.1804-x86_64.json
    1. Update to use the correct account name.
    2. And anything else that interests you (customize by editing anything applicable in the scripts/ or http/ subdirectories.)

To perform a local build simply run, ../ local

To perform the build integrated with Vagrant Cloud run, ../ vagrantcloud (Ensure that VAGRANTCLOUD_USER and VAGRANTCLOUD_TOKEN are set correctly.)

Test build

Note, this is a local build and will intentionally fail on the vagrant-cloud post-processor. If it didn't it would push every build up to Vagrant Cloud, probably not what is desired when the template is being developed, updated, and/or tested.

$ ../ local

Note, to debug the VM boot process change headless to false in the template. Optionally, run PACKER_LOG=1 packer build centos-7.5.1804-x86_64.json to see additional debugging output from Packer.

Deploy to Vagrant Cloud

This will act accordingly to how the variables were set in the environment and build.conf.

$ ../ vagrantcloud

Creating a new distribution/release template

  1. Create distribution specific directory structure by copying a previous release or a similar distribution. $ mkdir centos7.x.y && cp -r centos7.5.1804/* centos7.x.7/.
  2. Change to the new directory $ cd centos7.x.7
  3. Change the name of the packer configuration file mv centos-7.5.1804-x86_64.json centos-7.x.7-x86_64.json
  4. Edit the new packer configuration file for the new distro/release
  5. Edit remaining files to update for new distro/release

Note: some of the older release templates still reference the previous Atlas configurations; to build those again the template files would need to be updated to use Vagrant Cloud rather than Atlas.