Version 9 (modified by ibaldin, 9 years ago)

--

Setting up Euca 2.0

Overview

This document covers installation of Eucalyptus 2.0.0 from source in MANAGED-NOVLAN mode of operation. You must have several physical hosts at your disposal, one designated as a head node and the rest as worker nodes. Worker nodes will have to run either KVM or Xen to be able to create virtual machines. In the described setup the head node does not run Eucalyptus VM instances and therefore does not have to run Xen or KVM. Xen/KVM configuration is not covered in this document as it is heavily distribution and hardware dependent.

Installation

  • Make sure ssh keys for root user are shared across the hosts (i.e. that the root on master node can perform a passwordless login in any worker node).
    root@master$ ssh-keygen
    root@master$ cd .ssh/
    root@master$ cat id_dsa.put >> authorized_keys
    root@master$ scp authorized_keys root@worker1:~/.ssh/
    root@master$ scp authorized_keys root@worker2:~/.ssh/
    
  • These instructions presume the build is being done on the master node
  • Download source code packages for Eucalyptus:
    • Eucalyptus 2.0.0 source, offline version
    • Eycalyptus 2.0.0 source dependencies
    • Euca2ools 1.3.1 source
    • Euca2ools 1.3.1 source dependencies
  • Follow the installation instructions. Pay attention to the software prerequisites, particularly Java - don't use OpenJDK, install Sun's Java 1.6.x or above. It is handy to edit and dot this script prior to installation. Installation should be performed as root. In the script below the installation location is /opt/eucalyptus-2.0
    # DOT this file
    
    # Where is Java?
    export JAVA_HOME=/opt/java/jdk1.6.0_18
    export PATH=$JAVA_HOME/bin:$PATH
    
    # Where will Euca be installed?
    export EUCALYPTUS=/opt/eucalyptus-2.0
    
    # Where is Euca source?
    export EUCALYPTUS_SRC=/home/eucalyptus/eucalyptus-2.0.0
    
    # where are Apache include files?
    export APACHE_INCLUDES=/usr/include/apache2
    export APR_INCLUDES=/usr/include/apr-1.0
    
    # Where can Axis2C be found after installation? (note it goes under the Euca install tree)
    export AXIS2C_HOME=$EUCALYPTUS/packages/axis2c-1.6.0
    
    
  • If you follow the instructions through step 4, you will have a built Eucalyptus tree under $EUCALYPTUS. Copy the tree to all the worker nodes.

Configuration

Pitfalls

Where to look

Logfiles are typically located in the installation subtree (/opt/eucalyptus-2.0/var/log/eucalyptus). Look for error logs. Check this page.

Euca cloud controller

tgt won't start

  • Install a binary package if possible. On Debian/Ubuntu do
    $ aptitude search tgt
    
  • Download and install tgt software if it is missing. This software manages ISCSI volumes for Walrus.
    $ make ISCSI=1; make install
    

Attachments