How-to Install VMware Player / Workstation on 2.6.24 Kernel

Update: If you are looking for patching VMware for Linux 2.6.25 Kernel – check here

Currently latest VMware Player and Workstation do not install under Linux 2.6.24 Kernel. This is a short how-to resolve the gcc/make errors that arise while configuring (vmware-configure.pl)

1. Download the latest vmware player (workstation) – currently VMware Player 2.0.2 Build 59824
url: http://www.vmware.com/download/player/ – Read the Eula before downloading

2. tar xzvf VMware-player-2.0.2-59824.i386.tar.gz

3. cd vmware-player-distrib/

4. ./vmware-install.pl – Proceed as usual when asked to run vmware-config.pl answer NO

5. Download the latest any-any patch – currently vmware-any-any-update-116
url: http://vm…s.googlegroups.com/web/vmware-any-any-update-116.tgz

6. tar xzvf vmware-any-any-update-116.tgz

7. cd vmware-any-any-update116

8. ./runme.pl and when asked to run vmware-config.pl answer YES

9. Configure as usual

10. Enjoy!

PS. Link is broken so I reuploaded on my hosting. Patch is presented as is and I don’t take any responsibility for it. All credits go to the author.

Anyway http://blog.creonfx.com/temp/vmware-any-any-update-116.tgz

Be Sociable, Share!

Tags: , , ,

