sy/va:n coudev://e

Mémo – Mettre à jour un ESXi avec un Offline Bundle

Mettre à jour un ESXi avec un Offline Bundle

Quoi de plus frustrant que de télécharger un Offline Bundle sur le site de VMware (https://my.vmware.com), taillé sur mesure pour son serveur HPe, Dell ou Lenovo, et de s’arracher les cheveux pour l’installer?

En effet, l’installation d’un Offline Bundle Custom est légèrement différente d’un Offline Bundle classique car le nom du profil à installer n’est pas connu à l’avance…

Ce billet est un aide mémoire pour les commandes essentielles à la mise à jour d’un serveur ESXi avec un OfflineBundle Standard ou Custom.

Connexion à l’ESXi

Tout d’abord, on se connecte à l’ESXi via SSH (ou directement sur la console) :

ssh root@myesxi.mydomain

Mettre l’ESXi en mode maintenance

Ensuite, on met l’hôte ESXi en mode maintenance pour pouvoir le modifier :

esxcli system maintenanceMode set --enable true

Lister les profils disponibles dans l’Offline Bundle

L’opération suivante consiste à interroger le contenu de l’Offline Bundle pour découvrir les différents profils qu’il contient :

esxcli software sources profile list --depot=/vmfs/volumes/My_Datastore/Offline_Bundles/VMware-ESXi-7.0.3n-21930508-LNV-S03-20230901.zip

Résultat de la commande :

Name                     Vendor        Acceptance Level  Creation Time        Modification Time
-----------------------  ------------  ----------------  -------------------  -----------------
LVO_7.0.3-LVO.703.10.13  Lenovo, Inc.  PartnerSupported  2023-09-20T09:52:19  2023-09-20T09:52:19

On voit apparaitre les profils inclus dans l’Offline Bundle Custom de Lenovo. Ici, un unique profil nommé “LVO_7.0.3-LVO.703.10.13”

Installer le nouveau profil

Maintenant, on procède à l’installation du nouveau profil :

esxcli software profile update --depot=/vmfs/volumes/DS_ISOs/Offline_Bundles/VMware-ESXi-7.0.3n-21930508-LNV-S03-20230901.zip --profile=LVO_7.0.3-LVO.703.10.13

Résultat de la commande :

Update Result
   Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
   Reboot Required: true
   VIBs Installed: BCM_bootbank_bnxtnet_225.0.131.0-1OEM.700.1.0.15843807, BCM_bootbank_bnxtroce_225.0.131.0-1OEM.700.1.0.15843807, BCM_bootbank_lsi-mr3_7.722.02.00-1OEM.700.1.0.15843807, BCM_bootbank_lsi-msgpt35_23.00.00.00-1OEM.700.1.0.15843807, EMU_bootbank_lpfc_14.2.567.0-1OEM.700.1.0.15843807, INT_bootbank_i40en_2.4.2.0-1OEM.700.1.0.15843807, INT_bootbank_iavmd_3.0.0.1038-1OEM.700.1.0.15843807, INT_bootbank_icen_1.11.3.0-1OEM.702.0.0.17630552, INT_bootbank_igbn_1.11.2.0-1OEM.700.1.0.15843807, INT_bootbank_irdman_1.4.3.0-1OEM.700.1.0.15843807, INT_bootbank_ixgben_1.14.2.0-1OEM.700.1.0.15843807, LVO_bootbank_LVO-upgradeclean_1.0.0.5-1OEM.700.1.0.15843807, LVO_bootbank_lnvcustomization_7.1-10.6, MEL_bootbank_nmlx5-core_4.22.73.1004-1OEM.703.0.0.18644231, MEL_bootbank_nmlx5-rdma_4.22.73.1004-1OEM.703.0.0.18644231, MIS_bootbank_smartpqi_70.4440.0.124-1OEM.700.1.0.15843807, MVL_bootbank_qlnativefc_5.3.81.2-1OEM.703.0.0.18644231, VMW_bootbank_ntg3_4.1.9.0-5vmw.703.0.90.21686933, VMW_bootbank_nvme-pcie_1.2.3.16-2vmw.703.0.85.21424296, VMW_bootbank_vmkusb_0.1-8vmw.703.0.85.21424296, VMware_bootbank_bmcal_7.0.3-0.95.21930508, VMware_bootbank_cpu-microcode_7.0.3-0.95.21930508, VMware_bootbank_crx_7.0.3-0.95.21930508, VMware_bootbank_esx-base_7.0.3-0.95.21930508, VMware_bootbank_esx-dvfilter-generic-fastpath_7.0.3-0.95.21930508, VMware_bootbank_esx-ui_2.9.2-21141530, VMware_bootbank_esx-update_7.0.3-0.95.21930508, VMware_bootbank_esx-xserver_7.0.3-0.95.21930508, VMware_bootbank_esxio-combiner_7.0.3-0.95.21930508, VMware_bootbank_gc_7.0.3-0.95.21930508, VMware_bootbank_loadesx_7.0.3-0.95.21930508, VMware_bootbank_native-misc-drivers_7.0.3-0.95.21930508, VMware_bootbank_trx_7.0.3-0.95.21930508, VMware_bootbank_vdfs_7.0.3-0.95.21930508, VMware_bootbank_vsan_7.0.3-0.95.21930508, VMware_bootbank_vsanhealth_7.0.3-0.95.21930508, VMware_locker_tools-light_12.1.5.20735119-21422485
   VIBs Removed: BCM_bootbank_bnxtnet_222.0.118.0-1OEM.700.1.0.15843807, BCM_bootbank_bnxtroce_222.0.118.0-1OEM.700.1.0.15843807, BCM_bootbank_lsi-mr3_7.720.04.00-1OEM.700.1.0.15843807, BCM_bootbank_lsi-msgpt35_20.00.00.00-1OEM.700.1.0.15843807, ELX_bootbank_elx-esx-libelxima-8169922.so_12.0.1188.0-03, EMU_bootbank_lpfc_14.0.326.12-1OEM.700.1.0.15843807, INT_bootbank_i40en_2.3.4.0-1OEM.700.1.0.15843807, INT_bootbank_iavmd_2.7.2.1001-1OEM.700.1.0.15843807, INT_bootbank_icen_1.9.8.0-1OEM.702.0.0.17630552, INT_bootbank_igbn_1.9.1.0-1OEM.700.1.0.15843807, INT_bootbank_irdman_1.3.8.0-1OEM.700.1.0.15843807, INT_bootbank_ixgben_1.13.1.0-1OEM.700.1.0.15843807, LVO_bootbank_LVO-replacement_1.0.0.3-1OEM.700.1.0.15843807, LVO_bootbank_lnvcustomization_7.1-10.4, MEL_bootbank_nmlx5-core_4.21.71.101-1OEM.702.0.0.17630552, MEL_bootbank_nmlx5-rdma_4.21.71.101-1OEM.702.0.0.17630552, MIS_bootbank_smartpqi_70.4330.0.116-1OEM.700.1.0.15843807, Marvell_bootbank_qlnativefc_4.1.57.0-1OEM.700.1.0.15843807, VMW_bootbank_ntg3_4.1.7.0-0vmw.703.0.20.19193900, VMW_bootbank_nvme-pcie_1.2.3.16-1vmw.703.0.20.19193900, VMW_bootbank_vmkusb_0.1-7vmw.703.0.50.20036589, VMware_bootbank_bmcal_7.0.3-0.55.20328353, VMware_bootbank_cpu-microcode_7.0.3-0.55.20328353, VMware_bootbank_crx_7.0.3-0.55.20328353, VMware_bootbank_esx-base_7.0.3-0.55.20328353, VMware_bootbank_esx-dvfilter-generic-fastpath_7.0.3-0.55.20328353, VMware_bootbank_esx-ui_1.43.8-19798623, VMware_bootbank_esx-update_7.0.3-0.55.20328353, VMware_bootbank_esx-xserver_7.0.3-0.55.20328353, VMware_bootbank_esxio-combiner_7.0.3-0.55.20328353, VMware_bootbank_gc_7.0.3-0.55.20328353, VMware_bootbank_loadesx_7.0.3-0.55.20328353, VMware_bootbank_native-misc-drivers_7.0.3-0.55.20328353, VMware_bootbank_trx_7.0.3-0.55.20328353, VMware_bootbank_vdfs_7.0.3-0.55.20328353, VMware_bootbank_vsan_7.0.3-0.55.20328353, VMware_bootbank_vsanhealth_7.0.3-0.55.20328353, VMware_locker_tools-light_12.0.0.19345655-20036586
   VIBs Skipped: QLC_bootbank_qcnic_2.0.59.0-1OEM.700.1.0.15843807, QLC_bootbank_qedentv_3.40.36.0-1OEM.700.1.0.15843807, QLC_bootbank_qedf_2.2.62.0-1OEM.700.1.0.15843807, QLC_bootbank_qedi_2.19.59.0-1OEM.700.1.0.15843807, QLC_bootbank_qedrntv_3.40.35.0-1OEM.700.1.0.15843807, QLC_bootbank_qfle3_1.4.17.0-1OEM.700.1.0.15843807, QLC_bootbank_qfle3f_2.1.25.0-1OEM.700.1.0.15843807, QLC_bootbank_qfle3i_2.1.8.0-1OEM.700.1.0.15843807, VMW_bootbank_atlantic_1.0.3.0-8vmw.703.0.20.19193900, VMW_bootbank_brcmfcoe_12.0.1500.2-3vmw.703.0.20.19193900, VMW_bootbank_elxiscsi_12.0.1200.0-9vmw.703.0.20.19193900, VMW_bootbank_elxnet_12.0.1250.0-5vmw.703.0.20.19193900, VMW_bootbank_ionic-en_16.0.0-16vmw.703.0.20.19193900, VMW_bootbank_iser_1.1.0.1-1vmw.703.0.50.20036589, VMW_bootbank_lpnic_11.4.62.0-1vmw.703.0.20.19193900, VMW_bootbank_lsi-msgpt2_20.00.06.00-4vmw.703.0.20.19193900, VMW_bootbank_lsi-msgpt3_17.00.12.00-1vmw.703.0.20.19193900, VMW_bootbank_mtip32xx-native_3.9.8-1vmw.703.0.20.19193900, VMW_bootbank_ne1000_0.9.0-1vmw.703.0.50.20036589, VMW_bootbank_nenic_1.0.33.0-1vmw.703.0.20.19193900, VMW_bootbank_nfnic_4.0.0.70-1vmw.703.0.20.19193900, VMW_bootbank_nhpsa_70.0051.0.100-4vmw.703.0.20.19193900, VMW_bootbank_nmlx4-core_3.19.16.8-2vmw.703.0.20.19193900, VMW_bootbank_nmlx4-en_3.19.16.8-2vmw.703.0.20.19193900, VMW_bootbank_nmlx4-rdma_3.19.16.8-2vmw.703.0.20.19193900, VMW_bootbank_nvmerdma_1.0.3.5-1vmw.703.0.20.19193900, VMW_bootbank_nvmetcp_1.0.0.1-1vmw.703.0.35.19482537, VMW_bootbank_nvmxnet3-ens_2.0.0.22-1vmw.703.0.20.19193900, VMW_bootbank_nvmxnet3_2.0.0.30-1vmw.703.0.20.19193900, VMW_bootbank_pvscsi_0.1-4vmw.703.0.20.19193900, VMW_bootbank_qflge_1.1.0.11-1vmw.703.0.20.19193900, VMW_bootbank_rste_2.0.2.0088-7vmw.703.0.20.19193900, VMW_bootbank_sfvmk_2.4.0.2010-6vmw.703.0.20.19193900, VMW_bootbank_vmkata_0.1-1vmw.703.0.20.19193900, VMW_bootbank_vmkfcoe_1.0.0.2-1vmw.703.0.20.19193900, VMW_bootbank_vmw-ahci_2.0.11-1vmw.703.0.20.19193900, VMware_bootbank_elx-esx-libelxima.so_12.0.1200.0-4vmw.703.0.20.19193900, VMware_bootbank_lsuv2-hpv2-hpsa-plugin_1.0.0-3vmw.703.0.20.19193900, VMware_bootbank_lsuv2-intelv2-nvme-vmd-plugin_2.7.2173-1vmw.703.0.20.19193900, VMware_bootbank_lsuv2-lsiv2-drivers-plugin_1.0.0-12vmw.703.0.50.20036589, VMware_bootbank_lsuv2-nvme-pcie-plugin_1.0.0-1vmw.703.0.20.19193900, VMware_bootbank_lsuv2-oem-dell-plugin_1.0.0-1vmw.703.0.20.19193900, VMware_bootbank_lsuv2-oem-hp-plugin_1.0.0-1vmw.703.0.20.19193900, VMware_bootbank_lsuv2-oem-lenovo-plugin_1.0.0-1vmw.703.0.20.19193900, VMware_bootbank_lsuv2-smartpqiv2-plugin_1.0.0-8vmw.703.0.20.19193900, VMware_bootbank_vmware-esx-esxcli-nvme-plugin_1.2.0.44-1vmw.703.0.20.19193900

On voit la liste des packages ajoutés, retirés, ignorés, et surtout une mention “Reboot Required: true”.

Redémarrer l’hôte

La commande reboot permettra de relancer l’hôte :

reboot

Enjoy!

Quitter la version mobile