CentOS 5.4をVMware Serverで利用する際の問題

このQ&Aのポイント
  • CentOS 5.4をVMware Serverで利用する際に、vmware-install.plがうまくいかない問題が発生しています。
  • 問題の原因としては、既にインストールされている別のバージョンのVMwareソフトウェアの影響を受けている可能性があります。
  • また、Cヘッダーファイルのディレクトリの場所が正しく指定されていないことも問題の一因となっています。
回答を見る
  • ベストアンサー

centos5.4をvmwareserver上で使っています。 vmware-install.plがうまくいきません。

gccはインストールされています。 [root@localhost vmware-tools-distrib]# ./vmware-install.pl A previous installation of VMware software has been detected. The previous installation was made by the rpm installer (version 3). Converting the rpm3 installer database format to the tar3 installer database format. Installing the content of the package. In which directory do you want to install the binary files? [/usr/bin] What is the directory that contains the init directories (rc0.d/ to rc6.d/)? [/etc/rc.d] What is the directory that contains the init scripts? [/etc/rc.d/init.d] In which directory do you want to install the daemon files? [/usr/sbin] In which directory do you want to install the library files? [/usr/lib/vmware-tools] The path "/usr/lib/vmware-tools" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want? [yes] The path "/usr/src/linux/include" is not an existing directory. What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] これの繰り返しですすみません。 何が問題なのかわかるかたお教えください 補足ホストOSがvistaでゲストOSがcentosです。

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

  • ベストアンサー
  • Wr5
  • ベストアンサー率53% (2177/4070)
回答No.5

>The directory of kernel headers (version 2.6.18-164.6.1.el5debug) does not >match your running kernel (version 2.6.18-164.6.1.el5). Even if the module >were to compile successfully, it would not load into the running kernel. 「アンタの指定したカーネルは"2.6.18-164.6.1.el5debug"だけど、今動いているーネルは"2.6.18-164.6.1.el5"で違うよ。コンパイルは成功したけど起動時に読み込まれないよ。」 と言ってます。(超意訳) >[root@localhost ~]# uname -a >Linux localhost.localdomain 2.6.18-164.6.1.el5 #1 SMP Tue Nov 3 16:18:27 EST 2009 i686 i686 i386 GNU/Linux 実行中のカーネルは"2.6.18-164.6.1.el5"ですよね? なのに、 >kernel? [/usr/src/linux/include] /usr/src/kernels/2.6.18-164.6.1.el5-debug-i686/include なぜ"2.6.18-164.6.1.el5-debug"を指定する必要があるんです? >yum install kernel-develはうまくいきましたが、 rpm -qa | grep ^kernel の結果はどうなりますか? # なんでkernel-debugパッケージが入っているのか謎…。

hoto345
質問者

お礼

2.6.18-164.6.1.el5をしていします。

hoto345
質問者

補足

Detected X.org version 7.1. Please choose one of the following display sizes (1 - 13): [1] "640x480" [2] "800x600" [3] "1024x768" [4] "1152x864" [5] "1280x800" [6] "1152x900" [7] "1280x1024" [8] "1376x1032" [9] "1400x1050" [10] "1680x1050" [11] "1600x1200" [12] "1920x1200" [13] "2364x1773" Please enter a number between 1 and 13: [3] Starting VMware Tools services in the virtual machine: Switching to guest configuration: done Guest filesystem driver: done DMA setup: done Guest operating system daemon: done The configuration of VMware Tools 1.0.6 build-91891 for Linux for this running kernel completed successfully. You must restart your X session before any mouse or graphics changes take effect. You can now run VMware Tools by invoking the following command: "/usr/bin/vmwaretools/vmware-toolbox" during an X session. Enjoy, --the VMware team ここまでいきました。ありがとうございます。うまくいっているのでしょうか?

その他の回答 (4)

  • Wr5
  • ベストアンサー率53% (2177/4070)
回答No.4

