UPDATE: How to update ESXi from online repository

UPDATEHP has changed the URL of their online repository. I have adjusted the post accordingly.

Here is a way how to install patches using esxcli directly on the ESXi host from an online repository

I found a great side about the available patches including commands to install them.

https://esxi-patches.v-front.de/

Example host: HP Microserver Gen8

Get a list of all available updates

esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

Example output:

[root@micro-gen8:~] esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
Name                              Vendor        Acceptance Level
--------------------------------  ------------  ----------------
ESXi-5.1.0-20140102001-standard   VMware, Inc.  PartnerSupported
ESXi-5.0.0-20120904001-no-tools   VMware, Inc.  PartnerSupported
ESXi-5.0.0-20130504001-standard   VMware, Inc.  PartnerSupported
ESXi-5.5.0-20140704001-standard   VMware, Inc.  PartnerSupported
ESXi-5.0.0-20140704001-no-tools   VMware, Inc.  PartnerSupported
ESXi-5.1.0-20141004001-standard   VMware, Inc.  PartnerSupported
ESXi-5.1.0-20141202001-standard   VMware, Inc.  PartnerSupported
ESXi-5.0.0-20111104001-standard   VMware, Inc.  PartnerSupported
ESXi-5.0.0-20131001001s-standard  VMware, Inc.  PartnerSupported
ESXi-5.5.0-20150204001-no-tools   VMware, Inc.  PartnerSupported
ESXi-5.1.0-20150304001-no-tools   VMware, Inc.  PartnerSupported
ESXi-5.1.0-20141202001-no-tools   VMware, Inc.  PartnerSupported
ESXi-5.1.0-20130701001s-standard  VMware, Inc.  PartnerSupported
ESXi-5.5.0-20140604001-standard   VMware, Inc.  PartnerSupported
ESXi-6.0.0-20151104001-standard   VMware, Inc.  PartnerSupported
ESXi-5.1.0-20141201001s-standard  VMware, Inc.  PartnerSupported
ESXi-5.0.0-20121202001-standard   VMware, Inc.  PartnerSupported
ESXi-5.1.0-20140604001-standard   VMware, Inc.  PartnerSupported
ESXi-5.0.0-20130801001s-standard  VMware, Inc.  PartnerSupported
ESXi-5.1.0-20151004001-standard   VMware, Inc.  PartnerSupported
ESXi-5.1.0-20140102001-no-tools   VMware, Inc.  PartnerSupported
ESXi-5.0.0-20120701001s-standard  VMware, Inc.  PartnerSupported
ESXi-5.5.0-20150101001s-no-tools  VMware, Inc.  PartnerSupported
ESXi-5.5.0-20141004001-no-tools   VMware, Inc.  PartnerSupported
ESXi-5.5.0-20140302001-standard   VMware, Inc.  PartnerSupported
ESXi-5.5.0-20141204001-no-tools   VMware, Inc.  PartnerSupported
ESXi-5.0.0-20130304001-no-tools   VMware, Inc.  PartnerSupported
ESXi-5.1.0-20150304001-standard   VMware, Inc.  PartnerSupported
ESXi-5.5.0-20160104001-standard   VMware, Inc.  PartnerSupported
ESXi-5.0.0-20120504001-no-tools   VMware, Inc.  PartnerSupported
ESXi-5.5.0-20151004001-no-tools   VMware, Inc.  PartnerSupported
ESXi-6.0.0-2494585-standard       VMware, Inc.  PartnerSupported
ESXi-5.1.0-20140604001-no-tools   VMware, Inc.  PartnerSupported
ESXi-5.0.0-20140501001s-no-tools  VMware, Inc.  PartnerSupported
ESXi-6.0.0-20160204001-standard   VMware, Inc.  PartnerSupported
ESXi-5.1.0-20121201001s-no-tools  VMware, Inc.  PartnerSupported
ESXi-5.0.0-469512-standard        VMware, Inc.  PartnerSupported
ESXi-5.0.0-20150204001-standard   VMware, Inc.  PartnerSupported
ESXi-5.5.0-20150504001-no-tools   VMware, Inc.  PartnerSupported
ESXi-5.0.0-20140101001s-no-tools  VMware, Inc.  PartnerSupported
ESXi-5.5.0-20150204001-standard   VMware, Inc.  PartnerSupported
ESXi-6.0.0-20150902001-no-tools   VMware, Inc.  PartnerSupported
ESXi-5.0.0-20120701001s-no-tools  VMware, Inc.  PartnerSupported
ESXi-5.0.0-20141204001-no-tools   VMware, Inc.  PartnerSupported
ESXi-5.5.0-20140901001s-standard  VMware, Inc.  PartnerSupported
...

Get a list of all available updates for ESXi 6 released in 2016

esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep ESXi-6.0.0-2016
[root@micro-gen8:~] esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep ESXi-6.0.0-2016
ESXi-6.0.0-20160104001-no-tools   VMware, Inc.  PartnerSupported
ESXi-6.0.0-20160101001s-no-tools  VMware, Inc.  PartnerSupported
ESXi-6.0.0-20160101001s-standard  VMware, Inc.  PartnerSupported
ESXi-6.0.0-20160104001-standard   VMware, Inc.  PartnerSupported
ESXi-6.0.0-20160204001-no-tools   VMware, Inc.  PartnerSupported
ESXi-6.0.0-20160204001-standard   VMware, Inc.  PartnerSupported

To install a update package:

esxcli network firewall ruleset set -e true -r httpClient
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-6.0.0-20160204001-standard
esxcli network firewall ruleset set -e false -r httpClient

The same is possible with for example HP packages for ESXi

