VMware Communities > VMTN > Desktop Products > VMware Workstation > Discussions
1 2 3 4 Previous Next
51 Replies Last post: Oct 24, 2009 1:37 PM by paulsm4
Reply

Here is patch for 2.6.30 kernel for Workstation 6.5.2

May 7, 2009 12:50 PM

Click to view Krellan's profile Enthusiast Krellan 82 posts since
Jun 16, 2008
By popular demand, here is an update of my original patch. It now works on 2.6.30 (I tested on 2.6.30-rc4). I'm using VMware Workstation 6.5.2.

This patch runs exactly the same as my earlier 2.6.29 patch script, which was here:

http://communities.vmware.com//thread/203231

The instructions are exactly the same as before. Download the patch, and also, download the script to help you apply it. There should be 2 attachments to this message.

Use the bash command to run the script, as root. (Look at the script first, so you know I didn't put something nasty in it!):

bash ./vmware-6.5.2-modules-2.6.30-fix.sh

It should now apply cleanly, and there should be no errors.

If there were errors, please restore your original VMware modules from backup. If you earlier tried the 2.6.29 patch script, and it failed because you're running the 2.6.30 kernel, then you'll need to undo my previous patch before trying this patch. Here's the command that will restore your earlier VMware modules:

cp -v /usr/lib/vmware/modules/source-backup/* /usr/lib/vmware/modules/source

This will restore your modules to their earlier pristine condition (hopefully), and you can now try again to run the 2.6.30 script.

I tried this and it works to run my virtual machines under 2.6.30. There are very few changes between 2.6.29 and 2.6.30 from VMware's point of view, which makes it minimally invasive. Let me know how this works.

Josh
Reply Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2 May 18, 2009 10:15 AM
Click to view farzy's profile Lurker farzy 2 posts since
Aug 16, 2005

Hi,

Thanks for your patch (are the previous one) which once again made VMware work for me.

The only glitch I had is that had to delete the following hunk from the patchfile in order to apply it cleanly to my VMware module source.

vmware-6.5.2-modules-2.6.30-fix.patch line 58:

diff -urN source-OLD/vmmon-only/include/x86apic.h source-NEW/vmmon-only/include/x86apic.h
--- source-OLD/vmmon-only/include/x86apic.h 2008-10-28 22:47:17.000000000 -0700
+ source-NEW/vmmon-only/include/x86apic.h 2009-03-31 11:18:30.000000000 -0700
@@ -94,7 +94,11 @@
#define APIC_LVT_DELVMODE(_lvt) (_lvt & 0x700)
#define APIC_LVT_RESET_VALUE 0x00010000
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29)
#define APIC_BASE_MSR 0x1b
+#else
+#define APIC_BASE_MSR 0x800
+#endif
#define APIC_MSR_BASEMASK QWORD(0x0000000f,0xfffff000)
#define APIC_MSR_ENABLED 0x00000800

I found no APIC_BASE_MSR in my unpatched module sources.

Once these lines are deleted the patch applies (although with some offset on the line numbers) and the modules compile and run correctly. I'm running VMware Workstation 6.5.2 build-156735 on a Linux kernel 2.6.30-020630rc4-generic.

Regards


Reply Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2 May 18, 2009 11:37 AM
in response to: farzy
Click to view Krellan's profile Enthusiast Krellan 82 posts since
Jun 16, 2008
Thanks. Interesting. APIC_BASE_MSR doesn't exist anymore in Workstation 6.5.2, you're right. I thought I had already deleted it from the patch. Good catch.
Reply Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2 May 24, 2009 10:30 AM
in response to: Krellan
Click to view s8dragon's profile Lurker s8dragon 3 posts since
May 24, 2009
thanks for your patch, but I get error:

"Testing patch
patching file vmblock-only/linux/control.c
patching file vmblock-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmci-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmmon-only/include/x86apic.h
Hunk #1 FAILED at 94.
1 out of 1 hunk FAILED -- saving rejects to file vmmon-only/include/x86apic.h.rej
patching file vmmon-only/include/x86svm.h
patching file vmmon-only/linux/driver.c
patching file vmmon-only/linux/hostif.c
Hunk #1 succeeded at 3424 (offset 1 line).
Hunk #2 succeeded at 3538 (offset 1 line).
Hunk #3 succeeded at 3662 (offset 1 line).
patching file vmmon-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmnet-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmnet-only/netif.c
patching file vsock-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
Sorry, problem with the patch, I can't apply it
"

And I see other body had wrote its, but I don't get any answer yet. Can you show me the solve of it ?


I use WMware-workstation6.5.2 and linux kernel 2.6.30-5-generic


Thanks to spend time for this error.

Reply Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2 May 24, 2009 10:46 AM
Click to view eris23's profile Lurker eris23 1 posts since
Nov 29, 2006
Thanks!
Reply Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2 May 24, 2009 11:48 AM
in response to: eris23
Click to view farzy's profile Lurker farzy 2 posts since
Aug 16, 2005

Hi,

eris23 and s8dragon, please try the attached patch, it's a modified version of vmware-6.5.2-modules-2.6.30-fix.patch. You still have to use the original vmware-6.5.2-modules-2.6.30-fix.sh and don't forget to first revert your module sources before applying the patch.

Krellan's message gives the necessary instructions for reverting the sources.

Regards


Reply Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2 May 25, 2009 5:48 AM
in response to: farzy
Click to view s8dragon's profile Lurker s8dragon 3 posts since
May 24, 2009

I got it.

Thanks so much!

Reply Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2 May 25, 2009 7:33 PM
in response to: farzy
Click to view Krellan's profile Enthusiast Krellan 82 posts since
Jun 16, 2008

farzy = Thanks for supplying the modification to my patch. I was busy recently and so couldn't do it myself. I'm glad your modified patch now works. So, everyone who has problems with the first patch I posted, please also try farzy's patch.


Reply Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2 May 26, 2009 11:02 AM
in response to: s8dragon
Click to view obspsr's profile Novice obspsr 16 posts since
May 26, 2009

Hi s8dragon !

May be you can help me ... I was happy with my vmware-server 1.0.9 working perfectly, remotly and localy ...;-)

I'm an old devlopper (>59years old) who is always astonished by the "Why to make it simple when you can complixify !" of today....

(I speak about the number of different products of VMware ... not really clearly described in simple terms .. )

Mandriva decided to be on the very edge of kernels so ... I am stuck for days with the bloody patches for 2.6.29xxx from everywhere which remedy

the compiler problems BUT ... ends with the bloody 138 iso 208 ... bad version of vmmon.o ...

What to do ?

Best regards.

(It seems thar vmware people don't care about these problems.)

P.S.

Do I missed something, because apparently VMware Workstation is as VMware Player ... unable to run a VM on another host !!??

Reply Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2 May 27, 2009 8:14 AM
in response to: obspsr
Click to view s8dragon's profile Lurker s8dragon 3 posts since
May 24, 2009

Do you run VMware Workstation 6.5.2 on linux 2.26.29? try the patch of Krelland (It's in http://communities.vmware.com//thread/203231).

Or not, please post your errors and version of VMware to someone can be help you.

Regards


Reply Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2 Jun 7, 2009 3:12 PM
Click to view sixfeetsix's profile Lurker sixfeetsix 3 posts since
Jan 9, 2008

The patch doesn't work:

root@ludo ~# sh ./vmware-6.5.2-modules-2.6.30-fix.sh
Found tar file for vmblock module
Found tar file for vmci module
Found tar file for vmmon module
Found tar file for vmppuser module
Found tar file for vmnet module
Found tar file for vsock module
Using patch file: /root/vmware-6.5.2-modules-2.6.30-fix.patch
Using module directory: /usr/lib/vmware/modules/source
Using backup directory: /usr/lib/vmware/modules/source-backup
Backing up ./vmblock.tar to /usr/lib/vmware/modules/source-backup/./vmblock.tar
Backing up ./vmci.tar to /usr/lib/vmware/modules/source-backup/./vmci.tar
Backing up ./vmmon.tar to /usr/lib/vmware/modules/source-backup/./vmmon.tar
Backing up ./vmppuser.tar to /usr/lib/vmware/modules/source-backup/./vmppuser.tar
Backing up ./vmnet.tar to /usr/lib/vmware/modules/source-backup/./vmnet.tar
Backing up ./vsock.tar to /usr/lib/vmware/modules/source-backup/./vsock.tar
Untarring vmblock.tar
Untarring vmci.tar
Untarring vmmon.tar
Untarring vmppuser.tar
Untarring vmnet.tar
Untarring vsock.tar
Testing patch
patching file vmblock-only/linux/control.c
patching file vmblock-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmci-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmmon-only/include/x86apic.h
Hunk #1 FAILED at 94.
1 out of 1 hunk FAILED -- saving rejects to file vmmon-only/include/x86apic.h.rej
patching file vmmon-only/include/x86svm.h
patching file vmmon-only/linux/driver.c
patching file vmmon-only/linux/hostif.c
Hunk #1 succeeded at 3424 (offset 1 line).
Hunk #3 succeeded at 3662 (offset 1 line).
patching file vmmon-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmnet-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
patching file vmnet-only/netif.c
patching file vsock-only/Makefile
Hunk #1 succeeded at 122 (offset 9 lines).
Sorry, problem with the patch, I can't apply it

So is it that your patch is only for 6.5.2 32bit?

Reply Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2 Jun 7, 2009 3:20 PM
in response to: sixfeetsix
Click to view sixfeetsix's profile Lurker sixfeetsix 3 posts since
Jan 9, 2008

n/m, ran:
mv vmware-6.5.2-modules-2.6.30-fix.patch.1 vmware-6.5.2-modules-2.6.30-fix.patch

then it worked fine.

Sorry for the noise.

Reply Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2 Jun 7, 2009 7:31 PM
Click to view simmo42's profile Lurker simmo42 1 posts since
May 29, 2009

Sigh - I wish I understood linux better - here is what I get with the updated patch, 2.6.30-8

root@server:/srv# bash ./vmware-6.5.2-modules-2.6.30-fix.sh
Found tar file for vmci module
Found tar file for vmnet module
Found tar file for vmblock module
Found tar file for vsock module
Found tar file for vmmon module
Using patch file: /srv/vmware-6.5.2-modules-2.6.30-fix.patch
Using module directory: /usr/lib/vmware/modules/source
Using backup directory: /usr/lib/vmware/modules/source-backup
Untarring vmci.tar
Untarring vmnet.tar
Untarring vmblock.tar
Untarring vsock.tar
Untarring vmmon.tar
Testing patch
patching file vmblock-only/linux/control.c
Hunk #2 succeeded at 159 (offset 1 line).
Hunk #3 succeeded at 173 (offset 1 line).
patching file vmblock-only/Makefile
Hunk #1 succeeded at 112 (offset -1 lines).
patching file vmci-only/Makefile
patching file vmmon-only/include/x86svm.h
Hunk #1 succeeded at 34 with fuzz 2 (offset -13 lines).
patching file vmmon-only/linux/driver.c
Hunk #1 succeeded at 1758 (offset -226 lines).
patching file vmmon-only/linux/hostif.c
Hunk #1 succeeded at 3237 (offset -186 lines).
Hunk #2 FAILED at 3351.
Hunk #3 FAILED at 3475.
2 out of 3 hunks FAILED -- saving rejects to file vmmon-only/linux/hostif.c.rej
patching file vmmon-only/Makefile
Hunk #1 succeeded at 139 with fuzz 1 (offset 26 lines).
patching file vmnet-only/Makefile
Hunk #1 succeeded at 139 with fuzz 1 (offset 26 lines).
patching file vmnet-only/netif.c
Hunk #1 succeeded at 310 (offset -14 lines).
Hunk #2 succeeded at 556 (offset -14 lines).
Hunk #3 succeeded at 612 (offset -14 lines).
Hunk #4 succeeded at 673 (offset -14 lines).
patching file vsock-only/Makefile
Sorry, problem with the patch, I can't apply it

Any thoughts?

Reply Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2 Jun 9, 2009 1:22 AM
in response to: simmo42
Click to view Krellan's profile Enthusiast Krellan 82 posts since
Jun 16, 2008
simmo: What version of VMware Workstation are you running? What Linux distribution is your host running? What's your Linux kernel version (use this command: uname -a)?

It looks like you tried to patch something that was different from what was expected.

Also, try using farzy's patch (scroll back up to find his reply, then download the patch from there).

I suggest you uninstall and then reinstall VMware Workstation, then apply farzy's patch.
Reply Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2 Jun 12, 2009 3:06 AM
Click to view birdie's profile Master birdie 1,010 posts since
Oct 10, 2003
Updated patch taking into consideration comment #2. ;)

Applies only to original modules.
1 2 3 4 Previous Next
Actions