2022年1月5日 星期三

VMWare | 升級 Upgrade ESXi 6.7 to 7與解決DependencyError問題

 er

這邊介紹用command line升級ESXi,步驟蠻簡單的,隨意看一下吧。


步驟二:下載ESXi Offline bundel


如下圖,不是下載ISO,是要下載Offline bundel。


步驟二:用esxcli升級


執行兩行指令就可以升級,成功後就reboot host查看是否成功。

# 先查詢bundle內容的Name,之後指令需要用到,這邊顯示是ESXi-7.0U3c-19035710-standard

[root@localhost:~]
esxcli software  sources profile list -d   /vmfs/volumes/datastore1/VMware-ESXi-7.0U3c-19035710-depot.zip

Name                           Vendor        Acceptance Level  Creation Time        Modification Time

-----------------------------  ------------  ----------------  -------------------  -------------------

ESXi-7.0U3c-19035710-standard  VMware, Inc.  PartnerSupported  2021-12-14T00:00:00  2021-12-14T00:00:00

ESXi-7.0U3c-19035710-no-tools  VMware, Inc.  PartnerSupported  2021-12-14T00:00:00  2021-12-08T22:10:12

# 輸入下面指令升級-p後面的就帶入上面查到的名稱

[root@localhost:~] esxcli software profile update -d /vmfs/volumes/datastore1/VMware-ESXi-7.0U3c-19035710-depot.zip -p ESXi-7.0U3c-19035710-stand

# 這時候有看到error訊息,因為6.5版本裡面有個driver是我自己安裝的,並不是官方給的

 [DependencyError]

 VIB Realtek_bootbank_net55-r8125_r8125-9.003.05 requires com.vmware.driverAPI-9.2.2.0, but the requirement cannot be satisfied within the ImageProfile.

 VIB Realtek_bootbank_net55-r8125_r8125-9.003.05 requires vmkapi_2_2_0_0, but the requirement cannot be satisfied within the ImageProfile.

 Please refer to the log file for more details.

# 重新下加入-f 忽略掉錯誤升級,下面也看到成功升級的訊息

[root@localhost:~] esxcli software profile update -d -f /vmfs/volumes/datastore1/VMware-ESXi-7.0U3c-19035710-depot.zip -p ESXi-7.0U3c-19035710-stand 

Update Result

   Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.

   Reboot Required: true

   VIBs Installed: VMW_bootbank_atlantic_1.0.3.0-8vmw.703.0.20.19035710, VMW_bootbank_bnxtnet_216.0.50.0-41vmw.703.0.20.19035710, VMW_bootbank_bnxtroce_216.0.58.0-23vmw.703.0.20.19035710, VMW_bootbank_brcmfcoe_12.0.1500.2-3vmw.703.0.20.19035710, VMW_bootbank_elxiscsi_12.0.1200.0-9vmw.703.0.20.19035710, VMW_bootbank_elxnet_12.0.1250.0-5vmw.703.0.20.19035710, VMW_bootbank_i40en_1.11.1.31-1vmw.703.0.20.19035710, VMW_bootbank_iavmd_2.7.0.1157-2vmw.703.0.20.19035710, VMW_bootbank_icen_1.4.1.7-1vmw.703.0.20.19035710

Step 3: Disable Swap

沒有留言: