PR

[VMware] 突然 VMware Server2 が起動しなくなった

これまで64bit 環境はテストしかしていなかったが、本格的に使えるマシンを組んだ。

既存の32bit Ubuntu を64bit Ubuntu にアップグレードする記事も見かけたのだが、改めてUbuntu にVMware Server2 をインストールし、既存の仮想マシンを移動した。

セッティングを終えて場所を移すために一度シャットダウン。クライアントからWEB ui にアクセスするとアクセス出来ない。コンソールもSCP も接続できる。??な状態。

スポンサードリンク

vmware を起動するコマンド(/etc/rc.d/init.d/vmware start)を送ると次のように表示された。

@@PRODUCT_NAME@@ is installed, but it has not been (correctly) configured  for the running kernel. To (re-)configure it, invoke the  following command: /usr/bin/vmware-config.pl.

/usr/bin/vmware-config.pl を実行しろというから実行すれば良いのだが、特にそれが必要になるコト(kernelのアップデート等)はしていないのでピンとこ無かった。

パッチを当てたこともあり、かつ、ものぐさでlinux-header を入れていなかったので、素直にvmware-config.pl を実行すると「ヘッダは何処よ?」というメッセージのループにハマった。

What is the location of the directory of C header files that match your running
 kernel? [/usr/src/linux/include] /usr/src/linux-headers-2.6.35-27-server/include/

The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match
 your running kernel (version 2.6.35-27-server).  Even if the module were to
 compile successfully, it would not load into the running kernel.

あれれ?面倒だからこれでいいか。

/raducotescu-vmware-server-linux-2.6.3x-kernel-71f8b66$ sudo ./vmware-server-2.0.x-kernel-2.6.3x-install.sh

もしかしたらこちらが正解かな。

sudo ./vmware-config.pl
[/lib/modules/2.6.35-27-server/build/include]

もうひとつのエラー

The following VMware kernel modules have been found on your system that were
 not installed by the VMware Installer.  Please remove them then run this
 installer again.

vmci
 vmmon
 vmnet

I.e. - 'rm /lib/modules/2.6.35-27-server/misc/<ModuleName>.{o,ko}'

Execution aborted.

となった場合には

$ cd /lib/modules/$(uname -r)/misc
$ sudo rm vmnet.{o,ko} vmci.{o,ko} vmblock.{o,ko} vmmon.{o,ko}

として再度 vmware-config.pl の実行。

参考文献

コメント