Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

* Upload euca2tols tool kit form http://open.eucalyptus.com/wiki/Euca2oolsGuide
in particular I followed '/Euca2oolsInstallJaunty_v1.1' for my Ubuntu VM deployment,
but skip step about updating /etc/apt/sources.list with 'deb http://www.eucalyptussoftware.com/downloads/repo/euca2ools/1.1/ubuntu jaunty universe'

I did:
sudo apt-get update
sudo apt-get install euca2ools

Check euca2ools by executing e.g.: euca2ools
should complain about missing keys but program must be found

...

Bundle & upload to Eucalyptus my VM 'from within'
* copy private key & certificate to some directory you do NOT want to distribute those with the VM image. Make sure you do not leve them somewhere else on VM - the whole world will hack you later

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 eucars.csh

* setup working directory for the bundle which will be excluded from the bundle

sudo mkdir /image

* Bundle local VM , will take 1-2 hours ...
>sudo , you may need to specify the kernel & ramdisk (values below worked in November 2010) also the 64-bit VM is generated below, use -r i386 for the 32-bit image.
>sudo euca-bundle-vol -c $EC2_CERT -k $EC2_PRIVATE_KEY -u $EC2_USER_ID --ec2cert $EUCALYPTUS_CERT -d /image -e /image --no-inherit -r i386x86_64 --kernel eki-AEC117E0 --ramdisk eri-175C1933
OUTPUT:
....
Part: image.part.245
Part: image.part.246
Part: image.part.247
Generating manifest

* 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 -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

...