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
0 answers
51 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 ...
dur's user avatar
  • 101
0 votes
0 answers
42 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....
KJ7LNW's user avatar
  • 161
0 votes
2 answers
61 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 &...
dextoruz's user avatar
1 vote
1 answer
90 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 ...
user875234's user avatar
0 votes
1 answer
54 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 ...
Ron Abramson's user avatar
1 vote
0 answers
57 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 ...
Sym's user avatar
  • 111
0 votes
1 answer
589 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 ...
user avatar
0 votes
1 answer
442 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?
Sandeep Kumar's user avatar
0 votes
0 answers
143 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 ...
paul's user avatar
  • 103
0 votes
0 answers
494 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 ...
Ahmad_Green's user avatar
0 votes
1 answer
777 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 ...
0diseuz's user avatar
1 vote
3 answers
994 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 ...
Rolo787's user avatar
  • 111
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.
elliot's user avatar
  • 11
1 vote
0 answers
250 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 ...
pas92's user avatar
  • 11
0 votes
1 answer
356 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 ...
Ryan Williams's user avatar
1 vote
2 answers
575 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 ...
Jonathan Bailey's user avatar
1 vote
1 answer
431 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. ...
johnnyApplePRNG's user avatar
0 votes
1 answer
115 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 ...
ANDYTEAS's user avatar
0 votes
0 answers
81 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 ...
Maqsud's user avatar
  • 111
1 vote
0 answers
281 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 ...
user620284's user avatar
1 vote
1 answer
185 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 ...
openCivilisation's user avatar
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 ...
Terry's user avatar
  • 123
0 votes
0 answers
222 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), ...
hollowKnightAWS's user avatar
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 ...
Tim's user avatar
  • 13
-1 votes
1 answer
348 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 ...
Terry's user avatar
  • 123
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 ...
ha9u63a7's user avatar
  • 101
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 ...
kclinden's user avatar
0 votes
1 answer
964 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 ...
Ross Duncan's user avatar
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,...
dimisjim's user avatar
  • 245
1 vote
3 answers
937 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 ...
LotusORB's user avatar
0 votes
1 answer
2k 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 ...
jrd1989's user avatar
  • 688
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 ...
Subramanian Lakshmanan's user avatar
2 votes
1 answer
411 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?
Ronald Repolona's user avatar
0 votes
0 answers
492 views

I need a basic Windows Server 2008 32-bit AMI on Amazon AWS

I need a basic, clean Windows Server 2008 32-bit (x86) AMI on Amazon AWS. There are several on the Community AMI list but I am not sure which is a good one to get. Have you tried any of them? Are ...
scottkeen's user avatar
0 votes
1 answer
404 views

Lighttpd/Nginx Non-Functional

I'm using the Blackboard AMI from AWS and can't get the lighttpd to function on it. I continually get 502s. I've run service lighttpd status which gave me back: ● lighttpd.service - Lighttpd Daemon ...
user3783243's user avatar
3 votes
2 answers
4k views

Amazon Linux AMI or Ubuntu/others in AWS ecosystem? [closed]

I’m going to install a new server and want to understand if there is any advantage in installing the Amazon Linux AMI in comparation to Ubuntu or another distribution. This server will be consuming ...
Alejandro's user avatar
  • 141
1 vote
1 answer
3k views

How to identify CPU(s) on Linux EC2 instance?

I'm running a Linux c5d.9xlarge instance and wondering what CPU it's using. Amazon's Instance Types webpage states: C5 and C5d 12xlarge, 24xlarge, and metal instances have the following specs: ...
apptree's user avatar
  • 355
0 votes
1 answer
575 views

Can I delete the snapshots and AMI in zone zone after successfully copying the AMI to another zone?

I have created an AMI in one Asian zone, ap-southeast-1. The related snapshot is saved and of course cannot be deleted. I then copied this AMI to eu-west-1. Can I somehow get rid of the ap snapshots ...
Vincent Teyssier's user avatar
0 votes
1 answer
308 views

Creating an AMI is not copying sshd file settings

I have user and password auth configured for my instances but every one I launch I have to do this at startup: #!/bin/bash sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/...
rumplesmyboy's user avatar
1 vote
1 answer
142 views

Not able to launch instance from the ami image?

There is an ec2-instance which I have to taken an AMI backup, After the backup is complete we are trying to launch the server using the AMI backup, The machine is getting launched but the status check ...
Ganesh Agasthya's user avatar
0 votes
1 answer
71 views

AWS AMIs always need SSHD Running? (VirtualBox upload / conversion)

I am an AWS EC2 NOOB, and not a Linux expert. I have finally succeeded in installing an Ubuntu Virtual Machine from VirtualBox onto AWS and have gotten it to launch and ssh connect. However, I had ...
mjk's user avatar
  • 21
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 ...
BenMorel's user avatar
  • 4,607
0 votes
0 answers
190 views

mongo: /data/db not found on AWS ec2 t2.micro after launching an AMI image of the instance

S.O.S!! I had my t2.micro with Bitnami Parse image running for a good while. everything was fun and games until I needed to upgrade to t2.medium. In order to do so I cloned my server to an AMI ...
Hudi Ilfeld's user avatar
3 votes
1 answer
1k views

redis-server /etc/redis.conf just hangs

Just installed redis on AWS AMI Linux (RHEL 2018.03) with https://stackoverflow.com/a/34203915/1471267. Running sudo redis-server without a config file argument works fine and the server starts as ...
Mrweiner's user avatar
  • 133
0 votes
0 answers
153 views

AWS unreachable after creating AMIs reachable again

So one of our AWS instances (running ubuntu 18.04) was unreachable, I wanted to restart it but just in case first create a AMI (image) so booting up a new one would be fast and easy.. But while AWS ...
goosmaster's user avatar
2 votes
1 answer
3k views

How to properly deploy new code to AWS EC2 AutoScaling Group

Scenario: Currently, we have a single production server running on an EC2 instance. Since we are getting a lot of traffic, we would like to use the Autoscaling feature, but we are kind of new to this. ...
Pratish Shrestha's user avatar
0 votes
1 answer
323 views

Activating Windows License on Microsoft Windows Server 2019 Base AMI EC2 Instance

I launched a new EC2 instance using the Microsoft Windows Server 2019 Base AMI. However whenever I go into settings it complains that "You need to activate Windows before you can personalize your PC". ...
Saqib Ali's user avatar
  • 438
1 vote
0 answers
696 views

Getting error asking for unknow parameter while importing ova image to aws following official ducumentation

Getting error asking for unknow parameter while importing ova image to aws following official ducumentation. I need deploy my current basic Debian box fully baked to AWS with all configurations and ...
Mark's user avatar
  • 11
0 votes
1 answer
1k views

AWS EC2 Amazon Linux instance can't connect to RDS instance. but ubuntu instance can

I have a newly created Linux Amazon Linux EC2 instance and an Ubuntu instance. And both instances try to connect to the same RDS. The settings of both instances are exactly the same. Security groups ...
blurfx's user avatar
  • 103
-1 votes
1 answer
155 views

How can I provide software for userdata?

I've got a userdata file that uses the aws and jq commands, but since these aren't ubuntu 18.04 AMI. How can I make software available for userdata? I tried making a new AMI with those installed. It ...
Christopher Waugh's user avatar

1
2 3 4 5
7