How to convert .AMI Amazon image to .EMI Eucalyptus image and vice-versa ? Is there any tool available for that ?
Here's what I do.
1) Download my AMI from Amazon S3, which results in lots of image.part.01 type files and the image.manifest.xml file.
2) Re-bundle into a single image with something like this:
/usr/local/ec2/amitools/unbundle -m image.manifest.xml -k pk-MYBIGAMAZONPRIVATEKEY.pem -d .
3) Un-bundle into an EMI image with:
euca-bundle-image -r i386 -i [image from step 2]
4) Upload bundle:
euca-upload-bundle -b myimagebucket -m /tmp/image.manifest.xml
5) Register
euca-register myimagebucket/image.manifest.xml
I was not successful at downloading the AMI as parts and directly uploading to Eucalyptus. It required the unbundle/bundle steps to make it work. I'm not sure why, but this process does work for me quite successfully.
I was not successful at downloading the AMI as parts and directly uploading to Eucalyptus. It required the unbundle/bundle steps to make it work. I'm not sure why, but this process does work for me quite successfully.
That is because the image is encrypted with your Amazon credentials. Unbundle will decrypt the image and bundle will encrypt it with your Eucalyptus credentials.
hope that helps
neil
Posted: Thu, 04/15/2010 - 22:19
Hello,
you should be able to download the AMI, add the modules for the kernel/ramdisk you are using in your eucalyptus cloud, and upload it. I'm not aware of any tool.
let us know if it works for you.
cheers
graziano