ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

How To do a Dry Run of an esxcli Installation or Upgrade on VMware ESXi

By Vladan SEGET | Last Updated: January 11, 2024

Shares

The upgrade season is here. VMware has released vSphere 6.7 and soon first backup/monitoring products will be compatible. Time to learn some tricks before Installation or upgrade on VMware ESXi. You know that with VMware ESXi hypervisor you can test an upgrade. I mean run the upgrade without actually upgrading, and see the result. It allows you to check whether an upgrade would create some compatibility problems or so. It's a good way to test, to preview the results, to see if your ESXi can actually be upgraded.

The option can only be executed through CLI so if you're planning to upgrade via VMware Update Manager (VUM) or upgrade via ISO, it won't work. You'll need an SSH access to your host and perform CLI upgrade. Well talk also about ESXi software profiles and how can we see details in each.

You can use the –dry-run option to preview the results of an installation or upgrade operation. A dry run of the installation or update procedure does not make any changes but reports the VIB-level operations that will be performed.

You can run this option when installing a whole upgrade package containing many individual VIBs or when you want to install a single VIB.

Tip: Check How-to Install VIB on ESXi host which teaches you what is VIB and how to install/uninstall.

We'll do a test run in the lab on it so we'll see how it goes.

How To do a Dry Run of an esxcli Installation or Upgrade on VMware ESXi – The steps

Step 1: Enable SSH and connect via Putty or another SSH client > put the host into a maintenance mode via

esxcli system maintenanceMode set –enable true

Step 2: Upload your update package to a datastore visible to your ESXi host and then execute your update command with an :

esxcli –server=server_name software profile install –dry-run

So in my test case

esxcli software profile update -p ESXi-6.7.0-8169922-standard -d /vmfs/volumes/datastore1/VMware-ESXi-6.7.0-8169922-depot.zip –dry-run

The output shows which VIBs will be installed or removed and whether the installation or update requires a reboot.

Perform a Dry Run of an esxcli Installation or Upgrade

As you can see, we have a message that it's a “dry-run” only (not an actual installation/upgrade) and then there is the large list of vibs and drivers which will be installed.

Completely at the end, there is also a message which shows which VIBs will be skipped during the process.

How to list or remove a VIB?

you might want to ask how to remove a VIB?

To verify which VIBs are installed:

esxcli software vib list

To remove a VIB?

Yes, all VMware partners have hose third-party VIBs to provide management agents or asynchronously released drivers. Verify the documentation of such a driver, and you'll see that sometimes you'll need to uninstall and reboot particular driver before you can install a new one.

To Remove a vib, use this command:

esxcli –server=server_name software vib remove –vibname=name

You should always check:

if an upgrade/installation of a driver requires a reboot and the host is part of HA cluster, you should disable HA for the host and put the host in maintenance mode. This will evacuate all running VMs elsewhere.

You should care about network drivers as if you remove network driver you'll most likely loose connectivity. Either you can log in directly at the console or use another pNIC from another vendor to assure connectivity while you updating a driver of the other pNIC.

Interesting to know

You can use the –rebooting-image option to list the VIBs and profiles that are installed on the host and will be active after the next host reboot.

The command is like this for VIBs:

esxcli –server=server_name software vib list –rebooting-image

For profiles:

esxcli –server=server_name software profile get –rebooting-image

What's the Profile?

Each ESXi patch has several profiles, several versions. You can retrieve the versions via this command:

esxcli software sources profile list -d /vmfs/volumes/datastore1/VMware-ESXi-6.7.0-8169922-depot.zip

Like this…

ESXi software profiles

and we can deep deeper and see further details about a profile with this command:

esxcli software sources profile get -d /vmfs/volumes/datastore1/VMware-ESXi-6.7.0-8169922-depot.zip

As you can see, there are quite a few CLI commands which give us enough details about an update package, profile, or individual VIB. The “dry-run” command is useful in situations where you want to know and test an update/patch before actually doing it.

Remember, you still have the option during the boot process where you can revert back to the previous version, you can simply hold SHIFT + R and chose to roll back.

