-
Notifications
You must be signed in to change notification settings - Fork 0
/
make-vm
51 lines (41 loc) · 1.19 KB
/
make-vm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
i=0
#223
for n in {1..200};
do
vm_num=$(printf "%04d" $n)
vm_name="vm-"$vm_num
nova boot --image F19-x86_64-cfntools --flavor 2 --key_name build_server --nic net-id=ac9f0ce6-34bc-4f5e-8a69-ccd46e5fa7b8 $vm_name
done
#sleep 60
#224
for n in {201..400};
do
vm_num=$(printf "%04d" $n)
vm_name="vm-"$vm_num
nova boot --image F19-x86_64-cfntools --flavor 2 --key_name build_server --nic net-id=e1c91501-33ce-443b-8bd3-46db32456936 $vm_name
done
#sleep 60
#225
for n in {401..600};
do
vm_num=$(printf "%04d" $n)
vm_name="vm-"$vm_num
nova boot --image F19-x86_64-cfntools --flavor 2 --key_name build_server --nic net-id=6bda17a7-6976-42b9-a72c-fe818d674fd4 $vm_name
done
#sleep 60
#226
for n in {601..800};
do
vm_num=$(printf "%04d" $n)
vm_name="vm-"$vm_num
nova boot --image F19-x86_64-cfntools --flavor 2 --key_name build_server --nic net-id=f143916b-1af4-4b4f-9493-dd43ee1865ca $vm_name
done
#sleep 60
#227
for n in {801..1000};
do
vm_num=$(printf "%04d" $n)
vm_name="vm-"$vm_num
nova boot --image F19-x86_64-cfntools --flavor 2 --key_name build_server --nic net-id=db39a250-9024-44b9-9ef6-52e8873e3e43 $vm_name
done