VMware Communities > VMTN > VMware Server > Discussions
Actions

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
1 2 Previous Next
15 Replies Last post: Jun 5, 2008 10:21 PM by alexei.colin
Reply

vmware server kernel 2.6.24 support?

Jan 17, 2008 4:12 PM

Click to view gsmd's profile Novice gsmd 16 posts since
Dec 4, 2006
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.

Reply Re: vmware server kernel 2.6.24 support? Jan 27, 2008 3:34 AM
Click to view vjt's profile Lurker vjt 4 posts since
Jan 27, 2008
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:
Reply Re: vmware server kernel 2.6.24 support? Jan 28, 2008 6:07 AM
in response to: vjt
Click to view vjt's profile Lurker vjt 4 posts since
Jan 27, 2008
I forgot, the vmmon patch was based on the one found here.
Reply Re: vmware server kernel 2.6.24 support? Feb 4, 2008 3:30 AM
in response to: vjt
Click to view wardenik's profile Novice wardenik 6 posts since
Feb 4, 2008

does not exactly do the trick :(


for dir in vm{mon,net}; do
tar xf /usr/lib/vmware/modules/source/${dir}.tar
cd ${dir}-only
patch -p1 < ../${dir}-2.6.24.patch
cd ..
tar cf ${dir}.tar ${dir}-only
cp ${dir}.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
Reply Re: vmware server kernel 2.6.24 support? Feb 4, 2008 6:58 AM
in response to: wardenik
Click to view vjt's profile Lurker vjt 4 posts since
Jan 27, 2008
Which version of vmware server are you using?
Those patches are against the 1.0.4 release (build 56528).
Reply Re: vmware server kernel 2.6.24 support? Feb 4, 2008 7:21 AM
in response to: vjt
Click to view wardenik's profile Novice wardenik 6 posts since
Feb 4, 2008

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]: *** _module_/tmp/vmware-config11/vmmon-only 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.


Reply Re: vmware server kernel 2.6.24 support? Feb 5, 2008 6:30 AM
in response to: wardenik
Click to view luyseyal's profile Lurker luyseyal 3 posts since
Feb 4, 2008
/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
Reply Re: vmware server kernel 2.6.24 support? Feb 5, 2008 6:48 AM
in response to: luyseyal
Click to view vjt's profile Lurker vjt 4 posts since
Jan 27, 2008
I'm glad that the patches are working for you all, and thanks indeed for the #include fix! :)

-vjt
Reply Re: vmware server kernel 2.6.24 support? Feb 15, 2008 1:59 AM
in response to: vjt
Click to view deadcow's profile Lurker deadcow 3 posts since
May 28, 2006
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/${dir}.tar;
cd ${dir}-only;
patch -p1 < ../${dir}-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 ${dir}.tar ${dir}-only;
sudo cp /usr/lib/vmware/modules/source/${dir}.tar /usr/lib/vmware/modules/source/${dir}.tar.org
sudo cp ${dir}.tar /usr/lib/vmware/modules/source/
done
Reply Re: vmware server kernel 2.6.24 support? Mar 1, 2008 10:02 PM
in response to: deadcow
Click to view alexei.colin's profile Lurker alexei.colin 3 posts since
Mar 1, 2008

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 [M] /tmp/vmware-config1/vmnet-only/driver.o
CC [M] /tmp/vmware-config1/vmnet-only/hub.o
CC [M] /tmp/vmware-config1/vmnet-only/userif.o
CC [M] /tmp/vmware-config1/vmnet-only/netif.o
CC [M] /tmp/vmware-config1/vmnet-only/bridge.o
CC [M] /tmp/vmware-config1/vmnet-only/procfs.o
CC [M] /tmp/vmware-config1/vmnet-only/smac_compat.o
SHIPPED /tmp/vmware-config1/vmnet-only/smac_linux.x386.o
LD [M] /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 [M] /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.


Reply Re: vmware server kernel 2.6.25 support? Apr 23, 2008 2:17 PM
in response to: deadcow
Click to view jondaley's profile Lurker jondaley 1 posts since
Apr 23, 2008

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

Reply Re: vmware server kernel 2.6.24 support? May 2, 2008 6:32 AM
Click to view notam42's profile Lurker notam42 2 posts since
May 2, 2008

Thanks for the solution, this also works well for vmware-server 1.0.5 on hardy heron too.
Reply Re: vmware server kernel 2.6.24 support? May 2, 2008 6:48 AM
in response to: notam42
Click to view notam42's profile Lurker notam42 2 posts since
May 2, 2008

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.


Reply Re: vmware server kernel 2.6.24 support? May 7, 2008 10:18 PM
in response to: notam42
Click to view alexei.colin's profile Lurker alexei.colin 3 posts since
Mar 1, 2008

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!
Reply Re: vmware server kernel 2.6.24 support? May 21, 2008 1:59 AM
Click to view maziggy's profile Lurker maziggy 1 posts since
May 21, 2008
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

1 2 Previous Next