Base boxes for Vagrant by Packer
Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
boxes
builds
cache
http
scripts
README.md
jessie64.json
precise64-desktop.json
precise64.json
trusty64-desktop.json
trusty64.json
vivid64-desktop.json
vivid64.json
wily64-desktop.json
wily64.json
xenial64-desktop.json
xenial64.json

README.md

Vagrant boxes made by Packer

Create Ubuntu and Debian server boxes for Vagrant by Packer

This branch is for local builds. If you want to build the base box at Atlas, then switch to the atlas branch here.

Prerequisites

Install Vagrant, Packer and VirtualBox

Clone vagrant-packer-boxes

mkdir -p ~/Vagrant/PackerBoxes
cd ~/Vagrant/PackerBoxes
git clone https://github.com/doka/vagrant-packer-boxes.git
cd vagrant-packer-boxes

Set environmental variables

  • cache directory: place for all the ISO files downloaded during the build process

    export PACKER_CACHE_DIR="~/Vagrant/PackerBoxes/vagrant-packer-boxes/cache"

Build the base box locally

packer build debian-8.2.json

The first build will run longer than usually, since the ISO files will be first downloaded. Follow download process by watching the cache directory.

The base box will be at ~/Vagrant/PackerBoxes/vagrant-packer-boxes/builds/virtualbox. This is a tar file, you can untar it if interested.

Use base box with Vagrant

mkdir -p ~/Vagrant/jessie
cd ~/Vagrant/jessie
vagrant box add debian-8.2 ~/Vagrant/PackerBoxes/vagrant-packer-boxes/builds/virtualbox/debian-8.2-2016-01-10.box
vagrant init debian-8.2
vagrant up
vagrant ssh

Customize base box

  • Edit and update Vagrantfile
  • Edit and update debian-8.2.json
  • Edit and update install scripts at scripts/
  • Edit and update preseed config file at http/