Skip to content

JanisOrlovs/centos-packer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

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=v20180418 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-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

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-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

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%