A set of example Packer templates for building Debian, Ubuntu, RedHat, Centos boxes on VMware ESXi. These are built on the remote ESXi host, then shutdown and left registered. A lot of this work comes out of boxes created by Nick Charlton, which provides the basic template formation and from packer-esxi also from Nick Charlton
They assume that it's possible to fetch an IP through DHCP on the primary (VM Network
) network. If this isn't the case, see the post on Nick Charlton site, you can adjust the boot command to
set a static IP.
This example repo comes out of this post wrote by Nick on how to use Packer with VMware ESXi.
packer build -var-file variables.json ubuntu-1604-base.json
Ensure that variables.json
contains valid values.
Copyright (c) 2018 Patrice Le Guyader [email protected]
- For Code from boxes and packer-esxi Copyright (c) 2016 Nick Charlton. MIT Licensed.