Specification : openstack, internal & external networks, flavor, images, instances, key, security groups

Summary step

  1. Create external network
  2. Create router
  3. Create internal network
  4. Add internal network to router
  5. Create images
  6. Create flavor
  7. Create Instances & key
  8. Add floating IP
  9. Create security groups
  10. Add SG to instances
  11. Verify VM connectivity

 


   

Step 1 by 1

1. Create external network

Goto admin pages, and please follow guide correctly

aio-yoga

Make Physical Network use physnet1

aio-yoga

Add Network address by using ens4 network address, because for external & floating IP, make sure this network can connect to internet.

aio-yoga

2. Create router

Add router

aio-yoga

Make sure external network using previously created

aio-yoga

3. Create Internal network

This network for instances private IP, you can use custom address

aio-yoga aio-yoga

You can choose anything private address :

aio-yoga aio-yoga

4. Add internal network to router

Back again to router menu, and add internal network on router like bellow : aio-yoga aio-yoga Make sure network correct :

aio-yoga

5 & 6, Create images & Flavor

We use lightweight image with cirros

wget http://download.cirros-cloud.net/0.5.2/cirros-0.5.2-x86_64-disk.img

aio-yoga

Create image

openstack image create \
    --container-format bare \
    --disk-format qcow2 \
    --file cirros-0.5.2-x86_64-disk.img \
    cirros-img

Create flavor

openstack flavor create --ram 512  --vcpus 1 --disk 10 m1.tiny

aio-yoga

7. Create instances

aio-yoga

add VM name aio-yoga

Chosse cirros image aio-yoga

Choose flavor aio-yoga

Choose internal network aio-yoga

Create new keypair or you can paste pubkey aio-yoga

8. Add floating IP

Click on instances, choose floating ip address

aio-yoga aio-yoga

For pool, you need use external network aio-yoga

Yeay, you already have floating IP aio-yoga

9. Create security group

security group like firewall, you can open or closed port, by default deny all, we need create first to open

Go to security groups menu

aio-yoga

Add rule for allow, bellow example allow all ICMP aio-yoga

allow all TCP (Only for test, better open by need) aio-yoga

10. Add SG to instances

aio-yoga aio-yoga

11. Verify VM connectivity

Bellow you can see, we can access VM using Floating IP & VM can ping to internet :)

aio-yoga

Thankyou