ESXi: Upgrade an standalone ESXi Host from 6.0 to 6.7 from command line


this post describes an ESXi Host Upgrade from Version 6.0 to 6.7 with an offline (bundle) zip file. The procedure for other version should be the same.

I used the image provided by the “Vendor”. First of all , download the image form the Vendors Website and copy the VMware/Vendor image via ssh to the host, for example to esxdatastore_0.

If possible move all VMs to another host or resume or shutdown all VMs.
Use the gui or vim-cmd to suspend or power down all VMs on the Host

~ # vim-cmd vmsvc/getallvms
Vmid                            Name
1                               VM1
3                               VM2
4                               vCenter
~ #  vim-cmd vmsvc/power.suspend 1
~ #  vim-cmd vmsvc/power.suspend 3
~ #  vim-cmd vmsvc/power.suspend 4
~ #  vim-cmd vmsvc/power.getstate 4
Retrieved runtime info

Set the host into maintenance and check it.

vim-cmd hostsvc/maintenance_mode_enter
vim-cmd /hostsvc/hostsummary | grep inMaintenanceMode

If you use an Vendor OEM offline bundle check if the acceptance mode of the Host is equal to the requesting mode of the image.
Get acceptance level of the new image

esxcli software sources profile list -d /vmfs/volumes/esxdatastore_0/
Name                                           Vendor   Acceptance Level 
---------------------------------------------  -------  ---------------- 
Fujitsu-VMvisor-Installer-6.7-14320388-v480-1  Fujitsu  PartnerSupported

And check the host setting

esxcli software acceptance get

List the profile name of the image. The profile name is required for the update command.

esxcli software sources profile list -d /vmfs/volumes/esxdatastore_0/
Name                                           Vendor   Acceptance Level
---------------------------------------------  -------  ----------------
MyVendor-VMvisor-Installer-6.7-14320388        MyVendor PartnerSupported

And update the host. Note: You can add the –dry-run switch to run a test without installing anything.

esxcli software profile update -d /vmfs/volumes/esxdatastore_0/ --profile=MyVendor-VMvisor-Installer-6.7-14320388
Update Result
   Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
   Reboot Required: true

reboot the host.
After the system is up, update the host to the latest version


Reference: VMware Upgrade guide

Advertisment to support

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.