VMware

This Question is Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
1 2 3 Previous Next 44 Replies Last post: Jan 10, 2008 1:10 PM by kirenaj  

vmware WS6: kernel 2.6.22 - VMnet refuses to compile. posted: May 10, 2007 7:12 PM

Click to view sputnik66's profile Novice 11 posts since
Apr 29, 2007
the problem when running vmware-config.pl so it can compile the modules:

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmnet-only'
make -C /lib/modules/2.6.21-git13-SPTNK1/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.21'
CC [M] /tmp/vmware-config0/vmnet-only/driver.o
CC [M] /tmp/vmware-config0/vmnet-only/hub.o
CC [M] /tmp/vmware-config0/vmnet-only/userif.o
/tmp/vmware-config0/vmnet-only/userif.c: In function ‘VNetCopyDatagramToUser’:
/tmp/vmware-config0/vmnet-only/userif.c:630: error: ‘const struct sk_buff’ has no member named ‘h’
/tmp/vmware-config0/vmnet-only/userif.c:630: error: ‘const struct sk_buff’ has no member named ‘nh’
/tmp/vmware-config0/vmnet-only/userif.c:636: error: ‘const struct sk_buff’ has no member named ‘h’
make[2]: *** [/tmp/vmware-config0/vmnet-only/userif.o] Error 1
make[1]: *** [_module_/tmp/vmware-config0/vmnet-only] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.21'
make: *** [vmnet.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/vmnet-only'
Unable to build the vmnet module.

I have gone as far as removing the licensing restriction in paravirt_ops.c, and patching my kernel to git13 (which has the paravirt_ops patch aswell). This has removed the compiling error for vmmon's "unknown symbol" and many other problems for modules that use different licenses other than GPL.

It appears I'm unable to win having paravirt_ops enabled. Disabling it is the last resort... althrough I don't see any relevence between this and paravirt_ops. I have an idea what this is, but I'm at a loss as to where to start.

edit: I forgot to include I have CONFIG_COMPAT_VDSO disabled.

"# CONFIG_COMPAT_VDSO is not set"

info:

OS - ArchLinux 0.8, self maintained kernel.

uname -a
Linux SPUTNIK1 2.6.21-git13-SPTNK1 #1 PREEMPT Fri May 11 05:59:04 CST 2007 i686 AMD Athlon(tm) AuthenticAMD GNU/Linux

glib 1.2.10-6
glib2 2.12.12-1
glibc 2.5-8
gcc version 4.1.2 20070423 (prerelease)

VMware-workstation-6.0.0-45731

Any help would be greatly appreciated.
Click to view KevinG's profile Guru 16,980 posts since
Jan 8, 2004
Looks like you are using kernel 2.6.21 and not 2.6.22 as listed in the subject field. Did you disable paravirtualization support in the kernel config?
Click to view c_g-hills's profile Enthusiast 46 posts since
Nov 9, 2005
Here is a compatible vmxnet for 2.6.22-rc1 on VMware Workstation 6:-
http://chaz6.com/storage/files/vmxnet-2.6.22-rc1-vmws6.tar
Click to view c_g-hills's profile Enthusiast 46 posts since
Nov 9, 2005
Click to view NigelCunningham's profile Novice 24 posts since
Apr 19, 2007
I didn't try the above download, but have found (from trying to get Madwifi going too) that most people are doing less than is needed for 64 bit machines. For 64 bit, the code has been changed to use offsets for the various skb headers. This tarball:

http://stage.suspend2.net/downloads/all/vmnet.tar

Compiles on my AMD64 machine. (Not tried on 32 bit).

Nigel.
Click to view phbaer's profile Lurker 3 posts since
Mar 22, 2005
Here's yet another patch that works for me (2.6.22, AMD64):

http://npw.net/~phbaer/vmware-workstation-6.0_linux-kernel-2.6.22.patch

A tar is available as well:

http://npw.net/~phbaer/vmnet.tar

It has not yet been tested on a IA32 platform! Other patches I tried all generated dmesg messages like

...
[18015.990080] protocol 0608 is buggy, dev eth1
[18017.132883] protocol 0008 is buggy, dev eth1
...
Click to view schege's profile Lurker 3 posts since
Feb 12, 2007
Tested on IA32 and it works for me using 2.6.22-rc1.

Thanks
Click to view gruna's profile Novice 7 posts since
May 28, 2007
Hi,

i do use kernel 2.6.22 and still get this message on my 32 bit:

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config1/vmnet-only'
make -C /lib/modules/2.6.22-rc2-git7-43-default/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.22-rc2-git7-43-obj/i386/default'
make -C ../../../linux-2.6.22-rc2-git7-43 O=../linux-2.6.22-rc2-git7-43-obj/i386/default modules
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
/tmp/vmware-config1/vmnet-only/userif.c: In function ‘VNetCopyDatagramToUser’:
/tmp/vmware-config1/vmnet-only/userif.c:630: error: ‘const struct sk_buff’ has no member named ‘h’
/tmp/vmware-config1/vmnet-only/userif.c:630: error: ‘const struct sk_buff’ has no member named ‘nh’
/tmp/vmware-config1/vmnet-only/userif.c:636: error: ‘const struct sk_buff’ has no member named ‘h’
make[4]: *** [/tmp/vmware-config1/vmnet-only/userif.o] Fehler 1
make[3]: *** [_module_/tmp/vmware-config1/vmnet-only] Fehler 2
make[2]: *** [modules] Fehler 2
make[1]: *** [modules] Fehler 2
make[1]: Leaving directory `/usr/src/linux-2.6.22-rc2-git7-43-obj/i386/default'
make: *** [vmnet.ko] Fehler 2
make: Leaving directory `/tmp/vmware-config1/vmnet-only'
Unable to build the vmnet module.

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.
Click to view gruna's profile Novice 7 posts since
May 28, 2007
Thanks for help, but it still doesn't work.

make[1]: Entering directory `/usr/src/linux-2.6.22-rc2-git7-43-obj/i386/default'
make -C ../../../linux-2.6.22-rc2-git7-43 O=../linux-2.6.22-rc2-git7-43-obj/i386
/default modules
CC [M] /tmp/vmware-config4/vmnet-only/driver.o
CC [M] /tmp/vmware-config4/vmnet-only/hub.o
CC [M] /tmp/vmware-config4/vmnet-only/userif.o
CC [M] /tmp/vmware-config4/vmnet-only/netif.o
CC [M] /tmp/vmware-config4/vmnet-only/bridge.o
CC [M] /tmp/vmware-config4/vmnet-only/filter.o
/tmp/vmware-config4/vmnet-only/filter.c: In function ‘VNetFilterHookFn’:
/tmp/vmware-config4/vmnet-only/filter.c:232: error: ‘struct sk_buff’ has no memb er named ‘nh’
make[4]: *** [/tmp/vmware-config4/vmnet-only/filter.o] Fehler 1
make[3]: *** [_module_/tmp/vmware-config4/vmnet-only] Fehler 2
make[2]: *** [modules] Fehler 2
make[1]: *** [modules] Fehler 2
make[1]: Leaving directory `/usr/src/linux-2.6.22-rc2-git7-43-obj/i386/default'
make: *** [vmnet.ko] Fehler 2
make: Leaving directory `/tmp/vmware-config4/vmnet-only'
Unable to build the vmnet module.

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.

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