122 Responses to “How-to Install VMware Player / Workstation on 2.6.24 Kernel”

  1. HOWTO (Repost) - Vanilla Kernel 2.6.24.2, VMware Server, and Kubuntu 7.10… « Linux Free Trade Zone Says:

    [...] How-to Install Vmware Player / Workstation on 2.6.24 Kernel – Assuming you already have VMware Player/Workstation/Server loaded, follow from Step 5.  Although it does not mention Server, these steps work for installing VMware Server as well. [...]

  2. Dave Says:

    Link to version 116 of the patch is broken.

  3. Peter Says:

    link added

  4. boreal Says:

    Thank you! It worked on debian unstable with the latest vmware workstation (6.0.2-59824).

  5. ruppertus Says:

    Works fine:
    - Kernel 2.6.24 (+ tuxonice patch)
    - Debian lenny/testing distro.
    - VMWare workstation 6.02

  6. Maverick Says:

    Thank you! It works on Gentoo with 6.0.2-59824.

  7. Petter Says:

    Nice guide! Thank you

  8. Tom Says:

    Thank you!
    It works on:
    - ZenWalk 5 (2.6.24.2)
    - VMWare workstation 6.0.2 build 59824

  9. Abhi Says:

    Wow it works. was looking to make it run on debian and it does ;-)

    Sys specs kernel:2.6.24.2(vanilla) on debian testing/unstable

  10. Sean Says:

    Works with VMware Workstation 6.0.2 build-59824 and etch backport from http://kmuto.jp/b.cgi/debian/d-i-2624-etch3.htm , thankyou!

  11. 历经坎坷,安装VMWARE6 | My Life, My Love! Says:

    [...] 参考文档: http://blog.creonfx.com/linux/how-to-install-vmware-player-workstation-on-2624-kernel [...]

  12. Eric Says:

    How about VMWare Fusion/OSX? The various threads I’ve found don’t address the version of vmware-tools included with Fusion. Dunno why Fusion has to have different tools…

  13. n3uT Says:

    Thanks Peter!

    Working on:

    OpenSuSE-10.3
    linux-2.6.24-3

  14. gregster Says:

    I’m running Hardy alpha 5 (2.6.24-11 generic)
    The tip works, but only if g++ is installed.
    When trying to run VMWare (Server 1.04) I then had problems like this:
    /usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0: no version information available (required by /usr/lib/libcairo.so.2)
    /usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0′ not found (required by /usr/lib/libstdc++.so.6)

    So I ran these commands:
    cd /usr/lib/vmware/lib/libpng12.so.0
    sudo mv libpng12.so.0 libpng12.so.0.old
    sudo ln -sf /usr/lib/libpng12.so.0 libpng12.so.0
    cd /usr/lib/vmware/lib/libgcc_s.so.1
    sudo mv libgcc_s.so.1 libgcc_s.so.1.old
    sudo ln -sf /lib/libgcc_s.so.1
    (hope that’s clear…)

    Now it seems to be OK.

  15. antoine Says:

    Working on:
    Fedora 8 x86
    kernel 2.6.24.3-12.fc8

    thanks

  16. evad.zone » Blog Archive » Kernel 2.6.24 vs VMware Player / Workstation Says:

    [...] Source: Peter Velichkov’s Blog [...]

  17. Master of Desaster Says:

    Hi Peter. I have to say thank you for this great work !!
    The configuration of VMware Workstation 6.0.0 build-45731 for Linux for this
    running kernel completed successfully.
    I’m running 2.6.24.3-12.fc8.

  18. daveStyle Says:

    Fedora 8
    2.6.24.3-12

    Still getting errors after running any-any-update?
    Try: yum install gcc-c++

    Worked for me :)

  19. Nicco Says:

    To [daveStyle]:
    it’s true.
    Install gcc-c++ if you get:
    make[1]: Entering directory `/usr/src/kernels/2.6.24.3-12.fc8-i686′
    CC [M] /tmp/vmware-config3/vmmon-only/linux/driver.o
    CC [M] /tmp/vmware-config3/vmmon-only/linux/driverLog.o
    CC [M] /tmp/vmware-config3/vmmon-only/linux/hostif.o
    CC [M] /tmp/vmware-config3/vmmon-only/common/comport.o
    CC [M] /tmp/vmware-config3/vmmon-only/common/cpuid.o
    CC [M] /tmp/vmware-config3/vmmon-only/common/hash.o
    CC [M] /tmp/vmware-config3/vmmon-only/common/memtrack.o
    CC [M] /tmp/vmware-config3/vmmon-only/common/phystrack.o
    CC [M] /tmp/vmware-config3/vmmon-only/common/task.o
    gcc: error trying to exec ‘cc1plus’: execvp: No such file or directory
    make[2]: *** [/tmp/vmware-config3/vmmon-only/common/task.o] Error 1
    make[1]: *** [_module_/tmp/vmware-config3/vmmon-only] Error 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.24.3-12.fc8-i686′
    make: *** [vmmon.ko] Error 2
    make: Leaving directory `/tmp/vmware-config3/vmmon-only’
    Unable to build the vmmon module.

  20. Dugald Says:

    Ubuntu 7.10 2.6.24.3 – worked a treat, thanks.

  21. JJ Says:

    Thx very much.
    It’s working very well, on my Fedora Core 8 with the kernel version 2.6.24.3-12

  22. katazina Says:

    Thank me too!!! :)
    It helps very much!

  23. Harikumar Says:

    Thank you so much, it worked on my FC8

  24. Berni Says:

    latest vmware server 1.0.5 plus only:

    http://blog.creonfx.com/temp/vmware-any-any-update-116.tgz

    Compiles ok with warnings:

    CC [M] /tmp/vmware-config5/vmmon-only/common/task.o
    cc1plus: warning: command line option “-Werror-implicit-function-declaration” is valid for C/ObjC but not for C++
    cc1plus: warning: command line option “-Wdeclaration-after-statement” is valid for C/ObjC but not for C++
    cc1plus: warning: command line option “-Wno-pointer-sign” is valid for C/ObjC but not for C++
    cc1plus: warning: command line option “-Wstrict-prototypes” is valid for Ada/C/ObjC but not for C++
    /tmp/vmware-config5/vmmon-only/common/task_compat.h: In function ‘void Task_Switch_V45(VMDriver*, Vcpuid)’:
    /tmp/vmware-config5/vmmon-only/common/task_compat.h:2666: warning:
    ‘sysenterState.SysenterStateV45::validEIP’ may be used uninitialized in
    this function
    /tmp/vmware-config5/vmmon-only/common/task_compat.h:2666: warning:
    ‘sysenterState.SysenterStateV45::cs’ may be used uninitialized in this
    function
    /tmp/vmware-config5/vmmon-only/common/task_compat.h:2666: warning:
    ‘sysenterState.SysenterStateV45::rsp’ may be used uninitialized in this
    function
    /tmp/vmware-config5/vmmon-only/common/task_compat.h:2666: warning:
    ‘sysenterState.SysenterStateV45::rip’ may be used uninitialized in this
    function

    All fine except bridge networking does not work. No errors logged in syslog or vmware.log.

    Where to start looking?

  25. Daniel Serodio Says:

    I’m using Ubuntu 8.04 alpha with kernel 2.6.24-12-generic

    After the any-any patch, I’m able to compile the VMware modules, but when I try to open a virtual machine, I get the following error:

    Version mismatch with vmmon module: expecting 161.0, got 137.0.
    You have an incorrect version of the `vmmon’ kernel module.
    Try reinstalling VMware Workstation.

  26. Peter Says:

    @Daniel Serodio

    Probably you are using old version of VMware Workstation. You can try downloading the latest version from the site.

    If the problem persists please drop me a line

  27. Joe Pfeiffer Says:

    Works perfectly with a Debian testing/unstable x86 system, kernel 2.6.24-1-686. Thanks!

  28. Berni Says:

    An update to my earlier post. Oops, guess what I missed in the logs:

    bridge-wlan0: enabling the bridge
    bridge-wlan0: is a Wireless Adapter
    vmnet: You are trying to use wireless bridged networking together with
    vmnet: vmware-any-any-update. This is not supported configuration, and
    vmnet: your wireless bridge will probably not work.
    bridge-wlan0: up
    bridge-wlan0: already up
    bridge-wlan0: attached

    Which all makes sense for a server product. bridge-eth0 works just fine – yippee.

    So I have vmware server 1.0.5 working on Debian’s 2.6.24-1-amd64. This is likely to be the the kernel in the Debian release so this is good news. Please can I join Mr Pfeiffer in saying a BIG THANKS!

  29. Raja Says:

    Coolness… thanks for the patch man. It works just fne.

  30. Daniel Serodio Says:

    @Peter, I uninstalled VMware, installed VMware Workstation 6.0.3 build-80004 with the any-any 116 patch and still get the same error… :-/

  31. zenrox Says:

    extract ,tgz
    apt-get install g++-4.2-multilib
    sudo ./runme.pl

    ubuntu hardy
    vmware server 2.0 beta-build 63231

  32. Peter Says:

    ubuntu hardy beta
    VMware-workstation-6.0.3-80004.i386.tar.gz

    patch didn’t seem to work as it was still complaining about cc1plus –

    apt-get install build-essential

    and it compiled fine. Thanks for the hints guys, installing build-essential installed g++ and g++4.2.

  33. Dominik Says:

    Thanks, it works on
    - openSUSE 10.2
    - kernel 2.6.24.3
    - vmware server 1.0.5

  34. gotdoug? » Blog Archive » vmware player on Fedora system with 2.6.24 Kernel Says:

    [...] I did a little bit of Googleing, and I came across this helpful post from Peter Velichkov. Here is a brief summary of his instructions (I started with step [...]

  35. Mike Says:

    vmware-any-any-update-116.tgz doesn’t work with VMware-workstation-6.0.3-80004, it’s expecting 167.0 of the module and is getting 137.0. I guess this doesn’t actually patch the modules as they’re distributed with VMware, it replaces them with older versions that have been patched to work?

  36. Mike Says:

    After unpacking lib/vmware/modules/source/vmmon.tar and changing “asm/bitops.h” to “include/bitops.h” in vmmon-only/include/vcpuset.h, the vmmon module compiles fine. There are no other errors with the remaining modules on 2.6.24.4.

  37. Sam Tregar Says:

    Mike is on the right track, but the correct include is “linux/bitops.h” not “include/bitops.h”.

  38. khiem Says:

    Thanks a lot! You have saved me a lot of trouble!

  39. alex Says:

    sorry, doesnt work for me…i googled and always found the same sollution. i use debian etch and kernel 2.6.24.4. tried it with all the different any-to-any patches but still get this fault:

    make[2]: *** [/tmp/vmware-config8/vmmon-only/linux/driver.o] Fehler 1
    make[1]: *** [_module_/tmp/vmware-config8/vmmon-only] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.24.4-mananew’
    make: *** [vmmon.ko] Fehler 2
    make: Leaving directory `/tmp/vmware-config8/vmmon-only’
    Unable to build the vmmon module.

    the path to the kernel-headers is definitly correct…

  40. Peter Says:

    @alex

    Could you please post more info – Vmware player, workstation or server are you using. Did you compiled this kernel or it is backport? What version of GCC do you use?

    I’m sure if I can not help you there is someone who will

    Cheerz

  41. mordisko Says:

    Thanks a lot.
    Im running debian lenny/sid 2.6.24-1-686 and vmware server1 .0.4 build-56528.

    I couldn’t compile vmmon module when i updated my kernel and i downloaded the patch. After unsucessfull compiling, I tried to apply the patch and an error told me that the files required to patch did not exist.

    This was because a failed vmware-config.pl deletes some files (or every file) of your vmware install. After skipping this comprobation i could patch and my vmware is now running, with my old configuration perfectly working (at least for now).
    Mordisko

  42. Ron Wolfe Says:

    thanks,
    work on Ubuntu Hardy 8.0.4 beta
    required
    apt-get install build-essential
    then installed as above

  43. cicciokio Says:

    It worked perfectly for me, thanks a lot!

  44. jagger Says:

    It does not work on FC8 – VMWare Player 2.0.3 (VMwareTools-6.0.3-80004)

    1) vmware-config-tools.pl gives the following error while building vmhgfs module

    Using 2.6.x kernel build system.
    make: Entering directory `/tmp/vmware-config4/vmhgfs-only’
    make -C /lib/modules/2.6.24.4-64.fc8/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
    make[1]: Entering directory `/usr/src/kernels/2.6.24.4-64.fc8-i686′
    CC [M] /tmp/vmware-config4/vmhgfs-only/backdoor.o
    CC [M] /tmp/vmware-config4/vmhgfs-only/backdoorGcc32.o
    CC [M] /tmp/vmware-config4/vmhgfs-only/bdhandler.o
    CC [M] /tmp/vmware-config4/vmhgfs-only/cpName.o
    In file included from include/linux/string.h:11,
    from /tmp/vmware-config4/vmhgfs-only/cpName.h:18,
    from /tmp/vmware-config4/vmhgfs-only/cpName.c:18:
    include/linux/types.h:40: error: conflicting types for ‘uintptr_t’
    /tmp/vmware-config4/vmhgfs-only/vm_basic_types.h:170: error: previous declaration of ‘uintptr_t’ was here
    make[2]: *** [/tmp/vmware-config4/vmhgfs-only/cpName.o] Error 1
    make[1]: *** [_module_/tmp/vmware-config4/vmhgfs-only] Error 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.24.4-64.fc8-i686′
    make: *** [vmhgfs.ko] Error 2
    make: Leaving directory `/tmp/vmware-config4/vmhgfs-only’
    Unable to build the vmhgfs module.

    2) cut & paste between host (Win XP) and guest (FC8) still does not work

  45. PLJ Says:

    FC8 & Kernel-2.6.24.4 & vmware workstation 5.5.6

    Base install (with KDE instead of Gnome) required the installation of the following packages:

    kernel-headers
    kernel-devel
    gcc
    gcc-c++

    Without the last package the any-any patch will exit with an error.

    Thanks for the info!

  46. timename Says:

    Thanks a lot, it works correctly.
    To all – to be attention it works correctly only if you do:
    1 – ./vmware-install.pl – Proceed as usual when asked to run vmware-config.pl answer NO
    2 – ./runme.pl and when asked to run vmware-config.pl answer YES
    If you ready have VmWare and updated Kernel to 2.6.24 you must to do installing from 1st step, not use vmware-any-any before you don’t reinstall vmwares’s system files from distrib.

  47. Sold Out Activist » Solution to problems installing VMWare on Fedora 8 Says:

    [...] on Fedora 8 Sold Out ActivistSold Out Activist @ 5:12 am tags: Just confirming that the guide on this page works as described. I was able to install VMWare on Fedora 8, bypassing the problems with compiling [...]

  48. Chris Says:

    Anyone have success with Hardy 64bit?

    Lots of “wrong ELF class: ELFCLASS64″ errors..

    -c

  49. crazier9688 Says:

    @Daniel Serodio

    i have met the same problem with you,but i reconfig the vmware,everthing is ok,i don’t know how can this happen

  50. adsf Says:

    This does not work for VMware server 1.0.5 and kernel 2.6.24.4.
    VMware server cannot be contacted afterwards, and the virtual machines does not have any network connection.

  51. Peter Says:

    At least on Debian Unstable with linux-image-2.6.24-1-686 (2.6.24-5) I’m successfully running VMware Server 1.0.5 build-80187. Please post more information for your distribution, kernel, etc.

  52. shareme Says:

    I apologize in advance as I have not been on linux in awhile..

    After I try step 5..ie

    sudo ./runme.pl

    I am getting

    unable to open the installer database /etc/vmware/locations

    my thinking was maybe to move the patch to say /opt/local or something similar and try it again as a work around..doe stha tsound right..thanks

  53. shareme Says:

    whoop ..Linux distro is Ubuntu 8.0.5

  54. Peter Says:

    @shareme

    Did all previous steps completed successfully?
    Also if the message is “Unable to open the installer database /etc/vmware/locations in read mode” try googling because there are plenty of users describing the same issue.

    Also I suggest to be root all the time (during install) instead of using sudus

  55. shareme Says:

    I googled and it said for Ubuntu 8.0.5 use open-vm-tools instead so will post back results

  56. ko0nz Says:

    hi,

    i’m trying vmware server VMware-server-1.0.5-80187.tar.gz and the patch vmware-any-any-update-116.tgz
    but it does not work.
    kernel: 2.6.24-1-686
    the message i got:

    Building for VMware Server 1.0.0.
    Using 2.6.x kernel build system.
    make: entrant dans le répertoire « /tmp/vmware-config0/vmmon-only »
    make -C /lib/modules/2.6.24-1-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
    make[1]: entrant dans le répertoire « /usr/src/linux-headers-2.6.24-1-686 »
    CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
    CC [M] /tmp/vmware-config0/vmmon-only/linux/driverLog.o
    CC [M] /tmp/vmware-config0/vmmon-only/linux/hostif.o
    CC [M] /tmp/vmware-config0/vmmon-only/common/comport.o
    CC [M] /tmp/vmware-config0/vmmon-only/common/cpuid.o
    CC [M] /tmp/vmware-config0/vmmon-only/common/hash.o
    CC [M] /tmp/vmware-config0/vmmon-only/common/memtrack.o
    CC [M] /tmp/vmware-config0/vmmon-only/common/phystrack.o
    CC [M] /tmp/vmware-config0/vmmon-only/common/task.o
    gcc-4.1: error trying to exec ‘cc1plus’: execvp: Aucun fichier ou répertoire de ce type
    make[2]: *** [/tmp/vmware-config0/vmmon-only/common/task.o] Erreur 1
    make[1]: *** [_module_/tmp/vmware-config0/vmmon-only] Erreur 2
    make[1]: quittant le répertoire « /usr/src/linux-headers-2.6.24-1-686 »
    make: *** [vmmon.ko] Erreur 2
    make: quittant le répertoire « /tmp/vmware-config0/vmmon-only »
    Unable to build the vmmon module.

    thank you in advance for return.

  57. ko0nz Says:

    with Debian Testing

  58. ko0nz Says:

    :)

    i get it compile installing g++-4.1.

    peace!

  59. dLBR Says:

    Very helpful page, indeed Just tested with latest Fedora 8 kernel and latest VMWare Player, works perfectly with vmware-any-any-update116.

    kernel-2.6.24.4-64.fc8
    kernel-devel-2.6.24.4-64.fc8
    VMwarePlayer-2.0.3-80004

    As a rule of thumb, I would go for latest player/workstation and latest any-any patch whenever updating the kernel (I had similar experience on FC6 some time).

  60. Jim Says:

    This procedure works fine for 2.6.24.4 and Ubuntu/Gutsy for x86 and amd64 and Debian/Etch x86 and amd64. I just tried the new kernel 2.6.25 and the vmware-any-any-update116 patch did not work anymore.

  61. Regardt Says:

    Hi,

    For those of you getting stuck with gcc versioning errors, I suggest you do the following:

    env CC=/usr/bin/gcc-4.1 ./runme.pl

    That simply overrides the compiler version being used to one that your kernel is compiled with.

    This is a generic solution but was used for debian-lenny

  62. Mike Says:

    vmmon tries to access the init_mm symbol, which seems to be gone in 2.6.25. A google search brings up http://communities.vmware.com/message/863066 which mentions a patch that delays it’s removal, but I don’t think it was checked in or we wouldn’t be having this problem. It also doesn’t sound like the patches on that thread help, so I think we’ll have to wait for better people to fix it this time…

  63. phaoost Says:

    with Debian x64 sid (current) and recently downloaded vmware 6.0.3 b80004 it isn’t working :(
    CC [M] /tmp/vmware-config6/vmmon-only/common/task.o
    cc1plus: warning: command line option “-Werror-implicit-function-declaration” is valid for C/ObjC but not for C++
    cc1plus: warning: command line option “-Wdeclaration-after-statement” is valid for C/ObjC but not for C++
    cc1plus: warning: command line option “-Wno-pointer-sign” is valid for C/ObjC but not for C++
    cc1plus: warning: command line option “-Wstrict-prototypes” is valid for Ada/C/ObjC but not for C++
    In file included from /tmp/vmware-config6/vmmon-only/common/hostKernel.h:56,
    from /tmp/vmware-config6/vmmon-only/common/task.c:30:
    include/asm/page.h: In function ‘pte_t native_make_pte(pteval_t)’:
    include/asm/page.h:128: error: expected primary-expression before ‘)’ token
    include/asm/page.h:128: error: expected ‘;’ before ‘{‘ token
    include/asm/page.h:128: error: expected primary-expression before ‘.’ token
    include/asm/page.h:128: error: expected `;’ before ‘}’ token
    make[2]: *** [/tmp/vmware-config6/vmmon-only/common/task.o] Error 1
    m

  64. visor Says:

    Hi,

    is there a solution to:

    Version mismatch with vmmon module: expecting 167.0, got 137.0.
    You have an incorrect version of the `vmmon’ kernel module.

    (when I press the ‘Power on this virtual machine’ button)

    VMware-workstation-6.0.3-80004
    vmware-any-any-update-116
    2.6.24-1-686

    thanks, pid

  65. slegsonly Says:

    Best page on the web to get VM going on Fedora 8. KUDOS!

  66. florian Says:

    Hello!

    Same Problem here, if starting a virtual maschine I used before I get this error:
    Version mismatch with vmmon module: expecting 167.0, got 137.0.
    You have an incorrect version of the `vmmon’ kernel module.
    Try reinstalling VMware Player.

    Error while powering on: Cannot find a valid peer process to connect to.

    Ubuntu 8.04 rc
    vmware player 2.0.3

  67. Peter Says:

    I’m not using VMware workstation but I have the doubt you don’t need to apply the patch.

    Could you please try installing without it and post the result?

    Cheers

  68. Marcelo Says:

    Works like a charm on Ubuntu Hardy FInal, 2.6.24 kernel!

  69. visor Says:

    Hi

    > Could you please try installing without it and post the result?

    Of course I did this in the first place, and it didn’t compile.
    I didn’t find any solutions on the net (I tried hard), and I also wasn’t able to
    patch the any-any patch by myself to get it running.
    Meanwhile I use VirtualBox (without any problems).

    thanks, pid

  70. pedant.dk » Blog Archive » vmware workstation 6.0.3 default fejler på linux kerne 2.6.24 Says:

    [...] at have kigge lidt rundt på nettet fandt jeg følgende løsning  , der involverer brugen af “any-any” patchet for vmware . Jeg har selv valgt denne [...]

  71. Jaocb Says:

    Running vmware workstation 6.0.3 on ubuntu 8.04 here! It works great – thanks for this post! Really usefull.

  72. dhave Says:

    I’d very much like to have a similar patch or solution so that I can run VMware workstation 6.0.3 on kernel 2.6.25.

    Does anyone know of such a thing? Thanks.

  73. Peter Says:

    Unfortunately I’m in holidays for the next couple of days and I have been waiting for 2.6.25 to come into Debian unstable before testing Vmware’s products so I will not be able to help much.

    Happy hacking !

  74. btmorex Says:

    @visor and other people with the problem:

    Version mismatch with vmmon module: expecting 167.0, got 137.0.
    You have an incorrect version of the `vmmon’ kernel module.

    This happens because the build scripts couldn’t determine the version of vmware you have when building the modules. The scripts run “vmware -v” which usually prints the version but if you haven’t successfully run vmware-config.pl yet, it just prints a message saying to run it. Simple solution is:

    1.) Patch with any-any-116
    2.) Run vmware-config.pl and check that “vmware -v” now reports the version correctly
    3.) Run vmware-config.pl again, except this time it will build the correct module versions

  75. Demosth Says:

    Thanks a million. Works on Ubuntu Studio 8.04 LTS (Hardy) (2.6.24-16-rt Kernel). I had to install a C compiler (sudo apt-get install build-essential) or it would give me a gcc error in the final step.

  76. Mike Says:

    Some patches for vmware workstation that supposedly for 2.6.25 – http://bbs.archlinux.org/viewtopic.php?id=47704

    Make sure UNUSED_SYMBOLS is enabled (on by default?) in your kernel or you’ll get init_mm errors when trying to load the module. I’m recompiling now and have to reboot. :P

  77. Cyph Says:

    @btmorex

    Thank you very much. Very helpful with the ’167.0 got 137.0′ problem

  78. lathuile Says:

    Hi Peter, hi Gregster! Thank you very much, Peter, for your script, and Gregster, for your tip from March 6th! I had exactly that problem starting the vmware after successfully running Peter’s script for vmware 5.5.6 on my Ubuntu system, recently upgraded to 8.04. After applying Gregster’s commands, everything works perfectly now!

  79. no_working Says:

    Version mismatch with vmmon module: expecting 161.0, got 167.0 here.
    rerun vmware-config.pl several times and with no luck.
    got any clue?

    btw, vmware -v show correct version

  80. Peter Says:

    @Mike I have tested them and with couple of other fixes I have successfully recompiled my VMware Player for 2.6.25. Check the latest post

    Cheerz

  81. Alex Katebi Says:

    I am getting the “Unable to open the installer database /etc/vmware/directory in read-mode ” Error message when I ran runme.pl

    I have no clue how to fix this.

    Thanks,
    -Alex

  82. Peter Says:

    are you root ?

  83. Alex Katebi Says:

    yes I am root.

  84. Peter Says:

    @Alex

    Can you check if this directory exist and you can edit files there. Other option is to check on which line of the perl file does this happen and see the exact reason.

  85. Alex Katebi Says:

    Hi Peter,
    Actually the exact name of the file is /etc/vmware-tools/locations. I did open the file and it’s file permissions are correct. All the perl open statments have this problem. I was able to get around this problem by replacing the variable name for the file with that actual name.
    For example:
    Changed: open(INSTALLDB, ‘<’ . $cInstallerMainDB)
    To: open(INSTALLDB, ‘</etc/vmware-tools/locations’)

    I did that in there different open statments. I am passed this problem. Now I have another problem I will provide the details when I go home later. My system is at home.

    Thanks,
    -Alex

  86. alexc Says:

    Hi.
    Thank you everyone for your help. Even those who posted their problems helped me because I got the same issues when trying to install vmware player 2.0.3 on ubuntu 8.04 LTS, and now it is working fine.
    -First got, the “cc1plus, etc etc” problem when running vmware-config.pl after the any-any-update116 patch. Fixed it runing “sudo apt-get install build-essential”
    -Then, when happy that finally installed and configured vmware player, I tried to power on a virtual machine, and got the ‘expecting 161.0, got 137.0′ issue. Fixed it running vmware-config.pl again.
    Both of these problems where posted by everyone, so again, thank you all.
    Alex C.

  87. Peter Says:

    @alexc

    You are welcome :)

  88. gotcha Says:

    VMware Workstation 6.0.3 build-80004. 2.6.24-gentoo-r7.
    Those who still have compilation errors while compiling ‘vmhgfs’ module of VMWare Tools after the any-any patch and gcc-g++ downloads etc, go here:

    http://www.sendspace.com/file/ti72r1

  89. bammers Says:

    Works for me too on Ubuntu 8.04 (Linux version 2.6.24-16-generic (buildd@palmer) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 SMP Thu Apr 10 13:23:42 UTC 2008)
    Thanks!

  90. Peter Says:

    How do you see the idea about some specialized site about virtualization under linux (more community based), with repositories, source control etc. If i get some cash from the ads i will get domain and hosting.

    Please share your ideas.

    Cheerz

  91. windsword Says:

    Thanks a lot ! It works fine now

  92. Eriol Says:

    Thank you. I’m a beginner in Linux and this how-to was very useful.

  93. Dennis Says:

    Thanks a lot for all the input here. Took me an hour to compile the vmmon module, I also got the missing cc1plus error, the build-essentials package did the trick. I got a lot of warnings however, but everything seems to work so I don’t care anymore :)

  94. SoftICE Says:

    Thank you :D.

    Worked great on Debian Etch 4.0 with Kernel 2.6.25.3 and VMware Workstation 6.0.3-80004. I had to run vmware-config.pl twice to get rid of the “Version mismatch with vmmon module: expecting 167.0, got 137.0.”

    SoftICE

  95. Scott Says:

    So I got Ubuntu working off a dual boot am trying to set up all of the functions needed to get rid of Windows. Unfortunately one of the things I need is vmware player. Followed numerous how to’s and so far off a clean install of ubuntu I still cannot get it to work. I think tht maybe in my hast I may have downloaded the incorrect player. I have Ubuntu 8.04 and downloaded VMware-player-2.0.3-80004.i386. I get the following

    CC [M] /tmp/vmware-config3/vmmon-only/common/task.o
    gcc: error trying to exec ‘cc1plus’: execvp: No such file or directory
    make[2]: *** [/tmp/vmware-config3/vmmon-only/common/task.o] Error 1
    make[1]: *** [_module_/tmp/vmware-config3/vmmon-only] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic’
    make: *** [vmmon.ko] Error 2
    make: Leaving directory `/tmp/vmware-config3/vmmon-only’
    Unable to build the vmmon module.

    For more information on how to troubleshoot module-related problems, please
    visit our Web site at “http://www.vmware.com/download/modules/modules.html” and
    “http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html”.

    Execution aborted.

    Any body now how to fix this?

    Any body else have this issue. I was running this via sudo in ubuntu.

    Thanks Guys

  96. Scott Says:

    As found at http://ubuntuforums.org/showthread.php?t=770716

    This fix worked great. It seemed that the any any updated patches are not needed with this either. Could be wrong as they were already copied over etc.

    ——————————————————————————————————————————————
    Originally Posted by Rizlaw View Post

    I had the same problem. If you are using VM Workstation 6, the following will work. Assuming you are familiar with working in terminal mode on the command line, execute the following series of commands:

    * unpack VMware-workstation-6.0.3
    * go to vmware-distrib/lib/modules/source
    * untar the file vmmon.tar (tar xvf vmmon.tar)
    * cd vmmon-only/include
    * edit the file vcpuset.h
    * go to line 74
    * change #include “asm/bitops.h” to #include “linux/bitops.h” (Because there are some changes made to the 2.6.24 kernel, it’s not possible to include bitops.h from asm and you will have to include it from the linux directory)
    * go back to vmware-distrib/lib/modules/source
    * remove the old vmmon.tar file (rm vmmon.tar)
    * repack the new vmmon.tar file (tar cvf vmmon.tar vmmon-only)
    * remove vmmon-only directory (rm -rf vmmon-only)

    Now go to vmware-distrib directory and install vmware as you usualy do. It should work without a glitch.
    ——————————————————————————————————————————————

  97. Lark Says:

    I`ve just installed VMWare Player. It starts fine, but when I run any VM – whole system hangs!
    Ubuntu 8.04 32bit

  98. Peter Says:

    Probably there is some misconfiguration in your VMX file. Can you try with some prebuild virtual machine from here http://www.vmware.com/appliances/

    You may also try to uninstall and install again the player, but it is not a real solution.

    If you can put more info (logs, versions etc)

  99. Pedro Says:

    Works perfectly on Ubuntu 8.04 kernel 2.6.24-17-generic. Vmware player 2.0.2 had been broken by upgrade from Ubuntu 7.10. Thanks very much!

  100. Armin Says:

    Hi all.

    I have problems uninstalling the vmware-any-any-update116.

    I have installed VMWare Workstation 6.03 in Ubuntu Hardy 8.04.

    To get access to the network again I needed to install the any-any-update116.

    After a kernel update I have to recompile the VMWare Workstation.

    But if I am running the installer I get the message I have to uninstall the any-any-update.

    Terminal output is:

    sudo ./vmware-install.pl

    The following VMware kernel modules have been found on your system that were
    not installed by the VMware Installer. Please remove them then run this
    installer again.

    vmnet
    vmblock
    vmmon

    Execution aborted.

    I deleted all vmware folders and files I found but it seem that anything might remain.

    Can anybody help?

    Thanks
    Armin

  101. Peter Says:

    @Armin

    Check if you have vmnet.tar vmblock.tar vmmon.tar in /usr/lib/vmware/modules/source

    If so delete them and try reinstalling. But generally recompiling should not need reinstalling (something went wrong)

  102. Erik Says:

    Close but no cigar!

    Kernel: 2.6.24.7-1.rt3.2.fc7.ccrmart; Vmware player 2.0.4 (RPM package)

    I tried your patch with the latest planet ccrma kernel. As I installed the vm-player from rpm, there was no install.pl, but I assumed that it’d work anyway, as you normally have to run configure-pl as a post-install procedure anyway.

    The compilation worked fine under runme.pl, but when I tried running it I got the error:

    Version mismatch with vmmon module: expecting 168.0, got 167.0.
    You have an incorrect version of the `vmmon’ kernel module.
    Try reinstalling VMware Player.

  103. Erik Says:

    …and btw I tried running config.pl twice as well… didn’t work

  104. Kimia Zhu’s Blog | 体验Linux下急速VM Says:

    [...] How-to Install VMware Player / Workstation on 2.6.24 Kernel,关于在Linux 2.6.24中安装VM。 [...]

  105. Erik Says:

    Anyway – my setup worked fine once I tried the 2.0.3 vmware Player. Thanks!

  106. Anthony Says:

    Hey Peter, great tutorial, btw, but a while back, from Windoze I created a “mac os x86″ virtual machine (Tiger, deadmoo iso) in vmware server for win. Since then I dual booted my laptop with ubuntu hardy using wubi, and used your tutorial to install vmware player. I installed it for the sole purpose of having the ability to boot my os x86 and solaris virtual machines from linux like i could with windows, but I get the same error everyone else is about vmmon when booting the “mac”, only it says “expecting 168.0, got 167.0″. Any ideas? This is the last thing keeping me from a vista/ubuntu/solaris/mac laptop!

  107. Peter Says:

    @Anthony did you tried btmorex suggestion ?

  108. Anthony Says:

    OK, followed btmorex’s advice, now I have a mess of a machine, lol.

    but before i did, i uninstalled vmware player, “installed” vmware server (using patch), and now, no matter how many times I run runme.pl or vmware-config.pl, vmware -v prints:

    /usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4′ not found (required by /usr/lib/libcairo.so.2)
    /usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0′ not found (required by /usr/lib/libstdc++.so.6)
    /usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4′ not found (required by /usr/lib/libcairo.so.2)
    /usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0′ not found (required by /usr/lib/libstdc++.so.6)
    /usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4′ not found (required by /usr/lib/libcairo.so.2)
    /usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0′ not found (required by /usr/lib/libstdc++.so.6)

    ………
    HELP!!!!!

    A google digs mailing lists discussing the problem, and it traces to system shared library dependencies (what fun). I tried bluntly installing gcc 3.4, and 4.2 is already installed and used to make the thing in the first place. I tried symlinking around libcairo to fix it, but to no avail. like I said, my machine is an utter catastrophe. Any help is greatly appreciated.

  109. Anthony Says:

    nevermind this fixed it

    $ mv /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1 /usr/lib/vmware/lib/libgcc_s.so.1libgcc_s.so.1.old
    $ mv /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0 /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0.old
    $ cp /lib/libgcc_s.so.1 /usr/lib/vmware/lib/libgcc_s.so.1/
    $ cp /usr/lib/libpng12.so.0 /usr/lib/vmware/lib/libpng12.so.0/

    hope that helps

  110. jeepGuy Says:

    This worked as advertised on Ubuntu 8.04 and VMware-player-2.0.4.
    Thanks!

  111. Keopx » VMware server workstation en Ubuntu Hardy 8.04 Says:

    [...] http://blog.creonfx.com/linux/how-to-install-vmware-player-workstation-on-2624-kernel http://howtoforge.com/vmware-server-on-ubuntu8.04 [...]

  112. jeepGuy Says:

    Update – close but no cigar:

    Version mismatch with vmmon module: expecting 168.0, got 137.0.

    You have an incorrect version of the `vmmon’ kernel module.
    Try reinstalling VMware Player.

    On the note from Erik – I will try VMware-player-2.0.3 next…

  113. Peter Says:

    @jeepGuy 2.04 ?

    ps. Smooking can break Vmware Player :)

  114. Jesper kjeldgaard Says:

    Hi.

    Got this working on hardy with kernel 2.6.24-19.

    thanks

  115. Jacob Dorne Says:

    I didn’t need this on Ubuntu 8.04 with the 2.6.24-19-generic kernel.

    I use VMWare Workstation v6.0.4 build-93057

    The install from vmware-install.pl went fine. Even the configure script. All modules were built and Virtual Machines run perfect.

    One problem though: I get an error when starting a virtual machine because it cannot load the sound driver. Error accessing /dev/dsp
    ???

    Does this guide fix this issue???

  116. Peter Says:

    @Jacob – Your problem is probably due to your sound system.

    1. Do not run any applications that are using sounds (mp3/video players, sites with flash etc)
    2. Be sure you are using alsa or other relevantly new architecture.
    3. Check your sound settings and reduce the time for unlocking the sound device

    generally my suggestion is to boot, not starting any application wait for couple of minutes (if you have startup sounds) and then run vmware workstation

  117. Dirk Weckerlei Says:

    I still haven’t found a solution (even on this page) regarding this error message: Version mismatch with vmmon module: expecting 161.0, got 167.0. What went wrong?
    I installed vmware .v6.0.0.45731 with the 116 patch several times, but still get the same error. Who can help?

  118. Dirk Weckerlei Says:

    Found the solution: Sometimes it helps thinking aloud and consulting google more specific!
    Just copied the files from her: http://download.rhsoft.net/vmware.tar.bz2 and copied them to /usr/lib/vmware/modules/source; then rerun vmware-config.pl. Now it seems to work!!
    If you experience problems contact me via debian_on_ebay*at*yahoo.de

    Regards
    Dirk

  119. Dirk Weckerlei Says:

    Obviously my thread caught some attention .o)
    Unfortunately the provided link (http://download.rhsoft.net/vmware.tar.bz2) is broken. I will upload the needed files and will notify you regarding the new url shortly.

    So long
    dw

  120. Rudi Says:

    VMWare Server 1.0.6 under Ubuntu 8.04 does not need any patch anymore.
    http://howtoforge.com/installing-vmware-server-on-ubuntu-8.04

  121. Ngoc Says:

    Why you don’t use .rpm files. It isn’t difficult??

  122. Peter Says:

    Because I’m using either Debian or Ubuntu/Kubuntu so I prefer deb packages and I’m not a big fan of rpm/alien under Debian

Leave a Reply