Easy upgrade ESXi 6.5 via command line

VMware has recently released ESXi 6.5 and last week I posted on how to Install VCSA 6.5 as well as how to upgrade VCSA 6.0 to 6.5, now we’re going to look at how to easily and quickly perform an ESXi 6.5 upgrade via command line.

How to Upgrade ESXi 6.6 via command line using VMware Online Depot

Using the VMware Online Depot is a simple way to upgrade if you only have 1 or 2 ESXi hosts to do, perfect for a small home lab setup.

  1. Place the host you want to upgrade into Maintenance Mode.
  2. Open PuTTY (or any other SSH client) and SSH into your host.
  3. Type the following command to open the firewall for outgoing HTTP requests:
    esxcli network firewall ruleset set -e true -r httpClient
  4. Type the following command to download and upgrade to the latest version of ESXi 6.5
    esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-6.5.0-20170404001-standard
  5. Now disable the HTTP firewall rule by typing:
    esxcli network firewall ruleset set -e false -r httpClient
  6. And finally, reboot the ESXi host to complete the upgrade.
    reboot
  7. Doesn’t hurt to also disable SSH when you’re done for security purposes.

That’s it, your ESXi host has how been upgraded to the latest ESXi 6.5 build, as of April 19, 2017!

This works perfect in a small environment with a few hosts or home lab. Those with tens or hundreds of hosts I would suggest using VMware Update Manager to perform the upgrades.

Similar Posts

  • VMware View client now availabe for Android!

    VMware has announced that they have released a View Client for Android tablets available on the Android Market now. Here are just a few of the features found on the new client.

    • A new look and feel – The View Client for Android features the NEW blue look and feel of the VMware View clients!
    • Multiple broker support – If you have more than one VMware View broker in your organization, you can can easily access your desktop from all of them via the Android client
    • Desktop Shortcuts – Quickly connect with as many as four recent desktop via shortcuts
    • Virtual trackpad – Control your desktop on a granular level just like you would control the mouse on a laptop
    • Custom keyboard toolbar – Super easy access to all of the special keys not found on the Android default keynboard
    • Honeycomb 3.x support – Made from the ground up for the new generation of Android tablets
    • Custom gestures – Invoke keyboard, scrolling, etc are as easy as ever and simple to use
    • VMware View Security Server support (best experience) – No need to have VPN when you use VMware View Security Server
    • Background tasking – Switch between apps on your tablet and come right back
  • Clone VMware ESXi USB boot drive to another USB flash drive

    A few days ago one of my hosts in my home lab was displaying an alarm message:

    Lost connectivity to the device

    Lost connectivity to the device mpx.vmhbaXX:XX:XX:XX backing the boot filesystem /vmfs/devices/disks/mpx.vmhbaXX:XX:XX:XX. As a result, host configuration changes will not be saved to persistent storage.

    The last part of the message (“persistent storage”) made me think it might have something to do with the USB drive due to the fact that a similar message appeared when setting up the home lab on the Intel NUC’s. After some research it appears my assumption was correct and that the USB flash drive I was using to boot from was indeed starting to fail.

    Read More “Clone VMware ESXi USB boot drive to another USB flash drive”

  • Become a VMware Certified Associate for FREE!

    During the San Francisco VMworld 2013, VMware announced the start of their new VMware Certified Associate certifications.

    There’s no training class requirement for the new exams although VMware offers a free self-paced e-learning course which is recommended to help you prepare for the exams. The exams normally run $120.00 but VMware is currently running a $60.00 discount for those who take the exam in 2013. NTPRO.nl has an additional coupon code (VCA13ICS) to take the remaining $60.00 off making the exam FREE!

    VCA Exam for free

    The VCA13ICS coupon code expires on October 30, 2013!

    Update:
    Global Knowledge also has a coupon code (VCA13GKN) which does not expire until January 31, 2014. Limit one free exam per individual!

  • How to fix VMware Converter error “FAILED: The VSS snapshots cannot be stored”

    While moving some VM’s from Hyper-V to VMware using VMware Converter a VM failed to convert with the error: FAILED: The VSS snapshots cannot be stored.

    FAILED: The VSS snapshots cannot be stored because there is not enough space on the source volumes or because the source machine does not have any NTFS volumes. Error code: 2147754783 (0x8004231F).

    Come to find out the System Reserved partition was full. Our soon to be retired Appassure backup application was nice enough to fill up the volume.

    Luckily Appassure is being replaced by Veeam and fixing the above VMware Converter error is an easy fix.

    Read More “How to fix VMware Converter error “FAILED: The VSS snapshots cannot be stored””

  • VMware Workstation 12 Pro Released

    VMware has just released a new version of Workstation in VMware Workstation 12 Pro. Workstation 12 Pro provides full support for Windows 10, including features such as Cortana and universal applications. As well as even larger virtual machines with up to 16 vCPU’s and 64GB of memory. Workstation 12 Pro even supports 4K displays and DirectX 10 and OpenGL 3.3

    You can even seamlessly drag and drop virtual machines between your PC and your internal cloud running vSphere, ESXi or another instance of Workstation. In addition, easily connect to vCloud Air and upload, run, and view virtual machines right from the Workstation 12 Pro interface.

    Read More “VMware Workstation 12 Pro Released”

Leave a Reply to virtualerati Cancel reply

Your email address will not be published. Required fields are marked *

3 Comments

  1. Thanks for the article. can we somehow download the offlinebundle.zip or it”s contents in a folder via ssh?