Git Product home page Git Product logo

vagrant-virtualbox-debian-base's Introduction

About

This script will:

  1. download and verify the Debian 8 "Jessie" CD image, 64bit or 32bit 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 CD image
  • one of md5sum, sha1sum or sha256sum for Debian CD image hash check
  • optional: gpg to verify the Debian CD image

Configuration

  1. set the password or MD5 hash of the deploy user in preseed.cfg
  2. optional: adjust locale of timezone values in preseed.cfg

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:

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.

  • SSHKEY - Path to custom public SSH key file to be copied into the installer CDROM at /sshkey.pub. Can be used by late_command.sh. Example: ~/.ssh/id_rsa.pub.

  • ANSIBLE_PLAYBOOK - Optional ansible playbook to run.

  • ANSIBLE_SSHPORT - Optional the SSH port for ansible. Default is 2222.

Notes

When the ansible playbook has errors, login to the running machine with ssh -p ${ANSIBLE_SSHPORT} deploy@localhost for inspection or debugging.

This script is based on original Carl's repo and with some tweaks to be Debian compatible.

vagrant-virtualbox-debian-base's People

Contributors

alexmarchant avatar briangilbert avatar cliffrowley avatar dhoss avatar dotzero avatar emmanuelkasper avatar janl avatar martijnvermaat avatar timka avatar tmacedo avatar wummel avatar xurizaemon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.