VMware Communities > VMTN > Desktop Products > VMware Workstation > Discussions
8 Replies Last post: Apr 21, 2009 1:56 PM by MarcoRosso
Reply

Note for Workstation 6.5.1-126130 with 2.6.29 RC kernels

Feb 3, 2009 7:50 AM

Click to view sedorox's profile Novice sedorox 12 posts since
Feb 19, 2006
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, Ehud, with the help of stericho, have come up with a patch to the modules to get them to build.

The link to the thread: [Linux] After upgrading kernel from 2.6.28 (stab) to 2.6.29-rc1 / Vmware compile problem

Direct link to the Patch (Made by Ehud, modified by stericho): vmware-workstation-6.5.1.126130-2.6.29_x86_64.patch

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 Re: Note for Workstation 6.5.1-126130 with 2.6.29 RC kernels Feb 4, 2009 1:06 AM
Click to view planetf1a's profile Novice planetf1a 19 posts since
Jul 14, 2006
Many thanks. That patch worked fine on x86 (32 bit) too
Reply Re: Note for Workstation 6.5.1-126130 with 2.6.29 RC kernels Mar 2, 2009 4:27 AM
Click to view tarantula2's profile Lurker tarantula2 2 posts since
Mar 2, 2009

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 Re: Note for Workstation 6.5.1-126130 with 2.6.29 RC kernels Mar 2, 2009 8:11 AM
in response to: tarantula2
Click to view zwierbel's profile Lurker zwierbel 3 posts since
Mar 2, 2009
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 Re: Note for Workstation 6.5.1-126130 with 2.6.29 RC kernels Mar 10, 2009 5:08 AM
in response to: zwierbel
Click to view tarantula2's profile Lurker tarantula2 2 posts since
Mar 2, 2009

>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 Re: Note for Workstation 6.5.1-126130 with 2.6.29 RC kernels Mar 23, 2009 1:58 PM
in response to: tarantula2
Click to view zwierbel's profile Lurker zwierbel 3 posts since
Mar 2, 2009
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 Re: Note for Workstation 6.5.1-126130 with 2.6.29 RC kernels Mar 26, 2009 3:06 PM
in response to: zwierbel
Click to view mleun's profile Lurker mleun 2 posts since
Mar 24, 2005
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.
Attachments:
Reply Re: Note for Workstation 6.5.1-126130 with 2.6.29 RC kernels Mar 31, 2009 10:46 AM
Click to view Krellan's profile Enthusiast Krellan 82 posts since
Jun 16, 2008
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 Re: Note for Workstation 6.5.1-126130 with 2.6.29 RC kernels Apr 21, 2009 1:56 PM
Click to view MarcoRosso's profile Lurker MarcoRosso 4 posts since
Feb 17, 2009
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 :D.
Actions