Public AMIs (Amazon Machine Images) for running Ubuntu or Debian on Amazon EC2 (Elastic Compute Cloud).
| Ubuntu Release | base install 32-bit |
base install 64-bit |
desktop 32-bit |
desktop 64-bit |
RightScale 32-bit |
RightScale 64-bit |
Notes |
|---|---|---|---|---|---|---|---|
| Ubuntu 8.10 Intrepid | ami-1a5db973 | ami-0e5db967 | ami-365eba5f | ami-cf5db9a6 | ami-1b5db972 | ami-0f5db966 | |
| Ubuntu 8.04 LTS Hardy | ami-1c5db975 | ami-005db969 | ami-095eba60 | ami-ce5db9a7 | ami-1d5db974 | ami-015db968 | RECOMMENDED |
| Ubuntu 7.10 Gutsy | ami-1f5db976 | ami-035db96a | ami-085eba61 | ||||
| Ubuntu 7.04 Feisty | ami-5270943b | obsolete,unsupported | |||||
| Ubuntu 6.10 Edgy | ami-0d57b264 | obsolete,unsupported | |||||
| Ubuntu 6.06 LTS Dapper | ami-1e5db977 | ami-025db96b | |||||
| Ubuntu Jaunty Alpha | ami-185db971 | ami-0d5db964 | ami-375eba5e | not for production use | |||
| Debian Release | base install 32-bit |
base install 64-bit |
desktop 32-bit |
desktop 64-bit |
RightScale 32-bit |
RightScale 64-bit |
Notes |
| Debian 5.0 Lenny | ami-115db978 | "testing" | |||||
| Debian 4.0 Etch | ami-105db979 | "stable" | |||||
Support for the Ubuntu AMIs is available on the ec2ubuntu Google Group where there is a growing community of folks using Ubuntu on EC2:
http://groups.google.com/group/ec2ubuntu
Support for the Debian AMIs is available on the ec2debian Google Group:
http://groups.google.com/group/ec2debian
If you use or are thinking of using one of these AMIs, please subscribe to these groups so you can find out about updates to the AMIs and tips for running Ubuntu and Debian on Amazon EC2.
If you somehow ended up on this page and have no clue what it's all about, you'll want to read up on Amazon EC2 (Elastic Compute Cloud).
Then, I recommend stepping through the Amazon EC2 Getting Started Guide.
When you get to a point where it talks about running an AMI, feel free to use one of the above Ubuntu or Debian AMIs instead.
When you get stuck, drop by the support group mentioned above.
The base install AMIs are built with the minimal Ubuntu or Debian system. No assumption is made about your intended purpose or desired software choices. Given that this is Ubuntu/Debian, it is generally trivial to turn a base install into a web, database, or email server, complete LAMP system, or just about any other application.
The desktop AMIs are provided as experimental systems. It takes over an hour to install the Ubuntu desktop on EC2, so I figured it would be nice to give folks a chance to try one out without this wait.
Many thanks to all of the others who have posted their Ubuntu and Debian build experience, notes, and fixes, and to the folks who have assisted me directly. The above AMIs and the associated build script are a compilation of as much experience as I could gather. I consider this a community project. Special thanks go to:
The current custodian of these Ubuntu and Debian AMIs, the build script, and this web page is Eric Hammond.
WARNING! If you don't absolutely need a desktop, please use one of the "base install" AMIs instead. The desktop AMIs are many times larger and take many times longer to start up. The base install AMIs are sleek, lean, and ready for service.
Since you didn't listen to the advice in the previous paragraph, here's how to set things up once you instantiate a desktop AMI. On the instance, create a system user (remember your new password):
apt-get update && apt-get upgrade -y user-setup
On your local computer, install and run an NX client from NoMachine.com:
http://www.nomachine.com/download.php
Clients available for Windows, Linux, Mac OSX, Solaris. For example, on my local Ubuntu system, I use:
wget http://64.34.161.181/download/3.3.0/Linux/nxclient_3.3.0-3_i386.deb sudo dpkg -i nxclient_3.3.0-3_i386.deb /usr/NX/bin/nxclient --wizard
Point the NX Client to the external hostname of your Ubuntu desktop EC2 instance and enter the username/password from above. Choose the "Gnome" or "KDE" desktop.
You do not need to read this section to use one of the above Ubuntu or Debian AMIs on EC2. This is only here to document how the AMIs were built and to provide guidance to advanced users who wish to build their own Ubuntu or Debian AMIs from scratch.
The following build script creates an Ubuntu or Debian AMI for EC2:
http://ec2ubuntu-build-ami.notlong.com
The basic instructions for using this script are as follows:
32-bit, 2.6.21 kernel: ami-f51aff9c 32-bit, 2.6.16 kernel: ami-20b65349 64-bit, 2.6.21 kernel: ami-f21aff9b 64-bit, 2.6.16 kernel: ami-36ff1a5f
scp -i IDENTITY {cert,pk}-*.pem root@HOSTNAME:/mnt/
ssh -i IDENTITY root@HOSTNAME
wget http://ec2ubuntu-build-ami.notlong.com
bash ec2ubuntu-build-ami \
--codename hardy \
--bucket NAME \
--prefix NAME \
--user ID \
--access-key ID \
--secret-key ID \
--private-key PATH \
--cert PATH