fachinformatiker-wiki

it's easy when it's here

User Tools

Site Tools


vmware:esxi:update

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
vmware:esxi:update [2023/08/17 16:37] – [Patches] gsysvmware:esxi:update [2025/04/09 16:15] (current) – [Memory Error] gsys
Line 1: Line 1:
 ====== ESXi Update Installation ===== ====== ESXi Update Installation =====
 +
 +<code>
 +vmware -v                                     # show esxi build number
 +</code>
  
 ===== Patches ===== ===== Patches =====
Line 20: Line 24:
 check installed vibs check installed vibs
 <code> <code>
-esxcli software vib lis+esxcli software vib list
 </code> </code>
  
Line 26: Line 30:
  
 <code> <code>
 +esxcli software vib update -d /vmfs/volumes/6177dced-35509914-62a6-c4346ba93614/patches/VMware-Tools-12.5.1-core-offline-depot-ESXi-all-24649672.zip
 esxcli software vib update -d /vmfs/volumes/6177dced-35509914-62a6-c4346ba93614/patches/ESXi650-202202001.zip > /var/log/sit-patch-ESXi650-202202001.log 2&>        # stable ssh connection esxcli software vib update -d /vmfs/volumes/6177dced-35509914-62a6-c4346ba93614/patches/ESXi650-202202001.zip > /var/log/sit-patch-ESXi650-202202001.log 2&>        # stable ssh connection
 nohup esxcli software vib update -d /vmfs/volumes/6177dced-35509914-62a6-c4346ba93614/patches/ESXi650-202202001.zip > /var/log/sit-patch-ESXi650-202202001.log 2&>  # unstable ssh connection nohup esxcli software vib update -d /vmfs/volumes/6177dced-35509914-62a6-c4346ba93614/patches/ESXi650-202202001.zip > /var/log/sit-patch-ESXi650-202202001.log 2&>  # unstable ssh connection
Line 74: Line 79:
  
 check image profiles in depot check image profiles in depot
 +
 +**Offline**
 <code> <code>
 esxcli software sources profile list --depot=/vmfs/volumes/602b6b5a-37187eec-e182-bc97e1e50d80/update/VMware-ESXi-7.0U3n-21930508-depot.zip esxcli software sources profile list --depot=/vmfs/volumes/602b6b5a-37187eec-e182-bc97e1e50d80/update/VMware-ESXi-7.0U3n-21930508-depot.zip
 +</code>
 +
 +**Online**
 +<code>
 +esxcli network firewall ruleset set -e true -r httpClient
 +esxcli software sources profile list -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
 +esxcli software sources profile list -d https://hostupdate.broadcom.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
 </code> </code>
  
 Apply updates/upgrades Apply updates/upgrades
  
 +**Offline**
 <code> <code>
-esxcli software profile update --depot=/vmfs/volumes/602b6b5a-37187eec-e182-bc97e1e50d80/update/VMware-ESXi-7.0U3n-21930508-depot.zip --profile=ESXi-7.0U3n-21930508-standard > /var/log/sit-update-ESXi-7.0U3n-21930508.log 2&>          # stable ssh connection+esxcli software profile update --depot=/vmfs/volumes/602b6b5a-37187eec-e182-bc97e1e50d80/update/VMware-ESXi-7.0U3n-21930508-depot.zip --profile=ESXi-7.0U3n-21930508-standard > /var/log/sit-update-ESXi-7.0U3n-21930508.log 2&>        # stable ssh connection
 nohup esxcli software profile update --depot=/vmfs/volumes/602b6b5a-37187eec-e182-bc97e1e50d80/update/VMware-ESXi-7.0U3n-21930508-depot.zip --profile=ESXi-7.0U3n-21930508-standard > /var/log/sit-update-ESXi-7.0U3n-21930508.log 2&>  # unstable ssh connection nohup esxcli software profile update --depot=/vmfs/volumes/602b6b5a-37187eec-e182-bc97e1e50d80/update/VMware-ESXi-7.0U3n-21930508-depot.zip --profile=ESXi-7.0U3n-21930508-standard > /var/log/sit-update-ESXi-7.0U3n-21930508.log 2&>  # unstable ssh connection
 +</code>
 +
 +**Online**
 +<code>
 +#dry run
 +esxcli software profile update --dry-run -p ESXi-8.0U3d-24585383-standard -d https://hostupdate.broadcom.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
 +
 +esxcli software profile update -p ESXi-8.0U3d-24585383-standard -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
 +esxcli software profile update -p ESXi-8.0U3d-24585383-standard -d https://hostupdate.broadcom.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
 </code> </code>
  
 reboot after all patches are installed reboot after all patches are installed
 <code> <code>
-reboot+esxcli system shutdown reboot -r "Installed patches"
 </code> </code>
  
Line 97: Line 121:
 Exit maintenance mode Exit maintenance mode
 <code> <code>
 +esxcli network firewall ruleset set -e false -r httpClient
 vim-cmd hostsvc/maintenance_mode_exit vim-cmd hostsvc/maintenance_mode_exit
 </code> </code>
Line 105: Line 130:
 tail -f /var/log/sit-update-ESXi-7.0U3n-21930508.log tail -f /var/log/sit-update-ESXi-7.0U3n-21930508.log
 </code> </code>
 +
 +==== Memory Error ====
 +
 +Error:
 +<code>
 +[user@ESXi:~] esxcli software sources profile list -d https://hostupdate.broadcom.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml
 + [MemoryError]
 + Please refer to the log file for more details.
 +</code>
 +
 +Workaround:
 +<code>
 +esxcli system settings advanced set -o /VisorFS/VisorFSPristineTardisk -i 0
 +cp /usr/lib/vmware/esxcli-software /usr/lib/vmware/esxcli-software.bak
 +sed -i 's/mem=300/mem=500/g' /usr/lib/vmware/esxcli-software.bak
 +mv /usr/lib/vmware/esxcli-software.bak /usr/lib/vmware/esxcli-software -f
 +esxcli system settings advanced set -o /VisorFS/VisorFSPristineTardisk -i 1
 +</code>
 +[[https://williamlam.com/2024/03/quick-tip-using-esxcli-to-upgrade-esxi-8-x-throws-memoryerror-or-got-no-data-from-process.html|Source]]
vmware/esxi/update.1692283064.txt.gz · Last modified: 2024/02/17 19:03 (external edit)