1 2 Previous Next 21 Replies Latest reply: Oct 4, 2011 10:55 AM by vedantani RSS

    VMware-player on Ubuntu 11.04 kernel 2.6.38-8

    mcontrol Lurker

      Hi,

       

      Recently I created a patch for compile Vmware in Ubuntu 11.04 using Kernel 2.6.38-8. Enjoy!

       

       

      USAGE:
      $ tar xfjv VMplayer_3.0.0-203739.x86_64_2.6.38-8.tgz
      $ cd VMplayer_3.0.0-203739.x86_64_2.6.38-8
      $ chmod +x patch_apply.sh
      $ sudo ./patch_apply.sh
      Oh yeah baby!

      Cheers!

       

      Marcos Álvares

        • 1. Re: VMware-player on Ubuntu 11.04 kernel 2.6.38-8
          mcontrol Lurker

          Ops ...

           

          Some bugfixes

           

          USAGE:
          $ tar xfzv VMplayer_3.0.0-203739.x86_64_2.6.38-8.tgz
          $ cd VMplayer_3.0.0-203739.x86_64_2.6.38-8
          $ chmod +x patch_apply.sh
          $ sudo ./patch_apply.sh

          $ sudo vmware-modconfig  --console  --install-all

           

           

           

          Sorry ... : ]

           

          []'s

                      Marcos Álvares

          • 2. Re: VMware-player on Ubuntu 11.04 kernel 2.6.38-8
            jimmmac1 Enthusiast

            Thanks Marcos.  It still won't start up.  But it is moving forward.

             

            Jim

            • 3. Re: VMware-player on Ubuntu 11.04 kernel 2.6.38-8
              WoodyZ Guru
              $ chmod +x patch_apply.sh

               

              Not necessary as it is already executable.

               

              Package_Contents.png

              • 4. Re: VMware-player on Ubuntu 11.04 kernel 2.6.38-8
                tabassman Lurker

                Could you create this patch for VMware-Player-3.1.3-324285.x86_64 as well? The source is different enough for the patch file to fail.

                 

                If you can, thank you very much!

                 

                EDIT: nm, I installed 3.1.4 and it didn't require a patch to get around the BKL, etc issues.

                • 5. Re: VMware-player on Ubuntu 11.04 kernel 2.6.38-8
                  jimmmac1 Enthusiast

                  Hi all

                   

                  Got it to work.  When I installed the latest VMware player, all is fine.  I had 3.1. something and I installed 3.1.4 build-385536, which is the latest and all worked.  Thanks for the patch.

                   

                  Jim

                  • 6. Re: VMware-player on Ubuntu 11.04 kernel 2.6.38-8
                    wildan Lurker

                    still not working man,

                     

                    patching file vmci-only/include/compat_semaphore.h
                    Hunk #1 succeeded at 62 (offset 17 lines).
                    patching file vmci-only/include/pgtbl.h
                    patching file vmci-only/linux/driver.c
                    patching file vmmon-only/linux/driver.c
                    Hunk #1 succeeded at 140 with fuzz 1.
                    Hunk #2 succeeded at 176 (offset 2 lines).
                    patching file vmmon-only/linux/iommu.c
                    Hunk #1 FAILED at 153.
                    Hunk #2 FAILED at 400.
                    2 out of 2 hunks FAILED -- saving rejects to file vmmon-only/linux/iommu.c.rej
                    patching file vmnet-only/driver.c
                    Hunk #1 succeeded at 114 (offset 1 line).
                    patching file vmnet-only/filter.c
                    Hunk #1 succeeded at 77 (offset 1 line).
                    patching file vsock-only/linux/af_vsock.c
                    Hunk #1 succeeded at 400 (offset 9 lines).
                    Hunk #2 FAILED at 3229.
                    Hunk #3 FAILED at 3252.
                    Hunk #4 FAILED at 3264.
                    Hunk #5 FAILED at 3324.
                    Hunk #6 FAILED at 3340.
                    Hunk #7 FAILED at 3374.
                    Hunk #8 FAILED at 3472.
                    Hunk #9 FAILED at 4112.
                    Hunk #10 FAILED at 4149.
                    Hunk #11 FAILED at 4202.
                    Hunk #12 FAILED at 4436.
                    Hunk #13 FAILED at 4476.
                    Hunk #14 FAILED at 4542.
                    13 out of 14 hunks FAILED -- saving rejects to file vsock-only/linux/af_vsock.c.rej
                    [+] DONE !

                     

                    sudo vmware-modconfig --console --install-all
                    Stopping VMware services:
                       VMware USB Arbitrator                                               done
                       VM communication interface socket family                            done
                       Virtual machine communication interface                             done
                       Virtual machine monitor                                             done
                       Blocking file system                                                done
                    Using 2.6.x kernel build system.
                    make: Entering directory `/tmp/vmware-root/modules/vmmon-only'
                    make -C /lib/modules/2.6.38-8-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
                          MODULEBUILDDIR= modules
                    make[1]: Entering directory `/usr/src/linux-headers-2.6.38-8-generic'
                      CC [M]  /tmp/vmware-root/modules/vmmon-only/linux/driver.o
                    /tmp/vmware-root/modules/vmmon-only/linux/driver.c: In function ‘init_module’:
                    /tmp/vmware-root/modules/vmmon-only/linux/driver.c:425:15: error: ‘struct file_operations’ has no member named ‘ioctl’
                    /tmp/vmware-root/modules/vmmon-only/linux/driver.c: In function ‘LinuxDriver_Ioctl’:
                    /tmp/vmware-root/modules/vmmon-only/linux/driver.c:1736:7: error: implicit declaration of function ‘kernel_locked’
                    make[2]: *** [/tmp/vmware-root/modules/vmmon-only/linux/driver.o] Error 1
                    make[1]: *** [_module_/tmp/vmware-root/modules/vmmon-only] Error 2
                    make[1]: Leaving directory `/usr/src/linux-headers-2.6.38-8-generic'
                    make: *** [vmmon.ko] Error 2
                    make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'
                    Unable to install vmmon

                     

                    am i miss something??

                    • 7. Re: VMware-player on Ubuntu 11.04 kernel 2.6.38-8
                      jimmmac1 Enthusiast

                      Hi Wildan

                       

                      I am not sure, but it doesn't look like you are using the PAE kernal headers.  Those are the headers that I used.  Might give that a try.

                       

                      Jim

                      • 8. Re: VMware-player on Ubuntu 11.04 kernel 2.6.38-8
                        mcontrol Lurker

                        Hi Wildan,

                         

                        note that this patch was tested only with Wmplayer versions: 3.0.0 and 3.1.4 and Kernel 2.6.38-8.

                         

                        try the follow steps:

                         

                        1) install kernel headers:

                        sudo apt-get install linux-headers-`uname -r`

                         

                        2) install development apps:

                        sudo apt-get install build-essential

                         

                        3) Remove your current VMplayer

                        sudo vmware-installer -u vmware-player
                        sudo rm -rf /usr/lib/vmware

                         

                        4) Create links to enable vmware detect your headers

                        sudo ln -s /usr/src/linux-headers-`uname -r`/include/generated/autoconf.h  /usr/src/linux-headers-`uname -r`/include/linux/autoconf.h
                        sudo ln -s /usr/src/linux-headers-`uname  -r`/include/generated/utsrelease.h /usr/src/linux-headers-`uname  -r`/include/linux/utsrelease.h

                         

                        5) Download the version 3.0.0 of WMplayer

                        http://downloads.vmware.com/d/info/desktop_downloads/vmware_player/3_0?client=ubuntu&channel=cs&ie=UTF-8&q=vmplayer%20download

                         

                        6) Execute the .bundle file

                        ./VMware-Player-3.0.0-203739.x86_64.bundle

                         

                        7) Download and Apply the patch

                        wget http://communities.vmware.com/servlet/JiveServlet/download/1745523-61935/VMplayer_3.0.0-203739.x86_64_2.6.38-8.tar.gz

                        tar xfzv VMplayer_3.0.0-203739.x86_64_2.6.38-8.tgz

                        cd VMplayer_3.0.0-203739.x86_64_2.6.38-8
                        chmod +x patch_apply.sh
                        sudo ./patch_apply.sh

                        sudo vmware-modconfig  --console  --install-all

                         

                         

                        [ ]'s

                                  Marcos Álvares

                        • 9. Re: VMware-player on Ubuntu 11.04 kernel 2.6.38-8
                          WoodyZ Guru
                          tar xfzv VMplayer_3.0.0-203739.x86_64_2.6.38-8.tgz

                           

                          This line should be: tar xfzv VMplayer_3.0.0-203739.x86_64_2.6.38-8.tar.gz

                           

                          chmod +x patch_apply.sh

                           

                          I already mentioned this once however I guess you missed it, the execute bit is already set for the patch_apply.sh file in the tarball and extracting it under Ubuntu 11.04 even without using -p argument with the tar command the file remains executable so it makes no sense using chmod to set an already executable file executable!

                           

                          Terminal_Output.png

                          • 10. Re: VMware-player on Ubuntu 11.04 kernel 2.6.38-8
                            mcontrol Lurker

                            OK WoodyZ,

                             

                            You are right! 'chmod +x' command do not makes difference in the overall proccess.  : ]

                             

                            Thanks!

                            • 11. Re: VMware-player on Ubuntu 11.04 kernel 2.6.38-8
                              snarcis Lurker

                              Hello

                               

                              Do you have a similar patch for Vmware Server 2.0 too?

                              I have almost the same error "Unable to build the vmmon module" on Ubuntu 11.04 64b.

                               

                              #uname -a

                              Linux ego 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

                               

                               

                              Thank you

                              • 12. Re: VMware-player on Ubuntu 11.04 kernel 2.6.38-8
                                Quaxel Lurker

                                Hi Marcos,

                                Did all the commands to patch. But as wildan wrote, the patch process throws some errors.

                                After all my VMWare Player is still broken.

                                 

                                Wait. One difference. I use VMware-Player-3.1.4-385536.x86_64.bundle

                                But you wrote the patch is testet with 3.1.4.

                                 

                                My problem is, that after I start a machine, the player window disappears. But I can still see the VMPlayer process and kill it by hand...

                                 

                                Quaxel

                                • 13. Re: VMware-player on Ubuntu 11.04 kernel 2.6.38-8
                                  ypomares Lurker

                                  What happen if I'm using VMware Player 3.1.4 over Linux 32-bit?.

                                  How can I make it work?

                                  Thanks.

                                  • 14. Re: VMware-player on Ubuntu 11.04 kernel 2.6.38-8
                                    wildan Lurker

                                    i had followed your instruction mate, but still i dont get my vmware player work, the worst, i even dont see any movement on my screen after seferal times click on vmware's icon ....  my kernel is 2.6.38-8-generic ..

                                    again.. did i miss something mate ??

                                     

                                    thanks..

                                    1 2 Previous Next