>[root@localhost ~]# ls /usr/src/kernels >2.6.18-164.6.1.el5-debug-i686 2.6.18-164.6.1.el5debug-i686 >となりました。 カーネル(モジュール含む)の開発用パッケージ(kernel-devel)が入っていません。 2.6.18-164.6.1.el5-debug-i686の下にincludeというディレクトリがあるかどうか……。 # というか、なんのパッケージに含まれるモノなんだろうか? >kernel-develとはなんでしょうか?また入れかたをおしえてください。 多少は自力で調べましょう。 http://www.google.co.jp/search?hl=ja&source=hp&q=kernel-devel%E3%81%A8%E3%81%AF&btnG=Google+%E6%A4%9C%E7%B4%A2&lr=&aq=f&oq= yum info kernel-devel でパッケージの説明が表示されるでしょう。 # バージョン違いがある場合はすべてのバージョンが。 yum install kernel-devel で、現在稼働中のカーネルバージョンの開発パッケージがインストールされるでしょう。

hoto345
質問者

お礼

yum install kernel-develはうまくいきましたが、 その後が やっぱりうまくいきません。 [root@localhost ~]# uname -a Linux localhost.localdomain 2.6.18-164.6.1.el5 #1 SMP Tue Nov 3 16:18:27 EST 2009 i686 i686 i386 GNU/Linux What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] /usr/src/kernels/2.6.18-164.6.1.el5-debug-i686/include The directory of kernel headers (version 2.6.18-164.6.1.el5debug) does not match your running kernel (version 2.6.18-164.6.1.el5). Even if the module were to compile successfully, it would not load into the running kernel.

  • Wr5
  • ベストアンサー率53% (2177/4070)
回答No.3

動作中のカーネルのバージョンが"2.6.18-164.6.1.el5"なら、 /usr/src/kernels/2.6.18-164.6.1.el5.centos.plus-i686/include にはありませんよ。 まずは、 ls /usr/src/kernels で何があるか確認されては? # kernel-devel入れていないに1票。

hoto345
質問者

お礼

[root@localhost ~]# ls /usr/src/kernels 2.6.18-164.6.1.el5-debug-i686 2.6.18-164.6.1.el5debug-i686 となりました。 kernel-develとはなんでしょうか?また入れかたをおしえてください。

  • cynthia4
  • ベストアンサー率51% (186/358)
回答No.2

失礼かも知れませんが、 >What is the location of the directory of C header files that match your running >kernel? [/usr/src/linux/include] 「動作している kernel に 合った C header ファイルのディレクトリの 場所 は何処ですか」 の何処が解らないのでしょうか。 あれこれ言うのではなく、事実として知りたいだけです。 英語はだいたい解るが意味が解らない。kernel も解らない。 kernel は、解るが C header が解らない。 C headerは解るが C header の 場所の探し方が解らない。 C header の場所は解ったが、その後どう処理して良いか解らない。 など。

hoto345
質問者

お礼

kernel以外はわかりません。 よろしければ教えてください。

  • Wr5
  • ベストアンサー率53% (2177/4070)
回答No.1

>What is the location of the directory of C header files that match your running >kernel? [/usr/src/linux/include] >これの繰り返しですすみません。 「これ」というのは上の2行ですか? CentOS5.4とVMWare上のCentOS5.3を確認しましたが、 カーネルソース(というかヘッダファイル)は「/usr/src/linux/include」にはありませんでした。 # 自分でシンボリックリンク作れば別ですが。 kernel-devel-2.6~というパッケージをインストールすると、 /usr/src/kernels/の下に諸々インストールされます。 実行中のカーネルが2.6.18-164.6.1.el5.centos.plusでi686の場合は… kernel? [/usr/src/linux/include]の後で /usr/src/kernels/2.6.18-164.6.1.el5.centos.plus-i686/include と入力すればよいかと。 あるいは… ln -s /usr/src/kernels/2.6.18-164.6.1.el5.centos.plus-i686 /usr/src/linux としてシンボリックリンクを作成する…でしょうか。 # カーネルのアップデートのたびに ./vmware-install.pl の実行が必要かも知れません。

hoto345
質問者

お礼

おへんじありがとうございます。カーネルはどこにあるのですか?ときかれているので/usr/src/kernels/2.6.18-164.6.1.el5.centos.plus-i686/includeにあると伝えれば良いと言う事でしょうか。 ありがとうございます。早速やってみます。

