ec2-osol-bundle /

Filename Size Date modified Message
31 B
4.9 KB
1.3 KB
325 B
1.5 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,

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.