VMware Communities
sedorox
Contributor
Contributor

Note for Workstation 6.5.1-126130 with 2.6.29 RC kernels

I wanted to let people over in this forum know, that currently Workstation 6.5.1 doesn't build the modules on 2.6.29-RC3 kernels. However, over in the Server forums, , with the help of , have come up with a patch to the modules to get them to build.

The link to the thread:

Direct link to the Patch (Made by Ehud, modified by stericho):

Directions for applying the Patch:

One liner (as root): cd /usr/lib/vmware/modules/source/; mkdir orig; cp *.tar orig/; for i in `ls *.tar`; do tar -xf $i; done; rm *.tar; patch -p1 -i /path/to/vmware-workstation-6.5.1.126130-2.6.29_x86_64.patch; for i in mblock mci mmon mnet mppuser sock; do tar -cf v$i.tar v$i-only; done; rm -r *-only

Just make sure you change the path to the patch. This will also backup the original modules, just in case something gets foobar'd.

Note: This has only been tried, and verified to work on x86_64 machines.

If something isn't correct, please correct me on it.

I hope this helps others as it has helped me.

Reply
0 Kudos
8 Replies
planetf1a
Contributor
Contributor

Many thanks. That patch worked fine on x86 (32 bit) too

Reply
0 Kudos
tarantula2
Contributor
Contributor

This chunk in the .diff you posted seems a bit suspect to me:

+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29)·

cap_raise(current->cap_effective, CAP_SYS_RESOURCE);

compat_set_user_nice(current, linuxState.fastClockPriority);

+#else /* 2.6.29 */

+ (void) cap_raised(current->cred->cap_effective, CAP_SYS_RESOURCE);

+ set_user_nice(current, linuxState.fastClockPriority);

+#endif /* 2.6.29 and higher */···

cap_raise suddenly became cap_raised, which does not have the same effect. Are you sure this is ok?

Reply
0 Kudos
zwierbel
Enthusiast
Enthusiast

With the patch I can compile the modules, but with 2.6.29-rc6. BUT I can not access the other system over the network. I'm seeing just ARP traffic between the two systems.

17:06:21.312128 ARP, Request who-has 192.168.100.2 tell 192.168.100.100, length 28

17:06:21.312151 ARP, Reply 192.168.100.2 is-at 00:50:56:c0:00:01, length 28

17:06:26.628204 ARP, Request who-has 192.168.100.2 tell 192.168.100.100, length 28

17:06:26.628233 ARP, Reply 192.168.100.2 is-at 00:50:56:c0:00:01, length 28

17:06:31.669908 ARP, Request who-has 192.168.100.2 tell 192.168.100.100, length 28

17:06:31.669941 ARP, Reply 192.168.100.2 is-at 00:50:56:c0:00:01, length 28

17:06:36.752712 ARP, Request who-has 192.168.100.2 tell 192.168.100.100, length 28

17:06:36.752743 ARP, Reply 192.168.100.2 is-at 00:50:56:c0:00:01, length 28

The guest system has no ARP entry in his table.

Has someone a solution? Thanks in advance!

Regards

Reply
0 Kudos
tarantula2
Contributor
Contributor

>With the patch I can compile the modules, but with 2.6.29-rc6. BUT I can not access the other system over the network.

but with 2.6.29-rc6.... what - (try making a complete sentence).

But indeed, "Host-only networking" is broken. Bridged works fine, though.

Reply
0 Kudos
zwierbel
Enthusiast
Enthusiast

Can someone provide a patch for the host-only-network? I (and many others) would be very happy to see one.

Thanks in advance!

Reply
0 Kudos
mleun
Contributor
Contributor

I do not fully understand what happens and how, but I got it to work.

Somehow the vm_check_build checks called in Makefile.kernel seem to fail / give wrong results - so I just disabled them, what is'nt the clean solution, of course.

Throwing away anything dealing with dev->priv as in the patch posted here before does not seem to be correct, comparing 2.6.28 and 2.6.29 yields dev->ml_priv.

Reply
0 Kudos
Krellan
Enthusiast
Enthusiast

I tried these patches and, unfortunately, they didn't quite work.

So, I made my own patch. I recommend it, because it fixes a few bugs, such as the cap_raise() issue that was mentioned above.

Here's the new patch, in another forum posting:

http://communities.vmware.com//message/1213099

Hope this helps!

Josh

Reply
0 Kudos
MarcoRosso
Contributor
Contributor

Thank you so much, Works under Arch Linux X86_64 with Kernel 2.6.29-3, with the newest version of VMware Workstation 6.5.2 :smileygrin:.

Reply
0 Kudos