Version 1 (modified by ibaldin, 9 years ago)

--

Testing Eucalyptus handler

You must set up your Eucalyptus substrate first.

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:

ec2-add-keypair mykey > mykey OR 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=emi-BC27103B export EC2_SSH_KEY=mykey

  • define JAVA_HOME to point to your JAVA installation. On a MAC this

is:

export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/ CurrentJDK/Home

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

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

tree)

  • disable emulation: edit tools/cmdline/config/container.properties
  • run the test:

and test.euca -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