Amazon Machine Images (AMIs) are disk images of an operating system used to launch AWS EC2 instances.

learn more… | top users | synonyms (1)

60
votes
2answers
15k views

Amazon EC2 terminology - AMI vs. EBS vs. Snapshot vs. Volume

I have been poking around Amazon EC2, and am a little confused on some of the terminology. Specifically with regard to AMI, snapshots and volumes, and an EBS Please correct me if I am wrong, or fill ...
26
votes
7answers
24k views

Amazon Linux vs. Ubuntu for Amazon EC2 [closed]

I'm setting up my first website on Amazon EC2, and I'm trying to decide which distro to use. I've used Redhat and CentOS in the past, but I have no bias towards any system, I just want to use whatever ...
25
votes
1answer
12k views

How do I access the attached volume in Amazon EC2

I just attached another ebs volume to running instance. But how do I access the volume? I can't find the /dev/sda directory anywhere. Where should I look?
13
votes
2answers
8k views

How can I run the Ubuntu EC2 AMI images locally?

I've downloaded the Amazon Ubuntu EC2 AMI images (from http://uec-images.ubuntu.com/releases/10.04/release/) and I am trying to run it locally on my linux desktop. Is it possible to run the AMI using ...
11
votes
3answers
5k views

How to recreate a working AMI from recovery snapshot after Aug 8 outage?

After Amazon's Aug 8 outage, all (EBS based) AMIs stopped working for many users. This is due to corruption of some sectors in snapshots that the AMIs are based on. However, Amazon created recovery ...
8
votes
2answers
11k views

Update PHP with yum on Amazon Linux

I have Amazon Linux on EC2, AMI 2013.09. I followed the LAMP install tutorial, http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html, and ended up with PHP5.3 installed. In answer to ...
8
votes
2answers
2k views

Prevent Amazon EC2 Time zone from reverting back on yum update

