VMware player
Transcript
VMware player
How to install a gLite User Interface Antonio Calanducci INFN Catania I Corso di formazione INFN su aspetti pratici dell'integrazione di applicazioni in GRID Martina Franca (TA), 12-24th Nov 2007 www.ccr.infn.it http://grid.infn.it/ Outline • What is a User Interface (UI) ? • How to install a User Interface – SLC308 i386 – SLC4X i386 – SLC4X x86_64 • UI Testing www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ What is a UI? • The UI is a suite of clients and API that users and applications can use to access the gLite services • The gLite UI includes the following components: – VOMS command-line tools – Workload Management System clients and APIs – Logging and Bookkeeping clients and APIs – Data Transfer command-line clients and APIs – Data Catalog command-line clients and APIs – gLite I/O client and APIs – R-GMA client and APIs – infosites tools www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ UI Requirements • Official gLite User Interface SO requirements: – gLite 3.0 ---> Scientific Linux 3.0.x – gLite 3.1 ---> Scientific Linux 4 • The gLite User Interface is available in RPM and in tarball format – RPM Installation is done via YUM • We will show here the installation via tarball • More doc on the YUM style information at: – http://igrelease.forge.cnaf.infn.it/doku.php? id=doc:updates:infngrid-update31-06 www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ Prepare your OS • We will install the gLite 3.1 on a SLC 4 environment • Other distributions that should be supported: – Scientific Linux 4 – Red Hat Enterprise 4 • Previous tarball releases were installed successfully on other Linux distro: – Fedora Core – SuSE – Debian • Users of Windows and other Linux distributions could run a Virtual Machine with SLC4 www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ VMware player: VM player • VMware software allows to create and run Virtual Machines in a window as an application • A VMware player is available for free on Windows, Linux (32/64bit) • Mac Users (intel only) can use VMware Fusion (not free, 30 day trial, allows to create and play VMs) www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ Download of VMware player • You can download WMware player (Windows/Linux) at: – http://www.vmware.com/download/player/ • VMware fusion trial can be downloaded at: – http://www.vmware.com/download/fusion/ • We have a local copy of the installation packages on our repository: – (Windows) http://repository.gs.ba.infn.it/infngs/VMwareplayer-2.0.2-59824.exe – (Linux 32bit) http://repository.gs.ba.infn.it/infngs/VMwareplayer-2.0.2-59824.i386.tar.gz – (Linux 64bit) http://repository.gs.ba.infn.it/infngs/VMwareplayer-2.0.2-59824.x86_64.tar.gz www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ Install VMware player • Windows installer is straightforward • On a linux box: – untar the .tar.gz on a temporary directory (/tmp) – Become root (su - ) – execute /tmp/vmware-player-distrib/vmware-install.pl to configure and install VMplayer some modules related to networking should be compiled during the run of the script you need developer tools installed (gcc and related libraries) and running kernel-devel • From your user account start VMware player with vmplayer command or from the window manager www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ Run a SLC4 virtual machine • We have set up for you a SLC4.5 virtual machine with the base OS • You can download it at: – http://repository.gs.ba.infn.it/infngs/SLC4VM-base.tar.gz • Untar it and open the SLC4-base.vmwarevm/SLC4base.vmx from VMware player • At the request if you have copied or moved the VM, answer “copied”. – at the first boot you will be asked also if you want to remove a network card and install a new one. Answer yes. It will be needed to update properly the mac address of your VirtualNIC www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ Screenshoot www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ Login info Login:root Password:gildaVM.08 Because copy and paste will not work inside your VM, I strongly advice you to use ssh to work on your VM www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ Installing gLite UI tarballs • Download the latest glite-UI-3.1.0-3.tar.gz and gliteUI-3.1.0-3-external.tar.gz from here: – http://grid-deployment.web.cern.ch/grid-deployment/download/ relocatable/glite-UI/SL4_i686/ • Local repository: – http://repository.gs.ba.infn.it/infngs/glite-UI-3.1.0-3.tar.gz – http://repository.gs.ba.infn.it/infngs/glite-UI-3.1.0-3-external.tar.gz • Create a directory where you will untar the previous files (we will refer to this directory as INSTALL_ROOT): – – – – mkdir /opt cd /opt tar xzvf glite-UI-3.1.0-3.tar.gz tar xzvf glite-UI-3.1.0-3-external.tar.gz www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ Java SDK Installation • Because of SUN licence used for Java SDK, it is not possible to redistribute it with the middleware. • You have to download Java SDK 1.4.2 from Sun web site: http://java.sun.com/j2se/1.4.2/download.html • Select ``Download J2SE SDK'', and download the ``RPM in selfextracting file''. Follow the instruction on the pages to extract the rpm. • For this tutorial you can download it from: http://repository.gs.ba.infn.it/infngs/j2sdk-1_4_2_14-linux-i586.rpm – Install the RPM (or the tar.gz) www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ Configure properly your site-info.def • Copy the template from $INSTALL_ROOT/glite/yaim/ examples/siteinfo/site-info.def to /root – cp $INSTALL_ROOT/glite/yaim/examples/siteinfo/ site-info.def /root/my-site-info.def • You have to edit properly the site-info.def according the VO and resource you will use • Mandatory parameters: – – – – MY_DOMAIN=gs.ba.infn.it INSTALL_ROOT=/opt GLITE_EXTERNAL_ROOT=${INSTALL_ROOT}/external GRID_ENV_LOCATION=${GLITE_EXTERNAL_ROOT}/etc/ profile.d – JAVA_LOCATION=<your path to java, e.g. /usr/java/ jdk1.5.0_11> – WMS_HOST=<your WMS host> www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ Configure properly your site-info.def #2 – – – – – RB_HOST=wms1.$MY_DOMAIN WMS_HOST=wms1.$MY_DOMAIN PX_HOST=voms.$MY_DOMAIN BDII_HOST=bdii.$MY_DOMAIN LFC_HOST=lfc.$MY_DOMAIN – WN_LIST=$INSTALL_ROOT/glite/yaim/examples/wn-list.conf – USERS_CONF=$INSTALL_ROOT/glite/yaim/examples/ users.conf – GROUPS_CONF=$INSTALL_ROOT/glite/yaim/examples/ groups.conf – FUNCTIONS_DIR=$INSTALL_ROOT/glite/yaim/functions www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ Enabling Virtual Organizazions • In the final part of your my-site-info.def you should set up properly the VO that you want to enable: – – – – – – VOS="ops dteam gilda gridit bio pamela theophys cyclops" GILDA_GROUP_ENABLE="gilda" GRIDIT_GROUP_ENABLE="gridit" PAMELA_GROUP_ENABLE="pamela" THEOPHYS_GROUP_ENABLE="theophys" CYCLOPS_GROUP_ENABLE="cyclops" www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ VO Parameters in my-siteinfo.def – – – – VO_GILDA_SW_DIR=$VO_SW_DIR/gilda VO_GILDA_DEFAULT_SE=$DPM_HOST VO_GILDA_STORAGE_DIR=$CLASSIC_STORAGE_DIR/gilda VO_GILDA_VOMS_SERVERS="vomss://voms.gs.ba.infn.it:8443/ voms/gilda?/gilda" – VO_GILDA_VOMSES="gilda voms.gs.ba.infn.it 15000 /C=IT/ O=GILDA/OU=Host/L=MARTINAFRANCA/CN=voms.gs.ba.infn.it/ [email protected] gilda" – – – – VO_BIO_SW_DIR=$VO_SW_DIR/bio VO_BIO_DEFAULT_SE=$CLASSIC_HOST VO_BIO_STORAGE_DIR=$CLASSIC_STORAGE_DIR/bio VO_BIO_VOMS_SERVERS="vomss://voms.cnaf.infn.it:8443/voms/ bio?/bio" – VO_BIO_VOMSES="bio voms.cnaf.infn.it 15007 /C=IT/O=INFN/ OU=Host/L=CNAF/CN=voms.cnaf.infn.it bio" www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ VO Parameters in my-siteinfo.def #2 – – – – – – – – – – VO_GRIDIT_SW_DIR=$VO_SW_DIR/gridit VO_GRIDIT_DEFAULT_SE=$CLASSIC_HOST VO_GRIDIT_STORAGE_DIR=$CLASSIC_STORAGE_DIR/gridit VO_GRIDIT_VOMS_SERVERS="vomss://voms.cnaf.infn.it:8443/ voms/gridit?/gridit" VO_GRIDIT_VOMSES="gridit voms.cnaf.infn.it 15008 /C=IT/ O=INFN/OU=Host/L=CNAF/CN=voms.cnaf.infn.it gridit" VO_PAMELA_SW_DIR=$VO_SW_DIR/pamela VO_PAMELA_DEFAULT_SE=$CLASSIC_HOST VO_PAMELA_STORAGE_DIR=$CLASSIC_STORAGE_DIR/ pamela VO_PAMELA_VOMS_SERVERS="vomss://voms.cnaf.infn.it:8443/ voms/pamela?/pamela" VO_PAMELA_VOMSES="pamela voms.cnaf.infn.it 15013 /C=IT/ O=INFN/OU=Host/L=CNAF/CN=voms.cnaf.infn.it pamela" www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ VO Parameters in my-siteinfo.def #3 – VO_THEOPHYS_SW_DIR=$VO_SW_DIR/theophys – VO_THEOPHYS_DEFAULT_SE=$CLASSIC_HOST – VO_THEOPHYS_STORAGE_DIR=$CLASSIC_STORAGE_DIR/ theophys – VO_THEOPHYS_VOMS_SERVERS="vomss://voms.cnaf.infn.it: 8443/voms/theophys?/theophys" – VO_THEOPHYS_VOMSES="theophys voms.cnaf.infn.it 15006 / C=IT/O=INFN/OU=Host/L=CNAF/CN=voms.cnaf.infn.it theophys" – VO_CYCLOPS_SW_DIR=$VO_SW_DIR/cyclops – VO_CYCLOPS_DEFAULT_SE=$CLASSIC_HOST – VO_CYCLOPS_STORAGE_DIR=$CLASSIC_STORAGE_DIR/ cyclops – VO_CYCLOPS_VOMS_SERVERS="vomss://voms2.cnaf.infn.it: 8443/voms/cyclops?/cyclops" – VO_CYCLOPS_VOMSES="cyclops voms2.cnaf.infn.it 15011 /C=IT/ O=INFN/OU=Host/L=CNAF/CN=voms2.cnaf.infn.it cyclops" www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ Missing CA certificates • GILDA CA Certificate is not installed automatically, so you have to install it manually • Download the GILDA CA RPM at: – http://grid018.ct.infn.it/rep/gilda_app-i386/RPMS/ ca_GILDA-1.0-11.i386.rpm • Download also the GILDA VOMS Server certificate at – http://grid018.ct.infn.it/rep/gilda_app-i386/RPMS/lcg-voms-vogilda-1.0-2.noarch.rpm • For the test now, use the school voms.gs.ba.infn.it certificate here: – http://repository.gs.ba.infn.it/infngs/infngsvomscert-1.0-0.noarch.rpm www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ Extract the RPM files • Because the previous RPMs were done to be installed in given directory (while our installation is relocatable, even installable in user space), extract manually the files and put in the proper places: – mkdir /tmp/ca – cd /tmp/ca – rpm2cpio infngs-vomscert-1.0-0.noarch.rpm | cpio -id – cp etc/grid-security/vomsdir/ voms.gs.ba.infn.it.pem $INSTALL_ROOT/external/ etc/grid-security/vomsdir – rpm2cpio ca_GILDA-1.0-11.i386.rpm | cpio -id – cp etc/grid-security/certificates/* $INSTALL_ROOT/external/etc/grid-security/ certificates www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ Start the configuration • Time to cross fingers :) • Issue the following command: – $INSTALL_ROOT/glite/yaim/bin/yaim -c -s <your site-info.def> -n UI_TAR • If everything went smooth, you have god a brand new and fresh gLite 3.1 USER INTERFACE!!!! www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ AMGA tools and APIs • AMGA clients do not come with the gLite UI TAR • We need to install them manually • Download the latest AMGA client here: – http://amga.web.cern.ch/amga/downloads/glite-amgacli-1.3.0-1.SLC4.i386.rpm • Extract files from the RPM in a temp dir: – mkdir /tmp/amga – cd /tmp/amga – rpm2cpio glite-amga-cli-1.3.0-1.SLC4.i386.rpm | cpio -id – cp -r . $INSTALL_ROOT www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ Use your User Interface • create a user: – adduser tcaland • upload your certificates in .globus • if you need AMGA, copy the template of mdclient.config and set up properly: – cp $INSTALL_ROOT/glite/etc/ mdclient.config .mdclient.config • Everytime you need to use the grid commands, you should source: – source $INSTALL_ROOT/external/etc/profile.d/ grid-env.(c)sh • Test your User Interface – – – – – voms-proxy-init --voms gilda lcg-infosites lfc-*/lcg-* commands glite-wms-* commands mdcli/mdclient www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/ www.ccr.infn.it I Corso di formazione INFN per amministratori di siti Grid Martina Franca, 5-9 November 2007 - http://grid.infn.it/