Templates to create Vagrant boxes for CentOS 6.8 (x86_64 and i386).
- Packer v0.8.6+
- Vagrant v1.7.3+
- VirtualBox
- Version 4.3.28+ for Windows
- Version 4.3.28+ for Mac OS X (You may want to stay with 4.3.28 which allows HAXM to work in parallel.)
- VMware Workstation v11.1.0+ / VMware Fusion v8.0+
- ESXi (vSphere Hypervisor) v5.5+
- VirtualBox Guest Additions
- curl
- sshd
- sudo
- rsync
vagrant
user and its insecure public key- ... and their dependencies
From the terminal, invoke the following command for VirtualBox provider:
packer build -only=virtualbox-iso -var-file=vars-centos-6.8-x86_64.json centos-6.8-minimal.json
or:
packer build -only=vmware-iso -var-file=vars-centos-6.8-x86_64.json centos-6.8-minimal.json
for VMware provider.
You will find a vagrant box file named CentOS-6.8-x86_64-minimal-v2017.05.03-virtualbox.box
in the same directory after the command has succeeded.
Then you can add the box named CentOS-6.8-x86_64-minimal-v2017.05.03-virtualbox
to your box list
by the following command:
vagrant box add CentOS-6.8-x86_64-minimal-v2017.05.03-virtualbox.box --name CentOS-6.8-x86_64-minimal-v2017.05.03-virtualbox
In order to build a VM image on ESXi, you need to provide the following environment variables:
REMOTE_HOST
- ESXi host name or IP addressREMOTE_USERNAME
- ESXi login user nameREMOTE_PASSWORD
- ESXi login passwordREMOTE_DATASTORE
- ESXi datastore name where a VM image will be created
You also have to enable SSH and VNC on ESXi host.
The following command will build a VM image on your ESXi:
packer build -only=esxi-iso -var-file=vars-centos-6.8-x86_64.json centos-6.8-minimal.json
(Note that created VM will be unregistered from your Inventory.)
packer build -var-file=vars-centos-6.8-x86_64.json centos-6.8-minimal.json
- CentOS 6.8 (x86_64) minimal installationpacker build -var-file=vars-centos-6.8-x86_64.json centos-6.8-ansible.json
- provided with Ansible and Testinfra in addition to CentOS 6.8 (x86_64) minimal installationpacker build -var-file=vars-centos-6.8-x86_64.json centos-6.8-docker.json
- provided with Docker and Docker Compose; in addition to CentOS 6.8 (x86_64) minimal installation.
packer build -var-file=vars-centos-6.8-i386.json centos-6.8-minimal.json
- CentOS 6.8 (i386) minimal installationpacker build -var-file=vars-centos-6.8-i386.json centos-6.8-ansible.json
- provided with Ansible and Testinfra in addition to CentOS 6.8 (i386) minimal installation
Copyright © 2016, 2017 Upper Stream Software.