diff --git a/scale/dib/README.rst b/scale/dib/README.rst new file mode 100644 index 0000000..3ce8b05 --- /dev/null +++ b/scale/dib/README.rst @@ -0,0 +1,52 @@ +==================================== +KLOUDBUSTER IMAGE BUILD INSTRUCTIONS +==================================== + +There are 2 ways to build the kloudbuster image: +* using Vagrant (recommended to build the image on Mac) +* using the build-image.sh script (recommended to build the image on Linux) + +Build on Mac OSX +================ + +Pre-Requisites +-------------- +* must have access to the Internet (to allow download of packages) +* must install Vagrant (https://www.vagrantup.com/downloads.html) +* must install VirtualBox (https://www.virtualbox.org/wiki/Downloads) + +Instructions +------------ + +* Open a shell window +* cd to the scale/dib directory (where this README.rst file resides) +* run vagrant: "vagrant up" + +The build should take around 5-7 minutes (may vary depending on the speed of your Internet connection) and you should see the kloudbuster.qcow2 image appear in the current directory. + +After the image is built, simply discard the vagrant VM: "vagrant destroy" + + +Build on Linux +============== + +Pre-Requisites +-------------- +* must have access to the Internet (to allow download of packages) +* must install git +* must install qemu-utils + +Instructions +------------ + +* clone the kloudbuster git repository somewhere +* git clone -b kloudbuster git://github.com/stackforge/vmtp.git +* cd vmtp/scale/dib +* ./build-image.sh + +The build should take around 5-7 minutes (may vary depending on the speed of your Internet connection) and you should see the kloudbuster.qcow2 image appear in the current directory. + +After the image is built, move the image in a safe location and delete the vmtp directory. + + + diff --git a/scale/dib/Vagrantfile b/scale/dib/Vagrantfile new file mode 100644 index 0000000..63ab902 --- /dev/null +++ b/scale/dib/Vagrantfile @@ -0,0 +1,93 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +# This vagrant file will create a VM to build the koudbuster qcow2 image +# automatically + +# Script for installing the diskimage-builder and kloudbuster repo +# +$script = <