vmware tools 安装问题

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
sihaiwuya1986
帖子: 14
注册时间: 2007-10-23 14:09

vmware tools 安装问题

#1

帖子 sihaiwuya1986 » 2008-05-25 18:02

主机为windows vista, 虚拟机为ubuntu 8,04,运行vmware-install.pl,配置时出现以下问题,总是说不能建立modules。build-essential 和 linux-header都安装了。系统提示如下:

Trying to find a suitable vmmemctl module for your running kernel.

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.24-16-generic/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.24-16-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'
CC [M] /tmp/vmware-config0/vmmemctl-only/os.o
In file included from /tmp/vmware-config0/vmmemctl-only/os.c:40:
/tmp/vmware-config0/vmmemctl-only/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined
/tmp/vmware-config0/vmmemctl-only/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined
In file included from /tmp/vmware-config0/vmmemctl-only/os.c:40:
/tmp/vmware-config0/vmmemctl-only/compat_wait.h:60: error: conflicting types for ‘poll_initwait’
include/linux/poll.h:65: error: previous declaration of ‘poll_initwait’ was here
make[2]: *** [/tmp/vmware-config0/vmmemctl-only/os.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmmemctl-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'
make: *** [vmmemctl.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/vmmemctl-only'
Unable to build the vmmemctl module.

The memory manager driver (vmmemctl module) is used by VMware host software to
efficiently reclaim memory from a virtual machine.
If the driver is not available, VMware host software may instead need to swap
guest memory to disk, which may reduce performance.
The rest of the software provided by VMware Tools is designed to work
independently of this feature.
If you want the memory management 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 ]

Trying to find a suitable vmhgfs module for your 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-config1/vmhgfs-only'
make -C /lib/modules/2.6.24-16-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic'
CC [M] /tmp/vmware-config1/vmhgfs-only/backdoor.o
CC [M] /tmp/vmware-config1/vmhgfs-only/backdoorGcc32.o
CC [M] /tmp/vmware-config1/vmhgfs-only/bdhandler.o
In file included from /tmp/vmware-config1/vmhgfs-only/dbllnklst.h:14,
from /tmp/vmware-config1/vmhgfs-only/vmrpc.h:17,
from /tmp/vmware-config1/vmhgfs-only/hgfsBd.h:14,
from /tmp/vmware-config1/vmhgfs-only/bdhandler.c:29:
/tmp/vmware-config1/vmhgfs-only/vm_basic_types.h:170: error: conflicting types for ‘uintptr_t’
include/linux/types.h:40: error: previous declaration of ‘uintptr_t’ was here
In file included from /tmp/vmware-config1/vmhgfs-only/request.h:21,
from /tmp/vmware-config1/vmhgfs-only/bdhandler.c:34:
/tmp/vmware-config1/vmhgfs-only/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined
/tmp/vmware-config1/vmhgfs-only/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined
In file included from /tmp/vmware-config1/vmhgfs-only/request.h:21,
from /tmp/vmware-config1/vmhgfs-only/bdhandler.c:34:
/tmp/vmware-config1/vmhgfs-only/compat_wait.h:60: error: conflicting types for ‘poll_initwait’
include/linux/poll.h:65: error: previous declaration of ‘poll_initwait’ was here
make[2]: *** [/tmp/vmware-config1/vmhgfs-only/bdhandler.o] Error 1
make[1]: *** [_module_/tmp/vmware-config1/vmhgfs-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic'
make: *** [vmhgfs.ko] Error 2
make: Leaving directory `/tmp/vmware-config1/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.

所有modules都安装不了,请叫高手知道,感激涕零。我的gcc binutils make都已经是最新版本了。内核为2.6.24-16-generic。
头像
huzhongx
帖子: 25
注册时间: 2008-03-25 20:00

#2

帖子 huzhongx » 2008-05-27 19:40

估计是虚拟机版本的问题,下载最新的vmware 6.03试一试.
bingo-lin
帖子: 2
注册时间: 2008-05-28 17:17

#3

帖子 bingo-lin » 2008-05-28 17:21

before u install the vmware tools, u need to install some dependencies

please refer the following address:
http://peterc.org/2008/62-how-to-instal ... usion.html

it really works!
头像
huzhongx
帖子: 25
注册时间: 2008-03-25 20:00

#4

帖子 huzhongx » 2008-05-28 23:02

bingo-lin 写了:before u install the vmware tools, u need to install some dependencies

please refer the following address:
http://peterc.org/2008/62-how-to-instal ... usion.html

it really works!
没有这么麻烦吧,vmware6.0.3对ubuntu 8.04的支持很好啊,并不需要做什么预备工作,只要确保wmware的版本合适,那么利用其自带的vmwaretools就行了。
sihaiwuya1986
帖子: 14
注册时间: 2007-10-23 14:09

#5

帖子 sihaiwuya1986 » 2008-05-29 11:55

before u install the vmware tools, u need to install some dependencies

please refer the following address:
http://peterc.org/2008/62-how-to-instal ... usion.html

it really works!
hehe. It really works .thanks bingo
eeyy
帖子: 22
注册时间: 2008-07-14 6:29

#6

帖子 eeyy » 2008-07-14 6:30

bingo-lin 写了:before u install the vmware tools, u need to install some dependencies

please refer the following address:
http://peterc.org/2008/62-how-to-instal ... usion.html

it really works!
这个真的有用。。。。
总算解决了
fallerr
帖子: 26
注册时间: 2007-10-08 12:40

#7

帖子 fallerr » 2008-07-16 10:30

bingo-lin 写了:before u install the vmware tools, u need to install some dependencies

please refer the following address:
http://peterc.org/2008/62-how-to-instal ... usion.html

it really works!
按上面说的去做,最后就OK了。是很麻烦的。
回复