Version 2 (modified by ibaldin, 9 years ago)


Testing Eucalyptus handler

You must set up your Eucalyptus substrate first. This setup presumes you have an environment variable called $ORCA_HOME (typically pointed to /opt/orca).

1. Download your keys from euca. I think they come as a zip file. I believe the file contains a directory with several files, but it may also contain just the files without a directory.

2. Create a directory $ORCA_HOME/ec2.

3. Expand the keys file so that its files are stored under $ORCA_HOME/ ec2. Note: $ORCA_HOME/ec2 should contain only files, and no directories.

4. Generate a private key with euca:

$ euca-add-keypair mykey > mykey

5. Copy mykey to $ORCA_HOME/ec2

6. Edit $orca_home/ec2/eucarc:

  • comment the first line (EUCA_KEY_DIR=$(dirname $(readlink -f ${BASH_SOURCE})))
  • add the following two lines
    export AMI_NAME=<name of the emi filesystem image to be used>
    export EC2_SSH_KEY=mykey
  • define JAVA_HOME to point to your JAVA installation. On a MAC this


$ export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/ 

7. Now you are ready to try running test.euca.

  • you must have do a build (mvn install in the root of the orca


$ ant test.euca -Demulation=false -DleaseLength=600

8. At some point you will see that the reservation will become active and the handler should display the IP address of the VM. You should be able to connect to the VM (it will be around for about 10 minutes):

ssh -i $ORCA_HOME/mykey root@IP