VMware
1 2 3 4 Previous Next 51 Replies Last post: Oct 24, 2009 1:37 PM by paulsm4  

Here is patch for 2.6.30 kernel for Workstation 6.5.2 posted: May 7, 2009 12:50 PM

Click to view Krellan's profile Enthusiast 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
Click to view farzy's profile Lurker 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


Click to view s8dragon's profile Lurker 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.

Click to view eris23's profile Lurker 1 posts since
Nov 29, 2006
Thanks!
Click to view farzy's profile Lurker 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


Click to view s8dragon's profile Lurker 3 posts since
May 24, 2009

I got it.

Thanks so much!

Click to view obspsr's profile Novice 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 !!??

Click to view s8dragon's profile Lurker 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


Click to view sixfeetsix's profile Lurker 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?

Click to view sixfeetsix's profile Lurker 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.

Click to view simmo42's profile Lurker 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?

Click to view birdie's profile Master 1,000 posts since
Oct 10, 2003
Updated patch taking into consideration comment #2. ;)

Applies only to original modules.

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