I had the privilege of installing VMWare 1.0.5 on a brand new 2.6.25 kernel. I downloaded the
2.6.XX patch for vmware 1.0.4, applied the one change from asm to linux in vcpuset.h. That had worked for me before when using 1.0.5 on a 2.6.24 kernel, but today I downloaded a 2.6.25 kernel for someone and of course, someone changed something slightly, causing the vmware module (vmnet) to no longer compile. Fortunately for me, a small bit of hacking fixed it, and now I can go to bed.The function that is missing in the 2.6.26 kernel is sock_valbool_flag, which was recently made inline, so it causes a "implicit declaration of function" error when running the standard vmware-config.pl script. I saw that the function still exists in the kernel sources, but was made a static function, and moved to sock.c. So, after taking a look at the function, I figured it wouldn't hurt to simply copy it from sock.c into vmware's bridge.c and off I went. tada!
Posted by
Jon Daley on
April 18, 2008, 12:28 am
| Read 68689 times
Category
Programming:
[
first]
[
previous]
[
next]
[
newest]
Thanks Brice. Note that some of your comment was truncated - it must have thought your < was the start of an HTML tag You can type it as < I should probably figure out some way of saying "ignore HTML" in the comment, or even have that set to the default.
That was a PEBKAC on my part. I assumed the 1.0.5 was referring to your patch, not vmware. Having not used vmware server until now ;).
This works great but i just have one problem.
When trying to load the module is complains about "init_mm" and the vmware setup fails.
My Kernel is a 2.6.25 vanilla.
Any help?
Jorge: see the comment by Brice above. Unfortunately, some of his text was lost, but he says you have to enable unused/obsolete symbols. We need a "real" updated version of the module so you don't need that workaround.
Oh i see, can you tell me where is the option to enable/desable the unused/obsolete symbols in kernel?
I mean, in wich menu.
Kernel hacking -> CONFIG_UNUSED_SYMBOLS
Ok i asked google and it's on "Kernel Hacking".
I'm compiling kernel and tomorow when i'll be next to the machine i'll reboot it and test and let you know.
Thanks,
Jorge
patches worked perfectly on vmware 1.0.5 and custom linux-2.6.25.1-x64 host.
i just patched the installer tar files, makes it easier :)
many thanks
hello,
applied your patches but now i get the nopage error..... can you help me out?
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config6/vmmon-only'
make -C /lib/modules/2.6.25-mm1-helux/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD /. modules
make[1]: Entering directory `/usr/src/linux-2.6.25-mm1-helux'
CC [M] /tmp/vmware-config6/vmmon-only/linux/driver.o
/tmp/vmware-config6/vmmon-only/linux/driver.c:146: error: unknown field ânopageâ specified in initializer
/tmp/vmware-config6/vmmon-only/linux/driver.c:147: warning: initialization from incompatible pointer type
/tmp/vmware-config6/vmmon-only/linux/driver.c:150: error: unknown field ânopageâ specified in initializer
/tmp/vmware-config6/vmmon-only/linux/driver.c:151: warning: initialization from incompatible pointer type
make[2]: *** [/tmp/vmware-config6/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config6/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.25-mm1-helux'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config6/vmmon-only'
Unable to build the vmmon module.
hmmm -mm kernel is the problem....
compiled the vanilla kernel with the patches and works. do not install the -mm patchbundle
I came here to report sucess and unsucess.
Now i have the other problem herwarth reported, but I just using 2.6.26-rc1.
What it can be done?
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config6/vmmon-only'
make -C /lib/modules/2.6.26-rc1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.25'
CC [M] /tmp/vmware-config6/vmmon-only/linux/driver.o
/tmp/vmware-config6/vmmon-only/linux/driver.c:146: error: unknown field 'nopage' specified in initializer
/tmp/vmware-config6/vmmon-only/linux/driver.c:147: warning: initialization from incompatible pointer type
/tmp/vmware-config6/vmmon-only/linux/driver.c:150: error: unknown field 'nopage' specified in initializer
/tmp/vmware-config6/vmmon-only/linux/driver.c:151: warning: initialization from incompatible pointer type
make[2]: *** [/tmp/vmware-config6/vmmon-only/linux/driver.o] Error 1
make[1]: *** [_module_/tmp/vmware-config6/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.25'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config6/vmmon-only'
Unable to build the vmmon module.
First, thanks so much for this patch.
Second, to jondaley: in the directory where you extraceted the kernel source type (as root) `make menuconfig`. Towards the bottom you will have a Kernel Hacking section. select it and hit enter. The option is there. After you enable the unused/obsolete symbols you will have to recompile and install the new kernel.
Jorge :
make menuconfig
then search with / keyword "symbols"
This is in kernel hacking section
I guess I'll need to make the "next" links more obvious, since two of you haven't seen it.
Hi,
I just want to say - thank you. These patches has been solved my problem with very new 2.6.25.3 kernel and vmware-server-1.0.5. Thanks a lot.
P.S. It seems we should migrate to server 2.0 is there any who already play with it ? I'm litle bit worried about native console ...
B