Prepare EMOTIVE Environment

Introduction

In EMOTIVECloud.tar.gz file there are:

Server files (to copy into Apache Tomcat “webapps” directory

WARs_to_apache/SimpleScheduler.war  (*) Use only one Scheduler, only one Scheduler for Tomcat
WARs_to_apache/HAScheduler.war         (*) Use only one Scheduler, only one Scheduler for Tomcat
WARs_to_apache/VtM.war                           (*) Scheduler needs this
WARs_to_apache/RM.war                             (*) Scheduler needs this

Client files

JARs_to_client/HASchedulerClientREST.jar
JARs_to_client/SimpleSchedulerClient.jar
JARs_to_client/VtM.jar

To run:
#java -jar SimpleSchedulerClient.jar

Config Files
etc/VtM/rm.properties
etc/VtM/vtm.properties (EMOTIVE path’s, network configuration and system variables)

install.cfg (you need to configurate this variables)
#export APACHE_PATH=/usr/share/tomcat5/
#export EMOTIVE_PATH=/root/EMOTIVE/
#export EMOTIVE_POOL=/usr/share/EMOTIVE/pool/`hostname`
#export WARS_PATH=WARs_to_apache/
#export JARS_PATH=JARs_to_client/
#export EMOTIVE_CFG=etc/VtM/

and later you can use install.sh script

./install.sh create ( create in directory /etc/VtM/ the config files )
./install.sh directory (create /usr/share/EMOTIVE/pool/…. directories)

Variables

./install.sh create ( create in directory /etc/VtM/ the config files )

edit /etc/VtM/vtm.properties
# pool.unified = /usr/share/EMOTIVE/pool
# checkpoint.path = /usr/share/EMOTIVE/checkpoint
# checkpoint.path.remote = /usr/share/EMOTIVE/checkpoint
# Network
# ip = 192.168.122.50
# network.address = 192.168.122.
# gateway = 192.168.122.1
# netmask = 255.255.255.0
# broadcast = 192.168.122.255
# network = 192.168.122.0
# bridge = virbr0
# hostname = pcroot  # You can get this name with the linux command `hostname`

edit /etc/VtM/rm.properties (default configuration)
# scheduler = vrmm://localhost:8080
# node = vtm://localhost:8080Path’s and directories

./install.sh directory (create /usr/share/EMOTIVE/pool/…. directories)

Disk images and kernels

# pcroot:~# ls /usr/share/EMOTIVE/pool/pcroot/
# cache  checkpoint  domU  extensions  home  images  kernels  log

You need to create and copy disk image in /usr/share/EMOTIVE/pool/pcroot/images/default.img

# pcroot:~# ls -ltr /usr/share/EMOTIVE/pool/pcroot/images/
total 1025004
-rw-r–r– 1 root root 1048576000 2010-06-04 13:59 default.img

# pcroot:~# ls -ltr /usr/share/EMOTIVE/pool/pcroot/kernels/
-rw-r–r–  1 root root 13654779 2010-06-04 14:09 libmodules-default.tar.gz
-rw-r–r–  1 root root  2670757 2010-06-04 14:11 vmlinuz-2.6.18.8
-rw-r–r–  1 root root  1535487 2010-06-04 14:11 vmlinuz-default

How to use EMOTIVE modules in one or more Hosts

without EC2

EMOTIVE

Example /etc/VtM/rm.properties

scheduler = vrmm://host00:8080
node = vtm://host00:8080
node = vtm://host01:8080
node = vtm://host02:8080

with EC2

EMOTIVE_withEC2