You can upgrade or update a host with image profiles stored in a software depot that is accessible through a URL or in an offline ZIP depot.
You can use the esxcli software profile update or esxcli software profile install command to upgrade or update an ESXi host. To understand the differences between upgrades and updates, see Differences Between vSphere Upgrades, Patches, Updates, and Migrations.
When you upgrade or update a host, the esxcli software profile update or esxcli software profile install command applies a higher version (major or minor) of a full image profile onto the host. After this operation and a reboot, the host can join to a vCenter Server environment of the same higher version.
The esxcli software profile update command brings the entire contents of the ESXi host image to the same level as the corresponding upgrade method using an ISO installer. However, the ISO installer performs a pre-upgrade check for potential problems, and the esxcli upgrade method does not. The ISO installer checks the host to make sure that it has sufficient memory for the upgrade, and does not have unsupported devices connected. For more about the ISO installer and other ESXi upgrade methods, see Overview of the ESXi Host Upgrade Process.
esxcli software profile update --depot=depot_location --profile=profile_name
.
When you specify a target server by using --server=server_name, the server prompts you for a user name and password. Other connection options, such as a configuration file or session file, are supported. For a list of connection options, see Getting Started with vSphere Command-Line Interfaces, or run esxcli --help at the vCLI command prompt.
Options to the update and install commands allow you to perform a dry run, to specify a specific VIB, to bypass acceptance level verification, and so on. Do not bypass verification on production systems. See the vSphere Command-Line Interface Reference.
Prerequisites
-
Install vCLI or deploy the vSphere Management Assistant (vMA) virtual machine. See Getting Started with vSphere Command-Line Interfaces. For troubleshooting, run esxcli commands in the ESXi Shell.
-
Determine whether the update requires the host to be in maintenance mode or to be rebooted. If necessary, place the host in maintenance mode.
See Determine Whether an Update Requires the Host to Be in Maintenance Mode or to Be Rebooted. See Place a Host in Maintenance Mode.
- If the update requires a reboot, and if the host belongs to a VMware HA cluster, remove the host from the cluster or disable HA on the cluster.