Creating a OpenNode EMI1 Worker Node OVF template
Relevant documentation:
Preparation work
Deploy SL5.x OpenVZ template (x86_64)
opennode
#Create VM->openvz->scientific-5.7-x86_64-asys
#Mem: 0.512
#Disk: 2GB
#Exit
#Get and set $VEID for scripts
vzlist
export VEID=xxx
#Update OS and add yum plugins
vzctl enter $VEID
yum update -y
yum install yum-priorities yum-protectbase nano -y
Install EPEL repository
cd /tmp
wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -i epel-release-5-4.noarch.rpm
nano -w /etc/yum.repos.d/epel.repo
#--- ADD ---
priority=50
#--- ADD ---
Install EMI repository
wget https://emisoft.web.cern.ch/emisoft/dist/EMI/1/sl5/x86_64/updates/emi-release-1.0.1-1.sl5.noarch.rpm
rpm -i emi-release-1.0.1-1.sl5.noarch.rpm
#check EMI repo configs
cat /etc/yum.repos.d/emi1-base.repo
cat /etc/yum.repos.d/emi1-updates.repo
cat /etc/yum.repos.d/emi1-third-party.repo
Install Certification Authority repository
cd /etc/yum.repos.d/
wget http://repository.egi.eu/sw/production/cas/1/current/repo-files/EGI-trustanchors.repo
Worker Node software installation
yum install ca-policy-egi-core -y
yum install emi-wn emi-torque-client -y
Create OpenNode template
vzctl stop $VEID
opennode
#Choose Templates->Create a new template from VM->openvz
rsync -av /storage/local/openvz/wn-emi1-x86_64-kbfi.tar \
activesy@awh1.active.ee:activesys.org/html/opennode/templates/kbfi/openvz/