6
nova flavor-delete m1.tiny
7
nova flavor-create m1.tiny 1 512 8 1
9
# configure security groups
10
neutron security-group-rule-create --direction ingress --ethertype IPv4 --protocol icmp --remote-ip-prefix 0.0.0.0/0 default
11
neutron security-group-rule-create --direction ingress --ethertype IPv4 --protocol tcp --port-range-min 22 --port-range-max 22 --remote-ip-prefix 0.0.0.0/0 default
14
keystone tenant-create --name demo --description "Demo Tenant"
15
keystone user-create --name demo --tenant demo --pass demo --email demo@demo.demo
17
nova keypair-add --pub-key id_rsa.pub ubuntu-keypair
19
# configure external network
20
neutron net-create ext-net --router:external --provider:physical_network external --provider:network_type flat
21
neutron subnet-create ext-net --name ext-subnet --allocation-pool start=10.5.8.5,end=10.5.8.254 --disable-dhcp --gateway 10.5.8.1 10.5.8.0/24
24
neutron net-create demo-net
25
neutron subnet-create --name demo-subnet --gateway 10.20.5.1 demo-net 10.20.5.0/24
27
neutron router-create demo-router
29
neutron router-interface-add demo-router demo-subnet
31
neutron router-gateway-set demo-router ext-net
33
# create pool of floating ips
35
while [ $i -ne 10 ]; do
36
neutron floatingip-create ext-net