Skip to content

Instantly share code, notes, and snippets.

@zyluo
Created March 13, 2014 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zyluo/9522329 to your computer and use it in GitHub Desktop.
Save zyluo/9522329 to your computer and use it in GitHub Desktop.
export OS_PASSWORD=abracadabra
export OS_AUTH_URL=http://localhost:35357/v2.0/
export OS_USERNAME=admin
export OS_TENANT_NAME=admin
export SG_UUID=$(nova secgroup-list | grep " default " | awk '{print $2}')
export NET_UUID=$(neutron net-list | grep " private " | awk '{print $2}')
export IMG_UUID=$(glance image-list | grep " ami " | awk '{print $2}')
export TEN_UUID=$(keystone tenant-list | grep " admin " | awk '{print $2}')
nova-manage project quota $TEN_UUID --key=instances --value=64
nova-manage project quota $TEN_UUID --key=cores --value=64
nova secgroup-add-rule $SG_UUID icmp -1 -1 0.0.0.0/0
nova secgroup-add-rule $SG_UUID tcp 22 22 0.0.0.0/0
for i in $(seq 1 50); do nova boot test_vm_$i --flavor m1.nano --nic net-id=$NET_UUID --image $IMG_UUID & done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment