关于在VMware上安装VMware Tools的问题

upc 2008-11-05 11:45:23
我在VMware5.5.3上安装了Linux红旗6.0
现在想安装VMware Tolls但是安装时出错 错误代码如下
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [确定]
Guest filesystem driver: [确定]
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]

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.22.6-1/build/include]

Extracting the sources of the vmhgfs module.

Building the vmhgfs module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config15/vmhgfs-only'
make -C /lib/modules/2.6.22.6-1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.22.6-1-i686'
CC [M] /tmp/vmware-config15/vmhgfs-only/cpName.o
CC [M] /tmp/vmware-config15/vmhgfs-only/cpNameLinux.o
CC [M] /tmp/vmware-config15/vmhgfs-only/dev.o
CC [M] /tmp/vmware-config15/vmhgfs-only/driver.o
CC [M] /tmp/vmware-config15/vmhgfs-only/hgfsUtil.o
CC [M] /tmp/vmware-config15/vmhgfs-only/main.o
CC [M] /tmp/vmware-config15/vmhgfs-only/staticEscape.o
LD [M] /tmp/vmware-config15/vmhgfs-only/vmhgfs.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-config15/vmhgfs-only/vmhgfs.mod.o
LD [M] /tmp/vmware-config15/vmhgfs-only/vmhgfs.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.22.6-1-i686'
cp -f vmhgfs.ko ./../vmhgfs.o
make: Leaving directory `/tmp/vmware-config15/vmhgfs-only'
The module loads perfectly in the running kernel.

pcnet32 31092 0
Unloading pcnet32 module

Extracting the sources of the vmxnet module.

Building the vmxnet module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config15/vmxnet-only'
make -C /lib/modules/2.6.22.6-1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.22.6-1-i686'
CC [M] /tmp/vmware-config15/vmxnet-only/vmxnet.o
/tmp/vmware-config15/vmxnet-only/vmxnet.c: In function ‘vmxnet_open’:
/tmp/vmware-config15/vmxnet-only/vmxnet.c:674: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
/tmp/vmware-config15/vmxnet-only/vmxnet.c: In function ‘vmxnet_netpoll’:
/tmp/vmware-config15/vmxnet-only/vmxnet.c:1058: error: too many arguments to function ‘vmxnet_interrupt’
make[2]: *** [/tmp/vmware-config15/vmxnet-only/vmxnet.o] 错误 1
make[1]: *** [_module_/tmp/vmware-config15/vmxnet-only] 错误 2
make[1]: Leaving directory `/usr/src/kernels/2.6.22.6-1-i686'
make: *** [vmxnet.ko] 错误 2
make: Leaving directory `/tmp/vmware-config15/vmxnet-only'
Unable to build the vmxnet module.


The fast network device driver (vmxnet module) is used only for our fast
networking interface. The rest of the software provided by VMware Tools is
designed to work independently of this feature.
If you wish to have the fast network driver enabled, 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 ]


哪位高手能帮我解决阿
我的Linux内核版本是2.6.22.6-1
...全文
7932 10 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
liucy1983 2008-11-11
  • 打赏
  • 举报
回复
/tmp/vmware-config15/vmxnet-only/vmxnet.c:674: warning: ‘deprecated_irq_flag’ is deprecated (declared at include/linux/interrupt.h:66)
/tmp/vmware-config15/vmxnet-only/vmxnet.c: In function ‘vmxnet_netpoll’:
/tmp/vmware-config15/vmxnet-only/vmxnet.c:1058: error: too many arguments to function ‘vmxnet_interrupt’
上面说了在配置vmxnet_interrupt时参数太多了,而下面说的是要让VMware Tools正常工作就需要网卡可以正常运行,所以就需要安装网卡的驱动(vmxnet module)。如果你想启动网卡,就要安装gcc,bintuils,make和kernel sources以后再次运行vmware-config-tools.pl

The fast network device driver (vmxnet module) is used only for our fast
networking interface. The rest of the software provided by VMware Tools is
designed to work independently of this feature.
If you wish to have the fast network driver enabled, 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.

upc 2008-11-07
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 butchroller 的回复:]
引用 2 楼 yidihaishui 的回复:
引用 1 楼 butchroller 的回复:
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]
------------------------------------
这个vmhgfs模块没什么用处,建…
[/Quote]

这回我找到文件和那个函数 但是不知道怎么改
高手就帮帮我吧
那程序我看得懂一点
谢谢了
bxhzct 2008-11-07
  • 打赏
  • 举报
回复
up,多上google搜索,一般把错误的代码一敲都会有相关结果的
upc 2008-11-07
  • 打赏
  • 举报
回复
[Quote=引用 8 楼 bxhzct 的回复:]
up,多上google搜索,一般把错误的代码一敲都会有相关结果的
[/Quote]

是啊 我去google搜过的
也有相关的结果 但是就是解决不了
烦啊···
upc 2008-11-06
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 butchroller 的回复:]
宿主机与虚拟机之间文件共享可以通过网络服务,smb,ftp,都可以。
[/Quote]

可以共享了 我安装VMware Tools的目的就是想实现鼠标的自由移动
不用按Ctrl+Alt了 那样好麻烦的
butchroller 2008-11-06
  • 打赏
  • 举报
回复
宿主机与虚拟机之间文件共享可以通过网络服务,smb,ftp,都可以。
butchroller 2008-11-06
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 yidihaishui 的回复:]
引用 1 楼 butchroller 的回复:
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]
------------------------------------
这个vmhgfs模块没什么用处,建议跳过,选no。

另:关于这个b…
[/Quote]
你要找的是这个文件:vmxnet.c, 然后查找函数定义:vmxnet_interrupt()
如果对编程不熟悉的话,建议放弃,这个功能并不重要。
welcap 2008-11-06
  • 打赏
  • 举报
回复
那个vmhgfs是你的windows系统与虚拟系统进行文件共享的模块,如果要共享数据的话就需要选yes的
upc 2008-11-06
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 butchroller 的回复:]
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]
------------------------------------
这个vmhgfs模块没什么用处,建议跳过,选no。

另:关于这个bug的解决可参考此文档:
http://…
[/Quote]
你给的这个网址是VMware6的我的是VMware5.5.3
按这个说的做 都找不到那个文件阿
butchroller 2008-11-06
  • 打赏
  • 举报
回复
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]
------------------------------------
这个vmhgfs模块没什么用处,建议跳过,选no。

另:关于这个bug的解决可参考此文档:
http://tech.ddvip.com/2008-09/122089252361988.html

19,619

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