CentOS 6 / 7 x64 + VirtualBox / VMWare for Packer Template
cd centos6 or centos7
packer validate [ CentOS_6.json | CentOS_7.json ]
VERSION=v20180418 packer build [ -only virtualbox-iso | -only vmware-iso ] [ CentOS_6.json | CentOS_7.json ]
vagrant box add BOXNAME INSANEWORKS-CentOS-6-x86_64-v20180118-virtualbox.box
vagrant box add BOXNAME INSANEWORKS-CentOS-7-x86_64-v20180118-virtualbox.box
or
vagrant box add BOXNAME INSANEWORKS-CentOS-6-x86_64-v20180118-vmware.box
vagrant box add BOXNAME INSANEWORKS-CentOS-7-x86_64-v20180118-vmware.box
mkdir centos
cd centos
vagrant init insaneworks/centos
or
vagrant init insaneworks/centos7
vagrant up
mkdir centos
cd centos
vagrant init INSANEWORKS-CentOS-6-x86_64-v20180418 https://www.insaneworks.co.jp/pub/boxes/INSANEWORKS-CentOS-6-x86_64-v20180118-virtualbox.box
vagrant init INSANEWORKS-CentOS-7-x86_64-v20180418 https://www.insaneworks.co.jp/pub/boxes/INSANEWORKS-CentOS-7-x86_64-v20180118-virtualbox.box
or
vagrant init INSANEWORKS-CentOS-6-x86_64-v20180418 https://www.insaneworks.co.jp/pub/boxes/INSANEWORKS-CentOS-6-x86_64-v20180118-vmware.box
vagrant init INSANEWORKS-CentOS-7-x86_64-v20180418 https://www.insaneworks.co.jp/pub/boxes/INSANEWORKS-CentOS-7-x86_64-v20180118-vmware.box
vagrant up
# 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
VMWare tools fails to Compile on Centos 7.3 (1611)
- download VMware Tools 10.1.0 or Higher
- extract it
- copy vmtools/linux.iso centos7/
- build
refs #4