diff --git a/ext/test.sh b/ext/glance.sh old mode 100644 new mode 100755 similarity index 51% rename from ext/test.sh rename to ext/glance.sh index eb01323..b315a81 --- a/ext/test.sh +++ b/ext/glance.sh @@ -1,24 +1,7 @@ +#!/bin/bash # Extract creds -cd ~ -sudo nova-manage project zipfile nova novaadmin -unzip nova.zip -source novarc -euca-add-keypair openstack > ~/cert.pem - # Add images to glance and index glance add name=ramdisk disk_format=ari container_format=ari is_public=True < /vagrant/images/lucid_ami/initrd.img-2.6.32-23-server glance add name=kernel disk_format=aki container_format=aki is_public=True < /vagrant/images/lucid_ami/vmlinuz-2.6.32-23-server glance add name=lucid_ami disk_format=ami container_format=ami is_public=True ramdisk_id=1 kernel_id=2 < /vagrant/images/lucid_ami/ubuntu-lucid.img glance index - -# List -nova flavor-list -nova image-list - -# Run instance -euca-run-instances ami-00000003 -k openstack -t m1.tiny -euca-describe-instances - -echo 'check the status of your VM with euca-describe-instances' -echo 'when it is in the running state, verify that you can login' -echo 'using ssh -i ~/cert.pem root@ip.address' diff --git a/ext/nova.sh b/ext/nova.sh new file mode 100755 index 0000000..c69aecc --- /dev/null +++ b/ext/nova.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# Extract creds +cd ~ +sudo nova-manage project zipfile nova novaadmin +unzip nova.zip +source novarc +euca-add-keypair openstack > ~/cert.pem +# List +nova flavor-list +nova image-list + +# Run instance +euca-run-instances ami-00000003 -k openstack -t m1.tiny +euca-describe-instances + +echo 'log into your controller VM' +echo 'check the status of your VM with euca-describe-instances' +echo 'when it is in the running state, verify that you can login' +echo 'using ssh -i ~/cert.pem root@ip.address'