views:

69

answers:

2

Hi, I app-get and success install ejabberd on amazon , mounted esb drive as /dev/sda , but then, i terminated the image and fire any new 'same image', attached my esb drive , all my previous installation was lost. anyway to persist my installation or files i added to the os?

when my instance is running and i right click and see 'bundled to ami' is grey out

+1  A: 

Did you save your modified OS configuration as a new AMI? You'll need ec2-bundle-vol, ec2-upload-bundle (both from the ec2-ami tools) and ec2-register (from the ec2-api tools). The User Guide from the documentation on Amazon's site is particularly informative and useful.

Donal Fellows
is ec2-bundle-vol, ec2-upload-bundle inside elasticfox? i'm using elasticfox
cometta
can you provide steps on how to do it on elasticfox?
cometta
I use elasticfox, and that provides a front-end of `ec2-register` (among other things), but the making and uploading of the bundle has to be done from **inside** a running instance. (You can use `ec2-bundle-image` instead from elsewhere, but I've no experience with that.) As I said before, use that User Guide.
Donal Fellows
+1  A: 

Donal's answer is a good one. An alternative way -- which may or may not be better depending on your needs -- would be to mount an Elastic Block Storage device to your EC2 instance. It basically acts like a mounted storage device (appears in /mnt) and persists independently of any particular instance. In fact, you can mount an EBS volume, write to it on one instance, unmount it, and attach it to a totally different instance.

Whether creating custom AMIs or using EBS is preferable is up to your particular use case.

Adrian Petrescu