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 the following with x86_64
and i386
architecture:
- CentOS-6.10
- CentOS-6.9
- CentOS-6.8
- CentOS-6.7
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:
- VirtualBox (6.0.10)
- Vagrant (2.2.5)
- Packer (1.4.3)
To build the latest x86_64
base box run make
or make build
.
$ make
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's 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