Aktualizace ESXi 6 na 7

Aktualizace přes terminál -> esx -> system -> service => zapnout SSH-tsm a TSM

The online method for ESXi upgrade

When using the online method, you should configure internet access for the ESXi host that you want to upgrade and place the host in maintenance mode manually.

List the current image profile and contained packages:

esxcli software profile get

Enter ESXi to the maintenance mode:

vim-cmd /hostsvc/maintenance_mode_enter or esxcli system maintenanceMode set –enable true

Allow http traffic by editing settings in the built-in firewall on the ESXi host:

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 | grep ESXi-7.0.0

Let’s use this profile:
ESXi-7.0.0-15843807-standard

TEST:

esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-7.0.0-15843807-standard –dry-run

Run the update process:

esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-7.0.0-15843807-standard

reboot

vim-cmd /hostsvc/maintenance_mode_enter or esxcli system maintenanceMode set –enable false

Chyby

málo místa -> zapnout SWAP -> system -> manage -> swap -> všechno ano a vybrat datastore

málo místa 2 -> stáhnout balíček ručně a samostatně nainstalovat
chyba: update failed:  [InstallationError]
[Errno 28] No space left on device vibs = VMware_locker_tools-light_11.0.5.15389592-15843807

řešení:

najít nejnovější: (anebo ten z té chyby …) esxcli software sources vib list –depot=https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml | grep tools-light | sort

wget http://hostupdate.vmware.com/software/VUM/PRODUCTION/main/esx/vmw/vib20/tools-light/VMware_locker_tools-light_11.0.5.15389592-15843807.vib

esxcli software vib install -f -v /tmp/VMware_locker_tools-light_11.0.5.15389592-15843807.vib

https://nullsec.us/esxi-update-fails-with/