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).
- VirtualBox (4.2+)
- RVM
- Vagrant
- Veewee
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.
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.
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.
- Vagrant Document: http://vagrantup.com/v1/docs/index.html
- Creating Vagrant Base Boxes With Veewee: http://seletz.github.com/blog/2012/01/17/creating-vagrant-base-boxes-with-veewee/
Lei Xu [email protected]