From b14366acff5e3e51935584016ce6b3ede9f75f92 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Fri, 8 Mar 2013 01:50:14 -0300 Subject: [PATCH] Improve readme and change Vagrantfile examples to use pre-built box from dropbox --- README.md | 18 ++++++++++++------ example/Vagrantfile | 2 +- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 8d0af88..d29c80a 100644 --- a/README.md +++ b/README.md @@ -53,19 +53,18 @@ git clone git://github.com/fgrehm/vagrant-lxc.git --recurse cd vagrant-lxc bundle install bundle exec rake install -bundle exec rake boxes:quantal64:build -vagrant-lxc box add quantal64 boxes/output/lxc-quantal64.box ``` Since Vagrant 1.1 has not been released yet and to avoid messing up with you current Vagrant installation, I've vendored Vagrant's sources from the master and made it available from [`vagrant-lxc`](bin/vagrant-lxc). So after installing -`vagrant-lxc` and adding the base box, create a `Vagrantfile` like the one below -and run `vagrant-lxc up --provider=lxc`: +`vagrant-lxc`, create a `Vagrantfile` like the one below and run +`vagrant-lxc up --provider=lxc`: ```ruby Vagrant.configure("2") do |config| - config.vm.box = "quantal64" + config.vm.box = "lxc-quantal64" + config.vm.box_url = 'http://dl.dropbox.com/u/13510779/lxc-quantal64-2013-03-08.box' # Create a private network, which allows host-only access to the machine # using a specific IP. @@ -104,10 +103,17 @@ just sing that same old song: git clone git://github.com/fgrehm/vagrant-lxc.git --recurse cd vagrant-lxc bundle install -bundle exec rake boxes:quantal64:build bundle exec rake # to run all specs ``` +To rebuild and add the new quantal64 box: + +``` +bundle exec rake boxes:quantal64:build +vagrant-lxc box add quantal64 boxes/output/lxc-quantal64.box +``` + + ### Using VirtualBox for development I've also prepared a Vagrant 1.0 VirtualBox machine for development that you can diff --git a/example/Vagrantfile b/example/Vagrantfile index 02c3b91..90ab563 100644 --- a/example/Vagrantfile +++ b/example/Vagrantfile @@ -5,7 +5,7 @@ Vagrant.require_plugin 'vagrant-lxc' Vagrant.configure("2") do |config| config.vm.box = "quantal64" - config.vm.box_url = '../boxes/output/lxc-quantal64.box' + config.vm.box_url = 'http://dl.dropbox.com/u/13510779/lxc-quantal64-2013-03-08.box' config.vm.hostname = 'lxc-quantal64' config.vm.network :private_network, ip: "192.168.33.10"