ami


AWS Opworks Instances not starting when created from Custom AMI on EC2


According to AWS documentation you can create a Custom AMI two different ways.
http://docs.aws.amazon.com/opsworks/latest/userguide/workinginstances-custom-ami.html
I'm creating my AMI directly from an EC2 instance so the OPworks Agent should NOT be there. Nevertheless instances created with my AMI would NOT get pass the setup stage.
Does anyone knows why this is?
Update:
Here's some more information. If you look at the article above it says to stop the OPworks agent etc.
Well I logged into an instance created with the Amazon linux image and the opworks agent is installed and running. On my instance created from the custom AMI that never happens. The instance simply boots and stays there:
[ec2-user#ip-10-252-81-177 ~]$ pstree
init─┬─abrtd
├─agetty
├─atd
├─auditd───{auditd}
├─automount───4*[{automount}]
├─certmonger
├─crond
├─cupsd
├─dbus-daemon───{dbus-daemon}
├─dhclient
├─hald─┬─hald-runner
│ └─{hald}
├─master─┬─pickup
│ └─qmgr
├─6*[mingetty]
├─rhsmcertd
├─rpc.statd
├─rpcbind
├─rsyslogd───3*[{rsyslogd}]
├─sshd───sshd───sshd───bash───pstree
└─udevd───2*[udevd]
[ec2-user#ip-10-252-81-177 ~]
No opsworks agent is running and no opswork binary exist:
Visit http://aws.amazon.com/opsworks for more information.
[ec2-user#ip-10-252-16-152 ~]$ locate opworks
[ec2-user#ip-10-252-16-152 ~]$ sudo find / -name "*opworks*" -print
[ec2-user#ip-10-252-16-152 ~]$
Thanks!
I follow this doc:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-instance-store.html and I face the same issue. After creating a custom AMI(ubuntu) from EC2, my instance from OpsWorks (which use that custom AMI) stay forever in "booting" Status. The issue was in the process of creating the image with "ec2-bundle-vol" command because:
"By default, the bundle process excludes files that might contain sensitive information. These files include *.sw, *.swo, *.swp, *.pem, *.priv, id_rsa, id_dsa *.gpg, *.jks, */.ssh/authorized_keys, and */.bash_history. To include all of these files, use the --no-filter option."
And when you run the instance form OpsWorks, the instance try to install something which need some gpg signatures files, and other crt, pem files.... The files are exclude from the bundle image... so it fails. The solution is to use the "--no-filter" option or "--include file1,file2,..."
Check the ec2-bundle-vol command here:
http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/CLTRG-ami-bundle-vol.html

Related Links

how to implement admob sdk in swift
AWS Opworks Instances not starting when created from Custom AMI on EC2
why datastax cassandra community ami has opscenter
Using AMI+BiDir with jacorb
Is a Amazon Machine Images (AMI's) static or it's code be modified and rebuilt

Categories

HOME
blogger
openmp
netsuite
oracle11g
c#-4.0
amazon-ecs
graphql
youtube-api-v3
twitter-bootstrap-4
multiple-records
add
applepay
vifm
wheelnav.js
spring-tool-suite
phaser
fallback
systemc
transformation
database-replication
ab-testing
samoa
errorlevel
intentfilter
mustache.php
format-specifiers
crystal-reports-2010
h2db
one-to-many
vlsi
sparse-matrix
intel-pin
maxmind
stormpath
contact-form
http-get
copying
catch-all
caret
accelerate-framework
cloud-code
google-api-nodejs-client
bower-install
io-redirection
stacked
web-mining
elasticsearch-plugin
trim
squib
avro4s
jvm-languages
spring-security-kerberos
long-polling
taffy
python-webbrowser
mu
lowpass-filter
font-size
np-complete
flow-control
titanium-android
django-scheduler
specrun
cubes
infix-notation
savon
mongocsharpdriver
angstrom-linux
ubuntu-10.04
bgp
oauth2client
goose
maven-tomcat-plugin
jms2
lemon
computer-algebra-systems
browser-bugs
cisco-ios
composite
python-green
sorl-thumbnail
modalpopup
jsonpickle
java.util.concurrent
internet-connection
php-5.4
article
oam
.aspxauth
http-unit
pvrtc
heartbeat
django-tagging
file-comparison
floating
audio-capture
memory-size
exchange-server-2003
project-hosting
signal-handling
3gp

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App