ESXアップデートメモ

UPDATE2にしようしようと忘れていた。

ので,ちゃっちゃとやった。
参考)ESXi 5.x/6.x ホストにコマンド ラインからパッチをインストールする (2092895)
my vmwareからパッチをDL。

ESXへSSHで接続。
チャレンジレスポンスでやらんと認証うまくいかない。

・現状チェック
esxcli system version get
   Product: VMware ESXi
   Version: 6.0.0
   Build: Releasebuild-2494585
   Update: 0
   Patch: 0

・profile確認
# esxcli software profile get
ESXi-6.0.0-2494585-standard
   Name: ESXi-6.0.0-2494585-standard
   Vendor: VMware, Inc.
   Creation Time: 2015-05-13T15:47:49
   Modification Time: 2015-05-13T15:49:08
   Stateless Ready: True

   Description:

・メンテナンスモード移行
vim-cmd hostsvc/maintenance_mode_enter

・パッチ中身確認
# software sources profile list
-d /vmfs/volumes/datastore1/patch/update-from-esxi6.0-6.0_update02.zip
Name                              Vendor        Acceptance Level
——————————–  ————  —————-
ESXi-6.0.0-20160301001s-no-tools  VMware, Inc.  PartnerSupported
ESXi-6.0.0-20160302001-standard   VMware, Inc.  PartnerSupported
ESXi-6.0.0-20160301001s-standard  VMware, Inc.  PartnerSupported
ESXi-6.0.0-20160302001-no-tools   VMware, Inc.  PartnerSupported

・テスト
 esxcli software profile update –dry-run
-d /vmfs/volumes/datastore1/patch/update-from-esxi6.0-6.0_update02.zip
-p ESXi-6.0.0-20160302001-standard

・Go!
 esxcli software profile update
-d /vmfs/volumes/datastore1/patch/update-from-esxi6.0-6.0_update02.zip
-p ESXi-6.0.0-20160302001-standard

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

   Reboot Required: true

・再起動
# reboot

・確認
# esxcli system version get
   Product: VMware ESXi
   Version: 6.0.0
   Build: Releasebuild-3620759
   Update: 2

   Patch: 34
esxcli software profile get
(Updated) ESXi-6.0.0-2494585-standard
   Name: (Updated) ESXi-6.0.0-2494585-standard
   Vendor: esxhome
   Creation Time: 2016-07-01T00:18:32
   Modification Time: 2016-07-01T00:19:18
   Stateless Ready: True
   Description:

・メンテナンスモードExit
vim-cmd hostsvc/maintenance_mode_exit

以上。