VMware ESXi 5 Update 更新

来源:互联网 发布:firefox js 编辑:程序博客网 时间:2024/05/03 23:31

VMware 网站发行ESXi 5.0 Update 01 更新套件,以SSH连线登入伺服器后执行更新指令,以前用的「esxupdate」指令现在5.0版已不支援,只好研究「esxcli」这个功能强大的指令,在系统更新时的用法了。

【更新档案下载】
下载2012.03.15发行的更新档ESXi 5.0 Update 01。
cd /vmfs/volumes/datastore
wgethttp://hostupdate.vmware.com/software/VUM/OFFLINE/release-328-20120312-212851/update-from-esxi5.0-5.0_update01.zip更新档大小达563MB,用wget指令直接下载到「/vmfs/volumes/datastore」所在磁区,才有足够空间存放,这样也可省去先在使用者端下载,再上传至伺服器的步骤。【安装前的准备】使用「esxcli software profile get」​​指令,查询记录更新前的版本及更新状态,以便更新后验证对照。

~ # esxcli software profile get
  ESXi-5.0.0-469512-standard
       Name: ESXi-5.0.0-469512-standard
       Vendor: VMware, Inc.
       ......

系统版本讯息相当详细内容很多,最重要的是前面代表目前版本编号是「ESXi-5.0.0 Build 469512」的这几行。【开始系统更新】 开始更新VMware ESXi 5.0时,使用的「esxcli」指令是:

esxcli software vib install --depot 《更新档路径》

或是:

esxcli software vib install -d 《更新档路径》

顺便加上进入「维护模式」的参数,一长串指令就像这样:
esxcli software vib install --maintenance-mode -d/vmfs/volumes/datastore/update-from-esxi5.0-5.0_update01.zip不到一分钟时间,就已显示更新完成,准备重新开机的讯息: InstallationResult   Message: The update completed successfully, but the system needs tobe rebooted for the changes to beeffective.   Reboot Required:true    VIBsInstalled: VMware_bootbank_ehci-ehci -hcd_1.0-3vmw.500.1.11.623860,VMware_bootbank_esx-base_5.0.0-1.11.623860, …… 重新开机后,更新作业才算大功告成。【验证更新结果】 再次使用「esxcli」指令查询更新版本:

~ # esxcli software profile get

(Updated) ESXi-5.0.0-469512-standard
   Name: (Updated)ESXi-5.0.0-469512-standard
   Vendor: localhost
   Creation Time:2012-03-18T11:31:06
   Modification Time:2012-03-19T06: 20:52
   Stateless Ready: True
  Description:      2012-03-18T11:31:06.391853+00:00: The following VIBsare     installed:        net-nx-nic4.0.557-3vmw.500.1.11.623860        scsi-rste 2.0.2.0088-1vmw.500.1.11.623860        net-e10008.0.3.1-2vmw.500.0.7.515841        scsi-mpt2sas06.00.00.00-6vmw.500.1.11.623860       scsi-aacraid1.1.5.1-9vmw.500.1.11.623860        ehci-ehci-hcd 1.0-3vmw.500.1.11.623860        sata-ahci3.0-6vmw.500.1.11.623860        net-e1000e1.1.2-3vmw.500.1.11.623860        scsi-megaraid-sas5.34-1vmw.500.1.11.623860        esx-base5.0.0-1.11.623860        misc-drivers5.0.0-1.11.623860        net-be2net4.0.88.0-1vmw.500.0.7.515841        sata-ata-piix2.12-4vmw.500.1.11.623860        tools-light 5.0.0-1.11.623860 …… 记录的更新内容多了好几行,可看出许多「Build623860」的编号数字,已和更新前有所不同。 接下来退出「维护模式」: vim-cmdhostsvc/maintenance_mode_exit 系统恢复正常!'vim.Task:haTask-ha-host-vim.HostSystem.exitMaintenanceMode-172868xxx'「维护模式」状态的变更,也可用VMware vSphere Client,图形界面的方式登入ESXi Server设定: VMwarevSphere Client > Inventory > Host> Exit Maintenance Mode …… 【登入主机恢复正常运作】 更新后执行VMwarevSphere Client,或许这次更新幅度不大,未如往常要求管理程式版本一致,才能登入ESXi Server。无论如何,既然有了新版的VMware vSphere Client 5.0 Update 1就下载吧!安装更新后再重新启动所有VirtualMachine,恢复伺服器正常运作。 如果觉得用指令作Patch更新很麻烦的话,也可下载完整的VMware ESXi 5.0Installable Update 1安装光碟iso档。 烧录成开机光碟放入ESXiServer,开机后依画面指示选择执行「Upgrade」,也能完成系统更新。只是,这样势必无法用远端控制,非得进机房在主机旁才能动手。如此一来,方便性反而不如远端登入的指令操作模式了。【相关网站】DownloadVMware ESXi Patches 下载VMware ESXi 5.0 Installable Update 1 VMware esxcli Commands
VMware <wbr>ESXi <wbr>5 <wbr>Update <wbr>更新

VMware <wbr>ESXi <wbr>5 <wbr>Update <wbr>更新

原创粉丝点击