hoto345
質問者

補足

やはりうまくいきません。2.6.18-164.6.1.el5はuname ーrで調べたところあっています。しかし、かきのようになります。 The path "/usr/src/kernels/2.6.18-164.6.1.el5.centos.plus-i686/include" is not an existing directory. What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] どうしてなのでしょうか?

関連するQ&A

  • 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をいれて解決されている用なのですが、いったい何が間違っているのでしょうか?

  • Centos5.3にVmwareインストール

    できません。VMをrpmでインすトールし、コンフィグ設定のため以下コマンドを打つと下記メッセージが出ます。 [root@localhost vm]# vmware-config.pl What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] カーネルソースとRunning kernelに相違があるのですか? 解決策をご教授願います。 p.s. 現在のrunning kernel↓ [root@localhost ~]# uname -r 2.6.18-128.el5

  • LinuxにVMWare-toolsがインストールできない

    お世話になっています。 VMware-toolがインストールできずに困っています。 下記にインストール環境とエラー内容を書きます。 ご存知の方がいらしたらご教授願いませんでしょうか? 【VMware Playerバージョン】 VMware-player-2.0.0-45731 【ホストOS】 WindowsXP Pro 【ゲストOS】 Vine Linux 4.1 【VMware-tool】 VMware-server-1.0.3-44356.tar.gzからlinux.isoを使用してVMWare-toolをインストールしました。  VMware-tool バージョン:VMwareTools-1.0.3-44356.tar.gz 【エラー内容】 VMware-toolのインストール中に下記のエラーが発生し、インストールができません。 Unable to copy the source file ./installer/services.sh to the destination file /etc/rc.d/init.d/vmware-tools. Execution aborted. 宜しくお願いします。

  • 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 よろしくお願いいたします

  • ゲストOS(VineLinux 5)にVMware toolsをインス

    ゲストOS(VineLinux 5)にVMware toolsをインストールする方法 VineLinux 5にVMware toolsをインストールしたいのですが、どうしてもできません。どうすればいいのでしょうか?Windows7-Pro上で動かしています。 状況 1:「VMware toolsをインストール」を選択 2:「VMwareTools8.1.4-227600.tar.gz」を開き、書庫マネージャーから「vmware-tools-distrib」をデスクトップに回答 3:「vmware-install.pl」を起動 ここまではできるのですが、そのあと全く進展しません。 「実行する」を選んだ場合、何も起きません。 「端末内で実行する」の場合、以下のメッセージが出てきて、Enterを押すとそのまま終了してしまいます。 ・ previous installation of VMware Tools has been detected. The previous installation was made by the tar installer (version 4). Keeping the tar4 installer database format. You have a version of VMware Tools installed. Continuing this install will first uninstall the currently installed version. Do you wish to continue? (yes/no) [yes] そんなわけで、どうしてもインストールされることなく終わってしまうのですが、どのようにするのが正しいのでしょうか?

  • VMware上でCentOS5インストール

    WindowsXPを使用しています。VMwareをインストール(VMware-server-installer-1.0.6-91891.exe)して、VMware上でCentOS5(CentOS-5.2-x86_64-bin-1of7.iso)を動かしています。 CentOS5で最初にウィザードが現れ、言語を日本語に設定した後、パーティションの設定をするところで先に進めなくなってしまいました。 WindowsXPでは、80GBのドライブをCドライブに割り当てています。 VMwareを設定するときは10GBを割り当てました。 この状態からVMware上のCentOSでどのような設定をして良いのかわかりません。 練習用途でWindowsXPを主として使う合間にCentOSを使いたいのですが、どのような設定がふさわしいでしょうか。VMwareとはいえ、間違った設定をしてWindowsのデータがすべて飛んだりしたら怖いというのもあるし、変な設定をしてしまってまた一からやりなおしというのが嫌だったので質問させていただきました。 ちなみに設定後は、時間の空いたときにコマンドの習得やDNSサーバを立てる練習ができたらいいなと思っています。

  • vmware

    vmwareを使用し、LINUXをインストールしたて、 TOOLSをインストールしようとしたのですが、 VMWAREの下のバーにvmware tools is not runningと 表示されインストールが行えませんどなたかご存知なかた 助けてください。

  • VMware CentOs5.3 の解像度設定

    VMware CentOs5.3の解像度の問題で頭を悩ませています。 CentOs5.3のシステム、設定、画面の解像度の上限が800×600以上にできません。 1280×800にしたいのですが、どうしてもできません。 VMwareの設定で制限をかけてしまっている為に、CentOs5.3の解像度が上がらないように どうしても思えます。 VMwareDVD-ROMがCentOs5.3のデスクトップに現れていますが、こちらの設定も うまくできません。 中を開いてみると、VMwareTools-8.4.6-385536.tar.gzというファイルがあります。 これをダブルクリックすると「読込中」のウィンドウが現れて、 vmware-tools-distribのフォルダが現れます。 このフォルダをダブルクリックしますと bin(フォルダ) doc(フォルダ) etc(フォルダ) installer(ファルダ) lib(フォルダ) FILES(不明) INSTALL(シンボリック・リンク) vmware-install.pl(シンボリック・リンク) が現れます。 ここから私はどうしたらよいのでしょうか? 又、解像度を1280×800にする方法を教えてください。 お願いします。

  • VMwareのインストールに関して

    VMware vSphere Hypervisor(ESXi)のインストールに関して 下記のサイトの手順に沿ってインストールしようとしています。 https://thinkit.co.jp/story/2012/10/24/3723 ESXi ISO image (Includes VMware Tools) 2016-03-15 | 6.0U2 | 357.95 MB | iso VMware-VMvisor-Installer-6.0.0.update02-3620759.x86_64 と VMware vSphere Client 6.0 Update 2 2016-03-15 | 6.0U2 | 348.81 MB | exe VMware-viclient-all-6.0.0-3562874.exe をダウンロードしました。 まず、 ESXi ISO image (Includes VMware Tools)をDVDに焼き、PCにインストールしました。 『2.2. ESXi インストールイメージのダウンロード』 『2.3. ESXi のインストール 』 『2.4. インストール直後の初期設定 』 ここまでやり、 黄色と黒の画面が出るようになりました。 で、 次は 『2.5. vSphere Client のインストール』 ですが、 これはexeの方を使うようです。 「vSphere Client のインストールは、ダウンロードしたexeファイルをWindows上で起動し、ウィザードの指示に従うだけでインストールすることができます。」 とあります。 しかし、 DVDからインストールした時点で元のOSは消えており、 VMware ESXi 6.0.0 (VMKernel Release Build 3620759)が自力で起動している状態です。 「exeファイルをWindows上で起動し、」と言われても、そこにWindowsはありません。 『2.4. インストール直後の初期設定』 から 『2.5. vSphere Client のインストール』 へ話が繋がらないのですが、 これはどういう事なのでしょうか? 『2.4. インストール直後の初期設定』 の後、 Windowsをインストールする工程があるのかと思いましたが、全くやり方が分かりません。 <F2>で設定ができて <F12>でシャットダウンと再起動 それしかありません。 <F2>には パスワード ネットワーク設定 ネットワーク管理のリスタート などが並んでしますが、 OSをどうやってインストールしたらよいのか全く分かりません。

  • Knoppix5.3.1のmakefileについて教えてください。

    VMware Server1.6でKNOPPIX5.3.1CD日本語版をHDDインストールしました。 引き続き、VMware Toolsをインストールしたいのですが、途中で止まってしまいます。 カーネルのバージョンは2.6.24.4です。 ■止まった箇所 What is the location of the directory of C header files that match your running kernel?[/usr/src/linux/include]でEnterを実行 ■エラーコメント The path "/usr/src/linux/include" is not an existing direcrory. おそらく、include pathを指定していないことが原因だと思い、debian リファレンスの7.1.2 「Kernelヘッダ」を参考にしたところ、makefileを変更するようです。 http://www.debian.org/doc/manuals/reference/ch-kernel.ja.html そのmakefileの変更方法がわかりません。ご教授お願いします。 また、私の原因予想事態が間違っているならば、ご指摘ください。 よろしくお願いします。