ec2-osol-bundle /

Filename Size Date modified Message
31 B
5.0 KB
1.3 KB
325 B
1.6 KB
434 B
453 B
86 B
162 B
These scripts automatically (re)bundle an OpenSolaris AMI.

All you need to do is:
  - Upload your private key to /mnt/keys/pk.pem
  - Upload your cert to /mnt/keys/cert.pem
  - add your personal details to
To turn your current system into a private AMI you can re-launch run:
  ./ will copy the default rpool, bundle it into an AMI, then
upload the AMI to the ec2 bucket you specified in

OpenSolaris AMIs are made by using a loopback device at /mnt/osol.img.
The loopback device is added to be a mirror of rpool.  It takes about 20
minutes for the image to resilver (synchronize with) rpool.

Your image file will be the size of your rpool zpool but the image is
(hopefully) mostly unallocated space.  The image tools will compress the image
for you.

NB: The 2008.11 AMIs include private ssh host keys by default and they 
never get regenerated.
If you would like each of your images to have unique host keys do the following
two steps *before* bundling your AMI:
  - rm /etc/ssh/ssh_host*
  - edit /lib/svc/method/sshd
    - On line 53 remove "[ -f /.livecd ] && "

All steps and most of the scripts were adapted from:

Good luck,