Skip to content

Instantly share code, notes, and snippets.

@fjaeckel
Created April 12, 2012 14:04
Show Gist options
  • Save fjaeckel/06976cb58da1571c758c to your computer and use it in GitHub Desktop.
Save fjaeckel/06976cb58da1571c758c to your computer and use it in GitHub Desktop.
Upload a test Ubuntu image:
./upload_ubuntu.sh -a admin -p openstack -t demo -C 10.20.3.45
Setting up user environment
Copy over the adminrc file created in this directory to your client
Source in the adminrc file: . adminrc
Add a keypair to your environment so you can access the guests using keys:
euca-add-keypair admin > admin.pem
chmod 0600 admin.pem
Set the security group defaults (iptables):
euca-authorize default -P tcp -p 22 -s 0.0.0.0/0
euca-authorize default -P tcp -p 80 -s 0.0.0.0/0
euca-authorize default -P tcp -p 8080 -s 0.0.0.0/0
euca-authorize default -P icmp -t -1:-1
*****************************************************
To run, check, connect and terminate an instance
euca-run-instances $emi -k admin -t m1.tiny
euca-describe-instances
ssh -i admin.pem root@ipaddress
euca-terminate-instances instanceid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment