Skip to content
Packer - Example to build VM with Packer for CentOS 7.5.18.04 with Vmware Tools
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ansible
http
scripts
.gitignore
LICENSE
README.md
centos7.json
packer-centos.json
packer-ovf.json

README.md

Packer CentOS

This repository contains files used by [Packer][packer] to create CentOS images for VMware (vmware) and vbox

Variables available

Optional variables and their defaults:

  build_number      = {{timestamp}}
  centos_arch       = x86_64
  disk_size         = 10000
  headless          = true
  iso_base_url      = iso
  iso_checksum_type = sha256
  password          = password
  timeout           = 30m
  username          = root

In addition, several variables files are available in order to precise which version of CentOS you want to use. The Packer -var-file option has to be used with one of these files.

Examples

To create an image of CentOS 7 for all the hypervisors :

packer build -var-file centos7.json packer-centos.json
packer build -only vbox -var-file centos7.json packer-centos.json
You can’t perform that action at this time.