Automatic Debian 8 Vagrant base box building on OSX, Linux and Windows
Shell
Switch branches/tags
Nothing to show
Latest commit fc538c8 Apr 30, 2016 @dotzero dotzero Minor improvements
Permalink
Failed to load latest commit information.
.gitignore Ignore vi swap files Jan 13, 2014
LICENSE Bump year Apr 30, 2016
README.md Update README Apr 30, 2016
build.sh Minor improvements Apr 30, 2016
isolinux.cfg Initial commit May 9, 2013
late_command.sh Minor improvements Apr 30, 2016
preseed.cfg Bump to Debian 8.0 Apr 27, 2015

README.md

About

This script will:

  1. download and verify the latest Debian "Jessie" ISO
  2. ... do some magic to turn it into a vagrant box file
  3. output debian-jessie-i386.box or debian-jessie-amd64.box

Requirements

  • Oracle VM VirtualBox
  • Vagrant
  • mkisofs for generating a custom Debian CD image
  • 7zip for unpacking the Debian ISO image
  • md5sum or md5 for Debian ISO image hash check

Usage on OSX

./build.sh

This should do everything you need. If you don't have mkisofs or p7zip, install homebrew, then:

brew install cdrtools
brew install p7zip

To add debian-jessie-amd64.box with name debian-jessie into vagrant:

vagrant box add "debian-jessie" debian-jessie-amd64.box

Usage on Linux

./build.sh

This should do everything you need. If you don't have mkisofs or p7zip:

sudo apt-get install genisoimage
sudo apt-get install p7zip-full

To add debian-jessie-amd64.box with name debian-jessie into vagrant:

vagrant box add "debian-jessie" debian-jessie-amd64.box

Usage on Windows (under cygwin/git shell)

./build.sh

Tested under Windows 7 with this tools:

To add debian-jessie-amd64.box with name debian-jessie into vagrant:

vagrant box add "debian-jessie" debian-jessie.box

Environment variables

You can affect the default behaviour of the script using environment variables:

VAR=value ./build.sh

The following variables are supported:

  • ARCH - Architecture to build. Either i386 or amd64. Default is amd64;

  • DEBIAN_CDIMAGE - Domain to download the Debian installer from. Default is cdimage.debian.org. Example: ftp.de.debian.org;

  • PRESEED — Path to custom preseed file. May be useful when if you need some customizations for your private base box (user name, passwords etc.);

  • LATE_CMD — Path to custom late_command.sh. May be useful when if you need some customizations for your private base box (user name, passwords etc.);

  • VM_GUI — If set to yes or 1, disables headless mode for vm. May be useful for debugging installer;

License

Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php