Packer Image Builder for CentOS
Introduction
This packer templates create vmware image of CentOS 7 with .vmx
and .ova
. In addition, there is an AMI you can create for AWS. You will need to have credentials setup according to AWS credentials setup
The OS versions are:
- Centos 7
For all operating systems we generate images for
-
centos7.json will build:
- VmWare (user: packer/changeme1234)
- VirtualBox (user: packer/changeme1234)
-
aws-centos7-base.json will build:
- AMI for AWS (user: centos/centos)
This template only is tested against 64 bit systems. With the following sizing requirements:
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "512",
"numvcpus": "2"
}
"disk_size": 81920
Requirements
The templates are only tested with packer 0.10.1 and later.
Pre-Requisites for AWS / AMI import
- IAM needs to be setup for the
vmimport
role per the AWS guide. - The bucket
internet2-ami-import-us-west-1
needs to be setup on AWS S3.
Run conversion process
VMware and Virtualbox build
# Build CentOS VMWare and Virtualbox images
PACKER_LOG=1 packer build centos7.json
AMI build will require both aws_access_key
and aws_secret_key
to be setup with AWS credentials setup
# Build CentOS for AWS / AMI
packer build aws-centos7-base.json
Issues during build time
If you experience issues with packer, please use PACKER_LOG=1 packer ...
to find the errors.
Author
- Author:: Mason Packard (mason.packard@levvel.io)
License
TBD
Packer Image Builder for CentOS
Introduction
This packer templates create vmware image of CentOS 7 with .vmx
file type.
The OS versions are:
- Centos 7
For all operating systems we generate images for
- VmWare (user: packer/changeme1234)
This template only is tested against 64 bit systems. With the following sizing requirements:
"vmx_data": {
"cpuid.coresPerSocket": "1",
"memsize": "512",
"numvcpus": "2"
}
"disk_size": 81920
Requirements
The templates are only tested with packer 0.10.1 and later.
Run conversion process
# Build CentOS VMWare image
PACKER_LOG=1 packer build centos7.json
Issues during build time
If you experience issues with packer, please use PACKER_LOG=1 packer ...
to find the errors.
Author
- Author:: Mason Packard (mason.packard@levvel.io)
License
TBD