More posts from ESX Virtualization:

  • VMware vSphere 8.0 U2 Released – ESXi 8.0 U2 and VCSA 8.0 U2 How to update (NEW)
  • What’s the purpose of those 17 virtual hard disks within VMware vCenter Server Appliance (VCSA) 8.0?
  • VMware vSphere 8 Update 2 New Upgrade Process for vCenter Server details
  • VMware vSAN 8 Update 2 with many enhancements announced during VMware Explore
  • What’s New in VMware Virtual Hardware v21 and vSphere 8 Update 2?
  • Homelab v 8.0 
    • NXJ6412 Maxtang EHL30 TPM Alert in vCenter Server 8.0 BIOS Config
    • vSphere 8 Lab with Cohesity and VMware vExpert gift – Maxtang’s NX 6412 NUC
    • VMware Cohesity vExpert Gift VMware EXPLORE 2022 Barcelona
  • vSphere 8.0 Page
  • Veeam Bare Metal Recovery Without using USB Stick (TIP)
  • ESXi 7.x to 8.x upgrade scenarios
  • A really FREE VPN that doesn’t suck
  • Patch your ESXi 7.x again
  • VMware vCenter Server 7.03 U3g – Download and patch
  • Upgrade VMware ESXi to 7.0 U3 via command line
  • VMware vCenter Server 7.0 U3e released – another maintenance release fixing vSphere with Tanzu
  • What is The Difference between VMware vSphere, ESXi and vCenter
  • How to Configure VMware High Availability (HA) Cluster

 

Stay tuned through RSS, and social media channels (Twitter, FB, YouTube)

Shares
Vote !

| Filed Under: Server Virtualization, Tips Tagged With: Installation or Upgrade on VMware ESXi

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Antonio says

    December 26, 2018 at 11:12 pm

    Ok… I have to upgrade from 5.5 to 6.0 and followed all the steps… one of VIB skipped is related to network NIC (which is the only one, motherboard-integrated NIC, so cannot install other NICs). Didn’t pay attention at the dry-run test, I effectively upgraded and connection was lost. In fact, the main screen console showed the message “no compatible network adapter found”. Rolled back to 5.5. The adapter is a “Realtek 8168” and I found that Net55-r8168 vib file should be used replace the deprecated net51-drivers. My question is: should I upgrade to net55 drivers while in 5.5 esxi and then upgrade to 6.0? Can I do this without break connection? Or: copy VIB file (which is compatible with ESXi >= 5.5) locally, upgrade and then, using local console (ALT+F1), install the VIB?

    • Vladan SEGET says

      December 27, 2018 at 2:20 pm

      I would try the 6.7 U1 cause the NIC drivers might work with that release. If you can, try to upgrade via ISO or via DVD/cd-Rom

  2. Derek says

    March 14, 2019 at 6:18 pm

    I know this is the wrong topic and I’m sorry but I need help. I decided to set up RAID-10 for my local ESXi 6.7 (VMFS) host.

    My hardware is:
    AVAGO LSI SAS3180 (controller has 1 GB cache)
    4 x SSD Samsung PM1633a 960GB

    I am looking for the optimal controller configuration for RAID-10 and SSD disks and every tip is important to me.

    Possible controller settings:

    STRIP SIZE:
    – 64KB
    – 128KB
    – 256 KB
    – 512KB
    – 1MB

    READ POLICY:
    – Ahead
    – Normal

    WRITE POLICY:
    – Write Through
    – Write Back
    – Always Write Back

    I/O POLICY:
    – Direct
    – Cached

    DISK CACHE POLICY:
    – Unchanged
    – Enabled
    – Disabled

    EMULATION:
    – Default
    – Disable
    – Force

    DISABLE BGI:
    – Yes
    – No

    • Vladan SEGET says

      March 14, 2019 at 8:26 pm

      I would just follow the best practices of your hardware manufacturer. This isn’t really a VMware question on what’s best settings for your hardware raid.

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in