Come aggiornare ESXi via Command Line

L’aggiornamento di ESXi può essere effettuato installando manualmente le patch che sono scaricabili dal sito di VMWare. In questo articolo si illustra come eseguire l’aggiornamento di ESXi via command line. L’esempio prevede l’upgrade dalla versione 7.0 alla versione 7.0U3.

Come installare patch su ESXi usando il comando ESXCLI

Se si vogliono installare aggiornamenti di sicurezza, bug fixing o patch sul proprio host ESXi, come prima cosa è necessario scaricare l’ultima patch release relativa alla propria versione di ESXi.

Ricordiamo che le patch di ESXi sono cumulative, questo vuol dire che l’ultima patch rilasciata include tutti i precedenti aggiornamenti. Installare quindi l’ultima disponibile per la propria release di ESXi.

Come prima cosa ci si deve collegare e loggare con le proprie credenziali al sito di VMWare https://my.vmware.com/group/vmware/patch.

Selezionare dalla tendina prodotto ESXi (Embedded and Installable) e nella tendina a fianco la versione di ESXi, nel nostro caso la 7.0.

L’ultimo aggiornamento disponibile alla data della scrittura di questo articolo è VMware-ESXi-7.0U3g-20328353-depot (Build Number: 20328353) con release date 2022-09-01.

Clicchiamo sul pulsante di download per ottenere il file zip dell’aggiornamento.

Dall’interfaccia web del nostro host ESXi, usando il Datastore Browser, copiamo l’archivio in uno qualsiasi dei datastore disponibili (può essere un disco locale, una folder NFS, un VMFS LUN connesso via iSCSI o fibra, oppure un drive USB collegato all’host ESXi).

Sempre dall’interfaccia web, abilitare SSH.

A questo punto connettersi via SSH all’host ESXi usando il seguente comando

				
					ssh root@[ip-host-esxi]
				
			

Attivare la Maintenance Mode usando il seguente comando

				
					esxcli system maintenanceMode set --enable=true
				
			

Per installare la patch eseguire il seguente comando

				
					esxcli software vib update --depot /vmfs/volumes/datastore1/update/VMware-ESXi-7.0U3g-20328353-depot.zip
				
			

