Tuesday, January 21, 2014

VMware Player 6.0.1 on Ubuntu 14.04 alpha - Modules compile error

Updating Ubuntu 14.04 (alpha / development) with latest 3.13.0-x kernels will require recompiling the modules for VMware Player 6.0.1 which will fail as per below. The solution is based on Garrett Skjelstad's "VMware modules & kernel 3.13" blog post.
$ sudo lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Trusty Tahr (development branch)
Release: 14.04
Codename: trusty

$ uname -a
Linux VOSTRO 3.13.0-4-generic #19-Ubuntu SMP Thu Jan 16 18:10:11 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

$ vmplayer --version
VMware Player 6.0.1 build-1379776



[...]
  CC [M]  /tmp/modconfig-7ykUGm/vmnet-only/filter.o
/tmp/modconfig-7ykUGm/vmnet-only/filter.c:206:1: error: conflicting types for ‘VNetFilterHookFn’
 VNetFilterHookFn(unsigned int hooknum,                 // IN:
 ^
/tmp/modconfig-7ykUGm/vmnet-only/filter.c:64:18: note: previous declaration of ‘VNetFilterHookFn’ was here
 static nf_hookfn VNetFilterHookFn;
                  ^
/tmp/modconfig-7ykUGm/vmnet-only/filter.c:64:18: warning: ‘VNetFilterHookFn’ used but never defined [enabled by default]
/tmp/modconfig-7ykUGm/vmnet-only/filter.c:206:1: warning: ‘VNetFilterHookFn’ defined but not used [-Wunused-function]
 VNetFilterHookFn(unsigned int hooknum,                 // IN:
 ^
make[2]: *** [/tmp/modconfig-7ykUGm/vmnet-only/filter.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/tmp/modconfig-7ykUGm/vmnet-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-4-generic'
make: *** [vmnet.ko] Error 2
make: Leaving directory `/tmp/modconfig-7ykUGm/vmnet-only'
Failed to build vmnet.  Failed to execute the build command.
Starting VMware services:
   Virtual machine monitor                                             done
   Virtual machine communication interface                             done
   VM communication interface socket family                            done
   Blocking file system                                                done
   Virtual ethernet                                                   failed
   VMware Authentication Daemon                                        done

To fix this we will need to apply this patch to filter.c in VMware Player module sources. Start with saving the diff below (download):
205a206
> #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
206a208,210
> #else
> VNetFilterHookFn(const struct nf_hook_ops *ops,        // IN:
> #endif
255c259,263
<    transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
---
>    #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
>       transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
>    #else
>       transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING);
>    #endif
 

Or download directly to the system:
$ wget https://sites.google.com/site/dandar3blogspotcom/vmware-player-601-on-ubuntu-1404-alpha-filter.c.diff \
       -O /tmp/filter.c.diff --no-check-certificate

Next will apply the patch to filter.c in vmnet.tar (extract, patch, update archive):
$ sudo -E -s

# cd /usr/lib/vmware/modules/source/ 

# cp vmnet.tar vmnet.tar.original

# tar xvf vmnet.tar vmnet-only/filter.c 
vmnet-only/filter.c

# patch vmnet-only/filter.c < /tmp/filter.c.diff 
patching file vmnet-only/filter.c

# tar -uvf vmnet.tar vmnet-only/filter.c 
vmnet-only/filter.c

# rm -rf vmnet-only/
And now you're ready to restart VMplayer, which will ask you to re-compile VMware Player modules, successfully this time.


116 comments :

  1. Halo Dan Dar3:

    i have posted Your solution to this vmware communities site:

    https://communities.vmware.com/message/2335864?z=N833r5

    Your solution is helping me lot.

    Thanks ;)

    ReplyDelete
  2. Thanks Josef, glad it helped.

    Credits should almost entirely go to Garrett Skjelstad for his "VMware modules & kernel 3.13" post.

    ReplyDelete
  3. Command: /usr/lib/vmware/modules/source# patch vmnet-only/filter.c < /tmp/filter.c.diff

    Result:

    patching file vmnet-only/filter.c
    Hunk #1 succeeded at 203 with fuzz 2.
    patch unexpectedly ends in middle of line
    Hunk #2 FAILED at 256.
    1 out of 2 hunks FAILED -- saving rejects to file vmnet-only/filter.c.rej

    ReplyDelete
  4. I should mention my system is:

    Linux desktop 3.13.0-5-generic #20-Ubuntu SMP Mon Jan 20 19:56:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

    VMware Player 6.0.1 build-1379776

    ReplyDelete
  5. and the .ref file:

    --- filter.c.original 2014-01-20 19:09:31.382823033 +0000
    +++ filter.c.patched 2014-01-20 19:13:34.624029209 +0000
    @@ -256,7 +260,11 @@

    /* When the host transmits, hooknum is VMW_NF_INET_POST_ROUTING. */
    /* When the host receives, hooknum is VMW_NF_INET_LOCAL_IN. */
    +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
    transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
    +#else
    + transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING);
    +#endif

    packetHeader = compat_skb_network_header(skb);

    ReplyDelete
  6. Manually editing the file worked.

    ReplyDelete
  7. Sorry about that, I updated the diff, thanks for letting know.

    ReplyDelete
  8. :'(


    root@desktop:/usr/lib/vmware/modules/source# patch filter.c < /tmp/filter.c.diff
    patching file filter.c
    Hunk #3 FAILED at 259.
    1 out of 3 hunks FAILED -- saving rejects to file filter.c.rej

    ReplyDelete
  9. My mistake - typo in the patch line first time I ran it

    :D

    root@desktop:/usr/lib/vmware/modules/source# patch vmnet-only/filter.c < /tmp/filter.c.diff
    patching file vmnet-only/filter.c

    ReplyDelete
  10. Yeah I know it's a bit of a pain - just double clicking inside of the code area it'll select everything.

    ReplyDelete
  11. I'm using Fedora 20 kernel 3.13 and VMWorkstation 10.0.1. This fix worked for me thanks.
    when I started my VM I got some cmos change message which I never saw again.
    I'm confused why new kernels can sometimes case workstation to top. I may change to Ubuntu.
    Thanks again.

    ReplyDelete
  12. Thanks you very much ! A bit hard to understand for me (new to linux) but it do the job perfectly :)

    ReplyDelete
  13. Had the same problem after upgrading fedora 20 and it worked perfectly. Thanks.

    ReplyDelete
  14. Thank you very much! It works for me! But could you explain this more? About why this error happens, and why this patch works fine :)

    Thanks again! Have a good day Dan Dar3 :)

    ReplyDelete
  15. Thanks Hoài Đàm. It appears the signature of VNetFilterHookFn() has changed from an int to a struct, and the patch is just making it work for newer kernels. I'm sure VMware will fix it themselves in the next version of their software so you won't have to do this anymore.

    ReplyDelete
  16. I would like to thank you very much for your solution dandar3 !!! :D it helped me very lot !!!

    ReplyDelete
  17. Just wanted to stop by and say thank you for this patch! It worked great!

    ReplyDelete
  18. I was struggling to get VMWare Workstation installed on Ubuntu 14.04 until I came across this solution. Thank you for taking the time to post it.

    ReplyDelete
  19. This article is from Fedora 19 or Fedora 20 in spanish http://isyskernel.blogspot.com/2014/03/Error-VMware-compilar-kernel-Failed-to-build-vmnet.html

    ReplyDelete
  20. Thank you for posting this. it helped me

    ReplyDelete
  21. You're all welcome! To be honest I'm a bit surprised by so many comments, I mainly wrote cause I found myself applying it a few times with new installs / re-installs, and second observation, it appears more "technical" people tend to be more grateful! I like that, well done all :-)

    ReplyDelete
  22. Worked like a charm - many thanks for posting this fix!

    Best,

    itsjustarumour

    ReplyDelete
  23. Hi Dan Dar3

    It still works perfectly with
    Ubuntu 14.04 (Trusty Tahr) Beta 2
    Thanks.

    ReplyDelete
  24. Thanks, worked peferctly!

    ReplyDelete
  25. Helo, I have the same problem :(

    Everting run okey, but when I run the patch command, that's return an error:
    ++++++++++++++++++++++++++++++++++++
    root@ubuntu14:/usr/lib/vmware/modules/source# patch vmnet-only/filter.c < ~/Desktop/filter.c.diff
    patching file vmnet-only/filter.c
    Hunk #3 FAILED at 259.
    1 out of 3 hunks FAILED -- saving rejects to file vmnet-only/filter.c.rej
    +++++++++++++++++++++++++++++++++++++++++++
    the filter.c.rej output:
    +++++++++++++++++++++++++++++++++
    *** /dev/null
    --- /dev/null
    ***************
    *** 259
    - transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
    --- 263,267 -----
    + #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
    + transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
    + #else
    + transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING);
    + #endif
    ---------------------------------------------------------------------------------------------------------------

    > vmware -v
    VMware Workstation 10.0.1 build-1379776
    > uname -a
    Linux ubuntu14 3.13.0-23-generic #45-Ubuntu SMP Fri Apr 4 06:58:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

    Any help please !

    ReplyDelete
    Replies
    1. Amigo, saludos, tengo ubuntu 16.04 soy usuario novato y no puedo aplicar el parche para correr wmare, puedes ayudarme por favor? me urge correr una aplicacion administrativa diseñada solo para windows...

      Delete
  26. Worked perfectly!

    Thanks so much!

    ReplyDelete
  27. @Anonymous
    You seem to be running VMware Workstation 10 - you could try to patch it manually, or maybe read Garrett Skjelstad's original blog post, link is up at the top of the post.

    ReplyDelete
  28. Thanks a lot for sharing this solution.
    As easy as efficient.

    ReplyDelete
  29. Thank you very much!

    ReplyDelete
  30. Thanks It helped me alot.

    ReplyDelete
  31. Thank you it worked with Ubuntu 14.04 - 3.13.0-24-generic #46-Ubuntu SMP

    ReplyDelete
  32. Worked like a charm in Ubuntu 14.04, Thanks!

    ReplyDelete
  33. Many thanks! Installed 14.04 over 12.04 yesterday and needed the vmware so that I could load stuff into my GPS for going hiking this weekend! This worked perfectly - you're brilliant :)

    ReplyDelete
  34. Thank you for this patch that worked perfectly for me.

    ReplyDelete
  35. Thank you very much!

    Worked as described on Ubuntu 14.04 LTS.

    ReplyDelete
  36. Muchas gracias, me funciono perfectamente.

    ReplyDelete
  37. Thank you very much - this worked fine for me.

    kind regards

    Michel

    ReplyDelete
  38. Didn't work for me. Any help is greatly appreciated. I upgraded from 13.10 to 14.4. Any help greatly appreciated.

    My patch file:
    205a206
    > #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
    206a208,210
    > #else
    > VNetFilterHookFn(const struct nf_hook_ops *ops,        // IN:
    > #endif
    255c259,263
    <    transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
    ---
    >    #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
    >       transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
    >    #else
    >       transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING);
    >    #endif


    Error:
    root@ThinkPad-T420s:~# cd /usr/lib/vmware/modules/source/
    root@ThinkPad-T420s:/usr/lib/vmware/modules/source# cp vmnet.tar vmnet.tar.original
    root@ThinkPad-T420s:/usr/lib/vmware/modules/source# tar xvf vmnet.tar vmnet-only/filter.c
    vmnet-only/filter.c
    root@ThinkPad-T420s:/usr/lib/vmware/modules/source# patch vmnet-only/filter.c < /tmp/filter.c.diffpatching file vmnet-only/filter.c
    patch: **** '<' expected at line 8 of patch

    ReplyDelete
  39. This also worked with VMWare Player 5.03 - thanks!

    ReplyDelete
  40. Thanks a lot! Worked for me. :)
    Adding some keywords/sentences so that this page come up while Googling.
    Failed to build vmnet
    Vmware compilation failed in Ubuntu 14.04

    ReplyDelete
  41. @ALL
    VMware Player 6.0.2 fixes this issue, so you won't need to apply the patch yourselves.

    ReplyDelete
  42. Thank you very much for this patch! You made my day!
    VMWare Workstation 9.0.3 works on my Kubuntu 14.04 now! :) Wheeeeeee!
    http://www.youtube.com/playlist?list=PLKPi39tTpkdpjBVQZo5oFLWjFjlOMkd2A

    ReplyDelete
  43. thank you so much workstation 10 now works on ubuntu 14.04

    ReplyDelete
  44. Worked for me with Ubuntu 14.04 and workstation 10.

    Thanks!!

    ReplyDelete
  45. Hello worked fine and I (Linux-Beginner!) was able to help myself with your instructions
    (Ubuntu 14.04 and VMWare Player 6.0.1 .
    many thanks

    ReplyDelete
  46. Brilliant, thank you for the awesome article

    ReplyDelete
  47. Worked on a fresh ubuntu 14.04 with vmware VMware-Player-5.0.3-1410761.x86_64.bundle

    Thanks

    ReplyDelete
  48. This also works on KALI Linux for anyone who recently updated the main Kernels - so thanks :o)

    ReplyDelete
  49. works for ubuntu 14.04 and vmware workstation 9

    ReplyDelete
  50. It fails. However, it did work previously on this same system (14.04) with VMplayer 5.0.3. Now it gives the same error as others are getting (in above posts). patching file vmnet-only/filter.c
    Hunk #3 FAILED at 259.
    1 out of 3 hunks FAILED -- saving rejects to file vmnet-only/filter.c.rej


    The filter.c.rej indicates:

    *** /dev/null
    --- /dev/null
    ***************
    *** 259
    - transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
    --- 263,267 -----
    + #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
    + transmit = (hooknum == VMW_NF_INET_POST_ROUTING);
    + #else
    + transmit = (ops->hooknum == VMW_NF_INET_POST_ROUTING);
    + #endif

    Any workaround for this? thanks.

    ReplyDelete
  51. In that case I would recommend to patch it manually, it's not as hard as it looks, and if you do this regularly and keep using the same versions, keep the vmnet.tar and just replace it after the install.

    205a206 = basically means at original line 205 it adds the line below.
    206a208,210 = means at original 206 it ads the lines below that as 208-210.
    255c259,263 = means original line 255 was changed with the new content, which is now 259,263. The "<" means out, ">" means in.

    ReplyDelete
    Replies
    1. Thanks! Patching using 'patch' didn't work, but after patching manually it works like a charm!

      Delete
    2. hi ,
      Could you please tell me how you did it? I couldn't get to work it.. I am getting the same error message...

      Thanks

      Delete
  52. Hi - trying this on 14.04 with vmplayer 9, all went is ok, I click on the gui, it asks me to recompile, I click ok and then nothing ?

    ReplyDelete
  53. Thank you. Worked without any problems on mint 17.

    ReplyDelete
  54. It worked like a champ. Thanks for shairing

    ReplyDelete
  55. It's works!!!.
    Excelent!

    Thanks for all-

    ReplyDelete
  56. It simply works.
    Thanks for sharing.
    Piero

    ReplyDelete
  57. You are awesome! Thank you!

    ReplyDelete
  58. It works fine..... thanks a lot.

    ReplyDelete
  59. Thanks a lot, saved my day.

    ReplyDelete
  60. New to linux, but worked like a charm.

    ReplyDelete
  61. Most Excellent! Thank you

    ReplyDelete
  62. To build vmnet in Workstation 10.0.3 on Ubuntu Utopic amd64 wiht kernel 3.18-rc1 I found the fix on http://archlinuxtricks.blogspot.com/
    in file netif.c comment out: dev = alloc_netdev(sizeof *netIf, deviceName, VNetNetIfSetup);
    add: dev = alloc_netdev(sizeof *netIf, deviceName, NET_NAME_UNKNOWN, VNetNetIfSetup);

    ReplyDelete
  63. This was brilliant. Still working with "Ubuntu 14.04.1 LTS" and 3.13.0-40-generic.

    ReplyDelete
  64. patching file vmnet-only/filter.c
    Hunk #3 FAILED at 259.
    1 out of 3 hunks FAILED -- saving rejects to file vmnet-only/filter.c.rej

    How to solve it?I have Ubuntu 12.04 kernel 3.17.0 generic

    ReplyDelete
    Replies
    1. I would try to install VMware Player 6.0.2 to see if it fixes the problem without the need for a patch.

      Delete
  65. with current version it seems the file has 0 Bytes. What am I missing? (ubuntu 14.04 kernel 3.13.0-45-generic)

    ReplyDelete
    Replies
    1. I don't know which file is 0 bytes, but have you tried installing VMware Player 6.0.2? I believe they fixed the issue themselves now.

      Delete
  66. wonderful ! thanks so much for this.

    ReplyDelete
  67. where is the patch,where is vmnet,where is the filter.c.diff file????? HELPPP

    ReplyDelete
    Replies
    1. You should install VMware Player 6.0.2 or later.

      Delete
  68. Hey there. Thx for the post.

    Worked fine on Linux Mint 17.1 (Rebecca) with VMware Workstation 9.0.4 build-1945795

    Linux 3.13.0-37-generic #64-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux

    ReplyDelete
  69. Did not worked on kali linux

    ReplyDelete
  70. Wow.....really cooool!!! Its just amazing..

    ReplyDelete
  71. This post is brilliant! Thank you!

    ReplyDelete
  72. VMware Workstation 11 will not run on Ubuntu 15.04 (Kernel 3.19.0-15-generic)

    I recently did a clean upgrade to Ubuntu 15.04 and after installing VMware I am unable to run it. When I launch VMware I receive a message stating several modules must be compiled first. I select install and got an error stating it was unable to start services. Below are the details of my machine and error logs. Any help would be greatly appreciated. I am not new to Ubuntu but very new to VMware so please be as descriptiveas possible with the answer. Appreciate the help in advance.

    VMware Workstation 11

    # lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 15.04
    Release: 15.04
    Codename: vivid

    # uname -a
    Linux gareth-Inspiron-7720 3.19.0-15-generic #15-Ubuntu SMP Thu Apr 16 23:32:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

    # vmware -v
    VMware Workstation 11.1.0 build-2496824

    # vmplayer --version
    VMware Player 7.1.0 build-2496824

    End of Log from /tmp/vmware-root/vmware10423.log

    2015-04-30T15:55:24.879-04:00| vthread-4| I120: Setting destination path for vmnet to "/lib/modules/3.19.0-15-generic/misc/vmnet.ko".
    2015-04-30T15:55:24.879-04:00| vthread-4| I120: Extracting the vmnet source from "/usr/lib/vmware/modules/source/vmnet.tar".
    2015-04-30T15:55:24.888-04:00| vthread-4| I120: Successfully extracted the vmnet source.
    2015-04-30T15:55:24.888-04:00| vthread-4| I120: Building module with command "/usr/bin/make -j8 -C /tmp/modconfig-mFz0An/vmnet-only auto-build HEADER_DIR=/lib/modules/3.19.0-15-generic/build/include CC=/usr/bin/gcc IS_GCC_3=no"
    2015-04-30T15:55:26.778-04:00| vthread-4| W110: Failed to build vmnet. Failed to execute the build command.

    ReplyDelete
    Replies
    1. Gareth, I would think this thread is closer to your problem, check out both answers (always check the Ubuntu forums first):
      http://askubuntu.com/questions/605530/vmware-player-7-1-0-on-ubuntu-15-04-kernel-3-19-0-10-generic-app-loading

      Delete
    2. Perfekt, das funzt auf Anhieb! Vielen Dank!

      Delete
  73. Thanks so much! Worked perfectly for Linux Mint 17 + VMware Workstation 10

    ReplyDelete
  74. Alas, didn't work for me :-(
    Linux Mint 17.2 Rafaela
    # uname -a
    Linux [hostname] 3.16.0-38-generic #52~14.04.1-Ubuntu SMP Fri May 8 09:43:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
    # vmplayer --version
    VMware Player 5.0.4 build-1945795

    I get this far:
    sudo -E -s
    # cd /usr/lib/vmware/modules/source/
    # cp vmnet.tar vmnet.tar.original
    # tar xvf vmnet.tar vmnet-only/filter.c
    vmnet-only/filter.c
    # patch vmnet-only/filter.c < /tmp/filter.c.diff
    patching file vmnet-only/filter.c
    patch unexpectedly ends in middle of line
    patch: **** unexpected end of file in patch at line 13

    I can carry on, thus:
    # tar -uvf vmnet.tar vmnet-only/filter.c
    # rm -rf vmnet-only/
    # vmware

    But end up in the same state:
    Failed to build vmnet. Failed to execute the build command.
    Starting VMware services:
    Virtual machine monitor done
    Virtual machine communication interface done
    VM communication interface socket family done
    Blocking file system done
    Virtual ethernet failed
    VMware Authentication Daemon done

    The last couple of lines in the error log says:
    : Extracting the vmnet source from "/usr/lib/vmware/modules/source/vmnet.tar".
    : Successfully extracted the vmnet source.
    : Building module with command "/usr/bin/make -j8 -C /tmp/modconfig-RLx09o/vmnet-only auto-build HEADER_DIR=/lib/modules/3.16.0-38-generic/build/include CC=/usr/bin/gcc IS_GCC_3=no"
    : Failed to build vmnet. Failed to execute the build command.

    Could you offer any guidance to a Linux newbie..? Thanks very much!

    ReplyDelete
    Replies
    1. Resolved!
      Used the patch file contents created by 'WoodyZ' on https://communities.vmware.com/message/2327060
      The file is slightly different from the one referenced here, and for some reason creating the file myself didn't work, but downloading the one near the end of the thread 'ws1001.vmnet.filter.c.313.patch.zip', extracting and renaming to filter.c.diff did work.
      Hope that helps someone else
      :-)

      Delete
  75. This patch cured the vmnet build failure in VMware Player 5.0.4 build-1945795

    Distribution: Linux Mint 17.2 "Rafaela"
    Kernel: Linux 3.16.0-38-generic (x86_64)

    Many thanks from this Linux newbie!
    Allan Gay.

    ReplyDelete
  76. I have found that filter.c is zero bytes in size after the extraction. Can I just get the full file from somewhere?

    ReplyDelete
    Replies
    1. I would suggest double checking the command you're issuing or use a GUI program (like Archive Manager) to extract the file.

      Delete
    2. @Dan_Dar3 I have tried looking at it many ways. Here's the original (filename spelt wrong): http://imgur.com/qgyfpWC

      Delete
    3. I see. You're not specifying which version of VMware player you're using and it appears that some versions do not use filter.c and the logic might be found in driver.c. You will need to find specific instructions for that version or manually apply the change yourself to the correct file. See if this post helps you go in the right direction. https://communities.vmware.com/message/2531821

      Delete
  77. https://www.youtube.com/watch?v=u-JO_alFzhQ
    Installing VMware-player 12.1.0 on Ubuntu 14.04

    ReplyDelete
  78. This did not work, it does not even go beyond getting into the source folder. anyother working solution please help.

    ReplyDelete
    Replies
    1. Sorry, that is so little information, I doubt anyone can really help you. What doesn't work exactly, what does it say, what is the error message?

      Delete
  79. I am currently using ubuntu 14.04 and kernel version is 4.3.0-040300-generic with gcc version 4.8.5. I am trying to install vmware player 6.0.6version. when i use the filter.c mentioned as above. it gives me an error
    Hunk #3 FAILED at 259.
    1 out of 3 hunks FAILED -- saving rejects to file vmnet-only/filter.c.rej
    please help


    ReplyDelete
    Replies
    1. Hello there, the patch has to match existing code especially block no 3. See my comment on June 9, 2014 explaining what the contents of the patch mean, apply the changes manually yourself to vmnet-only/filter.c to the right locations (line numbers probably don't match your code), then recompile. Good luck!

      Delete
    2. Hi. its me again. I tried to install vmplayer 6.0.2 with same patch and it installed successfully. But now now i get this dialogue box saying
      GNU gcc 5.1 version not found. before running vmware several modules should be compiled on kernel

      Delete
    3. What I think the error message is trying to tell you is that your Linux kernel was compiled with GCC 5.1 (cat /proc/version) while you don't have GCC 5.1 installed (gcc --version). So now you obviously need to address that first. http://askubuntu.com/questions/618474/how-to-install-the-latest-gcurrently-5-1-in-ubuntucurrently-14-04

      Delete
  80. I'm getting an error patch: **** '<' expected at line 8 of patch. I'm running
    Distributor ID: Ubuntu
    Description: Ubuntu 14.04.1 LTS
    Release: 14.04
    Codename: trusty

    any one else run accross this?

    ReplyDelete
    Replies
    1. Hi Jeff, see the updated post with a direct link to the file, just in case the copy/paste was causing this.

      Delete
  81. patching file vmnet-only/filter.c
    patch unexpectedly ends in middle of line
    patch: **** unexpected end of file in patch at line 13


    i got this error plz help me

    ReplyDelete
    Replies
    1. The patch was missing the ending newline - you can add an empty line yourself at the end of the .diff file as line #15 or download the file again (see the wget command in the post). Sorry about that.

      Delete
  82. Has anyone tried this with Ubuntu/Xubuntu/Lubuntu 16.04 (kernel 4.8.0-58-generic)?

    ReplyDelete