E-commerce For Everyone - Amazon Storefront Solutions

running ami tools on debian - my notes

Hello,

Unfortunaly Amazon is only providing an RPM. You have to cross a small boisé to get the things work. Here is my notes:

First you need rsync, openssl, ruby, libopenssl-ruby and rpm (all of these are apt-gettable).

Then here is how I've extracted the files from the can:

 $ rpm2cpio ec2-ami-tools.noarch.rpm > /tmp/ami.cpio
 $ mkdir -p usr/local/aes
 $ mkdir -p usr/lib/site_ruby/aes/amiutil
 $ mkdir -p etc/aes/amiutil

Then spread it into your system:

 $ cd /
 $ cpio -i < /tmp/ami.cpio

Debianize the lib path:

 $ ln -s /usr/lib/site_ruby/aes/ /usr/lib/ruby/1.8/

Fix the image.rb, see:

http://developer.amazonwebservices.com/connect/thread.jspa?messageID=42883

Now you should be able to use the ec2-* bundling tool.

Extra stuff! We were bundling from a vserver ( http://www.linux-vserver.org), that require special capability (mknod and mount).

You need CAP_MKNOD in your bcapabilities files (you have to restart your vservers). SECURE_MOUNT is also required, once your vserver is started, run:

 $ vattribute --set --xid 185 --ccap SECURE_MOUNT

If you don't have the loop device, you'll have to create it:

 $ mkdir /var/lib/vservers/subversion/dev/loop
 $ mknod /var/lib/vservers/subversion/dev/loop/0 b 7 0

Did not try the image yet! So, I'll keep you updated on my progress.

Regards,

--
Samuel T. Cossette
Poly9 Group, Inc.
http://www.poly9.com/
Message was edited by: samueltc

Leave a Comment

You must be logged in to post a comment.



E-commerce For Everyone - Amazon Storefront Solutions