Load Balancer Installation in OpenStack

View Categories

Load Balancer Installation in OpenStack

4 min read

OpenStack as an open-source cloud computing infrastructure software enables users to create and manage resources, networks, and virtual machines. As an OpenStack User, you may deploy virtual machines with various image formats, and these include ISO, PLOOP, QCOW2, VDI VHD, AMI, etc.

In this article, we will provide a step-by-step guide on how to upload the KVM template of RELIANOID EE_v6.2 image in OpenStack, create an SSH security group, create a private network, and add it to a router, and launch a compute instance of your installed RELIANOID KVM template.

Step 1: Log in to the OpenStack dashboard #

Start by logging into your OpenStack dashboard using your credentials. Once logged in, you will be presented with a web interface that allows you to manage your OpenStack resources.

In this guide, we assume you are familiar with OpenStack and have access to its web interface or the server terminal hosting your OpenStack Instance. If you do not, follow this installation guide: OpenStack Installation With DevStack.

Step 2: Upload a KVM template of the RELIANOID Image #

The next step in creating a compute instance in OpenStack is to upload an image that will be used to create the instance. In this case, we will be using zva6000.qcow2 image.

To upload the image, follow these steps:

  1. Click on the Projects >> Compute >> Images tab on the left side of the Horizon dashboard.
  2. Click on the Create Image button on the right side of the screen.
  3. In the Create Image dialog box, enter a name for the image, such as relianoid_enterprise_v6_2
  4. Enter the description of this image in the Image Description section.
  5. In the Image Source Section, select the Image you downloaded, in *.qcow2 format.
  6. oracle_jd_edwards_load_balancing_farm

  7. In the Format section, select QCOW2 – QEMU EMULATOR as the Image format.
  8. Click the Create Image button to upload the Image.

Step 3: Create an SSH Security Group #

Now that the RELIANOID KVM image template has been uploaded, the next step is to create an SSH security group that will allow access to the compute instance.
To create an ssh security group:

  1. Click on Project >> Network >> Security Groups on the left side of the dashboard.
  2. Click on Create Security Group on the top-right of the screen.
  3. In the dialog box that shows up, enter a Name to identify the security group.
  4. In the Description field, enter a brief description about the security group
  5. Click on the Create Security Group button to create the security group.
  6. Within the security groups list, click on the Manage Rules button on the security group you just created.
  7. Click the Add rule button.
  8. In the Add rule dialog box, select SSH as the Rule.
  9. oracle_jd_edwards_load_balancing_farm

  10. In the Description field, Give a brief explanation about what this rule is about
  11. Click the Add button to create the rule.

Step 4: Create a Private Network #

After creating a security group, ensure the resources are protected and placed behind a private network. This network is only accessible by the compute instance and other resources on the same network.
To create a private network:

  1. Click on Project >> Network >> Networks.
  2. Click the Create Network button at the top right.
  3. In the dialog box that shows up, enter a Name that easily identifies this network.
  4. Click on the Subnet tab.
  5. oracle_jd_edwards_load_balancing_farm

  6. Enter a Name to Identify the subnet.
  7. Enter the Network Address or CIDR in IPv4 format, e.g., 192.168.100.0/24.
  8. Select the IP version as IPv4.
  9. Enter the Gateway IP address. Note that If you do not assign a Gateway IP, one will be assigned automatically.
  10. Within the Subnet Details tab, you may leave the settings to their default.
  11. Click the Create button.

Step 5: Add the Private Network to an OpenStack Virtual Router #

The private network you created must communicate with other private computing resources or be accessible from external networks. We need a virtual router to bridge this connection. By default, OpenStack provides a router with a connection to the external network. We must add an interface for the internal network.
To add the private network to the router:

  1. Click Project >> Network >> Routers.
  2. Click on the listed Name of the router with an external network interface.
  3. Click on the Interface tab.
  4. Click the Add Interface button.
  5. oracle_jd_edwards_load_balancing_farm

  6. In the Subnet field of the form that shows up, select the private subnet you created previously.
  7. Click the Submit button.

Step 6: Launch a Compute Instance of the RELIANOID KVM template #

After successfully following the previous steps, we must launch the instance in the private cloud so we can access it via an external network.

  1. Click on Project >> Compute >> Instances
  2. Click on the Launch Instance button to create a new Instance.
  3. In the Details tab, provide a Name and Description to identify the Instance.
  4. In the Source tab, select Boot Source as Image.
  5. Select the RELIANOID Enterprise Image Template by clicking the Upwards Arrow beside it.
  6. oracle_jd_edwards_load_balancing_farm

  7. In the Flavor tab, select a volume suitable for your project by clicking the Upward Arrow. m1.xlarge is recommended, or you can create a custom volume for your application.
  8. In the Network tab, select the private subnet you created by clicking the Upwards arrow beside it.
  9. In the Security Groups tab, select the Security group you created earlier on.
  10. In the Key Pair tab, Create an SSH key pair by clicking the Create Key Pair button.
  11. Enter a key Pair Name to Identify it. e.g., zen_ssh.
  12. oracle_jd_edwards_load_balancing_farm

  13. Select the Key Type as SSH Key
  14. Click the Create Keypair button.
  15. Copy Private Key to Clipboard, Save it as a separate file and click Done. Ensure the private key is never exposed. The one shown in the image above is experimental.
  16. Select the created Key pair.
  17. oracle_jd_edwards_load_balancing_farm

  18. Click the Launch Instance button. The process will take some time. The time Launching will take will depend on your hardware specs and connectivity.

Step 7: Associate an IP to the External Floating IP #

To access the private network connected to the virtual router, we must associate the interface we created with the External. That way, we can access the Instance directly via SSH.

To Associate IP to the Floating IP:

  1. Click Project >> Network >> Floating IPs
  2. Click on the Associate button.
  3. oracle_jd_edwards_load_balancing_farm

  4. In the Form that appears, select the private network you created earlier as the Port to be associated.
  5. Click the Associate button.

The RELIANOID instance will be available via SSH from your hardware node or OpenStack hosting servers in the cloud.

SHARE ON:

Powered by BetterDocs