ubuntu上でVMware serverのインストール

このQ&Aのポイント
  • ubuntu上でVMware serverのインストールについて詳しく教えてください
  • VMware server 1.0.8のインストールがうまくいかない場合、どのように対処すればよいですか?
  • VMware serverのインストールでコンパイルエラーが発生した場合、解決策はありますか?
回答を見る
  • ベストアンサー

ubuntu上でVMware serverのインストール

ubuntu8.10 カーネル Linux 2.6.27-11-generic この環境でVMware server 1.0.8をインストールしようと苦戦しております。 VMware-server-1.0.8-126538.tar.gzをダウンロードして、解凍し vmware-server-distribフォルダに移動し、vmware-install.plを実行しました。 その後ほとんどの設定にデフォルトで答え、使用許諾を受け入れると None of the pre-built vmmon modules for VMware Server is suitable for your running kernel. Do you want this program to try to build the vmmon module for your system (you need to have a C compiler installed on your system)? [yes] といわれ、コンパイルをはじめます。 その後もデフォルトで答えていき、いざコンパイルがはじまると、、、 Extracting the sources of the vmmon module. Building the vmmon module. Using 2.6.x kernel build system. make: ディレクトリ `/tmp/vmware-config7/vmmon-only' に入ります make -C /lib/modules/2.6.27-11-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: ディレクトリ `/usr/src/linux-headers-2.6.27-11-generic' に入ります CC [M] /tmp/vmware-config7/vmmon-only/linux/driver.o In file included from /tmp/vmware-config7/vmmon-only/./include/machine.h:24, from /tmp/vmware-config7/vmmon-only/linux/driver.h:15, from /tmp/vmware-config7/vmmon-only/linux/driver.c:49: /tmp/vmware-config7/vmmon-only/./include/x86.h:830:1: warning: "PTE_PFN_MASK" redefined In file included from include/asm/paravirt.h:7, from include/asm/irqflags.h:55, from include/linux/irqflags.h:57, from include/asm/system.h:11, from include/asm/processor.h:17, from include/linux/prefetch.h:14, from include/linux/list.h:6, from include/linux/module.h:9, from /tmp/vmware-config7/vmmon-only/linux/driver.c:12: include/asm/page.h:22:1: warning: this is the location of the previous definition In file included from /tmp/vmware-config7/vmmon-only/linux/vmhost.h:13, from /tmp/vmware-config7/vmmon-only/linux/driver.c:71: /tmp/vmware-config7/vmmon-only/./include/compat_semaphore.h:5:27: error: asm/semaphore.h: No such file or directory /tmp/vmware-config7/vmmon-only/linux/driver.c:146: error: unknown field ‘nopage’ specified in initializer /tmp/vmware-config7/vmmon-only/linux/driver.c:147: 警告: initialization from incompatible pointer type /tmp/vmware-config7/vmmon-only/linux/driver.c:150: error: unknown field ‘nopage’ specified in initializer /tmp/vmware-config7/vmmon-only/linux/driver.c:151: 警告: initialization from incompatible pointer type /tmp/vmware-config7/vmmon-only/linux/driver.c: In function ‘LinuxDriver_Ioctl’: /tmp/vmware-config7/vmmon-only/linux/driver.c:1670: error: too many arguments to function ‘smp_call_function’ make[2]: *** [/tmp/vmware-config7/vmmon-only/linux/driver.o] エラー 1 make[1]: *** [_module_/tmp/vmware-config7/vmmon-only] エラー 2 make[1]: ディレクトリ `/usr/src/linux-headers-2.6.27-11-generic' から出ます make: *** [vmmon.ko] エラー 2 make: ディレクトリ `/tmp/vmware-config7/vmmon-only' から出ます Unable to build the vmmon module. For more information on how to troubleshoot module-related problems, please visit our Web site at "http://www.vmware.com/download/modules/modules.html" and "http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html". Execution aborted. といわれ、コンパイルがうまくいきません。 どのようにしたらこの先に進むことができるでしょうか? ご教授お願い致します。

質問者が選んだベストアンサー

  • ベストアンサー
  • andy25
  • ベストアンサー率100% (1/1)
回答No.1

今日mogmetさんと全く同じ環境で同じことで悩んでおりましたが、 下記のURLを参考に解決できました。 http://d.hatena.ne.jp/orangehat/20090123 簡単に要点だけ述べると…。 まず、もとのパッケージがカーネル2.6.27に対応できていないらしいので、 最下の参考URLからパッチ(vmware-update2.6.27-5.5.7-2.tar.gz)をダウンロードし、 解凍して適当な場所に置いておきます。 インストールはmogmetさんの手順でよいのですが、 $ sudo ./vmware-install.pl の後のやりとりのうち、以下で「no」とすることで、 そのまま/usr/bin/vmware-config.plを実行しないのがコツの様です。 Before running VMware Server for the first time, you need to configure it by invoking the following command: "/usr/bin/vmware- config.pl". Do you want this program to invoke the command for you now? [yes] 上記に「no」と入力すると、一旦vmware-install.plが終了します。 ここでvmware-update-2.6.27-5.5.7-2/のディレクトリに移動して $ sudo ./runme.pl とすることで、パッチを当てることができます。 この後で改めてvmware-config.plを実行します。 $ sudo /usr/bin/vmware-config.pl これでubuntu8.10にvmware1.0.8をインストールすることができるはずです (私の環境ではこれでできました。)。 申し訳ありませんが、私はubuntu初心者なので説明が分かりにくいかも しれません。詳細は引用ページを参照していただけたらと思います。

参考URL:
http://www.insecure.ws/2008/10/20/vmware-specific-specific-55x-and-kernel-2627
mogmet
質問者

お礼

ありがとうございます。 おかげで無事インストールすることができました!

関連するQ&A

  • ubuntu上でVMware server

    make: Entering directory `/tmp/vmware-config5/vmmon-only' make -C /lib/modules/3.0.0-19-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory `/usr/src/linux-headers-3.0.0-19-generic' CC [M] /tmp/vmware-config5/vmmon-only/linux/driver.o /tmp/vmware-config5/vmmon-only/linux/driver.c:39:28: fatal error: linux/smp_lock.h: No such file or directory compilation terminated. make[2]: *** [/tmp/vmware-config5/vmmon-only/linux/driver.o] Error 1 make[1]: *** [_module_/tmp/vmware-config5/vmmon-only] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-3.0.0-19-generic' make: *** [vmmon.ko] Error 2 make: Leaving directory `/tmp/vmware-config5/vmmon-only' Unable to build the vmmon module. といわれ、コンパイルがうまくいきません。 どのようにしたらこの先に進むことができるでしょうか? ご教授お願い致します。

  • VMwareの設定が上手くいかない

    VMware4.5.2をRedHatLinux Enterprise3にインストールしました。 「vmware-config.pl」を実行したところ、以下のようなエラーが出てきて、先に進めません。リンク先のページを見てもどう対処すればいいかさっぱり分かりませんでした。どなたか対処法および関係ありそうなwebを教えてください。 make[2]: *** [driver.o] Error 1 make[2]: Leaving directory `/tmp/vmware-config0/vmmon-only/driver-2.4.21-15.0.3.ELsmp' make[1]: *** [driver] Error 2 make[1]: Leaving directory `/tmp/vmware-config0/vmmon-only' make: *** [auto-build] Error 2 make: Leaving directory `/tmp/vmware-config0/vmmon-only' Unable to build the vmmon module. For more information on how to troubleshoot module-related problems, please visit our Web site at "http://www.vmware.com/download/modules/modules.html" and "http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html". Execution aborted. 当方の環境は Dell Precision 650-n Intel Xeon 3.2GHz*2 RedHat Linux 3 (kernel-2.4.21-15.0.3-ELsmp) です。

  • VMware tool の インストールについて

    VMware workstationにVMware-toolをインストールする際、コンパイルエラーが表示され、共有フォルダなどの機能が使用できません。 下記にインストール環境とエラー内容を書きます。 ご存知の方がいらしたらご教授願いませんでしょうか? 【VMware workstationバージョン】 VMware Workstation 5.5.2 build-29772 【ホストOS】 WindowsXP Professional Version 2002 Service Pack 2 【ゲストOS】 Fedora7 【ダウンロードしたVMware-tool】 VMwareTools-5.5.2-29772.tar.gz 【エラー内容】 以下のようなエラーが出力されます。 ------------------------------------------------------ [略] None of the pre-built vmhgfs modules for VMware Tools is suitable for your running kernel. Do you want this program to try to build the vmhgfs module for your system (you need to have a C compiler installed on your system)? [yes] Using compiler "/usr/bin/gcc". Use environment variable CC to override. What is the location of the directory of C header files that match your running kernel? [/lib/modules/2.6.21-1.3194.fc7/build/include] Extracting the sources of the vmhgfs module. Building the vmhgfs module. Using 2.6.x kernel build system. make: ディレクトリ `/tmp/vmware-config0/vmhgfs-only' に入ります make -C /lib/modules/2.6.21-1.3194.fc7/build/include/.. SUBDIRS=PWD SRCROOT=PWD/. modules make[1]: ディレクトリ `/usr/src/kernels/2.6.21-1.3194.fc7-i686' に入ります CC [M] /tmp/vmware-config0/vmhgfs-only/cpName.o CC [M] /tmp/vmware-config0/vmhgfs-only/cpNameLinux.o CC [M] /tmp/vmware-config0/vmhgfs-only/dev.o CC [M] /tmp/vmware-config0/vmhgfs-only/driver.o /tmp/vmware-config0/vmhgfs-only/driver.c: In function ‘HgfsChangeFileAttributes?’: /tmp/vmware-config0/vmhgfs-only/driver.c:763: error: ‘struct inode’ has no member named ‘i_blksize’ [略(このようなエラーが続きます)] /tmp/vmware-config0/vmhgfs-only/driver.c: In function ‘HgfsClearInode?’: /tmp/vmware-config0/vmhgfs-only/driver.c:4113: error: ‘struct inode’ has no member named ‘u’ make[2]: *** [/tmp/vmware-config0/vmhgfs-only/driver.o] エラー 1 make[1]: *** [_module_/tmp/vmware-config0/vmhgfs-only] エラー 2 make[1]: ディレクトリ `/usr/src/kernels/2.6.21-1.3194.fc7-i686' から出ます make: *** [vmhgfs.ko] エラー 2 make: ディレクトリ `/tmp/vmware-config0/vmhgfs-only' から出ます Unable to build the vmhgfs module. The filesystem driver (vmhgfs module) is used only for the shared folder feature. The rest of the software provided by VMware Tools is designed to work independently of this feature. If you wish to have the shared folders feature, you can install the driver by running vmware-config-tools.pl again after making sure that gcc, binutils, make and the kernel sources for your running kernel are installed on your machine. These packages are available on your distribution's installation CD. ----------------------------------------------------------- 【gcc version】 gcc (GCC) 4.1.2 20070502(Red Hat 4.1.2-12) 【binutils version】 2.17.50.0.12-4 【make version】 GNU Make 3.81 【kernel】 2.6.21-1.3194.fc7 よろしくお願いいたします

  • fedora7

    fedora7にVM-Workstation5.5をインストールしましたが、vmware-config.plの設定が失敗します。 どなたか知っていたら教えてください。 カーネルバージョン(2.6.22.1-41.fc7) 以下の設定&Installをしました。 /lib/modules/2.6.22.1-41.fc7/build/include yum install kernel-devel yum install gcc-c++ yum install libstdc++ yum install libstdc++-devel vmware-any-any-update109 以下はエラー表示です。 make[1]: ディレクトリ `/usr/src/kernels/2.6.22.1-41.fc7-i686' に入ります CC [M] /tmp/vmware-config3/vmmon-only/linux/driver.o CC [M] /tmp/vmware-config3/vmmon-only/linux/hostif.o CC [M] /tmp/vmware-config3/vmmon-only/common/cpuid.o CC [M] /tmp/vmware-config3/vmmon-only/common/hash.o CC [M] /tmp/vmware-config3/vmmon-only/common/memtrack.o CC [M] /tmp/vmware-config3/vmmon-only/common/phystrack.o CC [M] /tmp/vmware-config3/vmmon-only/common/task.o cc1plus: 警告: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++ cc1plus: 警告: command line option "-Wno-pointer-sign" is valid for C/ObjC but not for C++ cc1plus: 警告: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ cc1plus: 警告: command line option "-ffreestanding" is valid for C/ObjC but not for C++ include/asm/page.h: In function ‘pte_t native_make_pte(long unsigned int)’: include/asm/page.h:112: error: expected primary-expression before ‘)’ token include/asm/page.h:112: error: expected ‘;’ before ‘{’ token include/asm/page.h:112: error: expected primary-expression before ‘.’ token include/asm/page.h:112: error: expected `;' before ‘}’ token make[2]: *** [/tmp/vmware-config3/vmmon-only/common/task.o] エラー 1 make[1]: *** [_module_/tmp/vmware-config3/vmmon-only] エラー 2 make[1]: ディレクトリ `/usr/src/kernels/2.6.22.1-41.fc7-i686' から出ます make: *** [vmmon.ko] エラー 2 make: ディレクトリ `/tmp/vmware-config3/vmmon-only' から出ます Unable to build the vmmon module. よろしくお願いします。

  • suse 10.5にRealTek 8169のドライバのinstallに失敗

    suse 10.5にRealTek 8169のドライバのinstallに失敗して困っています 1.RealTekのホームページよりr1000_v1.04.gzを入手 2.r1000_v1.04.gzを解凍して、以下のコマンドにて対応 ・cd r100_v1.04 ・make clean modules ★下記のエラーが発生 make clean modules -----途中省略----- make -C ../../../linux-2.6.16.21-0.25 O=../linux-2.6.16.21-0.25-obj/i386/smp modules /tmp/8169/r1000_v1.04/src/Makefile:28: /usr/src/linux-2.6.16.21-0.25/src/Makefile_linux26x: No such file or directory make[5]: *** No rule to make target `/usr/src/linux-2.6.16.21-0.25/src/Makefile_linux26x'. Stop. -----途中省略----- ★下記のエラーの対応 vi srrc/Makefileの修正 include $(PWD)/src/Makefile_linux26x ↓ include /tmp/8169/r1000_v1.04/src/Makefile_linux26x ★上記修正後、make clean modulesする make -C src/ clean -----途中省略----- make -C ../../../linux-2.6.16.21-0.25 O=../linux-2.6.16.21-0.25-obj/i386/smp modules CC [M] /tmp/8169/r1000_v1.04/src/r1000_n.o /tmp/8169/r1000_v1.04/src/r1000_n.c:51: error: expected ‘)’ before string constant /tmp/8169/r1000_v1.04/src/r1000_n.c:52: error: expected ‘)’ before string constant /tmp/8169/r1000_v1.04/src/r1000_n.c:53: error: expected ‘)’ before string constant -----途中省略----- ※上記エラーは、下記らしいのですが、どうしたらよいわかりません。 MODULE_PARM (speed, "1-" __MODULE_STRING(MAX_UNITS) "i"); MODULE_PARM (duplex, "1-" __MODULE_STRING(MAX_UNITS) "i"); MODULE_PARM (autoneg, "1-" __MODULE_STRING(MAX_UNITS) "i"); どなたかヒントをお願いします

  • CentOS5にvmware-toolsのインストール

    vmwareにCentOSでデスクトップ環境を作っています。ホストとゲスト間のコピー&ペーストがしたいのですが、vmware-toolsのインストールで困っています。 環境は以下の通りです。 Host OS:Windows XP + VMware5.5.1 Guest OS:CentOS 5および5.1 vmware-toolsをインストールする際にkernel-headerの要求で詰まってしまいます。ネットで調べると定番の問題のようでkernel-source またはkernel-develのインストールでよいとのことで、確認すると既にインストールされています。しかしdefaultで聞かれる[/usr/src/linux/include] は存在しません。 現在のカーネルのバージョンは > uname -a Linux hostname 2.6.18-53.1.4.el5 #1 SMP Fri Nov 30 00:45:16 EST 2007 i686 i686 i386 GNU/Linux となっており、この番号を元に検索すると以下のディレクトリがありました > find / -name 2.6.18-53* -print /usr/src/kernels/2.6.18-53.1.4.el5-i686 /lib/modules/2.6.18-53.1.4.el5 そこでこれらをpathに与えてみました。defaultのpathにリンクを張っても見ましたが What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] /lib/modules/2.6.18-53.1.4.el5/build/include The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match your running kernel (version 2.6.18-53.1.4.el5). Even if the module were to compile successfully, it would not load into the running kernel. What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] となり堂々巡りです。 インストールの方法は、rpmとtarball両方試しました。 ネット上では皆さんkernel-develをいれて解決されている用なのですが、いったい何が間違っているのでしょうか?

  • モジュールんの有効(?)に関する質問

    ディストリビューションはTurbo Linuxでカーネルは2.6です。 モジュールを以下のコマンドでコンパイルでコンパイルしようとした所 make -C ~/linux-2.6.5/linux-2.6.5 M='pwd' modules The present kernel configuration has modules disabled. Type 'make config' and enable loadable module support. Then build a kernel with module support enabled. というエラーメッセージ(?)がでました。 意味としては、「'make config'変更してをモジュールを有効にしてください」 という意味だと思いますが、何処を変更すれば良いのでしょうか

  • CentOS6.2のカーネルコンパイル

    CentOS6.2でカーネルをコンパイルしようとmakeすると以下のエラーがでました。 対処方法などがあればよろしくお願いします(><) # make CHK include/linux/version.h CHK include/linux/utsrelease.h SYMLINK include/asm -> include/asm-x86 make[1]: *** ターゲット `missing-syscalls' を make するルールがありません. 中止. make: *** [prepare0] エラー 2

  • [Debian]LKMの作成について

    こんにちは LKMの作成で躓いているのでお力をお貸しください OS: Debian4.0 r6 kernel: 2.6.18-6-686 GCC: 4.1.2 [ソース: message.c] #include <linux/module.h> #include <kernel.h> #include <linux/init.h> static int __init init_module(void) { printk(KERN_INFO "loaded\n"); return 0; } static void __exit cleanup_module(void) { printk(KERN_INFO "removed\n"); } module_init(init_module); module_exit(cleanup_module); [コンパイル結果] make -C /lib/modules/2.6.18-6-686/build M=/home/user/lkm modules make[1]: ディレクトリ `/usr/src/linux-headers-2.6.18-6-686' に入ります CC [M] /home/user/lkm/message.o /home/user/lkm/message.c:6: error: static declaration of 'init_module' follows non-static declaration include/linux/module.h:65: error: previous declaration of 'init_module' was here /home/user/lkm/message.c:12: error: static declaration of 'cleanup_module' follows non-static declaration include/linux/module.h:66: error: previous declaration of 'cleanup_module' was here /home/user/lkm/message.c:16: error: redefinition of 'init_module' /home/user/lkm/message.c:6: error: previous definition of 'init_module' was here /home/user/lkm/message.c:17: error: redefinition of 'cleanup_module' /home/user/lkm/message.c:12: error: previous definition of 'cleanup_module' was here make[2]: *** [/home/user/lkm/message.o] エラー 1 make[1]: *** [_module_/home/user/lkm] エラー 2 make[1]: ディレクトリ `/usr/src/linux-headers-2.6.18-6-686' から出ます make: *** [default] エラー 2 初歩的な質問で申し訳ないですが エラー冒頭のstatic declaration of ...というエラーが直せなくて困っております。 どなたかお分かりになる方、お力をお貸しください 宜しくお願いします。

  • LKMを用いたカーネル2.6でのシステムコールのフック

    度々すみません。 LKMを使ったシステムコールのフックに挑戦しているのですがうまくいかずに悩んでいます。 お力を貸していただけたら嬉しいです。 ディストリビューション: Debian 4.0r4 カーネル: 2.6.24 以前2.6.18のカーネルを使っていたのですが、使用するカーネルのバージョンを上げました。 開発前にやったことをすべて書いておきます。 ・ linux-source-2.6.24_2.6.24-6~etchnhalf.7_all.deb ・ linux-headers-2.6.24-etchnhalf.1-686_2.6.24-6~etchnhalf.7_i386.deb ・ linux-kbuild-2.6.24-1~etchnhalf.1_i386.deb をダウンロードし、dpkg -i *.deb で展開。 /usr/src/linux-source-2.6.24/arch/x86/kernel/i386_ksyms_32.c の末尾に以下の2行を追加 extern void *sys_call_table[]; EXPORT_SYMBOL(sys_call_table); 変更後以下の手順でカーネルコンパイル cp /boot/config-2.6.18-6-686 .config make menuconfig (Enterを押しっぱなしにして設定終了) make-kpkg --initrd kernel_image dpkg -i (kernel_image).deb 書いたプログラムは以下です。 #include <linux/module.h> #include <linux/init.h> #include <linux/syscalls.h> #include <linux/utsname.h> #include <asm-x86/unistd_32.h> MODULE_LICENSE("GPL"); extern void *sys_call_table[]; static char *msg = "[message.o]:"; asmlinkage int (*orig_open)(const char *pathname, int flags); asmlinkage static int hook_open(const char *pathname, int flags) { printk(KERN_INFO "hook_open(\"%s\", %d)\n", pathname, flags); return orig_open(pathname, flags); } static int message_module(void) { printk(KERN_INFO "%s loaded\n",msg); printk(KERN_INFO "%s hook_init\n", msg); orig_open = sys_call_table[__NR_open]; sys_call_table[__NR_open] = hook_open; return 0; } static void message_remove(void) { printk(KERN_INFO "%s removed\n", msg); printk(KERN_INFO "%s hook_exit\n", msg); sys_call_table[__NR_open] = orig_open; } module_init(message_module); module_exit(message_remove); コンパイルすると以下のようなエラーが出ます。 user@debian:~/lkm/message$ make make -C /lib/modules/2.6.24/build M=/home/user/lkm/message modules make[1]: ディレクトリ `/usr/src/linux-source-2.6.24' に入ります Building modules, stage 2. MODPOST 1 modules WARNING: "sys_call_table" [/home/user/lkm/message/message.ko] undefined! make[1]: ディレクトリ `/usr/src/linux-source-2.6.24' から出ます 長文で申し訳ありませんが、お力をお貸しください。 宜しくお願いします。