- Get latest OpenSUSE 12.1 from the official website.
- Install it on your physical or virtual machine.
- Using the DVD (at least) you've an option for a minimal command-line installation ( choice GNOME / KDE / Other > Server install, text mode). OpenSUSE + XtreemOS take a bit less than 2Gb in this setup
- Disable the firewall and enable the ssh server at installation.
- Open a console as root and update issuing those commands:
sudo su zypper ref && zypper up -l
- You may want to connect via ssh (highly recommended). Except if you have already done it at the installation time through the installation interface, the first step is to start the ssh server and set it as autostart:
service sshd start && chkconfig sshd on
You won't be able to connect to root user directly: it'll ask your password three times before answering "Permission denied". Unless you add your public key to /root/.ssh/authorized_keys. Alternative is to connect as normal user and use "sudo su".
Set up XtreemOS package repository
- That will allow you to install XtreemOS's packages the same way as all other packages/software in OpenSUSE. Issue the following in a console (still as root):
zypper ar -f http://r.opensu.se/network:cluster:xtreemos.repo
- Optional: for developers and testers that want to use the development branch of XtreemOS (WARNING, it is likely to break), issue the following in a console (still as root):
zypper ar -f http://r.opensu.se/network:cluster:xtreemos:devel.repo
Install XtreemOS packages
- Install XtreemOS packages and remove 2 conflicting default packages:
zypper in -l xtreemos-node Do you want to reject the key, trust temporarily, or trust always? [r/t/a/?] (r): a Problem: xtreemos-node-3.0-2.1.noarch requires xtreemos-node-core, but this requirement cannot be provided uninstallable providers: xtreemos-node-core-3.0-2.1.noarch[network_cluster_xtreemos] Solution 1: deinstallation of unscd-0.47-3.1.x86_64 ... Choose from above solutions by number or cancel [1/2/3/c] (c): 1 Problem: xtreemos-node-3.0-2.1.noarch requires xtreemos-node-core, but this requirement cannot be provided uninstallable providers: xtreemos-node-core-3.0-2.1.noarch[network_cluster_xtreemos] Solution 1: deinstallation of patterns-openSUSE-minimal_base-11.4-6.9.1.x86_64 ... Choose from above solutions by number or cancel [1/2/3/c] (c): 1 ...
Set up XOS
- Let's work in root home directory:
- Initiate a certificate authority.
Note 1: In the following commands, don't forget to change the machine name 'core.xtreemos.eu' by your machine name.
Note 2: For a first test, it's recommended to use "xtreemos" as password for all certificates, otherwise you have to update it later in the configuration files.
create-rootca-cda /opt/xtreemosca "My XtreemOS credential authority" create-cda-creds /opt/xtreemosca xos-core.xtreemos.eu "CDA Server" for service in cda vops rca mrc dir osd xtfs_mount volife; do create-csr xos-core.xtreemos.eu "XtreemOS" $service; done; for csr in *.csr; do process-csr /opt/xtreemosca $csr; done;
Certificates and keys installation for xosautoconfig:
- Copy the certificates in the configuration directory of xosautoconfig:
rm /etc/xos/xosautoconfig/conf/etc/xos/truststore/certs/* cp /opt/xtreemosca/public/xtreemos.crt /etc/xos/xosautoconfig/conf/etc/xos/truststore/certs/ cp *cda.crt /etc/xos/xosautoconfig/conf/etc/xos/truststore/certs/cda.crt cp *rca.crt /etc/xos/xosautoconfig/conf/etc/xos/truststore/certs/rcaserver.crt cp *vops.crt /etc/xos/xosautoconfig/conf/etc/xos/truststore/certs/vops.crt
- Copy the private keys in the configuration directory of xosautoconfig:
rm /etc/xos/xosautoconfig/conf/etc/xos/truststore/private/* cp *cda.key /etc/xos/xosautoconfig/conf/etc/xos/truststore/private/cda.key cp *rca.key /etc/xos/xosautoconfig/conf/etc/xos/truststore/private/rcaserver.key cp *vops.key /etc/xos/xosautoconfig/conf/etc/xos/truststore/private/vops.key
Get ready to run xosautoconfig:
- Move to the configuration directory of xosautoconfig:
- Edit file "nodeTypes" and check that your machine name is appended to the line starting with "head-node:".
- Edit file "globalDefs" and check that your machine name and machine IP is set to all variables (follow the template to know when an IP or a name is expected).
- Run command "xosautoconfig":
- About services: not all of them are started as they should be. Here is a list of what you should check / start when restarting your VM and before the next step (using "service name start|status|..."):
for s in mysql xosd cdaserver tomcat6 xtreemfs-osd xtreemfs-mrc xtreemfs-dir sshd-xos xos-amsd; do service $s status; done;
It should display "running" in green color (on the far right), or "service is running" (on the left side).
VO and VO User creation
- Usual step from "Installing XtreemOS on a Virtual Machine" can be followed starting from section 4 page 21. (VMInstall.pdf)
- "volife_run.sh" is to be replaced by "volife"