VMware Communities
sputnik66
Contributor
Contributor

vmware WS6: kernel 2.6.22 - VMnet refuses to compile.

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 /tmp/vmware-config0/vmnet-only/driver.o

CC /tmp/vmware-config0/vmnet-only/hub.o

CC /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]: *** 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.

Reply
0 Kudos
44 Replies
Superkikim
Contributor
Contributor

Hi Jaylundy,

Thank you for the patch. Unfortunately, I get the following error on "sudo cat /home/akim/install/vmxnet/patch | patch -p1":

patch: **** Can't rename file /tmp/poWMTGjc to bridge.c : Permission denied

Reply
0 Kudos
jaylundy
Contributor
Contributor

Actually after I wrote that patch I found out about the vmware-any-any patch. I looked at it and it has the same changes I made except higher quality. I suggest you try it first. You can get it at http://knihovny.cvut.cz/ftp/pub/vmware/ . Look for vmware-any-any-update114.tar.gz . He apparently keeps it updated whenever any kernel changes break the modules.

See http://communities.vmware.com/message/76957 for more info about it.

Reply
0 Kudos
Superkikim
Contributor
Contributor

Hi.

Thank you. The patch works great. I'm using Ubuntu Gutsy Gibbon (7.10).

Note that before to run the vmware-any-any patch (runme.pl), you need to install the g++ package if not done yet.

Cheers

Reply
0 Kudos
Superkikim
Contributor
Contributor

Ok ... I withdraw what I said.....

I have restart my computer. And now... X starts only in failsafe... I have no idea how to troubleshoot that Smiley Sad

I'm unable to get my nvidia drivers back working

My desktop is on tty7 and when I try to make a sudo gdm restart from tty1, then tty9 launchs xconfig

I'm lost......

Reply
0 Kudos
kirenaj
Contributor
Contributor

I run Ubuntu 7.10, 2.6.22-14-generic on a AMD x86_64 and VMware-server-1.0.3

I first run the vmware-any-any-update109 path without any luck.

and then downloaded the vmnet patch from http://npw.net/~phbaer/vmnet.tar and copy it into /usr/lib/vmware/modules/source

And then I tried the vmware-any-any-update115 version from http://knihovny.cvut.cz/ftp/pub/vmware/ and everything was ok

Reply
0 Kudos