Category Archives: NSX

Upgrading NSX from the Command line

Every once in a while a new version of NSX comes out which you need to upgrade to. Last week NSX 6.1.3 was GAed and being the good techie I am I needed(wanted) to upgrade to it. Now I travel a lot and use remove VPN to access my lab at home and that’s where the problem started.

The upgrade process for NSX is pretty easy as long as you follow procedure and have local access. The process involves in opening a WEB connection to the NSX manager and then clicking on the upgrade button, which then pop-ups a file browser… Uploading a 2.5 GB file using a VPN connection from a hotel is something I attempted once and generally I decided never to do this again. So I needed another solution, API access!!!!

Step 1 – Get the NSX upgrade bundle

The first thing you need to do is get the NSX upgrade bundle. The problem with this is that you need to use a browser and the damn file is then local which you then have to upload bla bla bla…  The solution that I have found is by using my local browser to login to, select the file I need and start the download. Then I copy the Download URL, login to my homelab and wget the file making sure I use the -O option to save the file.

wget "<REMOVED>" -O "VMware-NSX-Manager-upgrade-bundle-6.1.3-2591148.tar.gz"

This will save the upgrade bundle locally.

Step 2 – Upload the NSX upgrade bundle

The next step is to upload the NSX bundle to the NSX manager and for that we use CURL. Here is the code:

curl -i -v -k -u admin: -H 'Accept:application/xml' -F file=@VMware-NSX-Manager-upgrade-bundle-6.1.3-2591148.tar.gz -X POST https:///api/1.0/appliance-management/upgrade/uploadbundle/NSX -o upload.out

This will allow you to upload the bundle from you local site.

Step 3 – Check that the NSX bundle is uploaded

Next is to make sure that the bundle has been uploaded correctly:

curl -k -u admin: -H "Accept:application/xml" -X GET https:///api/1.0/appliance-management/upgrade/information/NSX

This should output the following:

    Upgrade to 6.1.3
            Do you want to enable SSH ?
            Upgrade Bundle Validation
            Upgrade bundle will be validated before the actual upgrade process.
            Upgrade NSX manager
            Upgrade process for NSX Manager will begin.
    Please take a snapshot of the VM before proceeding with the upgrade.

Step 4 – Make a backup and snapshot

Before you upgrade make a backup!!!! how to do this LMGTFY 🙂

The problem of ONE!

I was recently at a client site doing an NSX workshop/Demo when something in my lab happened that I did not foresee; my only NSX controller was in a disconnected stated and would not reconnect. Instead of having a full blown panic attack, I decided to leave the controller as it is and continue with the demo…  What happened next was something I should have predicted.

Continue reading

Building an ESXi 5.5 lab for NSX and vSAN Part 2: The DS61

So first this is first on the new Lab environment, COMPUTE. I opted for the DS61 by Shuttle, not because it was the cheapest but because i gives me the best of both world, cheaper, quiet, compact and best of all CPU is upgradable.


The first step was to install all the Hardware into the little monster, which I must admit was easier then I thought. The only thing was the mSata disk which was Larger then the holder on the motherboard. Moving this over a slot solved that issue.

So let’s have a look on how to instal ESXi 5.5 onto this little monster.

Continue reading