Skip to content

jhaohai/ami-creator

 
 

Repository files navigation

ami-creator

A simple tool built on python-imgcreate to create CentOS AMIs for EC2 using Kickstart configs. Supports ebs- and instance-store-backed instances.

howto

  1. clone this repo on an EC2 instance

  2. attach a 10G EBS volume, attach it so it appears at /dev/xvdj

  3. create /media/ephemeral0/build and /media/ephemeral0/cache directories

  4. create the base image from a kickstart config:

    sudo ./ami_creator/ami_creator.py -c ks-centos6.cfg -n my-image-name -t /media/ephemeral0/build --cache=/media/ephemeral0/cache

  5. transfer the image to the attached EBS volume:

    sudo prepare-volume.sh

  6. create and launch the instance:

    ./create-image.sh

add'l resources

original README

ami-creator

A simple tool based on python-imgcreate to create Fedora/Red Hat style 
images that can be used as an AMI in EC2.

Takes a kickstart config like the rest of livecd-creator, etc and spits out a
disk image file that's suitable to upload as an s3 ami.  To do the upload right
now, you'll want to run something like
    ec2-bundle-image
    ec2-upload-bundle
    ec2-register
after having created your base image file.  

Tested with the following as guests:
  * CentOS 5.5
  * Fedora 14
See the configs/ directory for example configs that work for each of these.


Jeremy Katz <[email protected]>
2010 December 10

About

Basic tool to create AMIs for EC2 based off of a kickstart config

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 50.3%
  • Python 49.7%