Otterremo un outup di questo tipo che ci comunica della corretta installazione

				
					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: VMW_bootbank_atlantic_1.0.3.0-8vmw.703.0.20.19193900, VMW_bootbank_bnxtnet_216.0.50.0-44vmw.703.0.50.20036589, VMW_bootbank_bnxtroce_216.0.58.0-23vmw.703.0.50.20036589, 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_i40en_1.11.1.31-1vmw.703.0.20.19193900, VMW_bootbank_iavmd_2.7.0.1157-2vmw.703.0.20.19193900, VMW_bootbank_icen_1.4.1.20-1vmw.703.0.50.20036589, VMW_bootbank_igbn_1.4.11.2-1vmw.703.0.20.19193900, VMW_bootbank_ionic-en_16.0.0-16vmw.703.0.20.19193900, VMW_bootbank_irdman_1.3.1.22-1vmw.703.0.50.20036589, VMW_bootbank_iser_1.1.0.1-1vmw.703.0.50.20036589, VMW_bootbank_ixgben_1.7.1.35-1vmw.703.0.20.19193900, VMW_bootbank_lpfc_14.0.169.26-5vmw.703.0.50.20036589, VMW_bootbank_lpnic_11.4.62.0-1vmw.703.0.20.19193900, VMW_bootbank_lsi-mr3_7.718.02.00-1vmw.703.0.20.19193900, VMW_bootbank_lsi-msgpt2_20.00.06.00-4vmw.703.0.20.19193900, VMW_bootbank_lsi-msgpt35_19.00.02.00-1vmw.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_nmlx5-core_4.19.16.11-1vmw.703.0.20.19193900, VMW_bootbank_nmlx5-rdma_4.19.16.11-1vmw.703.0.20.19193900, 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_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_qcnic_1.0.15.0-14vmw.703.0.20.19193900, VMW_bootbank_qedentv_3.40.5.53-22vmw.703.0.20.19193900, VMW_bootbank_qedrntv_3.40.5.53-18vmw.703.0.20.19193900, VMW_bootbank_qfle3_1.0.67.0-22vmw.703.0.20.19193900, VMW_bootbank_qfle3f_1.0.51.0-22vmw.703.0.20.19193900, VMW_bootbank_qfle3i_1.0.15.0-15vmw.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_smartpqi_70.4149.0.5000-1vmw.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_vmkusb_0.1-7vmw.703.0.50.20036589, VMW_bootbank_vmw-ahci_2.0.11-1vmw.703.0.20.19193900, 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_elx-esx-libelxima.so_12.0.1200.0-4vmw.703.0.20.19193900, 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_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_native-misc-drivers_7.0.3-0.55.20328353, VMware_bootbank_qlnativefc_4.1.14.0-26vmw.703.0.20.19193900, VMware_bootbank_trx_7.0.3-0.55.20328353, VMware_bootbank_vdfs_7.0.3-0.55.20328353, VMware_bootbank_vmware-esx-esxcli-nvme-plugin_1.2.0.44-1vmw.703.0.20.19193900, 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 Removed: VMW_bootbank_bnxtnet_216.0.50.0-4vmw.700.1.25.16324942, VMW_bootbank_bnxtroce_216.0.58.0-1vmw.700.1.25.16324942, VMW_bootbank_brcmfcoe_12.0.1500.0-1vmw.700.1.25.16324942, VMW_bootbank_brcmnvmefc_12.4.293.2-3vmw.700.1.25.16324942, VMW_bootbank_elxiscsi_12.0.1200.0-1vmw.700.1.25.16324942, VMW_bootbank_elxnet_12.0.1250.0-5vmw.700.1.25.16324942, VMW_bootbank_i40en_1.8.1.16-1vmw.700.1.25.16324942, VMW_bootbank_i40iwn_1.1.2.5-1vmw.700.1.25.16324942, VMW_bootbank_iavmd_2.0.0.1055-3vmw.700.1.25.16324942, VMW_bootbank_igbn_0.1.1.0-6vmw.700.1.25.16324942, VMW_bootbank_iser_1.1.0.0-1vmw.700.1.25.16324942, VMW_bootbank_ixgben_1.7.1.26-1vmw.700.1.25.16324942, VMW_bootbank_lpfc_12.4.293.3-5vmw.700.1.25.16324942, VMW_bootbank_lpnic_11.4.62.0-1vmw.700.1.25.16324942, VMW_bootbank_lsi-mr3_7.712.50.00-1vmw.700.1.25.16324942, VMW_bootbank_lsi-msgpt2_20.00.06.00-2vmw.700.1.25.16324942, VMW_bootbank_lsi-msgpt35_13.00.12.00-1vmw.700.1.25.16324942, VMW_bootbank_lsi-msgpt3_17.00.10.00-1vmw.700.1.25.16324942, VMW_bootbank_mtip32xx-native_3.9.8-1vmw.700.1.25.16324942, VMW_bootbank_ne1000_0.8.4-10vmw.700.1.25.16324942, VMW_bootbank_nenic_1.0.29.0-1vmw.700.1.25.16324942, VMW_bootbank_nfnic_4.0.0.44-1vmw.700.1.25.16324942, VMW_bootbank_nhpsa_2.0.50-1vmw.700.1.25.16324942, VMW_bootbank_nmlx4-core_3.19.16.7-1vmw.700.1.25.16324942, VMW_bootbank_nmlx4-en_3.19.16.7-1vmw.700.1.25.16324942, VMW_bootbank_nmlx4-rdma_3.19.16.7-1vmw.700.1.25.16324942, VMW_bootbank_nmlx5-core_4.19.16.7-1vmw.700.1.25.16324942, VMW_bootbank_nmlx5-rdma_4.19.16.7-1vmw.700.1.25.16324942, VMW_bootbank_ntg3_4.1.4.1-1vmw.700.1.25.16324942, VMW_bootbank_nvme-pcie_1.2.2.14-1vmw.700.1.25.16324942, VMW_bootbank_nvmerdma_1.0.0.0-1vmw.700.1.25.16324942, VMW_bootbank_nvmxnet3-ens_2.0.0.22-1vmw.700.1.25.16324942, VMW_bootbank_nvmxnet3_2.0.0.30-1vmw.700.1.25.16324942, VMW_bootbank_pvscsi_0.1-2vmw.700.1.25.16324942, VMW_bootbank_qcnic_1.0.15.0-8vmw.700.1.25.16324942, VMW_bootbank_qedentv_3.12.1.0-23vmw.700.1.25.16324942, VMW_bootbank_qedrntv_3.12.1.2-12vmw.700.1.25.16324942, VMW_bootbank_qfle3_1.0.66.0-5vmw.700.1.25.16324942, VMW_bootbank_qfle3f_1.0.51.0-12vmw.700.1.25.16324942, VMW_bootbank_qfle3i_1.0.15.0-6vmw.700.1.25.16324942, VMW_bootbank_qflge_1.1.0.11-1vmw.700.1.25.16324942, VMW_bootbank_rste_2.0.2.0088-7vmw.700.1.25.16324942, VMW_bootbank_sfvmk_2.0.0.1004-3vmw.700.1.25.16324942, VMW_bootbank_smartpqi_1.0.4.3011-1vmw.700.1.25.16324942, VMW_bootbank_vmkata_0.1-1vmw.700.1.25.16324942, VMW_bootbank_vmkfcoe_1.0.0.2-1vmw.700.1.25.16324942, VMW_bootbank_vmkusb_0.1-1vmw.700.1.25.16324942, VMW_bootbank_vmw-ahci_1.3.9-1vmw.700.1.25.16324942, VMware_bootbank_cpu-microcode_7.0.0-1.25.16324942, VMware_bootbank_crx_7.0.0-1.25.16324942, VMware_bootbank_elx-esx-libelxima.so_12.0.1200.0-2vmw.700.1.25.16324942, VMware_bootbank_esx-base_7.0.0-1.25.16324942, VMware_bootbank_esx-dvfilter-generic-fastpath_7.0.0-1.25.16324942, VMware_bootbank_esx-ui_1.34.0-15603211, VMware_bootbank_esx-update_7.0.0-1.25.16324942, VMware_bootbank_esx-xserver_7.0.0-1.25.16324942, VMware_bootbank_loadesx_7.0.0-1.25.16324942, VMware_bootbank_lsuv2-hpv2-hpsa-plugin_1.0.0-2vmw.700.1.25.16324942, VMware_bootbank_lsuv2-intelv2-nvme-vmd-plugin_1.0.0-2vmw.700.1.25.16324942, VMware_bootbank_lsuv2-lsiv2-drivers-plugin_1.0.0-2vmw.700.1.25.16324942, VMware_bootbank_lsuv2-nvme-pcie-plugin_1.0.0-1vmw.700.1.25.16324942, VMware_bootbank_lsuv2-oem-dell-plugin_1.0.0-1vmw.700.1.25.16324942, VMware_bootbank_lsuv2-oem-hp-plugin_1.0.0-1vmw.700.1.25.16324942, VMware_bootbank_lsuv2-oem-lenovo-plugin_1.0.0-1vmw.700.1.25.16324942, VMware_bootbank_lsuv2-smartpqiv2-plugin_1.0.0-3vmw.700.1.25.16324942, VMware_bootbank_native-misc-drivers_7.0.0-1.25.16324942, VMware_bootbank_qlnativefc_4.0.1.0-3vmw.700.1.25.16324942, VMware_bootbank_vdfs_7.0.0-1.25.16324942, VMware_bootbank_vmware-esx-esxcli-nvme-plugin_1.2.0.37-1vmw.700.1.25.16324942, VMware_bootbank_vsan_7.0.0-1.25.16324942, VMware_bootbank_vsanhealth_7.0.0-1.25.16324942, VMware_locker_tools-light_11.1.0.16036546-16324942
   VIBs Skipped:
				
			

Eseguiamo a questo punto un reboot del sistema

				
					reboot
				
			

Una volta che il sistema si è riavviato, disabilitare il Maintenance Mode

				
					esxcli system maintenanceMode set --enable=false
				
			

Possiamo controllare la corretta applicazione dell’aggiornamento verificando la versione del sistema

				
					vmware -v
				
			

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.

Most Recent

Come aggiungere e rimuovere utenti su Debian

Debian, così come tutte le altre distribuzioni Linux, è un sistema operativo multiutente. Ogni utente può avere differenti livelli di permission e specifici settaggi per

Partners