HHeLiBeXの日記 正道編

日々の記憶の記録とメモ‥

VMware Serverでの権限設定で謎のエラー

Ubuntu 9.10上でVMware Server 2.0を稼動させているのだが、アクセス権限を設定しようとするとエラーが発生するようになってしまった。
出てくるエラーメッセージは次のような感じ。

Database temporarily unavailable or has network problems.

そこで調べてみると、VMwareのサイトにあるVMware Server 2.0のリリースノートの下のほうに、「Known Issues」として次のような記述が。


When adding a new permission, the error Database temporarily unavailable or has network problems is displayed.
Workaround:

1. Stop the VMware Server host agent (at the command line, enter /etc/init.d/vmware-mgmt stop).
2. Create a backup copy of the /etc/vmware/hostd/authorization.xml file.
3. Open the /etc/vmware/hostd/authorization.xml file in an editor and set NextAceId to the next integer value that is not being used as as an ACEDataId. For example, if the file contains the entry setting NextAceId to 11, set NextAceId to 12.
4. Save the updated file.
5. Restart the host agent (at the command line, enter /etc/init.d/vmware-mgmt start).

そこで、Ubuntu 9.10マシンにログインし、次の手順で作業。
まず、順にコマンドをたたいていく。

$ sudo /etc/init.d/vmware-mgmt stop
Stopping VMware management services:
   VMware Virtual Infrastructure Web Access
   VMware Server Host Agent                                            done
$ cp -ip /etc/vmware/hostd/authorization.xml ~/
$ sudo vi /etc/vmware/hostd/authorization.xml

で、開いた authorization.xml ファイルがこんな感じになっている。

<ConfigRoot>
  <ACEData id="11">
    <ACEDataEntity>ha-folder-root</ACEDataEntity>
    <ACEDataId>11</ACEDataId>
    <ACEDataIsGroup>false</ACEDataIsGroup>
    <ACEDataPropagate>true</ACEDataPropagate>
    <ACEDataRoleId>-1</ACEDataRoleId>
    <ACEDataUser>hhelibex</ACEDataUser>
  </ACEData>
  <NextAceId>11</NextAceId>
</ConfigRoot>

確かに、「/ConfigRoot/ACEDataId」の値が"11"、「/ConfigRoot/NextAceId」の値も"11"になっているので(偶然か!?)、後者を"12"に変更して保存する。
で、コマンドの続き。

$ sudo /etc/init.d/vmware-mgmt start
Starting VMware management services:
   VMware Server Host Agent (background)                               done
   VMware Virtual Infrastructure Web Access
$

これで一応、アクセス権限を設定できるようになった。(実際には、何度か"VMware Server host agent"が落ちたようで、2度ほど再起動したが‥)