Questions tagged [amazon-ami]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
5k views

AWS Device names; /dev/xvda

I kind of know that sda comes from SCSI device from early Unix/Linux days. However, I had some trouble when I was playing around with detaching/attaching Volumes to my AWS EC2 Instances. What I ...
0 votes
0 answers
76 views

Why is EC2 instance store volume not mounted?

I created an AWS EC2 instance of type g5.2xlage with Deep Learning Base GPU AMI (Ubuntu 20.04). This instance type has an instance store volume. After first start, the ephemeral instance store was ...
0 votes
0 answers
46 views

Custom Linux AMI: How does AWS know where to install account SSH .PEM files when an AMI is provisioned?

We are building a custom AMI from a template EC2 EBS instance snapshot (Oracle Linux 8). This page shows there are many different user names depending on the AMI you choose: https://docs.aws.amazon....
0 votes
2 answers
70 views

Spot instance windows auto login in User Data using Boto3

I want to launch a Windows spot instance on AWS with a specific AMI and launch the instance and run PowerShell command. The problem i am facing issue is that, when the instance is launched, it shows &...
-1 votes
1 answer
170 views

Immutable Infrastructure

I'm working on a cloud based solution architecture at the moment and want to take the approach of using an immutable server infrastructure (creating and then deploying new AMIs when updating software, ...
3 votes
2 answers
4k views

Available Instance types for marketplace ami's

I based my autoscaling AMI's on the Turnkey Linux nginx AMI from the marketplace. I am now unable to select any of the newer generation instance types; for instance, my autoscaling uses m3.large type ...
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 ...
1 vote
1 answer
94 views

What is the correct way to set credentials for a directory when using EC2Launch sysprep?

I created a startup script like this: $FolderPath = "C:\Path\To\Your\Directory" $UserAccount = "Domain\User" # Replace with the appropriate user or group $Acl = Get-Acl $FolderPath ...
0 votes
1 answer
56 views

Provisioning AMI with certbot certificates that allow the AMI to be reused at a different address

I would like to be able to replicate a site built in an existing, working EC2 Linux 2 AMI image in a manner that does not require re-provisioning of https certificates when spinning up a saved AMI on ...
44 votes
15 answers
168k 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://...
1 vote
0 answers
60 views

Methods for AWS AMI runtime configuration

We have a deployment system that borrows from the immutable servers pattern. That is, we bake AMIs with our application on in a way than when they are booted, the application runs and can be added to ...
0 votes
1 answer
620 views

Vagrant : how to create a box from aws ami?

