vCenter Server Appliance(以下、vCSA) 6.0のパッチがリリースされたので適用した手順のメモ。
手順はドキュメントを参考に。
vSphere 6.0 Documentation Center
最初に、vCSAのISOイメージをVMwareのサイトからダウンロードしておく。
DVDなどに焼く必要は無い。
どのパッチをダウンロードすべきかは、ドキュメントの以下を参考に。
VMware では、パッチが含まれた 2 つの ISO イメージを提供しています。一方の ISO イメージには、アプライアンスにインストールされるすべての VMware パッケージのパッチが含まれています。もう一方には、サードパーティ製パッケージのみが含まれています。
今回は、全てのパッチが含まれている VC-6.0.0b-Appliance を適用。
VMware KB: Patch for vCenter Server Appliance 6.0
vCSAのアプライアンスシェルへSSHでログイン。以降は、コマンドでアップデートを行う。
パッチ適用前のパッケージリストの確認。
Command> software-packages list --history [2015-07-11T07:54:34.190] : 'Name' 'Install Date'
vSphereClientで、VCSAが動作しているESXiホストへ接続し、vCSAの仮想マシンにISOイメージをマウントする。
(vCSAを後で再起動する事になるので、vCenterではなくESXiホストに接続しておく)
ISOイメージに含まれるパッチをステージングする。同意を要求されたら yes を入れる。
Command> software-packages stage --iso [2015-07-11T08:00:35.190] : Staging software update packages from ISO [2015-07-11T08:00:35.190] : ISO mounted successfully [2015-07-11 08:00:35,744] : Running pre-stage script..... [2015-07-11T08:00:36.190] : Verifying staging area [2015-07-11T08:00:36.190] : Validating software update payload [2015-07-11T08:00:36.190] : Validation successful ・・・省略 States of America, Attention: Legal Department.Do you accept the terms and conditions? [yes/no] yes [2015-07-11 08:01:25,943] : Processing software packages in update payload 53/53 [2015-07-11T08:02:38.190] : ISO unmounted successfully [2015-07-11T08:02:38.190] : (51) packages staged successfully [2015-07-11T08:02:38.190] : Staging process completed successfully
ステージングされたパッチの確認。
Command> software-packages list --staged [2015-07-11T08:03:11.190] : category: security kb: http://kb.vmware.com/2115252 vendor: VMware, Inc. name: VC-6.0.0b-Appliance-FP tags: [u''] productname: VMware vCenter Server Appliance releasedate: June 16, 2015 version: 6.0.0.5120 buildnumber: 2800573 rebootrequired: True summary: Patch for VMware vCenter Server Appliance 6.0 severity: critical
※上記の kb に記載されているURLは誤っていてアクセスしても not found になる。正しくは「http://kb.vmware.com/kb/2115252」だと思われる。
ステージングされたパッチの適用。
Command> software-packages install [2015-07-11 08:03:28,876] : Running test transaction .... [2015-07-11 08:03:31,886] : Running pre-install script..... [2015-07-11T08:04:59.190] : Services stopped. [2015-07-11 08:04:59,136] : Upgrading software packages .... [2015-07-11 08:07:37,461] : Running post-install script..... [2015-07-11T08:07:41.190] : Packages upgraded successfully, Reboot is required to complete the installation.
vCSAを再起動する。引数に再起動の理由を入れる。
Command> shutdown reboot -r 'patch' Broadcast message from root (pts/0) (Thu Jul 11 08:09:10 2015): patch The system is going down for reboot NOW!
パッチ適用後のパッケージリストの確認。
Command> software-packages list --history [2015-07-11T08:16:03.190] : 'Name' 'Install Date' VC-6.0.0b-Appliance-FP 2015-07-11 08:07:37