Using an install to upgrade a host:
esxcli software profile install -p [profile_name] -d /vmfs/volumes/[datastore_UUID]/[full_image_name].zipCustom Image
Installation fails due to conflicting or unneeded VIBs already installed
ESXi 7.x or 8.x command line
Installation of a custom image from a hardware manufacturer will have the needed VIBs contained in the zip file. Previous images may have installed VIBs that are not needed or conflict with the current image and need to be removed.
The --ok-to-remove switch allows the unneeded VIBs to be removed by the esxcli command. It should be of the form:
esxcli software profile install -p [profile_name] -d /vmfs/volumes/[datastore_UUID]/[full_image_name].zip --ok-to-remove