CentOS 7.x Cloudstack 4.11 Initial advance zone setup with VLANs

From Notes_Wiki

Home > CentOS > CentOS 7.x > CentOS 7.x Cloudstack 4.11 > CentOS 7.x Cloudstack 4.11 Initial advance zone setup with VLANs

Initial advanced zone setup

  1. Login into setup wizard. Default username:password are admin:password. The interface is available on http:// port 8080 with URL /client.
  2. Click 'I have used cloudstack before, skip this guide' option for advanced configuration.
  3. This will cause cloudstack admin interface to load immediately.
  4. Go to Infrastructure -> Zones. Add zone as follows:
    1. Choose Advanced
    2. Give appropriate zone name, public IPv4 DNS, internal IPv4 DNS, Hypervisor type:KVM, Type desired guest CIDR: eg 10.1.1.0/24
  5. Leave "Physical network 1" and Isolation "VLAN" as it is. Click Edit below 'Management','Public','Guest' and type cloudbr0 in all three places. If you are using additional NICs and bridges for guest network then drag guest to second interface and type 'cloudbr1' there appropriately.
  6. Add public IP range eg 172.21.1.1/24, Choose public IP VLAN (eg 50) and choose appropriate start and end IPs. At least 15 IPs should be there in test environment. Remember to click 'Add' to add values before clicking next.
    If public IP subnet is same as management subnet to be used in next step and both are coming untagged, then leave VLAN field blank.
  7. Pod name (eg pod1), Reserved system gateway (Management gateway), start IP and end IP (management IP range), etc. click next.
  8. Create bunch of L2 VLANs for cloud and give range. eg 61-70.
    These would be used if L2 Guest networks or Isolated networks are created later on.
  9. Cluster name (eg cluster1)
  10. Add at least one kvm host using hostname (IP), root, <root-password>, etc. details
  11. Add primary storage such as nfs by giving NFS server IP, mount point path, etc.
  12. Add secondary storage via nfs. Give NFS server IP, mount point path, etc.
  13. Click "Launch Zone" to launch zone
  14. On "Would you like to enable this zone", select "Yes"
  15. Go to Infrastructure -> System VMs and wait for Agent Status to be up for both system VMs.
    Secondary storage VM requires direct access to Internet during / after boot to download KVM CentOS 5.5 template. If Internet is not there then the corresponding template in Templates will not show proper size and would show error in download status. After Internet connectivity is ensured rebooting secondary storage VM will solve this issue. After the template has been downloaded, Internet is not required for further working of Cloudstack.


Create required network offerings

Create shared network offering

Create shared network offering for network which have VLANs in physical network and some machines outside cloudstack in the given VLANs.

  1. Go to Service Offerings
  2. Select Network Offering type from drop-down
  3. Click "Add Network Offering"
  4. Enter name (eg network-offering-for-shared), description, guest type (eg shared), Supported services (eg dhcp, dns, firewall, static nat, etc.), system offering for router (none), supported source NAT type (per account), etc. Leave most other things to default. Click ok.
    In case of static nat router will take one ip from the IP pool defined while creating shared network using this offering. In case of source nat router will take gateway IP specified while creating shared network using this offering. Please choose appropriately based on whether routing is being done by external L3 switch/router or cloudstack virtual router.
  5. Enable the newly created network offering



Create required networks

Create shared networks

Multiple shared networks (network which have VLANs in physical network and some machines outside cloudstack in the given VLANs) can be created with the same shared network offering. To create a shared network use:

  1. Go to networks
  2. Click "Add Guest networks"
  3. Enter name (eg intranet1), description, zone, VLAN ID, Scope (eg Domain), Select desired domain, select network offering, gateway, netmask, start and end IPs, etc. Most things can be left blank. Click ok to create shared network


Create isolated networks

Isolated network can be created with default isolated network offering that comes with cloudstack setup. These allows guests to use same Guest CIDR as specified during advanced zone creation. Isolated network belongs to a specific account only and cannot be used across accounts.

  1. Go to networks
  2. Click "Add isolated network"
  3. Enter name (Eg isolated1), description. Give appropriate netmask and gateway for creating isolated network within the same guest CIDR range as used during zone creation.
  4. Other things can be left blank or default unless the network is intended for a specific account/domain.

Cloudstack will dynamically allocate a dedicated VLAN from list specified during advance zone creation for the isolated network.


Create L2 guest network

L2 guest network can be created when unlike shared/isolated cloudstack should only provide L2 connectivity to respective network VLAN. Cloudstack should not provide any L3 routing etc. functionality in this network.

  1. Go to networks
  2. Click "Add L2 guest network"
  3. Enter name (Eg l2guest1), description. If required a specific VLAN can be specified during guest network creation but this VLAN should not be part of dynamic VLANs specified during advanced zone creation.

Unless a specific VLAN is given during network creation a VLAN would be allocated to the guest network from pool specified during advanced zone creation.


Home > CentOS > CentOS 7.x > CentOS 7.x Cloudstack 4.11 > CentOS 7.x Cloudstack 4.11 Initial advance zone setup with VLANs