方法一.(使用SSH)
1.先將要安裝更新的檔案上傳至Datastore中
2.用vSphere Client登入後,先將該台主機按右鍵改成 Maintenance Mode
3.在主機端(Console端)按F2->Troubleshooting Mode Options->Enable Remote Tech Support (SSH)
4.下載並安裝Putty,打開Putty並連入主機,輸入以下指令
vmware -l (查詢更新後的版本編號)
vmware -v (查詢更新後的狀態)
esxupdate query (查詢詳細更新狀況)
esxupdate --bundle /vmfs/volumes/Datastore名稱/更新檔案名稱.zip update (安裝更新)
<ex>
esxupdate --bundle /vmfs/volumes/datastore1/upgrade-from-esxi4.0-to-4.1-update02-502767.zip update
方法二.(使用vSphere CLI)
1.下載並安裝VMware vSphere CLI
https://my.vmware.com/web/vmware/details/vcli41/ZHcqYmRoaCpiZHRAag==
2.先將要安裝更新的檔案複製到C:\Program Files (x86)\VMware\VMware vSphere CLI\Bin 中(Windows 7範例)
3.打開CLI,並輸入以下指令
cd bin
vihostupdate.pl -i -server 伺服器IP -b 更新檔案名稱.zip
<ex>
vihostupdate.pl -i -server 192.168.0.231 -b upgrade-from-esxi4.0-to-4.1-update02-502767.zip
vihostupdate.pl -i -server 192.168.0.231 -b ESXi410-201206001.zip
參考網址:
http://blogs.yyes.chc.edu.tw/post/2/2889