VMware

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  

vmware server kernel 2.6.24 support? posted: Jan 17, 2008 4:12 PM

Click to view gsmd's profile Novice 18 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.

Re: vmware server kernel 2.6.24 support?

1. Jan 27, 2008 3:34 AM in response to: gsmd
Click to view vjt's profile Lurker 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:

Re: vmware server kernel 2.6.24 support?

2. Jan 28, 2008 6:07 AM in response to: vjt
Click to view vjt's profile Lurker 4 posts since
Jan 27, 2008
I forgot, the vmmon patch was based on the one found here.

Re: vmware server kernel 2.6.24 support?

3. Feb 4, 2008 3:30 AM in response to: vjt
Click to view wardenik's profile Novice 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

Re: vmware server kernel 2.6.24 support?

4. Feb 4, 2008 6:58 AM in response to: wardenik
Click to view vjt's profile Lurker 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).

Re: vmware server kernel 2.6.24 support?

5. Feb 4, 2008 7:21 AM in response to: vjt
Click to view wardenik's profile Novice 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.


Re: vmware server kernel 2.6.24 support?

6. Feb 5, 2008 6:30 AM in response to: wardenik
Click to view luyseyal's profile Lurker 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

Re: vmware server kernel 2.6.24 support?

7. Feb 5, 2008 6:48 AM in response to: luyseyal
Click to view vjt's profile Lurker 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

Re: vmware server kernel 2.6.24 support?

8. Feb 15, 2008 1:59 AM in response to: vjt
Click to view deadcow's profile Lurker 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

Re: vmware server kernel 2.6.24 support?

9. Mar 1, 2008 10:02 PM in response to: deadcow
Click to view alexei.colin's profile Lurker 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.


Re: vmware server kernel 2.6.25 support?

10. Apr 23, 2008 2:17 PM in response to: deadcow
Click to view jondaley's profile Lurker 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

Re: vmware server kernel 2.6.24 support?

11. May 2, 2008 6:32 AM in response to: gsmd
Click to view notam42's profile Lurker 2 posts since
May 2, 2008

Thanks for the solution, this also works well for vmware-server 1.0.5 on hardy heron too.

Re: vmware server kernel 2.6.24 support?

12. May 2, 2008 6:48 AM in response to: notam42
Click to view notam42's profile Lurker 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.


Re: vmware server kernel 2.6.24 support?

13. May 7, 2008 10:18 PM in response to: notam42
Click to view alexei.colin's profile Lurker 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!

Re: vmware server kernel 2.6.24 support?

14. May 21, 2008 1:59 AM in response to: gsmd
Click to view maziggy's profile Lurker 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

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities