红联Linux门户
Linux帮助

2.6.24kernel安装vmware

发布时间:2008-03-20 00:01:06来源:红联作者:wlike
当fedora 8内核版本yum更新到2.6.24.3-12.fc8时,vmware-config.pl就会再次报错,并且这时候用最新的 vmware-any-any-update115也过不去了...我的vm版本是1.0.4 build-56528。网上找到如下文章,按照所说的,解决了问题。

Unknown VMware Workstation 6.0.2 build 59824 detected. Building for
Workstation 6.0.0.
Using 2.6.x kernel build system.
make: Entering directory \`/tmp/vmware-config2/vmmon-only\'
make -C /lib/modules/2.6.24-4-generic/build/include/.. SUBDIRS=$PWD
SRCROOT=\$PWD/. modules
make[1]: Entering directory \`/usr/src/linux-headers-2.6.24-4-generic\'
CC [M] /tmp/vmware-config2/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-config2/vmmon-only/linux/driverLog.o
CC [M] /tmp/vmware-config2/vmmon-only/linux/hostif.o
CC [M] /tmp/vmware-config2/vmmon-only/common/comport.o
CC [M] /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:19,
from /tmp/vmware-config2/vmmon-only/common/hostif.h:18,
from /tmp/vmware-config2/vmmon-only/common/cpuid.c:15:
include/asm/bitops_32.h:9:2: error: #error only can be
included directly
make[2]: *** [/tmp/vmware-config2/vmmon-only/common/cpuid.o] Error 1
make[1]: *** [_module_/tmp/vmware-config2/vmmon-only] Error 2
make[1]: Leaving directory \`/usr/src/linux-headers-2.6.24-4-generic\'
make: *** [vmmon.ko] Error 2
make: Leaving directory \`/tmp/vmware-config2/vmmon-only\'
Unable to build the vmmon module.

No worries the solution is right at hand.

1、Get the vmware-any-any patch
2、After unpacking, go to the vmware-any-any-update115 directory and unpack vmmon.tar
3、Open vmmon-only/include/vcpuset.h and change the following line #include "asm/bitops.h" to #include "linux/bitops.h"
4、Open vmmon-only/include/iocontrolscompat.h and change VMMONVERSION_V6 to 167
5、Open vmmon-only/include/iocontrols.h and change VMMON_VERSION to 167
6、Pack a new vmmon.tar and then run runme.pl
The resulting patch

diff -ur vmmon-only/include/iocontrols_compat.h
vmmon-only.patched/include/iocontrols_compat.h
--- vmmon-only/include/iocontrols_compat.h 2007-07-23
11:59:47.000000000 +0200
+++ vmmon-only.patched/include/iocontrols_compat.h 2008-01-17
19:41:08.227996503 +0100
@@ -15,7 +15,7 @@
#define VMMON_VERSION_V5 (116 << 16 | 0)
#define VMMON_VERSION_V55 (137 << 16 | 0)
#define VMMON_VERSION_S1B1 (138 << 16 | 0)
-#define VMMON_VERSION_V6 (161 << 16 | 0)
+#define VMMON_VERSION_V6 (167 << 16 | 0)

/*
* Limit structure for CREATE_VM
diff -ur vmmon-only/include/iocontrols.h
vmmon-only.patched/include/iocontrols.h
--- vmmon-only/include/iocontrols.h 2007-11-28 11:48:50.000000000
+0100
+++ vmmon-only.patched/include/iocontrols.h 2008-01-17
19:41:30.687235832 +0100
@@ -45,7 +45,7 @@
*
*/

-#define VMMON_VERSION (161 << 16 | 0)
+#define VMMON_VERSION (167 << 16 | 0)
#define VMMON_VERSION_MAJOR(v) ((uint32) (v) >> 16)
#define VMMON_VERSION_MINOR(v) ((uint16) (v))

diff -ur vmmon-only/include/vcpuset.h
vmmon-only.patched/include/vcpuset.h
--- vmmon-only/include/vcpuset.h 2007-07-22 13:21:17.000000000
+0200
+++ vmmon-only.patched/include/vcpuset.h 2008-01-17
19:07:34.039175222 +0100
@@ -71,7 +71,7 @@
#define ffs(x) ffs_x86_64(x)

#elif defined MODULE
- #include "asm/bitops.h"
+ #include "linux/bitops.h"
#elif defined __APPLE__ && defined KERNEL
/*
* XXXMACOS An ugly hack to resolve redefinition of PAGE_ defines


That's it.
文章评论

共有 0 条评论