I use an Amazon EC2 server instance that runs a distro called Amazon Linux AMI. (I've read that it is based on CentOS/Red Hat). My specific version is the 2012.09 release. Anyway, I was able to ...
7
votes
2answers
2k views

EC2 Update my existing AMI

I'm using Elastic Load Balancing to load balance my Auto Scaling Group, for that I have a private AMI that hold my application server (Tomcat) and my web app deployed to it as war ... Now everything ...
6
votes
4answers
1k views

Easy way to convert custom 32-bit AMI into 64-bit one?

I have customised (EBS-backed) AMI for running a demo version of an application of ours. (The AMI contains Ubuntu 11.04 with a Tomcat & MySQL setup for the app itself, and Jenkins for easy ...
6
votes
1answer
3k views

How do I create an instance store based AMI from an EBS instance?

To give a background, I need about 10 instance replicas for a research purpose. So, here is what i do: I have an EBS based EC2 instance as master instance where i do all the development. Create an ...
6
votes
1answer
2k views

AWS t1 to t2 migration: Client.InstanceInitiatedShutdown on new t2 instance

I've had a Linux t1.micro running a small Apache/PHP/Postgresql website for a couple of years now (referred herein as "original instance"). Works like a charm. I wanted to migrate the site to the ...
6
votes
1answer
497 views

Is there a place to get popular AMIs for Amazon EC2?

Amazon has a list of public AMIs: http://aws.amazon.com/amis But this list is sorted by date, not popularity, so it's practically useless for finding good AMIs, unless you know in advance what ...
5
votes
1answer
2k views

Need to scale an Amazon EC2 instance (but JUST the storage, not the CPU)

I currently have this image: High-CPU Extra Large Instance (Amazon Linux AMI) 7 GB of memory 20 EC2 Compute Units (8 virtual cores with 2.5 EC2 Compute Units each) 1690 GB of instance storage 64-bit ...
5
votes
2answers
713 views

CentOS, Amazon EC2, and EBS AMI

How do you go about finding the most "accepted" image for Amazon which allows you to store it as an EBS image. Specifically I'm looking for a CentOS image.
5
votes
1answer
1k views

How to create a new public AMI for windows with a random password?

I am trying to make a windows 2008 AMI that is a nice clean 64bit starter pack (IIS, SQL express, ASP.NET MVC, etc...) I would like to make it a public AMI when its done. There in lies the problem. I ...
5
votes
1answer
2k views

Creating an EC2 AMI Image from a running instance vs. from a volume snapshot

I want to backup a Linux-based EC2 instance while it is running with no downtime, and then later on launch a new instance. (The instance is running a web server and Postgres database.) I found there ...
4
votes
1answer
1k views

Can't find my AWS shared AMI when trying to share with specific account

I followed the instructions to share my AMI with a specific account here: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sharingamis-explicit.html I made sure the account number is correct, and ...
4
votes
2answers
1k views

Easiest way to show Maintenance page during EC2 instance down time

I need to perform some maintenance, which involves down-times of my EC2 production server. I would like to serve some user friendly Maintenance page meanwhile. The easiest solution, I was able to ...
4
votes
1answer
438 views

Can I disable all TTYs in an EC2 instance?

I am maintaining an ec2 bootstrapping script for debian squeeze on github. The setup has become very minimal and I try to justify all my changes to the standard setup. Currently I am wondering ...
4
votes
1answer
550 views

Is it possible to obtain a copy of Amazon Linux for use outside AWS

How difficult (if at all possible) would it be run a copy of Amazon Linux on a private physical server or hypervisor (Virtualbox/KVM) ? (I am thinking something based in a office/home) I realise it ...
4
votes
2answers
2k views

How Do I Update Apache to 2.2.24 On AWS Instance

I have a website hosted on an Amazon AMI Linux instance. We had a PCI Scan recently and we failed the scan because we have Apache 2.2.23 installed, and apparently it contains vulnerabilities that ...
4
votes
1answer
3k views

How to download private ubuntu AWS EC2 AMI for local use

We have a large number of ubuntu servers currently hosted on AWS EC2. Many of these servers are accessed infrequently and for cost-saving we now want to move these over to our local site and terminate ...
4
votes
1answer
1k views

Launching AWS Windows instance from snapshots?

I have a Windows-based Amazon EC2 instance with an EBS drive as the root device. Is it possible to launch a copy of this instance without creating an AMI - for instance, from a snapshot of the C: ...
4
votes
2answers
2k views

Convert Amazon AMI to VMware image

How can I convert an amazon ami image to a vmware image I can run locally in vmware player?
4
votes
2answers
1k views

AMI with or without reboot on AWS EC2

When creating AMI's from an EC2 instance I always check "no reboot", I've been wondering, what are the pros/cons of creating images with/without a reboot? Does keeping the server live affect the ...
4
votes
1answer
425 views

EC2: can I provide default startup scripts to erase sensitive data in my AMI?

I'm trying to use EC2 to provide an easy-to-use way to bootstrap a hard-to-build web application. Trouble is, there is some sensitive configuration on the filesystem, such as password salts. I've ...
4
votes
2answers
5k views

Re-bundle (or update) an EC2 AMI?

I have bundled an AMI that I'm fairly satisfied with. However I know that eventually I'll need to modify it (e.g. for Debian security updates or to update other system software that I have in the ...
4
votes
1answer
654 views

How to install python debug symbols for GDB on amazon linux AMI?

I am running into problems on my EC2 box running Python in an elastic-beanstalk container. In order to debug the problem, I need to attach a debugger to it and debug python with python symbols. When ...
4
votes
1answer
810 views

Custom Centos5 AMI kernel panic

I'm trying to build a Custom Centos 5 AMI on Amazon and during boot it kernel panics. I've spent almost a week on it and I can't figure out what's wrong. I've followed the following recipe: ...
3
votes
2answers
6k views

Full Update to PHP5.5 on Amazon Linux

I have been trying to get LAMP install upgraded to PHP5.5, Apache 2.4, on Amazon Linux. Per this earlier question, Update PHP with yum on Amazon Linux, I thought I had it beat, but clearly that's not ...
3
votes
1answer
2k views

Why is my AWS instance not reachable?

Yesterday, I created a new instance but I cannot connect to it. Tried pinging it from my computer, online ping sites etc but it is just not reachable. In the AWS console. everything seems to be ...
3
votes
3answers
1k views

Ubuntu 14.04 Server HVM with EBS Free Tier AMI

I'm looking through the AWS Marketplace and Community AMI's to launch an instance on my newly registered free tier on Amazon. I'm very confused by the advertising of what's included in the free tier ...
3
votes
2answers
373 views

Amazon Linux pecl_http installed but not providing functions

I've installed PHP's pecl_http extension using the Amazon Linux php54-pecl-http Yum package. php -i shows the http.ini file loaded http.ini has the extension=http.so line in it php -m shows the HTTP ...
3
votes
2answers
4k views

installing glusterfs on amazon ec2

My drupal website running on Amazon EC2 cloud. My instances use S3 storage for dynamic files. But I realized that S3 is too slow and it may cause problems. I want to use glusterfs instead of S3. To ...
3
votes
1answer
883 views

Can't Start 64-bit AMI on t1.micro instance on AWS

I created a custom AMI based on the Ubuntu 11.10 64-bit AMI from Amazon. When I try to start it up, I get an error: ec2-run-instances -t t1.micro ami-c0b368a9 -k showcase -z us-east-1a ...
3
votes
2answers
11k views

phpMyAdmin Error - The configuration file now needs a secret passphrase

I keep getting an error "The configuration file now needs a secret passphrase" after installation of phpmyadmin. I have set the passphrase and also followed the instruction presented on phpMyAdmin not ...
3
votes
1answer
300 views

Yum won't reinstall PHP on Amazon Linux

Ultimately, this question is about Yum and the Amazon Linux AMI (see the end for that part), but first I'll give some background to how I got into my situation. I installed PHP from source I am ...
3
votes
2answers
2k views

Auto-Attach EBS-volume to a New Spot Instance?

I am experimenting with EC2 spot instances, and am needing some data to be retained between terminations. Now as I understand it, when the current price goes above my max. bid, it will be ...
3
votes
1answer
391 views

Dealing with upgrade of libevent on Amazon AWS

I am building an application (in Python) on Amazon EC2 that has a following dependency chain: gevent-websocket ---> gevent ---> libevent The last one (libevent) got upgraded on Sunday and ...
3
votes
1answer
167 views

What differences are there between an official Ubuntu AMI image and a base install from an ISO?

When creating a new instance on AWS using an official Ubuntu 12.04 server AMI, what differences are there compared to if I was to do a standard server install on a computer of my own? For example, ...
3
votes
2answers
348 views

What is the Windows equivalent of CloudInit for initialization of Amazon EC2 instances?

Is there a way to hook into the first-boot process of a new Windows Amazon EC2 instance to run initialization scripts? We would like to automate the setup of our instances without resorting to ...
3
votes
2answers
144 views

Amazon - Delete privately shared AMI

We had to split an Amazon account into two accounts to better track usage between departments on the company. To transfer a server, we made an AMI of the EC2 server and shared it privately with the ...
3
votes
2answers
2k views

How can I make a CentOS 6 AWS AMI from a loopback?

I am able to make a Centos 5.x AMI by following steps similar to those outlined here: http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/creating-loopback-s3-linux.html and detailed here: ...
3
votes
1answer
714 views

How do I clone a running EBS Backed AMI

Basically, I am trying to start an Amazon micro instance, install Java, Tomcat, MySQL and a few other things, then save a snapshot of the instance so that I can start many like it later on. After ...
3
votes
3answers
109 views

Is there a mailing list or a programmatic way to determine a new Amazon EC2 AMI has been released?

We would like to ensure we are always running the latest version of the Amazon EC2 AMI to keep our OS running the latest security updates. Currently to determine the latest release we are scraping ...
3
votes
1answer
1k views

How to install ceph on EC2 Amazon Linux AMI

I want to test Ceph (a distributed network storage and file system) on some EC2 hosts which is derived from Amazon Linux AMI (amzn-ami-2011.09.2.x86_64-ebs). The kernel version is 3.2 and btrfs is ...
3
votes
1answer
926 views

Why does 'aptitude safe-upgrade' cause Ubuntu's boot to hang on “Waiting for root file system”?

I launched an Ubuntu EBS instance on Amazon EC2 using the Ubuntu's very own latest AMI for 10.04 Lucid, ami-ad36fbc4` After getting the instance up, I ran the command sudo aptitude safe-upgrade ...
3
votes
1answer
386 views

Enable the EPEL repository on AWS Elastic Beanstalk

I need to install some tools from the Extra Packages for Enterprise Linux repository (EPEL) that are not available in the default repositories of the Amazon Linux AMI. /etc/yum.repos.d/epel.repo ...
3
votes
1answer
122 views

Difference between AWS Software Subscription and Launching a Custom AMI?

Amazon AWS seems to provide two methods of launching an instance of Ubuntu 12.04 that confuse me, one of them is the Software Marketplace the other method is by launching an AMI on the Ubuntu ...
2
votes
2answers
4k views

Decreasing Root Disk Size of an “EBS Boot” AMI on EC2

So I have followed Eric's wonderful article here: http://alestic.com/2009/12/ec2-ebs-boot-resize This was the code basically that helped me increase the default size of the AMI: ec2-run-sintances ...