Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
packer-centos-7/README.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
116 lines (73 sloc)
2.74 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-config-files) | |
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](http://www.packer.io/downloads.html) 0.10.1 and later. | |
### Pre-Requisites for AWS / AMI import | |
- IAM needs to be setup for the `vmimport` role per the [AWS guide](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/VMImportPrerequisites.html#vmimport-service-role). | |
- 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](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-config-files) | |
``` | |
# 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](http://www.packer.io/downloads.html) 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 |