Hi.
I realize that 2.6.24 is of a rc state. Anyways, any ETA for vmware server to support it? Currently I run into compilation problem when running vmware-config under Ubuntu Hardy alpha2.
P.S. Meaning genuine stuff, not vmware-any-any-update.
TIA.
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/$.tar cd $-only
patch -p1 < $-2.6.24.patch cd .. tar cf $.tar $-only sudo cp $.tar /usr/local/lib/vmware/modules/source
done
$ sudo vmware-config.pl
Enjoy!
-vjt
I forgot, the vmmon patch was based on the one found here.
does not exactly do the trick ![]()
> for dir in vm{mon,net}; do
> tar xf /usr/lib/vmware/modules/source/$.tar > cd $-only
> patch -p1 < ../$-2.6.24.patch > cd .. > tar cf $.tar $-only > cp $.tar /usr/lib/vmware/modules/source
> done
patching file Makefile.kernel
Hunk #1 FAILED at 6.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.kernel.rej
patching file include/vm_basic_types.h
Hunk #1 succeeded at 163 (offset 9 lines).
Hunk #2 succeeded at 177 (offset 9 lines).
Hunk #3 succeeded at 273 with fuzz 1 (offset 11 lines).
patching file linux/driver.c
Hunk #1 FAILED at 1655.
1 out of 1 hunk FAILED -- saving rejects to file linux/driver.c.rej
patching file Makefile.kernel
Hunk #1 FAILED at 7.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.kernel.rej
patching file compat_wait.h
patching file driver.c
Hunk #1 FAILED at 516.
1 out of 1 hunk FAILED -- saving rejects to file driver.c.rej
patching file netif.c
Hunk #1 FAILED at 295.
1 out of 1 hunk FAILED -- saving rejects to file netif.c.rej
patching file sk_alloc.c
Hunk #1 succeeded at 12 with fuzz 2 (offset 8 lines).
Hunk #2 succeeded at 21 with fuzz 2 (offset 8 lines).
patching file vm_basic_types.h
Hunk #1 succeeded at 163 (offset 9 lines).
Hunk #2 succeeded at 177 (offset 9 lines).
Hunk #3 succeeded at 273 with fuzz 1 (offset 11 lines).
patching file vmnetInt.h
Hunk #1 FAILED at 35.
1 out of 1 hunk FAILED -- saving rejects to file vmnetInt.h.rej
patching file vnetInt.h
Hunk #1 FAILED at 29.
1 out of 1 hunk FAILED -- saving rejects to file vnetInt.h.rej
Which version of vmware server are you using?
Those patches are against the 1.0.4 release (build 56528).
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 Re: vmware server kernel 2.6.24 support? /tmp/vmware-config11/vmmon-only/linux/driver.o
CC Re: vmware server kernel 2.6.24 support? /tmp/vmware-config11/vmmon-only/linux/hostif.o
CC Re: vmware server kernel 2.6.24 support? /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]: *** Re: vmware server kernel 2.6.24 support? Error 2
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
I'm glad that the patches are working for you all, and thanks indeed for the #include fix! ![]()
-vjt
Works for me on debian as well, thanks for the patches.
I had to change the path, so the whole code reads:
for dir in vm{mon,net}; do
tar xf /usr/lib/vmware/modules/source/$.tar; cd $-only;
patch -p1 < ../$-2.6.24.patch; cd ..; done perl -pi -e 's/asm\//linux\//'g vmmon-only/include/vcpuset.h for dir in vm{mon,net}; do tar cf $.tar $-only; sudo cp /usr/lib/vmware/modules/source/$.tar /usr/lib/vmware/modules/source/$.tar.org sudo cp $.tar /usr/lib/vmware/modules/source/
done
Hi,
Did the networking part also compile for you?
Here is what I am getting. Any advice will be very welcome! Thank you!
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.24-4-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-4-generic'
CC Re: vmware server kernel 2.6.24 support? /tmp/vmware-config1/vmnet-only/driver.o
CC Re: vmware server kernel 2.6.24 support? /tmp/vmware-config1/vmnet-only/hub.o
CC Re: vmware server kernel 2.6.24 support? /tmp/vmware-config1/vmnet-only/userif.o
CC Re: vmware server kernel 2.6.24 support? /tmp/vmware-config1/vmnet-only/netif.o
CC Re: vmware server kernel 2.6.24 support? /tmp/vmware-config1/vmnet-only/bridge.o
CC Re: vmware server kernel 2.6.24 support? /tmp/vmware-config1/vmnet-only/procfs.o
CC Re: vmware server kernel 2.6.24 support? /tmp/vmware-config1/vmnet-only/smac_compat.o
SHIPPED /tmp/vmware-config1/vmnet-only/smac_linux.x386.o
LD Re: vmware server kernel 2.6.24 support? /tmp/vmware-config1/vmnet-only/vmnet.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: could not find /tmp/vmware-config1/vmnet-only/.smac_linux.x386.o.cmd for /tmp/vmware-config1/vmnet-only/smac_linux.x386.o
CC /tmp/vmware-config1/vmnet-only/vmnet.mod.o
LD Re: vmware server kernel 2.6.24 support? /tmp/vmware-config1/vmnet-only/vmnet.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-4-generic'
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory `/tmp/vmware-config1/vmnet-only'
Unable to make a vmnet module that can be loaded in the running kernel:
insmod: error inserting '/tmp/vmware-config1/vmnet.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.
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.
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
Thanks for the solution, this also works well for vmware-server 1.0.5 on hardy heron too.
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:
CC Re: vmware server kernel 2.6.24 support? /tmp/vmware-config3/vmmon-only/common/task.o
CC Re: vmware server kernel 2.6.24 support? /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 Re: vmware server kernel 2.6.24 support? /tmp/vmware-config3/vmmon-only/vmcore/moduleloop.o
LD Re: vmware server kernel 2.6.24 support? /tmp/vmware-config3/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/vmware-config3/vmmon-only/vmmon.mod.o
LD Re: vmware server kernel 2.6.24 support? /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.
Any help is highly appreciated.
Thank you guys!
Cheers, Martin