hellothere 发表于 2008-5-9 15:32:22

vmware配置无法通过解决办法

ml2.1beta2
kernel-smp-2.6.24.4-2mgc

错误代码如下:
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config2/vmmon-only'
make -C /lib/modules/2.6.24.4-smp/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make: Entering directory `/lib/modules/2.6.24.4-smp/build'
CC /tmp/vmware-config2/vmmon-only/linux/driver.o
CC /tmp/vmware-config2/vmmon-only/linux/hostif.o
CC /tmp/vmware-config2/vmmon-only/common/comport.o
CC /tmp/vmware-config2/vmmon-only/common/cpuid.o
In file included from include/asm/bitops.h:2,
               from /tmp/vmware-config2/vmmon-only/./include/vcpuset.h:74,
               from /tmp/vmware-config2/vmmon-only/./include/modulecall.h:23,
               from /tmp/vmware-config2/vmmon-only/common/vmx86.h:18,
               from /tmp/vmware-config2/vmmon-only/common/hostif.h:18,
               from /tmp/vmware-config2/vmmon-only/common/cpuid.c:14:
include/asm/bitops_32.h:9:2: #error only <linux/bitops.h> can be included directly
make: *** 错误 1
make: *** 错误 2
make: Leaving directory `/lib/modules/2.6.24.4-smp/build'
make: *** 错误 2
make: Leaving directory `/tmp/vmware-config2/vmmon-only'
Unable to build the vmmon module.


解决办法:

解开如下文件: /usr/lib/vmware/modules/source/vmmon.tar
解开后,修改这个文件:vmmon-only/include/vcpuset.h
将第74行#include "asm/bitops.h" 改为 #include "linux/bitops.h"
重新打包回去, 再运行vmware-config.pl就可以通过了。

[ 本帖最后由 hellothere 于 2008-5-9 16:56 编辑 ]

hellothere 发表于 2008-5-9 16:56:36

vmware无可用声音设备解决办法

ml2.1beta2
kernel-smp-2.6.24.4-2mgc


su root
chmod +s /usr/lib/libaoss.so.*
mv /usr/bin/vmware /usr/bin/vmware.orig
echo '#!/bin/bash' > /usr/bin/vmware
echo 'LD_PRELOAD=libaoss.so exec /usr/bin/vmware.orig "$@"' >>/usr/bin/vmware
chmod +x /usr/bin/vmware

虚拟机的声卡设备改为/dev/adsp

hellothere 发表于 2008-5-9 16:57:51

求人不如求自己。:roll:

现在终于可以用vmware了吧。呵呵。

guazi111 发表于 2008-5-9 17:22:07

恭喜恭喜

vmware6.5在ml下是冇问题的

xx_zz 发表于 2008-5-9 19:32:28

很好啊,有机会要试下,不过现在已经习惯了vbox了。

hellothere 发表于 2008-5-23 12:35:14

ml2.1beta2
kernel-2.6.25.4-smp

升级新内核后重新配置vmware(运行vmware-config.pl)
出错信息如下:
............................
Extracting the sources of the vmnet module.

Building the vmnet module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmnet-only'
make -C /lib/modules/2.6.25.4-smp/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make: Entering directory `/lib/modules/2.6.25.4-smp/build'
CC /tmp/vmware-config1/vmnet-only/driver.o
CC /tmp/vmware-config1/vmnet-only/hub.o
CC /tmp/vmware-config1/vmnet-only/userif.o
CC /tmp/vmware-config1/vmnet-only/netif.o
CC /tmp/vmware-config1/vmnet-only/bridge.o
/tmp/vmware-config1/vmnet-only/bridge.c: In function `VNetBridgeUp':
/tmp/vmware-config1/vmnet-only/bridge.c:947: error: implicit declaration of function `sock_valbool_flag'
make: *** 错误 1
make: *** 错误 2
make: Leaving directory `/lib/modules/2.6.25.4-smp/build'
make: *** 错误 2
make: Leaving directory `/tmp/vmware-config1/vmnet-only'
Unable to build the vmnet module.

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.
..............................

解决办法:
安装好vmware后下载这个文件,解开后运行里边的runme.pl,
然后闭上眼睛一路回车.................:roll:
http://download.rsbac.org/tmp/vmware-any-any-update117.tar.gz

如果使用以前装好的虚拟机,在里边重新安装一下vmware-tools

[ 本帖最后由 hellothere 于 2008-5-23 12:37 编辑 ]
页: [1]
查看完整版本: vmware配置无法通过解决办法