I see vagrant as a great tool for testing and I am surprised the aws plugin (here https://github.com/mitchellh/vagrant-aws but which seems deprecated) is here to instanciate ec2 and not copy same ...
0 votes
1 answer
2k views

Chroot a user in Amazon EC2 instance

I've got an Amazon Linux AMI machine running 2016.09 version. I've recently created a user and I'm able to connect using its credentials (private key). This user is intended to be used by a third ...
0 votes
1 answer
459 views

aws ec2 instance AMI backup with reboot

Can we start using the ec2 instance, if ec2 instance AMI backup with reboot option is used and AMI backup is still in process, But the ec2 instance came up after reboot?
1 vote
1 answer
3k views

LocalAccountTokenFilterPolicy being reset to 0 at boot

I am trying to use the Windows 2016 STIG AMI from Amazon with Packer. I am able to get WinRM to successfully work by setting the LocalAccountTokenFilterPolicy setting to 1 (disabled), but as soon as I ...
0 votes
1 answer
3k views

Clone/Duplicate EC2 Windows Instance

I have a Windows Server 2008 EC2 instance hosting SQL Server 2008 named DB-01. I'm looking to clone this DB-01 instance so my team can work on the cloned DB-01 (DB-01-CLN) and existing DB-01 instances ...
1 vote
3 answers
1k views

Reducing Amazon EBS Root Volume Size on Amazon Linux 1

I have been trying to reduce the size of my Amazon Linux 1 AMI root volume using the procedure in this documentation (with some modifications made after failing to do so) and continuously run into ...
0 votes
0 answers
148 views

Launch new EC2 instance using shared private AWS AMI

I have a website running on t2.micro ec2 server (A). While it is running I created its AMI and shared it with another AWS account B. I went to the B AWS account and tried to launch an EC2 instance ...
0 votes
1 answer
2k views

Created a new Instance from Ami but cannot connect Via ssh client

I had problems accessing my instance via ssh client and web browser, after i Re-booted it, and then i created a new instance with the Ami of the previous instance but still i could not access my ...
1 vote
1 answer
1k views

Unable to setup and access tomcat on EC2 with AMI

I attempted to start tomcat7 on an EC2 instance running AMI and could not get the web service accessed from a browser using the public IP. Created an EC2 instance with default AMI as the image ...
0 votes
0 answers
508 views

Create Windows 10 AMI for EC2 AWS

I have case to create AMI based on windows 10 OS, the AMI file will be used on AWS ec2 to run some our 3rd party programs for client. I have tried to follow several tutorial and guidelines from google ...
0 votes
1 answer
822 views

Is it possible to change the architecture of an AMI?

We have this AMI with a AMD64 architecture, and we need to run it on a m6g.medium, the problem is this machine only runs aarch architecture. Is there a way to change the AMI architecture? What others ...
1 vote
1 answer
3k views

How to update the AMI of the instance without loosing data? and the instance has two EBS volumes which EBS volume should i take snapshot?

How to update the AMI of the instance without loosing data? and the instance has two EBS volumes (root and secondary) which EBS volume should i take snapshot? to replicate the original instance.
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 ...
4 votes
1 answer
3k 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 ...
1 vote
0 answers
259 views

Launching Instance from AMI Creates two disk devices when only one is expected

First some background. I am migrating an Ubuntu Instance-store backed ec2 instance to EBS using the steps outlined in Create an AMI from an instance store-backed instance. Everything works correctly ...
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 ...
2 votes
4 answers
8k views

Why can't I SSH into a new EC2 instance I created from an AMI I generated?

I followed the procedures for Creating an Amazon EBS-Backed Linux AMI with the exception that I did not shut down the original instance, just let AWS reboot it. When I launch & start a new ...
1 vote
1 answer
1k views

docker.io package reports missing only on EC2

I'm trying to install Docker on a Debian Jessie EC2 image. Specifically, I'm using this AMI: https://wiki.debian.org/Cloud/AmazonEC2Image/Jessie. On a locally running Debian machine sudo apt-get ...
0 votes
1 answer
363 views

Sophos Endpoint Defence + Gold Image = Error 'Windows could not finish configuring the system'

When I install Sophos Endpoint Defence on an Amazon provided AMI; and then create a custom AMI from it; why do EC2 instances display an error dialog on boot 'Windows could not finish configuring the ...
1 vote
2 answers
585 views

Are the snapshots referenced by an AMI created from an EC2 instance independent of other snapshots that I've created on the EC2 instances EBS volumes?

We've recently migrated a system off of a set of EC2 instances, and now wish to retire those EC2 instances, first by creating an AMI of and then terminating each EC2 instance. Over time, we've created ...
1 vote
1 answer
442 views

Possible to have AWS take a snapshot of a spot instance just prior to it's unplanned termination?

I've setup a lifecycle manager to reboot a spot instance and create an AMI of the instance once every 24 hours. It would be ideal if it could do the same just prior to an unplanned termination event. ...
0 votes
1 answer
117 views

If I image a virtual machine with SQL server installed will the database work on a new instance?

On AWS I've always imaged machines that contained SQL Server installations and running databases. When I spin up new instances from the images, SQL Server and all database always returned without ...
7 votes
3 answers
26k 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-...
0 votes
0 answers
82 views

Accidentally executed: sudo rm -r /* [duplicate]

This morning while I was doing a bit of work on my production server, when I accidentally executed the following command: sudo rm -r /* Sadly, the server no longer accept my public key or password ...
1 vote
0 answers
285 views

Create custom AMI for Aarch64 with latest Debian and custom Kernel

I am trying to create a custom Debian based AMI with my own custom kernel for AWS EC2 instances, specifically I'm trying to run it on t4g.micro/medium instances. I debootstrap an ARM64 Debian and copy ...
1 vote
1 answer
186 views

OpenVPN AMI's built with packer incorrectly use the old public IP from the build in generated config files

When I build AMI's using Hashicorp Packer, based off the AWS OpenVPN AMI, the public ip address from the first instance performing the build will persist in later usage of the AMI when it should ...
2 votes
1 answer
2k views

How to install OpenGL on Amazon Linux 2 AMI t2.small type?

I need to install Grass GIS on my Amazon Linux 2 AMI instance which is of type t2.small During the configuration of Grass GIS it stopped with checking for GL/gl.h... no configure: error: *** Unable ...
1 vote
2 answers
3k views

Instance does not have a volume attached at root

I recently started trying out EC2 servers and came across an issue when trying to get an instance back up from a snapshot (which is another odd issue I had, because you can't change root snapshots in ...
0 votes
0 answers
230 views

How to create my own EC2 AMI with a custom distro and a custom kernel?

I would like to create my own custom AMI with its own custom kernel running on a HVM instance. At first I thought this is a solved problem as I've seen several solution out there, (packer, aminate), ...
-1 votes
1 answer
355 views

EC2 AMI became Ubuntu and the yum command became unavailable on AWS

Last week I've created an AWS Instance using the Ubuntu Server 20.x AMI. It had yum built-in. Today I've deleted that instance and created a new Instance using the same AMI. After I've launched the ...
0 votes
2 answers
4k views

Where is this hidden computer name coming from?

Environment: I am baking Amazon Machine Images with SQL Reporting Services (SSRS) installed. The Windows Server 2016 machine is joined to the domain and its computer name is changed AFTER install. ...
3 votes
1 answer
3k views

Attempting to change shell to ZSH on Amazon Linux: Asking for ec2-user's password

What do I enter? I use the provided private-key to authenticate when SSH-ing to the server, so I don't think I actually have a password for the user... Also tried this:
0 votes
1 answer
1k views

Apache HTTPD not hosting on port 443

I have an Apache 2 web server using TLS certificates from Let's Encrypt (installed using CertBot). The OS is Amazon Linux 2. I cannot access the website using port 443. It only works on port 80 ...
2 votes
1 answer
2k views

Convert VMDK images into AMI images

I have setup and environment for building the virtual machines in vmdk format and then use ec2 api tools to convert, bundle and upload it to the AWS Cloud. However, I am facing certain challenges in ...
1 vote
3 answers
1k views

AWS ubuntu image has no swap with kernel 5.x

Just built a new AMI recently, based on the latest 18.04. Did also an apt upgrade when provisioning it, in order to have the latest packages as well. Problem is that this new AMI has no swapfile in it,...
1 vote
3 answers
978 views

Best way to create temporary windows ec2 instances with pre installed apps?

I use windows ec2 instances and I need 2-3 tools which I need to install. I ocassionally need 20-40gb hard disk for processing and I always know what HDD size I want before lauching the instance and I ...
0 votes
2 answers
129 views

Production level Auto-scaling in AWS

I have completely understood the concept of Auto-Scaling in AWS. My only question is, what AMI will the launch configuration use while in production environment? According to my understanding Image ...
2 votes
1 answer
434 views

For AWS EC2, AMI Backup. when doing backup does the server itself stop or suspend?

I need to do an AMI backup from one of our EC2 server, my concern is, if during AMI backup. do the server stop or suspend? or the server does the AMI backup without any interruption at all?
1 vote
1 answer
2k views

Unable to read S3 file from interactive pig job flow

I'm unable to read a simple test file on S3 from an interactive pig job flow (hadoop, elastic map reduce), and I'm not sure why. I have two S3 buckets. Let's call them unmounted_bucket, and ...

1
2 3 4 5
7