CentOS 6 / 7 x64 + VirtualBox / VMWare for Packer Template
Switch branches/tags
Nothing to show
Clone or download
kotashiratsuka v20181203
* VMWare Fusion 11.0.2 Compatible
* CentOS 7.6 Release
Latest commit 7257dea Dec 3, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
centos6 v20181110 Nov 10, 2018
centos7 v20181203 Dec 3, 2018
LICENSE v20160815 Aug 15, 2016
README.md v20181203 Dec 3, 2018

README.md

centos-packer

CentOS 6 / 7 x64 + VirtualBox / VMWare for Packer Template

Packer Build for VirtualBox

cd centos6 or centos7
packer validate [ CentOS_6.json | CentOS_7.json ]
VERSION=v20180718 packer build [ -only virtualbox-iso | -only vmware-iso ]  [ CentOS_6.json | CentOS_7.json ]

Add Vagrant Box

vagrant box add BOXNAME INSANEWORKS-CentOS-6-x86_64-v20181203-virtualbox.box
vagrant box add BOXNAME INSANEWORKS-CentOS-7-x86_64-v20181203-virtualbox.box
or
vagrant box add BOXNAME INSANEWORKS-CentOS-6-x86_64-v20181203-vmware.box
vagrant box add BOXNAME INSANEWORKS-CentOS-7-x86_64-v20181203-vmware.box

Atlas a.k.a Vagrant Cloud

mkdir centos
cd centos
vagrant init insaneworks/centos
or
vagrant init insaneworks/centos7
vagrant up

or Public URL Init

mkdir centos
cd centos
vagrant init INSANEWORKS-CentOS-6-x86_64-v20180718 https://www.insaneworks.co.jp/pub/boxes/INSANEWORKS-CentOS-6-x86_64-v20181203-virtualbox.box
vagrant init INSANEWORKS-CentOS-7-x86_64-v20180718 https://www.insaneworks.co.jp/pub/boxes/INSANEWORKS-CentOS-7-x86_64-v20181203-virtualbox.box
or
vagrant init INSANEWORKS-CentOS-6-x86_64-v20180718 https://www.insaneworks.co.jp/pub/boxes/INSANEWORKS-CentOS-6-x86_64-v20181203-vmware.box
vagrant init INSANEWORKS-CentOS-7-x86_64-v20180718 https://www.insaneworks.co.jp/pub/boxes/INSANEWORKS-CentOS-7-x86_64-v20181203-vmware.box
vagrant up

or Edit Vagrantfile (Vagrant 1.5.0 or Higher)

   # please see the online documentation at vagrantup.com.

   # Every Vagrant virtual environment requires a box to build off of.
-  config.vm.box = "base"
+  config.vm.box = "insaneworks/centos" or "insaneworks/centos7"

   # Create a forwarded port mapping which allows access to a specific port
   # within the machine from a port on the host machine. In the example below,
vagrant up

Known Issues

VMWare tools fails to Compile on Centos 7.3 (1611)

  1. download VMware Tools 10.1.0 or Higher
  2. extract it
  3. copy vmtools/linux.iso centos7/
  4. build

refs #4