Re:Announcing VM Import for Amazon EC2
by eli on Wednesday December 15, 2010 @05:24PM
(#2010078)
Out of curiosity, how do people currently build a custom new EC2 image? Spin up a base instance and then run a script?
[ Parent
| on HN ]
Re:Announcing VM Import for Amazon EC2
by jwinter on Wednesday December 15, 2010 @05:56PM
(#2010192)
Knife and Chef: http://www.opscode.com/chef
We start with a base image and then use puppet to manage anything that needs to be installed/setup.
Re:Announcing VM Import for Amazon EC2
by cowmixtoo on Thursday December 16, 2010 @12:40AM
(#2011223)
I don't understand why more people don't use bcfg2. Its awesome for this purpose (and I think better than puppet or chef.)
Then educate people! Don't just say it's better, say why!
I did a midrange deployment with bcfg2 (~250 machines), and what I found is that it was slow to use.
Firing off a bcfg2 push would take almost 20 minutes, which was pretty unusable; The big problem was that it didn't handle large numbers of connections simultaneously well, so I ended up having to stagger them.
CFengine was able to do the same push in < 30 seconds. Win.
I'll be looking at Chef again in the near future. It's got a LOT of nice features; Hopefully we can make it scale out quickly.
Re:Announcing VM Import for Amazon EC2
by singlow on Wednesday December 15, 2010 @05:40PM
(#2010132)
I use a custom AMI. I started with a base image a long time ago. Since then I have been upgrading and tweaking. There are several tutorials on creating the image. API tools are available for the whole process if you are on an instance-store image. It creates an image of the instance filesystem in /mnt and then breaks it into chunks to upload to s3 with a manifest and registers the manifest as a new private ami.
If you're using Ubuntu, they have a tool for creating new EC2 images called python-vm-builder-ec2.
There's in fact a whole command line suite, which you can script anything through.
yes, that is what i've done, or rather just log in, set things up, and then save a snapshot, repeat as needed. not sure this will speed things up in general as far as iterations, but may save the $0.10 you may spend setting up a workable vm.