安装vmware-tools总是发生错误,以致ubuntu无法和windows共享目录

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
flyinsky10
帖子: 13
注册时间: 2008-12-16 16:50
送出感谢: 0
接收感谢: 0

安装vmware-tools总是发生错误,以致ubuntu无法和windows共享目录

#1

帖子 flyinsky10 » 2008-12-18 17:05

我在xp上安装了vmware6.0,在虚拟机上安装了ubuntu8.0,但是在ubuntu中安装vmware-tools总是发生错误,错误如下:

Extracting the sources of the vmmemctl module.

Building the vmmemctl module.

Using 2.6.x kernel build system.
make:进入目录'/tmp/vmware-config0/vmmemctl-only'
make -C /lib/modules/2.6.27-9-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.27-9-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: 错误: 与‘poll_initwait’类型冲突
include/linux/poll.h:65: 错误: ‘poll_initwait’的上一个声明在此
/tmp/vmware-config0/vmmemctl-only/os.c: 在函数‘os_init’中:
/tmp/vmware-config0/vmmemctl-only/os.c:567: 错误: ‘struct proc_dir_entry’没有名为‘get_info’的成员
make[2]: *** [/tmp/vmware-config0/vmmemctl-only/os.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config0/vmmemctl-only] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.27-9-generic'
make: *** [vmmemctl.ko] 错误 2
make:离开目录“/tmp/vmware-config0/vmmemctl-only”
Unable to build the vmmemctl module.


Building the vmhgfs module.

Using 2.6.x kernel build system.
make:进入目录'/tmp/vmware-config1/vmhgfs-only'
make -C /lib/modules/2.6.27-9-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.27-9-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
/tmp/vmware-config1/vmhgfs-only/bdhandler.c:15:27: error: asm/semaphore.h: 没有该文件或目录
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: 错误: 与‘uintptr_t’类型冲突
include/linux/types.h:40: 错误: ‘uintptr_t’的上一个声明在此
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: 错误: 与‘poll_initwait’类型冲突
include/linux/poll.h:65: 错误: ‘poll_initwait’的上一个声明在此
make[2]: *** [/tmp/vmware-config1/vmhgfs-only/bdhandler.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config1/vmhgfs-only] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.27-9-generic'
make: *** [vmhgfs.ko] 错误 2
make:离开目录“/tmp/vmware-config1/vmhgfs-only”
Unable to build the vmhgfs module.

Extracting the sources of the vmxnet module.

Building the vmxnet module.

Using 2.6.x kernel build system.
make:进入目录'/tmp/vmware-config2/vmxnet-only'
make -C /lib/modules/2.6.27-9-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.27-9-generic'
CC [M] /tmp/vmware-config2/vmxnet-only/vmxnet.o
In file included from /tmp/vmware-config2/vmxnet-only/vmxnet.c:37:
/tmp/vmware-config2/vmxnet-only/vm_basic_types.h:170: 错误: 与‘uintptr_t’类型冲突
include/linux/types.h:40: 错误: ‘uintptr_t’的上一个声明在此
/tmp/vmware-config2/vmxnet-only/vmxnet.c: 在函数‘vmxnet_probe_device’中:
/tmp/vmware-config2/vmxnet-only/vmxnet.c:687: 错误: 隐式声明函数‘SET_MODULE_OWNER’
make[2]: *** [/tmp/vmware-config2/vmxnet-only/vmxnet.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config2/vmxnet-only] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.27-9-generic'
make: *** [vmxnet.ko] 错误 2
make:离开目录“/tmp/vmware-config2/vmxnet-only”
Unable to build the vmxnet module.


Building the vmblock module.

Using 2.6.x kernel build system.
make:进入目录'/tmp/vmware-config3/vmblock-only'
make -C /lib/modules/2.6.27-9-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

make[1]: 正在进入目录 `/usr/src/linux-headers-2.6.27-9-generic'
CC [M] /tmp/vmware-config3/vmblock-only/linux/block.o
In file included from /tmp/vmware-config3/vmblock-only/linux/os.h:21,
from /tmp/vmware-config3/vmblock-only/linux/block.c:12:
/tmp/vmware-config3/vmblock-only/./include/compat_wait.h:37:5: warning: "VMW_HAVE_EPOLL" is not defined
/tmp/vmware-config3/vmblock-only/./include/compat_wait.h:43:5: warning: "VMW_HAVE_EPOLL" is not defined
In file included from /tmp/vmware-config3/vmblock-only/linux/os.h:21,
from /tmp/vmware-config3/vmblock-only/linux/block.c:12:
/tmp/vmware-config3/vmblock-only/./include/compat_wait.h:60: 错误: 与‘poll_initwait’类型冲突
include/linux/poll.h:65: 错误: ‘poll_initwait’的上一个声明在此
In file included from /tmp/vmware-config3/vmblock-only/linux/vmblockInt.h:26,
from /tmp/vmware-config3/vmblock-only/linux/block.c:15:
/tmp/vmware-config3/vmblock-only/./include/vm_basic_types.h:170: 错误: 与‘uintptr_t’类型冲突
include/linux/types.h:40: 错误: ‘uintptr_t’的上一个声明在此
make[2]: *** [/tmp/vmware-config3/vmblock-only/linux/block.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config3/vmblock-only] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-2.6.27-9-generic'
make: *** [vmblock.ko] 错误 2
make:离开目录“/tmp/vmware-config3/vmblock-only”
Unable to build the vmblock module.


有哪位高手帮忙解决一下!!!!
头像
壹哥
帖子: 199
注册时间: 2008-01-02 17:26
送出感谢: 0
接收感谢: 0
联系:

Re: 安装vmware-tools总是发生错误,以致ubuntu无法和windows共享目录

#2

帖子 壹哥 » 2008-12-18 17:13

open-vm-tools
哥每天阅贴无数,心已经麻木了!
哥回的不是贴,是寂寞!
头像
wrq
帖子: 12
注册时间: 2008-12-16 7:28
送出感谢: 0
接收感谢: 0

Re: 安装vmware-tools总是发生错误,以致ubuntu无法和windows共享目录

#3

帖子 wrq » 2008-12-18 17:14

在虚拟机上运行,共享的话的很麻烦,还是装个真实的吧!UBUNTU安装很简单!
头像
bzhao
帖子: 207
注册时间: 2008-07-05 2:15
送出感谢: 1 次
接收感谢: 0

Re: 安装vmware-tools总是发生错误,以致ubuntu无法和windows共享目录

#4

帖子 bzhao » 2009-03-09 9:07

Please see the below link:
http://muffinresearch.co.uk/archives/20 ... m-the-cli/
Note: you need to download the latest open-vm-tools
回复

回到 “虚拟机和虚拟化”