VMWare ESXi 5.0 升級 5.5-maintenance mode

2014-08-25 VMware

繼上篇 VMware ESXi 5.0 升級 5.5 使用 ISO 光碟升級後,此次基於懶惰原則不想到機房進行更新,所以使用可以遠端進行的 maintenance mode 維護模式來進行更新。

 

setp .1 到 VMWare 下載所需的 Patch Release ,必須下載 update 版的,如  update-from-esxi5.5-5.5_update01

 

setp.2 關閉所有 VM 並進入維護模式

~# vim-cmd hostsvc/maintenance_mode_enter
'vim.Task:haTask-ha-host-vim.HostSystem.enterMaintenanceMode-52468113423'

 

setp.3 用 esxcli 指令來進行升級,升級的選項可分為 local、HTTP

 

Local

使用 local 必須將 Patch 下載到本機並執行以下命令

# esxcli software vib install -d "/vmfs/volumes/Datastore/Patch/update-from-esxi5.5-5.5_update01.zip"

 

HTTP (不建議 )

使用 HTTP 可直接連上 internet 下載更新包並直接更新,不建議使用這樣的更新方式,因為必須受到網路環境的限制以及通常 ESXi Host 都不會對外使用。

# esxcli software vib install -v https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/esx/vmw/vib20/tools-light/VMware_locker_tools-light_5.0.0-0.7.515841.vib

 

更新完成

Installation Result
   Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
   Reboot Required: true

 

setp.4 離開維護模式並重啟 ESXi

# vim-cmd hostsvc/maintenance_mode_exit
# reboot

 

setp.5 檢查版本

~ # vmware -l
VMware ESXi 5.5.0 Update 1

 

 

 

 

debug:

Q1. Why go to the maintenance mode , but show fail message 「Enter maintenance mode mode failed」

Ans: Please close all VMs , with enter “maintenance mode” again.

 

Q2. update error message

[MetadataDownloadError] Could not download from depot at zip “Patch.zip” , Please refer to the log file for more details.

Ans: Please get full Path by Patchfile.

# esxcli software vib install -d "/vmfs/volumes/Datastore/Patch/update-from-esxi5.5-5.5_update01.zip"

 

 

參考資料:

Installing patches on an ESXi 5.x host from the command line (2008939)

給 Mr. 沙先生一點建議

彙整

分類

展開全部 | 收合全部

License

訂閱 Mr. 沙先生 的文章

輸入你的 email 用於訂閱