Skip to content

VMDIRAC Installation

Víctor Méndez edited this page Jul 3, 2013 · 16 revisions

Quick notes that will lead you through the installation steps of VMDIRAC.

Requirements

VMDIRAC is based upon the two following packages:

they both need to be installed prior attempting VMDIRAC installation.

Externals

OpenNebula

OCCI 0.8 (OpenNebula) client installation

OpenNebula install

SL6 platform notes: There are no package, from sources:

See OpenNebula install opennebula-3.4.0.tar.gz

currently we are maintaining opennebula end-points > 3.4.0

Installing only the client on the VMDIRAC server:

./install.sh -c
rOCCI 1.1 (OpenNebula) installation

note: VMDIRAC driver is not in integration yet.

gem install occi 

SL5 platform notes: Package incompatibility, manually installation instructions

Standard SL5 dependencies:

# rpm -qa|grep ruby
ruby-libs-1.8.5-29.el5_9.i386
ruby-1.8.5-29.el5_9.x86_64
ruby-libs-1.8.5-29.el5_9.x86_64
rubygems-1.3.1-1.el5.noarch
ruby-shadow-1.4.1-7.el5.x86_64
ruby-rdoc-1.8.5-29.el5_9.x86_64
ruby-devel-1.8.5-29.el5_9.i386
ruby-irb-1.8.5-29.el5_9.x86_64
ruby-augeas-0.3.0-1.el5.x86_64
libselinux-ruby-1.33.4-5.7.el5.x86_64
ruby-devel-1.8.5-29.el5_9.x86_64

Alternative manual installation in /usr/local/bin:

# cd /opt
# wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p429.tar.gz
# tar xzvf ruby-1.9.3-p429.tar.gz
# cd ruby-1.9.3-p429
# ./configure --enable-pthread
# make
# make install

# mv /usr/bin/ruby /usr/bin/ruby.1.8.5.backup
# cp /usr/local/bin/ruby /usr/bin/ruby

# which ruby
/usr/local/bin/ruby
# ruby -v
ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-linux]

/usr/local/bin/ruby
Show quoted text
ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-linux]

# cd /opt
# wget wget http://rubyforge.org/frs/download.php/75711/rubygems-1.8.15.tgz
# tar xzvf rubygems-1.8.15.tgz
# cd rubygems-1.8.15
# ruby setup.rb

# mv /usr/bin/gem /usr/bin/gem.1.3.1.backup
# cp /usr/local/bin/gem /usr/bin/.

# gem -v
1.8.15

furthermore, from this 1.8.15 one can update:

# gem update --system

and rubygems goes to rubygems-update 2.0.3 

finally:
# gem install occi

OpenStack

Nova 1.1 (OpenStack) python libraries:

pip install libcloud
pip install pynovaclient

Step by step

Install the components either from the sysadmin tool or directly from the machine.

DB : VirtualMachineDB

install DB WorkloadManagement/VirtualMachineDB

this will create a new DB on the MySQL server ( without tables ! )

Service : VirtualMachineManagerHandler

install service WorkloadManagement/VirtualMachineManager

be careful with the port, if it is taken by other service you may want to update it to avoid collisions. Check the VMDIRAC.WorkloadManagement.ConfigTemplate for further information. Furthermore, running the service will generate the necessary tables in the database. This service is going to be contacted by the Web server and ALL the virtual machines. You may expect some load here, depending on the number of VMs running.

Agent : VirtualMachineScheduler

install service WorkloadManagement/VirtualMachineScheduler

this agent is the one taking care of booting the virtual machine acording to needs

Agent : VirtualMachineContextualization

install service WorkloadManagement/VirtualMachineContextualization

optional agent when using ssh contextualization method

Web : VMDIRAC.Web

nothing to do if the extension is properly declared on dirac.cfg