TurnKey Linux Virtual Appliance Library

How do I turn a customized appliance on AWS EC2 into an AMI so I can clone it?

jack_19920's picture

Here is the scenario: I create a tomcat-apache appliance using the hub. I then use the configuration and management tools to create a customized version of that appliance; adding virtual hosts, deploying WARs and the like. So far, so good.

Now, I want to 'save' that instance as an AMI so I can create copies of it for scaling purposes. (Otherwise every time I want to set up a new server for scaling I have to go through all the configuration steps.) How do I do that? I tried to create an AMI from the AWS management console, but that option is grayed out. I've down a lot of googling, but no joy. 

This should be a FAQ, methinks.

Yes, I'm a noob with AWS...

Mike Gifford's picture

Launch a new server like this one

I had thought that I'd be able to do the customizations, then just click on the "Launch a new server like this one" link from the hub to clone a server. 

Unfortunately this just seems to be a shortcut to spawn an instance of the old base application.

There's a related discussion here.

Jeremy Davis's picture

It would be quite cool to do that

But using TKLBAM you should be able to create the same result. Ie backup your server, create a new server, restore your backup to the new server.

Mike Gifford's picture

Gotta Remember to allow root longins

That sounded like it would work.. I went to Webmin's backup & downloaded the "Download Escrow Key" - then re-uploaded it to Drupal 6 application that I'd spun up. 

Landis Arnold's picture

You could also work with TKLPatch to create a New Boot Image.

I can't remember if you need to TKLPatch before or after your changes.

If you know the sequence of changes though it is pretty easy to make a Customized Ap that you can boot from CD.

TKLPatch is outlined in Docs above.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)