8/12 になると VM が起動できなくなるというバグがあったので、パッチ適用。VMware ESXi3 update 2 パッチ適用 - ゆういちろうのひとりごと で書かれているまんまですが、一応自分でもメモ。
ESX Server 3i Installable Setup Guide(PDF)
Remote CLI でコンフィグファイルバックアップ → USBメモリ更新 → レストア、という手順でやります。
Linux 版の Remote CLI パッケージをダウンロードしてインストール。
$ tar zxvf VMware-RCLI-3.5.0-104314.i386.tar.gz $ cd vmware-rcli-distrib $ sudo ./vmware-install.pl
vicfg-cfgbackup で設定をバックアップ。
$ vicfg-cfgbackup --server [VMware ESXi ホストの IPアドレス] --save vmware.config Enter username: root Enter password: Saving firmware configuration to vmware.config ...
動いている VM と、host をシャットダウン。
USB メモリは VMware ESXi を USB メモリにインストールして HP ML115 で起動 - 酒日記 はてな支店 と同様に、新しい iso からファイルを取り出して dd で書き込み。
sudo dd if=./usr/lib/vmware/installer/VMware-VMvisor-big-3.5.0_Update_2-110271.i386.dd of=/dev/sdb bs=1M
新しい USB メモリで起動したら (更の状態なので root のパスワードは設定されていない)
$ vicfg-cfgbackup --server [VMware ESXi ホストの IPアドレス] --load vmware.config Enter username: root Enter password: The restore operation will reboot the host. Type 'yes' to continue:
yes と入力すると設定を書き込んで reboot します。
ちなみにバックアップしたファイルは tar + gz で、展開するとこんな感じ。Linux だなあ。
$ tar tzvf vmwara.config -rw-r--r-- root/root 8648 2008-08-18 16:39:16 local.tgz -rw-rw-rw- root/root 63 2008-08-18 16:39:17 Manifest.txt $ tar tzvf local.tgz -rw-r--r-T root/root 108 2008-08-08 04:57:12 etc/ntp.conf -rw-r--r-T root/root 0 2008-07-07 21:27:17 etc/sfcb/repository/root/interop/cim_indicationsubscription.idx -rw-r--r-T root/root 0 2008-07-07 21:27:17 etc/sfcb/repository/root/interop/cim_listenerdestinationcimxml.idx -rw-r--r-T root/root 0 2008-07-07 21:27:17 etc/sfcb/repository/root/interop/cim_indicationhandlercimxml.idx-rw-r--r-T root/root 0 2008-07-07 21:27:17 etc/sfcb/repository/root/interop/cim_indicationfilter.idx -rw-rw-rw- root/root 43 2008-08-18 15:59:33 etc/sysconfig/network -rw-r--r-- root/root 173 2008-08-07 23:12:48 etc/shadow -rw-r--r-T root/root 67 2008-08-18 15:59:33 etc/resolv.conf -rw-r--r-T root/root 512 2008-08-08 00:59:47 etc/random-seed -rw-r--r-- root/root 8 2008-08-18 15:57:28 etc/ntp.drift -rw-r--r-- root/root 12 2008-08-07 23:12:57 etc/keymap -rw------- root/root 427 2008-08-07 23:10:47 etc/dropbear/dropbear_rsa_host_key -rw------- root/root 457 2008-08-07 23:10:48 etc/dropbear/dropbear_dss_host_key -rw-rw-rw- root/root 145 2008-08-08 04:57:12 etc/chkconfig.db -rw-r--r-T root/root 29 2008-08-08 04:53:22 etc/vmware/vmware.lic -r-------- root/root 887 2008-08-07 23:10:48 etc/vmware/ssl/rui.key -r--r--r-- root/root 1229 2008-08-07 23:10:48 etc/vmware/ssl/rui.crt -rw-r--r-T root/root 114 2008-08-07 23:10:54 etc/vmware/snmp.xml -rw-r--r-T root/root 3794 2008-08-18 16:35:57 etc/vmware/license.cfg -rw------- root/root 4124 2008-08-18 15:59:33 etc/vmware/esx.conf -rw-r--r-T root/root 178 2008-08-07 23:20:36 etc/vmware/hostd/vmInventory.xml -rw-r--r-T root/root 399 2008-08-08 00:59:55 etc/vmware/hostd/vmAutoStart.xml -rw-r--r-T root/root 386 2008-08-07 20:02:12 etc/vmware/hostd/pools.xml -rw-r--r-T root/root 100 2008-08-07 19:57:21 etc/vmware/hostd/hostsvc.xml