LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2031|回复: 7

求助:虚拟机gentoo安装vmware tools失败

[复制链接]
发表于 2009-4-20 17:21:52 | 显示全部楼层 |阅读模式
./vmware-install.pl
Creating a new VMware Tools installer database using the tar4 format.

Installing VMware Tools.

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/init.d]

What is the directory that contains the init scripts?
[/etc/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]

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]

The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes]

The installation of VMware Tools 7.8.5 build-156735 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes]


Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                                      done
   Virtual Printing daemon:                                            done
None of the pre-built vmmemctl modules for VMware Tools is suitable for your
running kernel.  Do you want this program to try to build the vmmemctl 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.28-gentoo-r4/build/include]

Extracting the sources of the vmmemctl module.

Building the vmmemctl module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmemctl-only'
make -C /lib/modules/2.6.28-gentoo-r4/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.28-gentoo-r4'
  CC [M]  /tmp/vmware-config0/vmmemctl-only/backdoorGcc32.o
  CC [M]  /tmp/vmware-config0/vmmemctl-only/os.o
  CC [M]  /tmp/vmware-config0/vmmemctl-only/vmballoon.o
  LD [M]  /tmp/vmware-config0/vmmemctl-only/vmmemctl.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/vmware-config0/vmmemctl-only/vmmemctl.mod.o
  LD [M]  /tmp/vmware-config0/vmmemctl-only/vmmemctl.ko
make[1]: Leaving directory `/usr/src/linux-2.6.28-gentoo-r4'
make -C $PWD SRCROOT=$PWD/. postbuild
make[1]: Entering directory `/tmp/vmware-config0/vmmemctl-only'
make[1]: `postbuild' is up to date.
make[1]: Leaving directory `/tmp/vmware-config0/vmmemctl-only'
cp -f vmmemctl.ko ./../vmmemctl.o
make: Leaving directory `/tmp/vmware-config0/vmmemctl-only'
The vmmemctl module loads perfectly into the running kernel.

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]

Extracting the sources of the vmhgfs module.
Building the vmhgfs module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmhgfs-only'
make -C /lib/modules/2.6.28-gentoo-r4/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.28-gentoo-r4'
  CC [M]  /tmp/vmware-config0/vmhgfs-only/backdoor.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/backdoorGcc32.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/bdhandler.o
  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/cpNameLite.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/dentry.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/dir.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/file.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/filesystem.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/fsutil.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/hgfsBd.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/hgfsEscapeLinux.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/hgfsUtil.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/inode.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/kernelStubsLinux.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/link.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/messageBackdoor.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/message.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/module.o
  CC [M]  /tmp/vmware-config0/vmhgfs-only/page.o
/tmp/vmware-config0/vmhgfs-only/page.c: In function ‘HgfsDoWriteBegin’:
/tmp/vmware-config0/vmhgfs-only/page.c:763: warning: ISO C90 forbids mixed declarations and code
/tmp/vmware-config0/vmhgfs-only/page.c: In function ‘HgfsWriteBegin’:
/tmp/vmware-config0/vmhgfs-only/page.c:867: error: implicit declaration of function ‘__grab_cache_page’
/tmp/vmware-config0/vmhgfs-only/page.c:867: warning: assignment makes pointer from integer without a cast
make[2]: *** [/tmp/vmware-config0/vmhgfs-only/page.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmhgfs-only] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.28-gentoo-r4'
make: *** [vmhgfs.ko] Error 2
make: Leaving directory `/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.
[ Press Enter key to continue ]


很需要 虚拟机共享宿主机上的文件
请大虾帮忙解决
谢谢:)
发表于 2009-4-20 20:25:43 | 显示全部楼层
请安装portage里的app-emulation/open-vm-tools,这个是vmware tools的开源版本。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-20 21:23:02 | 显示全部楼层
Post by coderoar;1977120
请安装portage里的app-emulation/open-vm-tools,这个是vmware tools的开源版本。


谢谢啊:)

安装这个需要卸载掉vmware tools么?

看出错信息好像是vmware tools的一个bug啊
看到网上有文章修改了一个类似的bug
vmware 怎么没出响应的patch呢?!
不过那个出错的文件不是我遇到的这个文件。

另外 open-vm-tools这个性能是不是差点?
回复 支持 反对

使用道具 举报

发表于 2009-4-20 21:45:41 | 显示全部楼层
应该要卸载吧,反正vmware tools不好编译的。性能的话,不需要太在意,vmware本身是很快的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-20 22:16:50 | 显示全部楼层
Post by coderoar;1977166
应该要卸载吧,反正vmware tools不好编译的。性能的话,不需要太在意,vmware本身是很快的。


卸载vmware tools之后安装了open-vm-tools
rc-update add vmware-tools default

/etc/init.d/vmware-tools start

不能实现鼠标进入虚拟机区域就自动被捕获的功能啊
看到安装的时候装了一个xf86-input-vmmouse这个包
需要怎么设置 能实现鼠标的自动捕获和释放呢?
按ctrl+alt有点麻烦...

另外以前虚拟过xp
当时autofit guest 和 autofit window 都能用
虚拟linux的话 应该够呛?
回复 支持 反对

使用道具 举报

发表于 2009-4-21 00:00:24 | 显示全部楼层
控制台应该是不能自动被捕获鼠标的,X下需要安装 x11-drivers/xf86-video-vmware 的,还要修改 xorg.conf 把驱动改为 vmware 。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-21 00:45:27 | 显示全部楼层
Post by coderoar;1977266
控制台应该是不能自动被捕获鼠标的,X下需要安装 x11-drivers/xf86-video-vmware 的,还要修改 xorg.conf 把驱动改为 vmware 。


安装xf86-video-vmware 并修改xorg.conf中显卡驱动为vmware后
在虚拟机屏幕 点击左键 可捕获鼠标
在虚拟中移动鼠标到屏幕边沿可以释放鼠标,但是鼠标释放要求很苛刻
必须是虚拟机屏幕边沿跟 host中虚拟机程序窗口边沿重合或在其外 才能释放

所以首先做到真正的 autofit window autofit guest之后 上述释放才有意义

期待虚拟linux的情况下 也能做到linux 分辨率随虚拟机程序窗口大小改变而改变
(很早很早以前我虚拟过一次win2000的时候,这个功能已经实现了,linux下怎么还没搞定呢)
回复 支持 反对

使用道具 举报

发表于 2009-4-21 12:40:55 | 显示全部楼层
xorg的架构已经老化了,没办法。期待wayland。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表