#!/bin/sh

# Find image name:
# euca-describe-images -a | grep -i lenny | grep alestic | grep i386 | grep base | grep 2009
# IMAGE	ami-dcf615b5	alestic/debian-5.0-lenny-base-20091011.manifest.xml	063491364108	available	public 	i386	machine
# Types 32bit:
# m1.small, c1.medium

euca-run-instances \
	--instance-count 1 \
	--group karmic \
	-k karmic \
	--availability-zone us-east-1d \
	--debug \
	--instance-type c1.medium \
	--kernel aki-6eaa4907 \
	ami-dcf615b5 1>>~/INSTANCES

# The default kernel is lame (fc8), but using ubuntu image doesn't have loop.ko to make image via loopback...
# Default kernel is fc8
#	--kernel aki-6eaa4907 \
# This is ubuntu kernel
#	--kernel aki-5f15f636 \

exit 0
--keypair doesnt, work, need to do -k
euca-run-instances [-n, --instance-count count] [-g, --group group_name] [-k, --keypair keyname] 
[--addressing addressing] [-t, --instance-type instance_type] [-z, --availability-zone zone] 
[--kernel kernel_id] [--ramdisk ramdisk_id] [-h, --help] [--version] [--debug] image_id 
image_id			identifier for the image to run. 
-d, --user-data			User data for instances read from the command line.
-f, --user-data-file		User data for instances as a filename.
--addressing			Addressing mode (e.g., private).
-t, --instance-type		VM Image type to run the instance(s) as (default: m1.small).
--kernel			Id of the kernel to be used to launch instance(s).
--ramdisk			Id of the ramdisk to be used to launch instance(s).
-a, --access-key		user's Access Key ID.
-s, --secret-key		user's Secret Key.
-U, --url			URL of the Cloud to connect to.

