VMware NSX Advanced Load Balancer - Installation
Tags: avi, bgp, datacenternetworking, ipv6
Published: 2021-05-16 22:41:32

---
title: VMware NSX Advanced Load Balancer - Installation
published: true
date: 2021-05-16 04:54:00 UTC
tags: Avi,BGP,DatacenterNetworking,IPv6
canonical_url: 
---

## Pre-Requisites

Before beginning the Avi installer, I configured the following in my environment:

- Management Segment (NSX-T Overlay). This is set up with DHCP for quick automatic provisioning - no ephemeral addresses required
- Data Segments (NSX-T Overlay). Avi will build direct routes to IPs in this network for vIP processing. I built 3 - 

  - Layer 2 Cloud (attached to Tier-1)
  - NSX Integrated (attached to Tier-1)
  - Layer 3 Cloud (attached to Tier-0)

[![](https://1.bp.blogspot.com/--Vz1vbsXmyU/YGlTcMUHT2I/AAAAAAAABPQ/bu8fiQctlmkSRwHPqCWvpZQ9zFM1on_9wCLcBGAsYHQ/w640-h202/aviprep01.PNG)](https://1.bp.blogspot.com/--Vz1vbsXmyU/YGlTcMUHT2I/AAAAAAAABPQ/bu8fiQctlmkSRwHPqCWvpZQ9zFM1on_9wCLcBGAsYHQ/s813/aviprep01.PNG)

  

Avi also supports automatic SE deployment - which means that automatic IP configuration is important. Avi supports SLAAC (IPv6) and DHCP (IPv4) for this purpose.

  

NSX-T is unsurprisingly symbiotic here. I have built a dedicated Tier-1 for NSX ALB, and we're going to provide DHCP services via the Tier-1 router. If this was a production deployment **or a VVD-compliant SDDC, this should be performed with a DHCP relay.**  I just haven't set aside time to deploy DHCP/IPAM tools for reasons that are beyond me.

  

The following changes are performed on the **Tier-1 Logical Router. This step is not required for external DHCP servers!**

[![](https://1.bp.blogspot.com/-HCxcHqqkyAI/YKAVPNebniI/AAAAAAAABVU/FHlPt2lIVNEQ74GnuOJp0D3DR-99UGsIQCLcBGAsYHQ/w640-h258/avideploymay-6.png)](https://1.bp.blogspot.com/-HCxcHqqkyAI/YKAVPNebniI/AAAAAAAABVU/FHlPt2lIVNEQ74GnuOJp0D3DR-99UGsIQCLcBGAsYHQ/s873/avideploymay-6.png)
  

[![](https://1.bp.blogspot.com/-lcSOnwUamj8/YKAVPGxW64I/AAAAAAAABVY/SqhHxU9DyZ8gbmZUQ9vYOonZKlSLAOs7wCLcBGAsYHQ/w640-h602/avideploymay-7.png)](https://1.bp.blogspot.com/-lcSOnwUamj8/YKAVPGxW64I/AAAAAAAABVY/SqhHxU9DyZ8gbmZUQ9vYOonZKlSLAOs7wCLcBGAsYHQ/s577/avideploymay-7.png)
**The following changes are to be performed on the Logical Segment. **  

[![](https://1.bp.blogspot.com/-PDwmwOgVGKc/YKAVPPVRICI/AAAAAAAABVQ/lYIpnOcqDswkAG840mqSKYnqOStlhR1HgCLcBGAsYHQ/w640-h188/avideploymay-8.png)](https://1.bp.blogspot.com/-PDwmwOgVGKc/YKAVPPVRICI/AAAAAAAABVQ/lYIpnOcqDswkAG840mqSKYnqOStlhR1HgCLcBGAsYHQ/s638/avideploymay-8.png)
**If production, DHCP relay is selectable from the following screen:**  

[![](https://1.bp.blogspot.com/-iKXqT26zMHc/YKAVPuIF3rI/AAAAAAAABVc/AThNZ14kfJ0qHs7WDifkzFVsYlW-URM0QCLcBGAsYHQ/w426-h640/avideploymay-9.png)](https://1.bp.blogspot.com/-iKXqT26zMHc/YKAVPuIF3rI/AAAAAAAABVc/AThNZ14kfJ0qHs7WDifkzFVsYlW-URM0QCLcBGAsYHQ/s763/avideploymay-9.png)
  

  

### Installation

####  Avi Controller

VMware provides a prepackaged OVA for the Vantage controller - and it's a pretty large appliance. 24 GB of memory and 8 vCPUs is a lot of resourcing for a home lab. **There are no sizing options here.**

  

Installation is pretty easy - once the OVA is deployed, I used my [CI/CD pipeline](https://www.jenkins.io/) and [GitHub](https://github.com) to deploy DNS updates and logged right into the installation wizard.

  

[![](https://lh3.googleusercontent.com/-T3t9tAxD77I/YHy6vjVbzaI/AAAAAAAABRQ/msMhCuBGdaAiqKvkBCpwImDoCHnTFc6MQCLcBGAsYHQ/w367-h400/image.png)](https://lh3.googleusercontent.com/-T3t9tAxD77I/YHy6vjVbzaI/AAAAAAAABRQ/msMhCuBGdaAiqKvkBCpwImDoCHnTFc6MQCLcBGAsYHQ/image.png)

AVI version 20.1.5 has changed the installer approach from the above to this. When "No cloud setup" is selected, it still insists on configuring a new cloud. This isn't too much of a problem:

[![](https://1.bp.blogspot.com/-ZUJItiJWQBE/YKAQ9Mnk6fI/AAAAAAAABUs/YjTBI7vnhXc-tdLwSf6ZCwT0qYOzfgKBQCLcBGAsYHQ/w640-h378/avideploymay-1.PNG)](https://1.bp.blogspot.com/-ZUJItiJWQBE/YKAQ9Mnk6fI/AAAAAAAABUs/YjTBI7vnhXc-tdLwSf6ZCwT0qYOzfgKBQCLcBGAsYHQ/s1064/avideploymay-1.PNG)

Note: This passphrase is for backups - make sure to store it somewhere safe!

[![](https://1.bp.blogspot.com/-W3lPk85G9Rc/YKAQ9Kl_g2I/AAAAAAAABUw/q3CAGKBraRUtudv48uxVzQmspPiFD_E8gCLcBGAsYHQ/s16000/avideploymay-2.PNG)](https://1.bp.blogspot.com/-W3lPk85G9Rc/YKAQ9Kl_g2I/AAAAAAAABUw/q3CAGKBraRUtudv48uxVzQmspPiFD_E8gCLcBGAsYHQ/s1629/avideploymay-2.PNG)

From here, we configure vCenter's integration:
  

[![](https://1.bp.blogspot.com/-WtKIsGOzhbI/YKAQ9AoisnI/AAAAAAAABU0/pck4SId2OagZwJ5axJ7Q1YvvvphqOm-ZQCLcBGAsYHQ/s16000/avideploymay-3.PNG)](https://1.bp.blogspot.com/-WtKIsGOzhbI/YKAQ9AoisnI/AAAAAAAABU0/pck4SId2OagZwJ5axJ7Q1YvvvphqOm-ZQCLcBGAsYHQ/s1630/avideploymay-3.PNG)
  

[![](https://1.bp.blogspot.com/-29Mzd1OmzDQ/YKAQ9TBQVHI/AAAAAAAABU4/zVKcdc2JqN8cOBgcrQSUvn6oreVFchZwgCLcBGAsYHQ/s16000/avideploymay-4.png)](https://1.bp.blogspot.com/-29Mzd1OmzDQ/YKAQ9TBQVHI/AAAAAAAABU4/zVKcdc2JqN8cOBgcrQSUvn6oreVFchZwgCLcBGAsYHQ/s1624/avideploymay-4.png)

Let's ensure that Avi is connected to vCenter and has no issues. **Note: VMware recommends write-mode for vCenter clouds.**

[![](https://1.bp.blogspot.com/-hO2iA5RzahE/YKASqDbhlLI/AAAAAAAABVI/AhnnvfXQmRw93D7fs1vhCU_ARXqHRPzHgCLcBGAsYHQ/s16000/avideploymay-5.png)](https://1.bp.blogspot.com/-hO2iA5RzahE/YKASqDbhlLI/AAAAAAAABVI/AhnnvfXQmRw93D7fs1vhCU_ARXqHRPzHgCLcBGAsYHQ/s1066/avideploymay-5.png)
  
  

After install, it's useful to get a little oriented. Up in the top left of the Avi Vantage GUI. In the top left, you'll find the major configuration branches by expanding the triple ellipsis. **Get familiar with this part of the GUI - you'll be using it a lot!**

[![](https://lh3.googleusercontent.com/-fYVEEemo4Ws/YHy_ZoJQYgI/AAAAAAAABRg/09NAoi5OhbEZRXCNz5hptfOSA4PDrS_IACLcBGAsYHQ/image.png)](https://lh3.googleusercontent.com/-fYVEEemo4Ws/YHy_ZoJQYgI/AAAAAAAABRg/09NAoi5OhbEZRXCNz5hptfOSA4PDrS_IACLcBGAsYHQ/image.png)
  

  

  
  

#### Patching

Before we build anything, I prefer to load any patches (if applicable) prior to building anything. This should help avoid any software issues on deployment, and patching is usually simpler/lower impact if you have no configuration yet. 

  

**Avi Vantage really excels here - this upgrade process is pretty much fully automated, with extensive testing. As a result, it's probably going to be slower than "manual" upgrades, but is definitely more reliable. Our industry really needs to get over this - If you have a good way to keep an eye on things while keeping busy, you're ahead of the curve!**

  

We'll hop on over to **Administration -> Controller -> Software:**

[![](https://1.bp.blogspot.com/-a4Xziqd5ZjQ/YKAcLYHQqPI/AAAAAAAABVo/j-5F04n3Lqsj1qQX_c2zT7iKdi5Q0NFtQCLcBGAsYHQ/s16000/avideploymay-10.png)](https://1.bp.blogspot.com/-a4Xziqd5ZjQ/YKAcLYHQqPI/AAAAAAAABVo/j-5F04n3Lqsj1qQX_c2zT7iKdi5Q0NFtQCLcBGAsYHQ/s787/avideploymay-10.png)
  

[![](https://1.bp.blogspot.com/-gYRUCcoVFkU/YKAdCJIV6tI/AAAAAAAABVw/LCKoYQIRpcUNUPMOqQw-z--VSUGiNYLUACLcBGAsYHQ/w640-h470/avideploymay-11.png)](https://1.bp.blogspot.com/-gYRUCcoVFkU/YKAdCJIV6tI/AAAAAAAABVw/LCKoYQIRpcUNUPMOqQw-z--VSUGiNYLUACLcBGAsYHQ/s743/avideploymay-11.png)
  

[![](https://1.bp.blogspot.com/-jSqLdjpYovQ/YKAdCRJzJJI/AAAAAAAABV0/Nl4a_PfqFLgy_11yq-WYwdgaOpgvvzgVQCLcBGAsYHQ/w640-h522/avideploymay-12.png)](https://1.bp.blogspot.com/-jSqLdjpYovQ/YKAdCRJzJJI/AAAAAAAABV0/Nl4a_PfqFLgy_11yq-WYwdgaOpgvvzgVQCLcBGAsYHQ/s1036/avideploymay-12.png)
While this upgrade takes place - Avi's controller will serve up a "Sorry Page" indicating that it's not available yet - which is pretty neat.

[![](https://1.bp.blogspot.com/-BhueTGWQkJM/YKAdzJbI7EI/AAAAAAAABWA/2wIaRA64OKofiPRvJDBSqr043Wr4oh27ACLcBGAsYHQ/s16000/avideploymay-13.png)](https://1.bp.blogspot.com/-BhueTGWQkJM/YKAdzJbI7EI/AAAAAAAABWA/2wIaRA64OKofiPRvJDBSqr043Wr4oh27ACLcBGAsYHQ/s637/avideploymay-13.png)
  

When complete, you should see this:

[![](https://1.bp.blogspot.com/-8XTRL2TSE3o/YKAfYJaeeZI/AAAAAAAABWI/8nCx1EqbZbIBpKq5AAsubqdYbwXwJQe2QCLcBGAsYHQ/s0/avideploymay-14.png)](https://1.bp.blogspot.com/-8XTRL2TSE3o/YKAfYJaeeZI/AAAAAAAABWI/8nCx1EqbZbIBpKq5AAsubqdYbwXwJQe2QCLcBGAsYHQ/s318/avideploymay-14.png)
  

  

  

#### Avi Clouds

Clouds are Avi's construct for deployment points - and we'll start with the more traditional one here - vCenter. Most of this has already been configured as part of the wizard above. Several things need to be finished for this to run well, however:

  

- Service Engine Group - here we customize service engine settings
- IPAM - Push IP address, get a cookie

SE Group Changes are executed under Infrastructure -> SE Groups. Here I want t to constrain the deployment to specific datastores and clusters.

[![](https://1.bp.blogspot.com/-7_rc5sjRLP4/YKB0RyRZrOI/AAAAAAAABWQ/AvmqN8zwHyM7pBcucm4K2SiwNNbS711dACLcBGAsYHQ/w640-h498/avideploymay-15.PNG)](https://1.bp.blogspot.com/-7_rc5sjRLP4/YKB0RyRZrOI/AAAAAAAABWQ/AvmqN8zwHyM7pBcucm4K2SiwNNbS711dACLcBGAsYHQ/s814/avideploymay-15.PNG)
IPAM is located in two places, Templates -> Profiles -> IPAM/DNS Profiles (bindable profile):

[![](https://1.bp.blogspot.com/-K1pUVqKi1fg/YKB1PZoUCcI/AAAAAAAABWY/opwDclp6baUiit7J8WWwqn_Oo0ZhoF-RwCLcBGAsYHQ/w594-h640/avideploymay-16.PNG)](https://1.bp.blogspot.com/-K1pUVqKi1fg/YKB1PZoUCcI/AAAAAAAABWY/opwDclp6baUiit7J8WWwqn_Oo0ZhoF-RwCLcBGAsYHQ/s588/avideploymay-16.PNG)
  

Ranges are configured under Networks. If you configure a write-access cloud, it'll scan all of the port groups and used IP ranges for you. IP ranges and Subnets will still need to be configured and/or confirmed:

[![](https://1.bp.blogspot.com/-iyQJC98es-U/YKB2-iUNw7I/AAAAAAAABWg/NILQetq-tzwymDOKHhkvZAks9hH9MBgoQCLcBGAsYHQ/w640-h180/avideploymay-17.PNG)](https://1.bp.blogspot.com/-iyQJC98es-U/YKB2-iUNw7I/AAAAAAAABWg/NILQetq-tzwymDOKHhkvZAks9hH9MBgoQCLcBGAsYHQ/s1063/avideploymay-17.PNG)
  

[![](https://1.bp.blogspot.com/-du7j1E6b9xM/YKB2-pWtk0I/AAAAAAAABWk/2z3y4GI00AABNlgYJT0qRM5n4V0gWtf2gCLcBGAsYHQ/w640-h342/avideploymay-18.PNG)](https://1.bp.blogspot.com/-du7j1E6b9xM/YKB2-pWtk0I/AAAAAAAABWk/2z3y4GI00AABNlgYJT0qRM5n4V0gWtf2gCLcBGAsYHQ/s948/avideploymay-18.PNG)
  

Note: This IPAM profile does need to be added to the applicable cloud to leverage auto-allocate functions with vIPs.
#### Avi Service Engines

Now that the setup work is done, we can fire up the SE deployments by configuring a vIP. By default, Avi will conserve resources by deploying the minimum SEs required to get the job done - if there's no vIP, this means none. It takes some getting used to!

[![](https://1.bp.blogspot.com/-xkQfrszNKcE/YKCaDj_vRHI/AAAAAAAABWw/J6NOdhqzzwg3SidR1Qt23IxkyhtR0iFQACLcBGAsYHQ/s16000/avideploymay-19.PNG)](https://1.bp.blogspot.com/-xkQfrszNKcE/YKCaDj_vRHI/AAAAAAAABWw/J6NOdhqzzwg3SidR1Qt23IxkyhtR0iFQACLcBGAsYHQ/s342/avideploymay-19.PNG)
Once the vIP is applied, you should see some deployment jobs in vCenter:  

[![](https://1.bp.blogspot.com/-hHNpvYRfm8k/YKCaDhoXbTI/AAAAAAAABW0/CWT1Hu5HJJcNzZcqarO0lioJPz5Pcb3lgCLcBGAsYHQ/s16000/avideploymay-20.PNG)](https://1.bp.blogspot.com/-hHNpvYRfm8k/YKCaDhoXbTI/AAAAAAAABW0/CWT1Hu5HJJcNzZcqarO0lioJPz5Pcb3lgCLcBGAsYHQ/s836/avideploymay-20.PNG)

  

Service engines take a while to deploy - don't get too obsessive if the deployment lags. There doesn't appear to be a whole lot of logging to indicate deployment stages, so the only option here is to wait it out. If a service engine doesn't deploy quite right, delete it. This is not the type of application we just hack until it works - I did notice that it occasionally will deploy with vNICs incorrectly configured.  
  

From here, we can verify that all service engines are deployed. The health score will climb up over time if the deployment is successful.

[![](https://1.bp.blogspot.com/-Dsja9FhUPvA/YKCiRWw1FYI/AAAAAAAABXA/4i0BISYwmWgs26t6Gcb4irAU6D93_LYnQCLcBGAsYHQ/s16000/avideploymay-21.PNG)](https://1.bp.blogspot.com/-Dsja9FhUPvA/YKCiRWw1FYI/AAAAAAAABXA/4i0BISYwmWgs26t6Gcb4irAU6D93_LYnQCLcBGAsYHQ/s421/avideploymay-21.PNG)

  

Now we can build stuff! 

[![](https://1.bp.blogspot.com/-AQOtW_5suhE/YKClZPVRxdI/AAAAAAAABXI/Aa4aQQe2BVojXdMrlbddGCGtLjMkGviXACLcBGAsYHQ/s0/avideploymay-22.PNG)](https://1.bp.blogspot.com/-AQOtW_5suhE/YKClZPVRxdI/AAAAAAAABXI/Aa4aQQe2BVojXdMrlbddGCGtLjMkGviXACLcBGAsYHQ/s289/avideploymay-22.PNG)