CentOS-6 Minimal Base Box
This provides the configuration and Makefile to build a Vagrant minimal base box using Packer. The base box is intended for server (terminal) use only so is restricted to a single locale (with
en_US being the default) which allows for a smaller box size.
There are templates provided for
CentOS-6.9 with architectures
x86_64. There is currently no requirement to support older minor release versions or alternative architectures but they could be added if necessary.
The build environment required is Mac OSX or GNU Linux.
To build the box file you will need the following installed:
To build the latest
x86_64 base box run
To build CentOS-6.7 for a 32 bit architecture.
$ BOX_ARCH=i386 BOX_MINOR_RELEASE=6.7 make
To build a box variant from an alternative box template use
BOX_VARIANT. The default is
minimal but there is now an alternative
minimal-cloud-init template to build boxes that include Cloud-Init.
$ BOX_VARIANT=minimal-cloud-init BOX_MINOR_RELEASE=6.7 make
To install from a box file, generated by a successful build, run the following command which will add the box and output a minimal Vagrantfile template that can be used to create a Vagrantfile in a suitable directory for testing.
$ BOX_MINOR_RELEASE=6.7 make install