Created
March 13, 2014 05:29
-
-
Save zyluo/9522329 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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