Skip to content

eddyxu/vagrant-boxes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vagrant Boxes

This project includes a set of tools to set up and use Vagrant Boxes. It includes the Vagrant configuration files for the following scenarios:

  • Kernel development (/kernel-dev)
  • Buildbot slave node

Because of the personal preference, all boxes are based on Ubuntu Server (one LTS and one non-LTS).

Dependancies

Install and Run

Install dependancies

The first step is to install VirtualBox on your machine.

Then, install Ruby + RVM (more details):

# Install libxml2 and libxslt on Ubuntu
$ sudo apt-get install libxml2-dev libxslt1-dev
# Install rvm
$ curl -L https://get.rvm.io | bash -s stable --ruby
$ rvm use 1.9.3
$ rvm gemset create veewee
$ gem install veewee
$ rvm 1.9.3@veewee

Note that for such installation procedures, you need to run rvm 1.9.3@veewee before use Vagrant.

Build the base box.

Instead of downloading the vagrant box, it offers a script to build two base boxes (Ubuntu Latest (12.10) and Ubuntu LTS (12.04)). To build these two base boxes:

$ cd /path/of/vagrant-boxes
$ ./build_boxes.sh

This VM image creation process will take a while. But after its completion, two vagrant boxes are created successfully and it is ready to go.

Run a particular box.

For example, if you would like to start developing Linux kernel, you can follow the following steps.

$ cd /path/of/vagrant-boxes/kernel-dev/
# It will copy your SSH private key into the VM, so you need to first put a
# validate private key to this directory first.
$ cp ~/.ssh/id_rsa .
$ vagrant up
$ vagrant ssh

You can run vagrant help for more details about how to use it.

References

  1. Vagrant Document: http://vagrantup.com/v1/docs/index.html
  2. Creating Vagrant Base Boxes With Veewee: http://seletz.github.com/blog/2012/01/17/creating-vagrant-base-boxes-with-veewee/

Author

Lei Xu [email protected]

About

Vagrant Boxes (VM) for development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published