CentOS user’s guide

How to EMOTIVE CLOUD (CentOS)

Libvirt 0.8.1-1 installation :

You need this packages:
yum install java-1.6.0-openjdk.x86_64
yum install gnutls-devel.x86_64 gnutls-utils.x86_64
yum install libxml2-python.x86_64 libxml2-devel.x86_64
yum install libtool.x86_64 libtool-ltdl-devel.x86_64 libtool-ltdl.x86_64
yum install gettext.x86_64 gettext-devel.x86_64
yum install gnutls.x86_64
yum install gnutls-devel.x86_64 gnutls-utils.x86_64
yum install xen-devel.x86_64 xen-libs.x86_64 xen
yum install automake

Installation:
# ./configure –prefix=/usr
# make -j8
# make install

– Edit file /etc/libvirt/libvirtd.conf and add the next lines:
listen_tls = 0
listen_tcp = 1

– Configure /etc/xen/xend-config.sxp
(You can see emotive guide)

Install and prepare EMOTIVE Cloud:

- copy EMOTIVE WARs in APACHE_TOMCAT
#ls /usr/share/tomcat5/webapps/
#RM  RM.war  SimpleScheduler.war VtM.war

- Configure environment variables
edit /root/EMOTIVE/install.cfg create (you need to put EMOTIVE and APACHE PATH)
execute:
#./root/EMOTIVE/install.sh create

(NOTE. To use the others options you need Maven2 and SVN)
- edit /etc/VtM/rm.properties
- edit /etc/VtM/vtm.properties (network configuration,  EMOTIVE path’s, variables,…)

- Other preparations: Copy disk image repository, kernels, etc. You can request to technicalsupport

ls /usr/share/EMOTIVE/pool/nubacesga-06-1
cache  checkpoint  domU extensions home  images MaqVirtual1  MaqVirtual2  MaqVirtual3  kernels log

ls /usr/share/EMOTIVE/pool/nubacesga-06-1/images
default.img                                     (DEBIAN image with the KERNEL 2.6.18-xen)

ls /usr/share/EMOTIVE/pool/nubacesga-06-1/kernels/
libmodules-default.tar.gz  linux-2.6.18.8  linux-2.6.18.8.tar.bz2  sources.tgz  vmlinuz-2.6.18.8  vmlinuz-default  vmlinuz-xen                             (vmlinuz and libmodules)

ls /usr/share/EMOTIVE/pool/nubacesga-06-1/domU/
executor       jdk5.tgz  libxenstore.so.3.0.0  updatedate  xenip      xenipmonitor  xenmemorymonitor  xenstore-write
initramfs.img  jre6.tgz  TaskExecutor.jar      vmlinuz     xenipinfo  xenmemory     xenstore-read                                                                           (To submit tasks you need TaskExecutor.jar, executor and Java)

Execute

# java -jar SimpleSchedulerClient.jar