Discussion Forums



Thread: Scripts to create Ubuntu AMIs

Welcome, Guest Help
Login Login


Permlink Replies: 3 - Pages: 1 - Last Post: Dec 29, 2007 11:57 AM by: Eric Hammond
jjc1138

Posts: 57
Registered: 11/13/06
Scripts to create Ubuntu AMIs
Posted: Nov 26, 2006 11:41 AM PST
  Click to reply to this thread Reply

Hello. I know that Ubuntu and other distro images are coming soon, but in the meantime I made a couple of scripts to set up a Ubuntu 6.10 (Edgy) system on EC2, and I thought someone else might find them useful so here they are (attached).

The first script (fc4-to-base) should be run on one of the default EC2 Fedora Core images. It creates a filesystem image in /mnt/ubuntu610base.img that can be uploaded with ec2-upload-image. The script is heavily based on this post from dougwinter:
http://developer.amazonwebservices.com/connect/message.jspa?messageID=42535#42535

and this write-up of it:
http://blog.atlantistech.com/index.php/2006/10/04/amazon-elastic-compute-cloud-walkthrough/

There's some locale stuff in fc4-to-base that you'll probably want to customize if you're not from where I'm from.

When you've bundled, uploaded and booted the resulting image you can then run the second script (base-to-selfbundling). This one sets up the ec2-ami-tools on the Ubuntu system so that it can bundle itself using ec2-bundle-vol. This is a hideous hack based on lots of tidbits of information on this board. It just installs the rpm using alien and then patches the Ruby scripts in /usr to work around some assumptions that are not valid for non-FC systems.


sambash

Posts: 1
Registered: 11/30/06
Re: Scripts to create Ubuntu AMIs
Posted: Nov 30, 2006 8:10 AM PST   in response to: jjc1138
  Click to reply to this thread Reply

Thanks for this - worked nicely and saved me faffing about :)


scotttfrazer

Posts: 5
Registered: 9/28/07
Re: Scripts to create Ubuntu AMIs
Posted: Sep 28, 2007 3:00 PM PDT   in response to: jjc1138
  Click to reply to this thread Reply

I've updated the script to work with Ubuntu 7.04.  I've also changed the size of the disc image based on the messages in this thread:

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

And I've changed the locale to Chicago, since that's where I am.

The second script required no changes.


Eric Hammond
RealName(TM)


Posts: 1,134
Registered: 7/7/07
Re: Scripts to create Ubuntu AMIs
Posted: Dec 29, 2007 11:57 AM PST   in response to: jjc1138
  Click to reply to this thread Reply

(Late followup for future reference) Using the info in these scripts and from other folks, I have compiled a single script which builds an Ubuntu 7.10 Gutsy base install AMI available here: http://ec2gutsy.notlong.com




Point your RSS reader here for a feed of the latest messages in all forums