esxcli software vib update --depot=http://vibsdepot.hpe.com/hpq/latest/index.xml --force

Example output:

[root@micro-gen8:~] esxcli software vib update --depot=http://vibsdepot.hpe.com/hpq/latest/index.xml --force
Installation Result
   Message: Host is not changed.
   Reboot Required: false
   VIBs Installed:
   VIBs Removed:
   VIBs Skipped: Hewlett-Packard_bootbank_char-hpcru_6.0.6.14-1OEM.600.0.0.2159203, Hewlett-Packard_bootbank_char-hpilo_600.9.0.2.8-1OEM.600.0.0.2159203, Hewlett-Packard_bootbank_hp-ams_600.10.3.0-15.2494585, Hewlett-Packard_bootbank_hp-conrep_6.0.0.1-0.0.13.2159203, Hewlett-Packard_bootbank_hp-esxi-fc-enablement_600.2.4.6-2494585, Hewlett-Packard_bootbank_hpbootcfg_6.0.0.02-01.00.11.2159203, Hewlett-Packard_bootbank_hpnmi_600.2.3.14-2159203, Hewlett-Packard_bootbank_hponcfg_6.0.0.04-00.13.17.2159203, Hewlett-Packard_bootbank_hpssacli_2.30.6.0-6.0.0.2159203, Hewlett-Packard_bootbank_hptestevent_6.0.0.01-00.00.8.2159203
esxcli software vib update --depot=http://vibsdepot.hpe.com/hpq/latest/index-drv.xml --force 

Example output:

[root@micro-gen8:~] esxcli software vib update --depot=http://vibsdepot.hpe.com/hpq/latest/index-drv.xml --force
Installation Result
   Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
   Reboot Required: true
   VIBs Installed: Mellanox_bootbank_net-mlx4-core_1.9.9.4-1OEM.550.0.0.1331820, Mellanox_bootbank_net-mlx4-en_1.9.9.4-1OEM.550.0.0.1331820, QLogic_bootbank_ima-qla4xxx_500.2.01.31-1vmw.0.3.100400, QLogic_bootbank_scsi-qla4xxx_644.55.36.0-1OEM.550.0.0.1331820
   VIBs Removed: QLogic_bootbank_scsi-qla4xxx_644.6.04.0-1OEM.600.0.0.2159203, VMware_bootbank_ima-qla4xxx_2.02.18-1vmw.600.0.0.2494585, VMware_bootbank_net-mlx4-core_1.9.7.0-1vmw.600.0.0.2494585, VMware_bootbank_net-mlx4-en_1.9.7.0-1vmw.600.0.0.2494585
   VIBs Skipped: BRCM_bootbank_net-tg3_3.137l.v60.1-1OEM.600.0.0.2494585, EMU_bootbank_elxnet_10.5.121.7-1OEM.600.0.0.2159203, EMU_bootbank_ima-be2iscsi_10.5.101.0-1OEM.600.0.0.2159203, EMU_bootbank_lpfc_10.5.70.0-1OEM.600.0.0.2159203, EMU_bootbank_scsi-be2iscsi_10.5.101.0-1OEM.600.0.0.2159203, Emulex_bootbank_scsi-lpfc820_10.5.55.0-1OEM.500.0.0.472560, Hewlett-Packard_bootbank_scsi-hpdsa_5.5.0.46-1OEM.550.0.0.1331820, Hewlett-Packard_bootbank_scsi-hpsa_6.0.0.114-1OEM.600.0.0.2494585, Hewlett-Packard_bootbank_scsi-hpvsa_5.5.0.100-1OEM.550.0.0.1331820, Intel_bootbank_intelcim-provider_0.5-1.4, Intel_bootbank_net-i40e_1.2.48-1OEM.550.0.0.1331820, Intel_bootbank_net-igb_5.2.10-1OEM.550.0.0.1331820, Intel_bootbank_net-ixgbe_3.21.4.3-1OEM.550.0.0.1331820, LSI_bootbank_scsi-mpt2sas_15.10.06.00.1vmw-1OEM.550.0.0.1198610, MEL_bootbank_nmlx4-core_3.1.0.0-1OEM.600.0.0.2348722, MEL_bootbank_nmlx4-en_3.1.0.0-1OEM.600.0.0.2348722, MEL_bootbank_nmst_4.0.0.20-1OEM.600.0.0.2295424, Mellanox_bootbank_net-mst_4.0.0.20-1OEM.550.0.0.1331820, QLogic_bootbank_misc-cnic-register_1.712.50.v60.1-1OEM.600.0.0.2494585, QLogic_bootbank_net-bnx2_2.2.5j.v60.3-1OEM.600.0.0.2494585, QLogic_bootbank_net-bnx2x_2.712.50.v60.6-1OEM.600.0.0.2494585, QLogic_bootbank_net-cnic_2.712.50.v60.6-1OEM.600.0.0.2494585, QLogic_bootbank_net-nx-nic_6.0.643-1OEM.600.0.0.2494585, QLogic_bootbank_net-qlcnic_6.1.191-1OEM.600.0.0.2494585, QLogic_bootbank_qlnativefc_2.1.27.0-1OEM.600.0.0.2768847, QLogic_bootbank_scsi-bfa_3.2.5.0-1OEM.550.0.0.1331820, QLogic_bootbank_scsi-bnx2fc_1.712.50.v60.7-1OEM.600.0.0.2494585, QLogic_bootbank_scsi-bnx2i_2.712.50.v60.4-1OEM.600.0.0.2494585, QLogic_bootbank_scsi-qla2xxx_934.5.45.0-1OEM.500.0.0.472560

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.