-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleaned up dcarley's EBS work, adding documentation #11
base: master
Are you sure you want to change the base?
Conversation
It's no longer as simple as determining the instance architecture. Especially as this is the arch of the host instance rather than the guest. Most AMIs handle this with an init process on boot that checks the meta-data service for the instance's block mappings.
Defaults to EBS. Falls back to S3. The only difference is the root device - (hd0,0) for EBS and (hd0) for S3. Reversed order of cfg and imgtemplate vars to match the real file.
Conflicts: ami_creator/ami_creator.py
No need/ability to see the "graphical" menu anywhere.
There's something weird going on with the root filesystem label. ExtDiskMount prefixes fslabel with "_". It's not clear why, but in trying to solve some problems booting the AMI built with this image I was frustrated by the inconsistency and wanted to make it a little more transparent (although I didn't make it any less dumb).
Took some queues from Bashton's AMIs.
I am game to do something along these lines and can take a closer look in the next couple of days. I've got some related stuff that I use @ stackdriver to do similar so likely worth seeing where the overlaps are and aren't. (PS glad to see that more people find this useful!) |
Ah, I thought your name sounded familiar. We met at the BosOps meetup in your office a few weeks ago. :-) Really, there's very little here except for the changes to the grub config. I finished up a working script that will take a KS config, volume ID and block device path and registers an AMI. I still find kickstart configs to be something of a black art with a disappointingly long cycle time for iterating on changes. But this, coupled with Packer, should let me build AMIs and Vagrant boxes that are identical. I'll add the script today. You probably don't want to merge this PR directly. |
create-ami.sh is the beaut.
…ter-image awscli call at the end of the script
…s set, but for now lets just add it and get it working)
…all grub, fix device.map, ..., profit
Make this script more re-run-able
Per the block-device-mappings.html doc.
* Replace sfdisk with parted * also generate some json
This allows for building images for distributions regardless of the host you're building them on.
Plus other cleanup
Saw a transient error…
But only a little, really…
Improved wrapper scripts
Still rough, but I really think the EBS stuff should be part of the main package. :-)