查看完整版本: [轉貼]VMware ESXi 5 Update 更新

chun 2012-6-25 15:19

[轉貼]VMware ESXi 5 Update 更新

<a href="http://blogs.yyes.chc.edu.tw/post/2/865">http://blogs.yyes.chc.edu.tw/post/2/865</a>
<div><div style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); ">VMware 網站發行 ESXi 5.0 Update 01 更新套件,以 SSH 連線登入伺服器後執行更新指令,以前用的「esxupdate」指令現在 5.0 版已不支援,只好研究「esxcli」這個功能強大的指令,在系統更新時的用法了。</div><br style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); "><span style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); ">【更新檔案下載】</span><br style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); "><span style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); ">下載 2012.03.15 發行的更新檔 ESXi 5.0 Update 01。</span><br style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); "><span style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); ">cd /vmfs/volumes/datastore</span><br style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); "><span style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); ">wget http://hostupdate.vmware.com/software/VUM/OFFLINE/release-328-20120312-212851/update-from-esxi5.0-5.0_update01.zip</span><br style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); "><br style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); "><span style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); ">更新檔大小達 563MB,用 wget 指令直接下載到「/vmfs/volumes/datastore」所在磁區,才有足夠空間存放,這樣也可省去先在使用者端下載,再上傳至伺服器的步驟。</span><br style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); "><br style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); "><span style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); ">【安裝前的準備】</span><br style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); "><span style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); ">使用「esxcli software profile get」指令,查詢記錄更新前的版本及更新狀態,以便更新後驗證對照。</span><br style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); "><br style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); "><table bgcolor="#444444" border="0" cellpadding="3" cellspacing="0" class="zeroBorder" height="97" id="tx-o" width="370" style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; text-align: left; "><tbody><tr><td width="100%"><span style="color: rgb(255, 255, 255); "> ~ #&nbsp;</span><span style="color: rgb(255, 255, 255); ">esxcli software profile get&nbsp;<br>&nbsp;&nbsp; ESXi-5.0.0-469512-standard&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name: ESXi-5.0.0-469512-standard<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Vendor: VMware, Inc.</span><br style="color: rgb(255, 255, 255); "><span style="color: rgb(255, 255, 255); ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ......</span></td></tr></tbody></table><br style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); "><span style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); ">系統版本訊息相當詳細內容很多,最重要的是前面代表目前版本編號是「ESXi-5.0.0 Build 469512」的這幾行。</span><br style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); "><br style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); "><span style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); ">【開始系統更新】</span><br style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); "><span style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); ">開始更新 VMware ESXi 5.0 時,使用的「esxcli」指令是:</span><br style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); "><div style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); ">esxcli software vib install --depot 《更新檔路徑》</div><span style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); ">或是:</span><br style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); "><div style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); ">esxcli software vib install -d 《更新檔路徑》</div><br style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); "><div style="color: rgb(56, 46, 31); font-family: 'Lucida Grande', Arial, sans-serif; font-size: 12px; line-height: 21px; background-color: rgb(243, 243, 235); ">順便加上進入「維護模式」的參數,一長串指令就像這樣:<br>esxcli software vib install --maintenance-mode -d /vmfs/volumes/datastore/update-from-esxi5.0-5.0_update01.zip&nbsp;<br><br>不到一分鐘時間,就已顯示更新完成,準備重新開機的訊息:<br>Installation Result<br>&nbsp;&nbsp; Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.<br>&nbsp;&nbsp; Reboot Required: true<br>&nbsp;&nbsp; VIBs Installed: VMware_bootbank_ehci-ehci-hcd_1.0-3vmw.500.1.11.623860, VMware_bootbank_esx-base_5.0.0-1.11.623860, ……<br><br>重新開機後,更新作業才算大功告成。<br><br>【驗證更新結果】<br>再次使用「esxcli」指令查詢更新版本:<br><br><table bgcolor="#444444" border="0" cellpadding="3" cellspacing="0" class="zeroBorder" height="39" id="nofa" width="370"><tbody><tr><td width="100%"><span style="color: rgb(255, 255, 255); "> ~ #&nbsp;</span><span style="color: rgb(255, 255, 255); ">esxcli software profile get</span></td></tr></tbody></table><br>(Updated) ESXi-5.0.0-469512-standard<br>&nbsp;&nbsp; Name: (Updated) ESXi-5.0.0-469512-standard<br>&nbsp;&nbsp; Vendor: localhost<br>&nbsp;&nbsp; Creation Time: 2012-03-18T11:31:06<br>&nbsp;&nbsp; Modification Time: 2012-03-19T06:20:52<br>&nbsp;&nbsp; Stateless Ready: True<br>&nbsp;&nbsp; Description:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2012-03-18T11:31:06.391853+00:00: The following VIBs are<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; installed:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; net-nx-nic&nbsp;&nbsp;&nbsp; 4.0.557-3vmw.500.1.11.623860<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scsi-rste&nbsp;&nbsp;&nbsp;&nbsp; 2.0.2.0088-1vmw.500.1.11.623860<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; net-e1000&nbsp;&nbsp;&nbsp;&nbsp; 8.0.3.1-2vmw.500.0.7.515841<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scsi-mpt2sas&nbsp; 06.00.00.00-6vmw.500.1.11.623860<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scsi-aacraid&nbsp; 1.1.5.1-9vmw.500.1.11.623860<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ehci-ehci-hcd 1.0-3vmw.500.1.11.623860<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sata-ahci&nbsp;&nbsp;&nbsp;&nbsp; 3.0-6vmw.500.1.11.623860<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; net-e1000e&nbsp;&nbsp;&nbsp; 1.1.2-3vmw.500.1.11.623860<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scsi-megaraid-sas&nbsp;&nbsp;&nbsp;&nbsp; 5.34-1vmw.500.1.11.623860<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; esx-base&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5.0.0-1.11.623860<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; misc-drivers&nbsp; 5.0.0-1.11.623860<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; net-be2net&nbsp;&nbsp;&nbsp; 4.0.88.0-1vmw.500.0.7.515841<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sata-ata-piix 2.12-4vmw.500.1.11.623860<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tools-light&nbsp;&nbsp; 5.0.0-1.11.623860<br>……&nbsp;<br><br>記錄的更新內容多了好幾行,可看出許多「Build 623860」的編號數字,已和更新前有所不同。<br><br>接下來退出「維護模式」:<br>vim-cmd hostsvc/maintenance_mode_exit<br><br>系統恢復正常!<br>'vim.Task:haTask-ha-host-vim.HostSystem.exitMaintenanceMode-172868xxx'<br><br><img src="http://lh5.ggpht.com/_GDne0OPpevo/TRGq0AcXUDI/AAAAAAAACUM/mJ6TzvPfeMs/VMware%20vSphere%20Client%201.jpg" width="350"><br><br>「維護模式」狀態的變更,也可用 VMware vSphere Client,圖形界面的方式登入 ESXi Server 設定:<br>VMware vSphere Client &gt; Inventory &gt; Host &gt; Exit Maintenance Mode ……<br><br>【登入主機恢復正常運作】<br>更新後執行 VMware vSphere Client,或許這次更新幅度不大,未如往常要求管理程式版本一致,才能登入 ESXi Server。<br>無論如何,既然有了新版的 VMware vSphere Client 5.0 Update 1 就<a href="http://vsphereclient.vmware.com/vsphereclient/6/2/3/3/7/3/VMware-viclient-all-5.0.0-623373.exe" style="color: rgb(187, 111, 2); ">下載</a>吧!安裝更新後再重新啟動所有 Virtual Machine,恢復伺服器正常運作。<br><br>如果覺得用指令作 Patch 更新很麻煩的話,也可下載完整的 VMware ESXi 5.0 Installable Update 1 安裝光碟 iso 檔。<br><br><img src="https://lh3.googleusercontent.com/-0PpPtpqC3nE/T3wcFD_bhOI/AAAAAAAADYw/cmD4qf9Zj5M/s520/VMware+vSphere+5+Upgrade.jpg" width="450"><br><br>燒錄成開機光碟放入 ESXi Server,開機後依畫面指示選擇執行「Upgrade」,也能完成系統更新。只是,這樣勢必無法用遠端控制,非得進機房在主機旁才能動手。如此一來,方便性反而不如遠端登入的指令操作模式了。<br></div></div>
頁: [1]
查看完整版本: [轉貼]VMware ESXi 5 Update 更新