VMPlayer not compiling for latest Linux kernel ?

I recently upgraded my kernel to 3.0.0.12 and found VMPlayer failing to compile. After so much failed attempts to search over the internet, I failed to compile VMPlayer. VMWare has not provided any patches.

This article(see comment:56) is written for 3.0.0.9 but works fine for newer kernals also.


$ lsb_release -rd
Description: Ubuntu oneiric (development branch)
Release: 11.10

$ uname -a
Linux myUBT 3.0.0-9-generic #15-Ubuntu SMP Tue Aug 30 15:03:37 UTC 2011 i686 i686 i386 GNU/Linux

——-
STEPS:
——-
Close VMware dialog from where you got the error. (no need to uninstall/remove VMware)

sudo -i
mkdir /tmp/vmware && cd /tmp/vmware
cp -R /usr/lib/vmware/modules/source/
cp -R /usr/lib/vmware/modules/source/ /tmp/vmware
cd /tmp/vmware/source
wget http://weltall.heliohost.org/wordpress/wp-content/uploads/2011/05/vmware2.6.39patchv3.tar.bz2
tar -jxvf vmware2.6.39patchv3.tar.bz2
for i in ./*.tar; do tar -xf $i; done
for i in ./*.tar; do mv $i $i.orginal; done
patch -t -f -p1 < vmware2.6.39fixedv3.patch
tar cf vmblock.tar vmblock-only
tar cf vmci.tar vmci-only
tar cf vmmon.tar vmmon-only
tar cf vmnet.tar vmnet-only
tar cf vsock.tar vsock-only
cp -vf *.tar /usr/lib/vmware/modules/source/

Run VMWare Player

  • Jurgen

    Thank you, Ved. I did the Upgrade (Ubuntu 11.10) last night and found the same issue for VMware. Your “STEPS” worked perfect for me.

    • Ved

      Great if this works. I wonder when VMWare is going to officially patch this.

    • jord!

      Thanx so much Ved! in my case, it works perfectly!

  • topalote

    Thanks. It was a big problem for me.
    Just working

  • Pablo

    Thanks, it works for me in Ubuntu 11.10 amd64.

  • gustavo

    Hi Ved,

    When doing

    tar cf vmnet.tar vmnet-only

    I get

    tar: vmnet-only: Cannot stat: No such file or directory
    tar: Exiting with failure status due to previous errors

    • Ved

      Gustavo, which version of Player you have ? Can you uninstall and reinstall Player?

  • Dan

    Thanks, it also worked for me in Ubuntu 11.10 amd64!

  • Luis

    Great! Thanks

  • Daniel

    Ved,

    Thanks a bunch for posting this! It worked great for Ubuntu 11.10. I had to run the commands once, after which VMWare wanted to update. So I let it update and had to run the commands again. It worked like a charm not once, but twice!

  • Daniel

    Ved
    Thanks, it works well for me, Ubuntu 11.10,WMware3.1.4

  • rallue

    Thanks, It also worked for me in Ubuntu 11.10 amd64!
    VMware workstation 7.1.4 build-385536 64bits

  • martin

    Thanks, this worked a treat!

  • Pierre

    Thank you very much. It was a big problem for me too. (Ubuntu 11.10, 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64)

  • michele

    Thank you so much!!!
    It worked perfect also for me… Ubuntu 11.10 amd64

  • http://www.ta-computersysteme.de Tim Albers

    You Sir, just made and saved my day! Kudos to you!

  • Stefan

    It works. Thanks a lot.

  • http://www.hagooga.com David

    Thanks!
    Worked for me too.
    VMware version 3.1.4 build-385536

    Ubuntu 11.10, 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

  • Bernd fm German

    Great Thanks, it works :) I am happy for your help!!! Thank you so much!!! …

  • cloonn

    Votre manipulation fonctionne très bien.
    Merci encore. :-)

  • sdj

    Awesome, worked like a charm, thank you so much!!!

  • Liviux

    After much googling I came across this solution to the increasingly famous problem about VMware compiling the kernel in ubuntu 11.10.

    I tried to follow the steps but at one point I have the following output :

    root@liviux-laptop:/tmp/vmware/source# patch -t -f -p1 < vmware2.6.39fixedv3.patch
    patching file vmblock-only/linux/dentry.c
    Hunk #1 FAILED at 104.
    1 out of 1 hunk FAILED — saving rejects to file vmblock-only/linux/dentry.c.rej
    patching file vmblock-only/linux/filesystem.c
    Hunk #1 FAILED at 44.
    Hunk #2 FAILED at 66.
    Hunk #3 FAILED at 336.
    Hunk #4 FAILED at 533.
    Hunk #5 FAILED at 552.
    Hunk #6 succeeded at 595 with fuzz 2 (offset 32 lines).
    5 out of 6 hunks FAILED — saving rejects to file vmblock-only/linux/filesystem.c.rej
    can't find file to patch at input line 109
    Perhaps you used the wrong -p or –strip option?
    The text leading up to this was:
    ————————–
    |diff -u -r source-orig/vmci-only/linux/driver.c source/vmci-only/linux/driver.c
    |— source-orig/vmci-only/linux/driver.c 2011-03-26 06:37:32.000000000 +0100
    |+++ source/vmci-only/linux/driver.c 2011-04-02 13:32:12.000000000 +0200
    ————————–
    No file to patch. Skipping patch.
    1 out of 1 hunk ignored
    patching file vmmon-only/linux/driver.c
    Hunk #1 FAILED at 780.
    Hunk #2 FAILED at 1041.
    2 out of 2 hunks FAILED — saving rejects to file vmmon-only/linux/driver.c.rej
    patching file vmmon-only/linux/hostif.c
    Hunk #1 FAILED at 46.
    1 out of 1 hunk FAILED — saving rejects to file vmmon-only/linux/hostif.c.rej
    patching file vmmon-only/linux/iommu.c
    Hunk #1 FAILED at 44.
    1 out of 1 hunk FAILED — saving rejects to file vmmon-only/linux/iommu.c.rej
    can't find file to patch at input line 165
    Perhaps you used the wrong -p or –strip option?
    The text leading up to this was:
    ————————–
    |diff -u -r source-orig/vmnet-only/driver.c source/vmnet-only/driver.c
    |— source-orig/vmnet-only/driver.c 2011-03-26 06:37:29.000000000 +0100
    |+++ source/vmnet-only/driver.c 2011-04-02 14:14:57.000000000 +0200
    ————————–
    No file to patch. Skipping patch.
    5 out of 5 hunks ignored
    can't find file to patch at input line 219
    Perhaps you used the wrong -p or –strip option?
    The text leading up to this was:
    ————————–
    |diff -u -r source-orig/vmnet-only/filter.c source/vmnet-only/filter.c
    |— source-orig/vmnet-only/filter.c 2011-03-26 06:37:29.000000000 +0100
    |+++ source/vmnet-only/filter.c 2011-04-02 14:16:50.000000000 +0200
    ————————–
    No file to patch. Skipping patch.
    1 out of 1 hunk ignored
    can't find file to patch at input line 231
    Perhaps you used the wrong -p or –strip option?
    The text leading up to this was:
    ————————–
    |diff -u -r source-orig/vmnet-only/hub.c source/vmnet-only/hub.c
    |— source-orig/vmnet-only/hub.c 2011-03-26 06:37:29.000000000 +0100
    |+++ source/vmnet-only/hub.c 2011-04-02 14:15:56.000000000 +0200
    ————————–
    No file to patch. Skipping patch.
    1 out of 1 hunk ignored
    patching file vsock-only/linux/af_vsock.c
    Hunk #1 FAILED at 102.
    1 out of 1 hunk FAILED — saving rejects to file vsock-only/linux/af_vsock.c.rej
    patching file vsock-only/linux/util.c
    Hunk #1 FAILED at 34.
    1 out of 1 hunk FAILED — saving rejects to file vsock-only/linux/util.c.rej
    root@liviux-laptop:/tmp/vmware/source# tar cf vmblock.tar vmblock-only
    root@liviux-laptop:/tmp/vmware/source# tar cf vmci.tar vmci-only
    tar: vmci-only: Cannot stat: No such file or directory
    tar: Exiting with failure status due to previous errors

    Does anybody know why?

    Thank you
    Livio

    • Ved

      I am not aware of this error. Will let you know if I find the cause of this.

  • Sebili

    worked also with VMware 7.15 !
    Txs

  • Sebili

    sorry guys, shot too fast…
    Worked with VMware Workstation 7.1.5

  • tac

    thank you sir, perfect!

  • Ramon Sifon

    Sensational explanation of how to solve this problem I guess it will be temporary. Very good job. thanks

  • Peter Stranzinger

    Thx for the great instruction. Its running :-).

    Ich weiß zwar nicht was ich da eingetippt habe, aber egal, hauptsache es funktioniert :-).

  • MatthewB

    Good stuff, Fixed my issues in Ubunto 11.10 :D

  • Liam

    Many thinks, patch worked perfectly. :-)

  • Liam

    lol, many thanks also! :D

  • Christian

    I am experiencing a similar problem as someone else mentioned earlier.

    tar cf vmci.tar vmci-only
    tar: vmci-only: Cannot stat: No such file or directory
    tar: Exiting with failure status due to previous errors

    tar cf vmnet.tar vmnet-only
    tar: vmnet-only: Cannot stat: No such file or directory
    tar: Exiting with failure status due to previous errors

    I am running the exact same linux/kernel version as author.

    Anyone have any thoughts? I would love to be able to compile VMware player successfully. Serious drag =/

  • Christian

    P.S. I believe the error begins with the patch. A bunch of hunk files ignored, skipped, etc. Similar to previous poster.

  • Liuc

    It works for me!!!
    Thanks!!! ;)

  • howard

    Wonderful!! It’s worked for me on Ubuntu 11.10 & VMWare player 3.1.5 build-491717. Thank you.

  • marga

    merci pour le patch ! Vous me sauvez !

  • Marcus

    Works really well, thank you!

  • urssa

    Thankyooooou!

  • Jim

    It worked great! Thanks!!
    I get a message from VMWare Workstation telling me that the kernel version is newer than the newest supported by VMWare and that it might not work, but it works great.

  • Peter

    i needed to change
    cp -R /usr/lib/vmware/modules/source/ -> cp -R /usr/lib/vmware/modules/source/ .
    ubuntu 11.10 32bit

  • guardian93

    worked like a charm..thanks!

  • chris

    Thanks for the patch!

    the crucial line is
    patch -t -f -p1 < vmware2.6.39fixedv3.patch

    if you type pl instead of p1, you get the hunk errors etc.

    • Ved

      Wow – is that the reason of the errors ? thanks for pointing out Chris.

  • scooter

    Thanks Ved (and weltall for the patch), saved me a lot of time and hassle… I used your steps to patch VMWare Workstation 7.1.5 on Ubuntu 11.10 64bit. I used the following patch:
    http://weltall.heliohost.org/wordpress/wp-content/uploads/2011/08/fullvmwarelinux310patch.tar.gz

  • Joseph

    THANK YOU!!!!!!….This Solved Sooooooooooo Many of my problems!

  • Stefano

    thanks! the original steps worked for me as well!

  • http://bobo.com wookienz

    thanks, perfect for VM Workstation.

  • Ziaul

    Hi

    I am trying to install vmware workstation 7.1.6 in ubantu 12.10 and getting following error. Any help would be highly appreciated

    root@titanamericas:/tmp/vmware-root# cat setup-10642.log
    Dec 16 20:18:37.805: app-3075999424| Log for VMware Workstation pid=10642 version=7.1.6 build=build-744570 option=Release
    Dec 16 20:18:37.805: app-3075999424| The process is 32-bit.
    Dec 16 20:18:37.805: app-3075999424| Host codepage=UTF-8 encoding=UTF-8
    Dec 16 20:18:37.805: app-3075999424| Logging to /tmp/vmware-root/setup-10642.log
    Dec 16 20:18:37.860: app-3075999424| modconf query interface initialized
    Dec 16 20:18:37.860: app-3075999424| modconf library initialized
    Dec 16 20:18:37.886: app-3075999424| Your GCC version: 4.7
    Dec 16 20:18:37.891: app-3075999424| Your GCC version: 4.7
    Dec 16 20:18:37.900: app-3075999424| Your GCC version: 4.7
    Dec 16 20:18:37.915: app-3075999424| Your GCC version: 4.7
    Dec 16 20:18:37.924: app-3075999424| Your GCC version: 4.7
    Dec 16 20:18:37.957: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:37.960: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:37.963: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:37.967: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:37.968: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:37.983: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:37.986: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:37.990: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:37.992: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:37.993: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:37.997: app-3075999424| Your GCC version: 4.7
    Dec 16 20:18:38.006: app-3075999424| Your GCC version: 4.7
    Dec 16 20:18:38.040: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:38.043: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:38.046: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:38.049: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:38.052: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:38.056: app-3075999424| Your GCC version: 4.7
    Dec 16 20:18:38.065: app-3075999424| Your GCC version: 4.7
    Dec 16 20:18:38.110: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:38.114: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:38.117: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:38.120: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:38.123: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:38.182: app-3075999424| Trying to find a suitable PBM set for kernel 3.5.0-19-generic.
    Dec 16 20:18:38.182: app-3075999424| Building module vmmon.
    Dec 16 20:18:38.182: app-3075999424| Extracting the sources of the vmmon module.
    Dec 16 20:18:38.190: app-3075999424| Building module with command: /usr/bin/make -C /tmp/vmware-root/modules/vmmon-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/3.5.0-19-generic/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.7
    Dec 16 20:18:38.994: app-3075999424| Failed to compile module vmmon!

  • http://quandjeblog.blogspot.com/ pensebien

    The line
    2. mkdir /tmp/vmware &&amp cd /tmp/vmware
    should be simply
    2. mkdir /tmp/vmware && cd /tmp/vmware

    For Ubuntu 12.04LTS

  • http://quandjeblog.blogspot.com/ pensebien

    patch -t -f -p1 < vmware2.6.39fixedv3.patch
    patching file vmblock-only/linux/dentry.c
    Hunk #1 FAILED at 104.
    1 out of 1 hunk FAILED — saving rejects to file vmblock-only/linux/dentry.c.rej
    patching file vmblock-only/linux/filesystem.c
    Hunk #1 FAILED at 44.
    Hunk #2 FAILED at 66.
    Hunk #3 FAILED at 336.
    Hunk #4 FAILED at 533.
    Hunk #5 FAILED at 552.
    Hunk #6 succeeded at 595 with fuzz 2 (offset 32 lines).
    5 out of 6 hunks FAILED — saving rejects to file vmblock-only/linux/filesystem.c.rej
    patching file vmci-only/linux/driver.c
    Hunk #1 FAILED at 42.
    1 out of 1 hunk FAILED — saving rejects to file vmci-only/linux/driver.c.rej
    patching file vmmon-only/linux/driver.c
    Hunk #1 FAILED at 780.
    Hunk #2 FAILED at 1041.
    2 out of 2 hunks FAILED — saving rejects to file vmmon-only/linux/driver.c.rej
    patching file vmmon-only/linux/hostif.c
    Hunk #1 FAILED at 46.
    1 out of 1 hunk FAILED — saving rejects to file vmmon-only/linux/hostif.c.rej
    patching file vmmon-only/linux/iommu.c
    Hunk #1 FAILED at 44.
    1 out of 1 hunk FAILED — saving rejects to file vmmon-only/linux/iommu.c.rej
    patching file vmnet-only/driver.c
    Hunk #1 FAILED at 28.
    Hunk #2 FAILED at 105.
    Hunk #3 FAILED at 115.
    Hunk #4 FAILED at 264.
    Hunk #5 FAILED at 1134.
    5 out of 5 hunks FAILED — saving rejects to file vmnet-only/driver.c.rej
    patching file vmnet-only/filter.c
    Hunk #1 FAILED at 85.
    1 out of 1 hunk FAILED — saving rejects to file vmnet-only/filter.c.rej
    patching file vmnet-only/hub.c
    Hunk #1 FAILED at 81.
    1 out of 1 hunk FAILED — saving rejects to file vmnet-only/hub.c.rej
    patching file vsock-only/linux/af_vsock.c
    Hunk #1 FAILED at 102.
    1 out of 1 hunk FAILED — saving rejects to file vsock-only/linux/af_vsock.c.rej
    patching file vsock-only/linux/util.c
    Hunk #1 FAILED at 34.
    1 out of 1 hunk FAILED — saving rejects to file vsock-only/linux/util.c.rej

  • http://quandjeblog.blogspot.com/ pensebien

    I get that error after trying different patch and uninstall the vmware several time