↓ここを見ながらやってみる
準備
my vmware(https://my.vmware.com/group/vmware/home) からZIPファイルをダウンロードしてESXiホストへ転送する
$ scp -p update-from-esxi6.0-6.0_update02.zip root@vmhost:/vmfs/volumes/datastore/update/.
5.5→6.0へのアップデート
VM全部落としてメンテナンスモードへ
まずはバージョンの確認
# esxcli system version get Product: VMware ESXi Version: 5.5.0 Build: Releasebuild-1331820 Update: 0
アップデート
# esxcli software profile update -p ESXi-6.0.0-20160302001-standard -d update-from-esxi6.0-6.0_update02.zip [MetadataDownloadError] Could not download from depot at zip:/var/log/vmware/update-from-esxi6.0-6.0_update02.zip?index.xml, skipping (('zip:/var/log/vmware/update-from-esxi6.0-6.0_update02.zip?index.xml', '', "Error extracting index.xml from /var/log/vmware/update-from-esxi6.0-6.0_update02.zip: [Errno 2] No such file or directory: '/var/log/vmware/update-from-esxi6.0-6.0_update02.zip'")) url = zip:/var/log/vmware/update-from-esxi6.0-6.0_update02.zip?index.xml Please refer to the log file for more details.
よくわからんエラーがでたが、どうやら esxcli コマンドには絶対パスを与える必要があるらしい。
ついでに最新らしいupdate03でやってみることにした。
# esxcli software sources profile list -d /vmfs/volumes/datastore/update/update-from-esxi6.0-6.0_update03.zip Name Vendor Acceptance Level -------------------------------- ------------ ---------------- ESXi-6.0.0-20170202001-standard VMware, Inc. PartnerSupported ESXi-6.0.0-20170201001s-standard VMware, Inc. PartnerSupported ESXi-6.0.0-20170201001s-no-tools VMware, Inc. PartnerSupported ESXi-6.0.0-20170202001-no-tools VMware, Inc. PartnerSupported # esxcli software profile update -p ESXi-6.0.0-20170202001-standard -d /vmfs/volumes/datastore/update/update-from-esxi6.0-6.0_update03.zip 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: VMWARE_bootbank_mtip32xx-native_3.8.5-1vmw.600.0.0.2494585, ...(snip)..., VMware_locker_tools-light_6.0.0-3.57.5050593 VIBs Removed: VMware_bootbank_ata-pata-amd_0.3.10-3vmw.550.0.0.1331820, ...(snip)..., VMware_locker_tools-light_5.5.0-0.0.1331820 VIBs Skipped:
5分位で適用できた!
# esxcli system version get Product: VMware ESXi Version: 6.0.0 Build: Releasebuild-5050593 Update: 3 Patch: 57
ここで、一応仮想マシンが使えるか確認する。 VMFSはもともと5だったので特になにもせずにそのまま。
6.0→6.5へのアップデート
# esxcli software sources profile list -d /vmfs/volumes/datastore/update/ESXi650-201704001.zip Name Vendor Acceptance Level ------------------------------- ------------ ---------------- ESXi-6.5.0-20170404001-standard VMware, Inc. PartnerSupported ESXi-6.5.0-20170404001-no-tools VMware, Inc. PartnerSupported # esxcli software profile update -p ESXi-6.5.0-20170404001-standard -d /vmfs/volumes/datastore/update/ESXi650-201704001.zip 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_ata-libata-92_3.00.9.2-16vmw.650.0.0.4564106, ...(snip)..., VMware_locker_tools-light_6.5.0-0.0.4564106 VIBs Removed: VMWARE_bootbank_mtip32xx-native_3.8.5-1vmw.600.0.0.2494585, ...(snip)..., VMware_bootbank_xhci-xhci_1.0-3vmw.600.2.52.4600944, VMware_locker_tools-light_6.0.0-3.57.5050593 VIBs Skipped: VMW_bootbank_qlnativefc_2.1.30.0-11vmw.650.0.0.4564106, VMW_bootbank_sata-ahci_3.0-22vmw.650.0.0.4564106, VMware_bootbank_lsu-hp-hpsa-plugin_2.0.0-3vmw.650.0.0.4564106 # esxcli system version get Product: VMware ESXi Version: 6.5.0 Build: Releasebuild-5310538 Update: 0 Patch: 19
今度はいとも簡単にできたー。
データストアについてはVMFS5からVMFS6へのアップデートは出来ないらしいので取り敢えずそのままです。