Questions tagged [amazon-ami]
Amazon Machine Images (AMIs) are disk images of an operating system used to launch AWS EC2 instances.
304
questions
128
votes
4
answers
59k
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 ...
86
votes
7
answers
99k
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 ...
51
votes
4
answers
125k
views
How to install Docker on AWS EC2 instance with AMI (CE/EE Update)
What is the current way of installing Docker on an AWS EC2 instance running the AMI?
There has been an announcement of Docker Enterprise Edition and now I want to know if anything has changed.
Until ...
44
votes
15
answers
167k
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 https://...
39
votes
2
answers
55k
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?
24
votes
1
answer
30k
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 ...
21
votes
1
answer
23k
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 ...
20
votes
2
answers
6k
views
Who's behind community AMIs on Amazon EC2?
I've been using AWS for years, but have never ventured outside the Quick Start and AWS Marketplace sections when launching an EC2 instance.
The AMIs from the AWS Marketplace look trustable, they have ...
20
votes
3
answers
38k
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 ...
19
votes
2
answers
14k
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 ...
16
votes
4
answers
13k
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 ...
14
votes
2
answers
29k
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 ...
14
votes
1
answer
8k
views
AWS AMI Add "create volume" permissions to the following associated snapshots when creating permissions
What does the significance of the Add "create volume" permissions to the following associated snapshots when creating permissions indicate when we share an AMI to a different account ?
Can this be ...
12
votes
2
answers
9k
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 ...
12
votes
1
answer
18k
views
Filtering AMI by name using aws-cli
Is there a way to filter public AMIs that contain a particular string (say abcd)?
The command:
aws ec2 describe-images --filters Name=name,Values=abcd
returns only those AMIs that exactly match ...
11
votes
3
answers
6k
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 ...
9
votes
1
answer
12k
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 ...
8
votes
2
answers
9k
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 ...
8
votes
2
answers
5k
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 ...
8
votes
1
answer
6k
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 ...
7
votes
4
answers
2k
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 one-...
7
votes
2
answers
4k
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 ...
7
votes
1
answer
6k
views
How does AWS configure the 169.254.169.254 address on an instance?
AWS uses 169.254.169.254 as a link local address, which you can use to pull meta data about the instance, ie:
curl http://169.254.169.254/latest/meta-data/
How/where is this IP configured on the ...
7
votes
1
answer
5k
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 ...
7
votes
3
answers
25k
views
Install Go 1.8 with yum
I'm new to Linux / Yum and just set up an AWS AMI instance. I'm trying to install Go 1.8. When I ran sudo yum install golang it installed version 1.6.3. How can I make it install version 1.8?
[ec2-...
7
votes
1
answer
14k
views
Invalid block device mapping: Invalid device name - Creating an AMI from an Instance Store-Backed
I'm trying to create an AMI from an instance store-back instance but I'm getting "Invalid device name" error at the time when I try to register the AMI.
I'm following this document:
http://docs.aws....
6
votes
1
answer
11k
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 ...
6
votes
2
answers
19k
views
RUN yum in Docker file not working, but yum it's working inside the container
I'm trying to build a container from amazonlinux (fedora based).
If I build the image and I enter into the container the yum command works normally.
However if I put the yum command inside the ...
6
votes
2
answers
7k
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?
6
votes
1
answer
3k
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 ...
6
votes
1
answer
4k
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
4
answers
8k
views
Where are AMIs stored?
It seems like an very simple question, but yet I could not find the answer. When I make an instance on Amazon AWS and then make some changes and create an AMI where is that AMI stored? S3? Will making ...
6
votes
1
answer
535
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 you'...
5
votes
2
answers
9k
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 ...
5
votes
3
answers
2k
views
inconsistent `apt-get update` behaviour on official Ubuntu AWS AMI
I get various and inconsistent errors with apt on the official Ubuntu images (ami-83e769fb). I'm using Packer to build my AMI and it fails about 40% of the time. Rerunning the script succeeds.
My ...
5
votes
1
answer
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
1
answer
1k
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 ...
5
votes
1
answer
5k
views
Why is "Bundle Instance" disabled for EC2 instance running Ubuntu 12.04?
I have an instance store (not EBS) based EC2 instance, launched from an official Ubuntu 12.04 AMI (specifically ami-25e8d351: eu-west-1, 32-bit, instance root store).
It is up and running, and I've ...
5
votes
2
answers
922
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
1
answer
3k
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: ...
5
votes
2
answers
987
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 ...
4
votes
1
answer
5k
views
Where is Amazon Linux AMI Test Page EC2?
I have set up my websites as directories directly under /var/www/html/ and they are working just fine (the websites are mapped to virtual hosts). So, this is mainly out of curiosity for the moment.
...
4
votes
1
answer
3k
views
Debian 8 AMI only using 8GB partition
Every Debian 8 Jessie AMI that I launch in Amazon Web Services is only putting the root OS onto an 8GB partition regardless of what I set the size to at launch time. I know there is some documentation ...
4
votes
2
answers
2k
views
AWS: How to update AMI without having to recreate the launch configuration?
We built up a web server, created an AMI from it, then created a launch configuration which launches instances from this AMI, and our ASG uses this launch configuration.
We regularly install Windows ...
4
votes
2
answers
9k
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 ...
4
votes
5
answers
6k
views
Create Webmin user for an EC2 Instance
I've setup an Amazon EC2 Instance, using the Ubuntu 12.04 AMI (ubuntu/images/ebs/ubuntu-precise-12.04-amd64-server-20120424 (ami-a29943cb)), and I'd like to get Webmin working (so I can setup a DNS).
...
4
votes
1
answer
279
views
Does Canonical Periodically Update a Given AMI?
I've looked and looked, but I cannot find the answer to this question.
Given a specific AMI ID (for example, an Ubuntu 14.04 LTS AMI, published by Canonical itself), will Canonical periodically ...
4
votes
1
answer
3k
views
Firewall missing from AWS MarketPlace Centos7 image
I am using this image from AWS MarketPlace.
The Problem is that centos 7 is supposed to come with firewalld instead of iptables.
But firewalld is not installed on it but iptables is installed. Why is ...
4
votes
2
answers
11k
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 ...
4
votes
2
answers
2k
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 ...