...
sudo mkdir /mnt/eucaBuild/
* copy there euca2-yourName-e3e764-cert.pem euca2-yourName-e3f64-pk.pem cloud-cert.pem eucars.csh
* set enviromental variables by sourcing source eucars.csh
* setup working directory for the bundle which will be excluded from the bundle
...
* uplad bundle to Eucalyptus with name 'star-vm-SL10c-ubuntu-i386', will take many hours depending on connection & total size
> sudo euca-upload-bundle -a $EC2_ACCESS_KEY -s $EC2_SECRET_KEY --url $S3_URL --ec2cert $EUCALYPTUS_CERT -b star-vm-SL10c-ubuntu-i386 64bit -m /image/image.manifest.xml
OUTPUT:
....
Uploading part: image.part.246
Uploading part: image.part.247
Uploaded image as star-vm-SL10c-ubuntu-i386/image.manifest.xml
* register 'star-vm-SL10c-ubuntu-i386' with Eucalyptus
> euca-register -a $EC2_ACCESS_KEY -s $EC2_SECRET_KEY --url $EC2_URL star-vm-SL10c-ubuntu-i38664bit/image.manifest.xml
OUTPUT:
IMAGE emi-344D1244
...
- synchronization of local clock, can be fixed with commanecommand
> sudo ntpdate hickory.nersc.gov
...
USE of existing images : http://magellan.nersc.gov/?page_id=564
...
* create key-pair for one Eucalyptus session and launch an instance
> euca-add-keypair balewski-euca > balewski-euca.private
> chmod 0600 balewski-euca.private
* launch an instance
> euca-run-instances -k balewski-euca emi-39DF160F
OUTPUT:
RESERVATION r-470107EF balewski balewski-default
INSTANCE i-31D50646 emi-39DF160F 0.0.0.0 0.0.0.0 pending balewski-euca 2010-10-22T16:05:53.609Z eki-AEC117E0 eri-175C1933
* check if instance is running (after few minutes, depends on the size of the image)
> euca-describe-instances i-31D50646
OUTPUT:
RESERVATION r-470107EF balewski default
INSTANCE i-31D50646 emi-39DF160F 128.55.56.51 192.168.4.2 running balewski-euca 0 m1.small 2010-10-22T16:05:53.609Z euca eki-AEC117E0 eri-175C1933
...