A simple tool built on python-imgcreate to create CentOS AMIs for EC2 using Kickstart configs. Supports ebs- and instance-store-backed instances.
-
clone this repo on an EC2 instance
-
attach a 10G EBS volume, attach it so it appears at
/dev/xvdj
-
create
/media/ephemeral0/build
and/media/ephemeral0/cache
directories -
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
-
transfer the image to the attached EBS volume:
sudo prepare-volume.sh
-
create and launch the instance:
./create-image.sh
- Announcing ami-creator
- CentOS AMIs from Kickstart
- How to build your own S3- and EBS-backed instances
- Using Your Own Linux Kernels - Amazon Elastic Compute Cloud
- How to make your own CentOS 6 AMIs
- CentOS 5 kickstart options
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