1 2 3 4 Previous Next 52 Replies Latest reply on Mar 1, 2010 12:10 PM by kpharris31

    Here is patch for 2.6.30 kernel for Workstation 6.5.2

    Krellan Enthusiast

      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

        • 1. Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2
          farzy Lurker

           

          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

           

           

           

           

           

          • 2. Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2
            Krellan Enthusiast

            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.

            • 3. Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2
              s8dragon Lurker

              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.

              • 5. Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2
                farzy Lurker

                 

                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

                 

                 

                 

                 

                 

                • 6. Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2
                  s8dragon Lurker

                   

                  I got it.

                   

                   

                  Thanks so much!

                   

                   

                  • 7. Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2
                    Krellan Enthusiast

                     

                    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.

                     

                     

                     

                     

                     

                    • 8. Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2
                      obspsr Novice

                       

                      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 !!??

                       

                       

                      • 9. Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2
                        s8dragon Lurker

                         

                         

                        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

                         

                         

                         

                         

                         

                        • 10. Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2
                          sixfeetsix Lurker

                           

                          The patch doesn't work:

                           

                           

                           

                           

                           

                          # 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?

                           

                           

                          • 11. Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2
                            sixfeetsix Lurker

                             

                            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.

                             

                             

                            • 12. Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2
                              simmo42 Lurker

                               

                              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?

                               

                               

                              • 13. Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2
                                Krellan Enthusiast

                                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.

                                • 14. Re: Here is patch for 2.6.30 kernel for Workstation 6.5.2
                                  birdie Master

                                  Updated patch taking into consideration comment #2.

                                   

                                  Applies only to original modules.

                                  1 2 3 4 Previous Next