larrywright / vagrant-ubuntu-precise-64

Automatic vagrant base box building

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

This script will:

  1. download the Ubuntu 12.04 alternate server, 64bit iso
  2. ... do some magic to turn it into a vagrant box file
  3. output package.box

Usage

./build.sh

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

brew install cdrtools

Possible extra steps for OSX Lion:

  • You may have trouble compiling the smake dependency of cdrtools with XCode 4.2.x or earlier. If compilation hangs, upgrade to XCode 4.3.x (free app store upgrade), open XCode and install the Command Line Tools (Preferences -> Downloads).

  • tar 2.8.3 with libarchive 2.8.3 may fail to extract from the ISO image. If this happens, update libarchive (will install to /usr/local/bin/bsdtar, won't overwrite system tar)

     brew install https://raw.github.com/oschrenk/homebrew-dupes/edbc2b464d0bf4420508297418481178299f420a/libarchive.rb
    

Ben's notes

Forked Carl's repo, and it sort of worked out of the box. Tweaked office 12.04 release:

  • Downloading 12.04 final release. (Today as of this writing)
  • Checking MD5 to make sure it is the right version
  • Added a few more checks for external dependencies, mkisofs
  • Removed wget, and used curl to reduce dependencies
  • Added more output to see what is going on
  • Still designed to work on Mac OS X :) ... though it should work for Linux systems too (maybe w/ a bit of porting)

Carl's original README

Decided I wanted to learn how to make a vagrant base box.

Let's target Precise Pangolin since it should be releasing soon, I said.

Let's automate everything, I said.

Let's do it all on my macbook, I said.

Woo.

About

Automatic vagrant base box building

License:MIT License


Languages

Language:Shell 89.0%Language:Ruby 7.9%Language:Puppet 3.1%