Use Packer to build CentOS base image for different platform. (Personal use)
This image is based on CentOS 7.4 Minimal(1708) with following software/packages
After installed, packer will create a new user vagrant
with password vagrant
.
Vagrant Box will pack with self-generated SSH key pair for user vagrant.
Built vagrant box
https://app.vagrantup.com/KeithYeh/boxes/centos-base
Default timezone: UTC
NTP servers:
Before build virtualbox-iso or vmware-iso. Add Vagrant Cloud token to environment variable VAGRANT_ACCESS_TOKEN
packer build \
-var-file=config/aws.json \
-var-file=config/gcp.json \
template.json
# VirtualBox
packer build --only=virtualbox-iso template.json
# VMware Desktop
packer build --only=vmware-iso template.json
# Amazon AMI (EBS backed)
packer build --only=amazon-ebs -var-file=config/aws.json template.json
# Google compute engine
packer build --only=googlecompute -var-file=config/gcp.json template.json
(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)
. That is NOT compatible with AMI naming rule.MIT