Corporate Home Open Source Home
Syndicate content
Eucalyptus
3 replies [Last post]
abhisekhchakraborty
Offline
Joined: 04/14/2010

How to convert .AMI Amazon image to .EMI Eucalyptus image and vice-versa ? Is there any tool available for that ?

graziano
Offline
Joined: 01/14/2010
Hello, you should be able to

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

rjbrown99
Offline
Joined: 04/02/2010
Here's what I do

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.

neil
Offline
Joined: 04/28/2009
unbundle


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