|
Hi, i was able to compile the vmmon and vmnet modules from vmware server 1.0.4 on vanilla 2.6.24.
Attached two patches, apply them as usual: $ cp /path/to/patches/vm{mon,net}-2.6.24.patch /tmp $ cd /tmp $ for dir in vm{mon,net}; do tar xf /usr/local/lib/vmware/modules/source/${dir}.tar cd ${dir}-only patch -p1 < ${dir}-2.6.24.patch cd .. tar cf ${dir}.tar ${dir}-only sudo cp ${dir}.tar /usr/local/lib/vmware/modules/source done $ sudo vmware-config.pl Enjoy! -vjt
Attachments:
|
|
Hey. Indeed, thanks, it it better. I was using 1.0.0. On 1.0.4 it is patching correctly, however: Using 2.6.x kernel build system. make: Entering directory `/tmp/vmware-config11/vmmon-only' make -C /lib/modules/2.6.24/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory `/usr/src/linux-2.6.24' CC [M] /tmp/vmware-config11/vmmon-only/linux/driver.o CC [M] /tmp/vmware-config11/vmmon-only/linux/hostif.o CC [M] /tmp/vmware-config11/vmmon-only/common/cpuid.o In file included from include/asm/bitops.h:2, from /tmp/vmware-config11/vmmon-only/./include/vcpuset.h:74, from /tmp/vmware-config11/vmmon-only/./include/modulecall.h:22, from /tmp/vmware-config11/vmmon-only/common/vmx86.h:18, from /tmp/vmware-config11/vmmon-only/common/hostif.h:18, from /tmp/vmware-config11/vmmon-only/common/cpuid.c:14: include/asm/bitops_32.h:9:2: error: #error only can be included directly make[2]: *** [/tmp/vmware-config11/vmmon-only/common/cpuid.o] Error 1 make[1]: *** make[1]: Leaving directory `/usr/src/linux-2.6.24' make: *** http://vmmon.ko Error 2 make: Leaving directory `/tmp/vmware-config11/vmmon-only' Unable to build the vmmon module. |
|
/source/vmmon-only/include/vcpuset.h
Change line 74 from "asm/bitops.h" to "linux/bitops.h" And may I say SUPER thanks for the patches to the original poster. Made everything work great. Stephen |
|
Thanks for the patches. I updated it to include the #include change, as well as added one function change to make it work with 2.6.25 also. http://jon.limedaley.com/plog/archives/2008/04/18/vmware-1.0.5-patch-for-2.6.25-kernel |
|
I guess I spoke too soon, anyway, now you run into /usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4' not found (required by /usr/lib32/libcairo.so.2) ..but I did find a fix for this new issue with the following http://communities.vmware.com/message/370107 At this point everything works great. |
|
notam42, thank you for posting the libgcc_s.so.1 fix! I was using vmware server for a while, but one day it just stopped loading. libgcc_s.so.1 fix solved the problem! |
|
I'm currently trying the get the latest version of Vmware Server running under Kernel 2.6.25.3. After applying the patches, compilation of the modules will no longer be aborted, but i get the following error message:
http://... CC [M] /tmp/vmware-config3/vmmon-only/common/task.o CC [M] /tmp/vmware-config3/vmmon-only/common/vmx86.o /tmp/vmware-config3/vmmon-only/common/vmx86.c: In function âVmx86_GetkHzEstimateâ: /tmp/vmware-config3/vmmon-only/common/vmx86.c:1899: warning: passing argument 4 of âDiv643264â from incompatible pointer type /tmp/vmware-config3/vmmon-only/common/vmx86.c:1908: warning: passing argument 4 of âDiv643232â from incompatible pointer type CC [M] /tmp/vmware-config3/vmmon-only/vmcore/moduleloop.o LD [M] /tmp/vmware-config3/vmmon-only/vmmon.o Building modules, stage 2. MODPOST 1 modules CC /tmp/vmware-config3/vmmon-only/vmmon.mod.o LD [M] /tmp/vmware-config3/vmmon-only/vmmon.ko make[1]: Leaving directory `/usr/src/linux-2.6.25.3' cp -f vmmon.ko ./../vmmon.o make: Leaving directory `/tmp/vmware-config3/vmmon-only' Unable to make a vmmon module that can be loaded in the running kernel: insmod: error inserting '/tmp/vmware-config3/vmmon.o': -1 Unknown symbol in module There is probably a slight difference in the kernel configuration between the set of C header files you specified and your running kernel. You may want to rebuild a kernel based on that directory, or specify another directory. http://... Any help is highly appreciated. Thank you guys! Cheers, Martin |