---
title: "Step by Step NSX Upgrade"
date: "2016-07-13T07:00:54Z"
tags: ["NSX", "SDN", "Software Defined Networking", "Upgrade"]
categories: ["Networking & Security", "Virtualization"]
---

![NSX Upgrade - step by step - logo][1]

I haven't been writing much about NSX so far, but I am working on an Internet of Things (IoT) Project where NSX is one of the core products. In Today post **Step by Step NSX Upgrade,** I would like to show you how NSX upgrade should be done.
<!--more-->
<!--adsense-->
# Before we upgrade

It is very important to validate all necessary components before NSX is upgraded. It is not only valid for a minor upgrade which we will be doing - 6.2.2 to 6.2.3, but for every version. Checklist below will help you to prepare your environment to upgrade:

* Download NSX upgrade bundle and check MD5.
* There is known bug which affects EDGE upgrade when incorrect ciphers are configured. VMware KB <a id="permalink-content" href="https://kb.vmware.com/kb/2145887" rel="bookmark">NSX Edge is unmanageable after upgrading to NSX 6.2.3</a> explain steps needed to check it and/or change it before the upgrade.
* Familiarize yourself with <a id="permalink-content" href="https://kb.vmware.com/kb/2109760" rel="bookmark">Update sequence for vSphere 6.0 and its compatible VMware products</a>.
* **Backup of components**: 
 * Take a backup of NSX Manager (if you are not doing it regularly) before the upgrade.
 * Before upgrading download technical support logs.
 * Export of vSphere Distributed Switches configuration. Check out my Git repository for the detailed script.
 * Create a backup of vCenter Server database.
 * Take a snapshot of vCenter Server and vCenter Server database.
  * Take a snapshot of NSX Manager (**without quiescing VMware Tools**, because it is **not supported** and it **might crash** your NSX Manager).

# 3, 2, 1 - Go!

## Upgrade of NSX Manager

1. Download NSX upgrade bundle.  
![NSX Upgrade - step by step - 1][2]
2. Login to NSX Manager and go to **Upgrade** section.
3. Click on **Upgrade** button, specify a location of upgrade bundle and click **Continue**.
![NSX Upgrade - step by step - 2][3]
4. It will take few minutes to upload it.<br>
![NSX Upgrade - step by step - 3][4]
5. Choose if you want to enable SSH and participate in Customer Experience Improvement Program (CEIP). Click **Upgrade** to proceed.
![NSX Upgrade - step by step - 4][5]
6. Upgrade takes a while so be patient. In my lab, it took 15 minutes.
![NSX Upgrade - step by step - 5][6]
7. GUI reports that upgrade was done.
![NSX Upgrade - step by step - 6][7]
8. Go back to vSphere Web Client and go to **Networking&Security**. After logging in I immediately noticed new section **Dashboard**.
![NSX Upgrade - step by step - 7][8]

## NSX Controllers Upgrade

1. To continue upgrade click on **Installation** and hit **Upgrade Available** button.
![NSX Upgrade - step by step - 8][9]
2. Confirm that we want to proceed with Controllers upgrade.<br>
![NSX Upgrade - step by step - 9][10]
3. It will take few moments to upgrade controllers. In my case, it was ~15 minutes per controller.
![NSX Upgrade - step by step - 10][11]
4. Once all controllers upgraded and the reboot is finished, green status is displayed.
![NSX Upgrade - step by step - 11][12]

## VMware ESXi NSX VIBs Upgrade

1. Navigate to **Installation** section and click **Host Preparation**.
![NSX Upgrade - step by step - 12][13]
2. Click on **Upgrade Available** in every cluster you are using NSX and confirm Upgrade by clicking **Yes**.<br>
![NSX Upgrade - step by step - 13][14]
3. In vSphere Client uninstalls and install tasks are visible.
![NSX Upgrade - step by step - 14][15]
4. To finish with upgrade ESXi hosts have to be rebooted.
![NSX Upgrade - step by step - 15][16]

## NSX Edge Services Gateway and Distributed Logical Router Upgrade

1. Next step is to upgrade Edge Services Gateway and Distributed Logical Router. In my environment, I have only ESG deployed so we will proceed with the upgrade of it.
![NSX Upgrade - step by step - 16][17]
2. Please remember that there might be service interruption depending on a configuration used in environment.
![NSX Upgrade - step by step - 17][18]
3. In vSphere Web Client in current tasks, it is visible, that two temporary new Edge Services Gateways deployment is in progress.
![NSX Upgrade - step by step - 18][19]
4. After two minutes Edge Services Gateways upgrade to 6.2.3 is completed.
![NSX Upgrade - step by step - 19][20]
5. Same procedure should be used to perform an upgrade of Distributed Logical Routers.

## Post-Upgrade Checklist

* Check if NSX Manager is working.
* Check if NSX Manager backup is working.
* Check if NSX VIBs are installed on ESXi host.
* Resynchronize the host message bus.
* Remove snapshot from NSX Manager.
* Remove snapshot from vCenter Server.
* Remove snapshot from vCenter Server database.

# Documentation:
* [Upgrade from NSX 6.1.x or 6.2.x to NSX 6.2.x][21]
* [Update sequence for vSphere 6.0 and its compatible VMware products][22]
* [NSX Edge is unmanageable after upgrading to NSX 6.2.3][23]

[1]: /images/uploads/2016/07/nsx-upgrade-step-by-step-logo-new.webp
[2]: /images/uploads/2016/07/nsx-upgrade-step-by-step-1.webp
[3]: /images/uploads/2016/07/nsx-upgrade-step-by-step-2.webp
[4]: /images/uploads/2016/07/nsx-upgrade-step-by-step-3.webp
[5]: /images/uploads/2016/07/nsx-upgrade-step-by-step-4.webp
[6]: /images/uploads/2016/07/nsx-upgrade-step-by-step-5.webp
[7]: /images/uploads/2016/07/nsx-upgrade-step-by-step-6.webp
[8]: /images/uploads/2016/07/nsx-upgrade-step-by-step-7.webp
[9]: /images/uploads/2016/07/nsx-upgrade-step-by-step-8.webp
[10]: /images/uploads/2016/07/nsx-upgrade-step-by-step-9.webp
[11]: /images/uploads/2016/07/nsx-upgrade-step-by-step-10.webp
[12]: /images/uploads/2016/07/nsx-upgrade-step-by-step-11.webp
[13]: /images/uploads/2016/07/nsx-upgrade-step-by-step-16.webp
[14]: /images/uploads/2016/07/nsx-upgrade-step-by-step-17.webp
[15]: /images/uploads/2016/07/nsx-upgrade-step-by-step-18.webp
[16]: /images/uploads/2016/07/nsx-upgrade-step-by-step-19.webp
[17]: /images/uploads/2016/07/nsx-upgrade-step-by-step-12.webp
[18]: /images/uploads/2016/07/nsx-upgrade-step-by-step-13.webp
[19]: /images/uploads/2016/07/nsx-upgrade-step-by-step-14.webp
[20]: /images/uploads/2016/07/nsx-upgrade-step-by-step-15.webp
[21]: http://pubs.vmware.com/NSX-62/topic/com.vmware.nsx.upgrade.doc/GUID-9B2AC925-4626-481B-BD6D-2F5998C41752.html
[22]: https://kb.vmware.com/kb/2109760
[23]: https://kb.vmware.com/kb/2145887
