Install and use the prepackaged Virtualbox VM Image

 

SALSA Group
PTI Indiana University
July 13th 2012

1. Introduction

Before starting any summer school tutorial, you will need to download a pre-installed VirtualBox Virtual Machine Image. This Image contains all the software dependencies for Day 2 tutorial, so, please make sure you have this image ready ahead of the tutorial session.

The following instructions are provided to help set up the VirtualBox appliance. The screenshots are taken from a Mac. If you have not already done so, please install VirtualBox by going to the following location VirtualBox Downloads.

Latest VirtualBox download links (2012/07/23) :

2. Installation Guide

Download the prepackaged appliance from this link. (mirror 1, mirror 2)
To import the appliance, select the File > Import Appliance... menu option. Then select the file from the downloaded location.
On the "Appliance Import Settings" screen, un-check the USB Controller configuration.
You should now have an image named "Chef Ubuntu 32 bit". You can start this image by clicking the start icon at the top of VirtualBox.
To login the username is root. The password is school2012. Below is an example of the log in screen.

4. Start the VM with VirtualBox and check the files

After you VM is started, Then, to check the pre-installed software dependencies, you could use the following commands and make sure you see the following:

root@ubuntu:~# ls -l

-rw-r--r-- 1 root root 132 2012-07-19 20:38 client.rb
drwxr-xr-x 2 root root 4096 2012-07-21 23:06 pigtutorial
drwx------ 8 727168 4002 4096 2012-07-21 22:44 salsaDPI
-rw-r--r-- 1 root root 3829287 2012-07-20 16:58 salsaDPI_alpha.tar.gz
drwxr-xr-x 7 root root 4096 2012-07-21 23:05 software
-rw-r--r-- 1 root root 1675 2012-07-19 20:38 validation.pem

root@ubuntu:~# echo $HADOOP_HOME
/root/software/hadoop-0.20.203.0/

root@ubuntu:~# echo $TWISTER_HOME
/root/software/twister-0.9/

root@ubuntu:~# echo $HBASE_HOME
/root/software/hbase-0.90.6/

root@ubuntu:~# echo $PIG_HOME
/root/software/pig/

 

5. Setup a Shard Folder between the Guest VirtualBox VM and your Host machine/laptop

You will need to setup a shared folder between guest VM and host machine/laptop to transfer files such as FutureGrid ssh private key, FutureGrid Eucalyptus environment file (eucarc) and FutureGrid Eucalyptus VM login ssh private key. This section will guide you through how to setup a shared folder with using the prepackaged VirtualBox image.

After the Guest VirtualBox VM is started, click the "Shared Folders" icon on the right bottom bar:

Choose "Transsient Folders", and then click on "Add Shared Folder" icon on the right:

Then, choose a folder from your Host mashine/laptop, enter a "Folder Name" e.g. Shared, check "Read-only" and "Auto-mount" and press "OK":

Finally, go back to your Guest VirtualBox VM, and type the following. NOTED THAT the shared folder name on the Host machine is "Shared" here, please replace it if you have a different name.

root@ubuntu:~# mkdir -p /media/shared
root@ubuntu:~# mount -t vboxsf Shared /media/shared/
root@ubuntu:~# ls -l /media/shared/


# it should be empty, otherwise it will show some files of the shared folder

Afterward, you can put more files to the shared folder and share them between Guest VirtualBox VM and your Host machine/laptop.

*. Remove ActiveMQ files

Noted that if you have two files activemq.log and kahadb in directory of /root/software/apache-activemq-5.4.2/, please remove it. otherwise, it will cause errors when running sandbox twister applications.

root@ubuntu:~/software/apache-activemq-5.4.2/data# cd /root/software/apache-activemq-5.4.2/
root@ubuntu:~/software/apache-activemq-5.4.2/data# ls -l

-rw-r--r-- 1 root root 78846 2012-07-21 22:34 activemq.log
drwxr-xr-x 2 root root 4096 2012-07-21 22:34 kahadb
root@ubuntu:~/software/apache-activemq-5.4.2/data# rm -rf activemq.log kahadb

Next, you can go to Handson 1 Run user-defined Hadoop WordCount on a sandbox standalone machine.

FAQ

Please see FAQ if you have any problem.

Reference