VMware Server Home Pageにアクセスできない、VMware Host Agent サービスが起動しない場合の対処
現象
以下の現象になった。
- VMware Server Home Page からアクセスしても、「ページは表示できません」になる
- VMware Host Agent サービスが起動していない
- VMware Host Agent サービスを起動しようとすると、以下のエラーがイベントログにでて起動失敗になる
VMware Host Agent サービスは、サービス固有エラー %%-1 で終了しました。
補足
VMwareを再インストールしても変わらない。
ぐぐったら、datastores.xml が壊れてる可能性があるとのこと
確かに、datastores.xmlを確認したら、xmlファイルではなくnull文字で埋まっている。
対処
.defautファイルから復旧
C:\ProgramData\VMware\VMware Server\hostd\datastores.xml.defaultを
C:\ProgramData\VMware\VMware Server\hostd\datastores.xmlにコピーする
<ConfigRoot> <LocalDatastores> <_length>1</_length> <_type>hostd.host.LocalDatastoreEntry[]</_type> <e id="0"> <_type>hostd.host.LocalDatastoreEntry</_type> <dynamicProperty> <_length>0</_length> <_type>vmodl.DynamicProperty[]</_type> </dynamicProperty> <name>standard</name> <path>C:\Virtual Machines\</path> </e> </LocalDatastores> </ConfigRoot>
これで復旧できた。