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

114 Replies to “How-to Install VMware Player / Workstation on 2.6.24 Kernel”

  1. 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.

  2. 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).

  3. 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.

  4. 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

  5. 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…

  6. 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

  7. 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

  8. 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

  9. 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

  10. 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

  11. 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.

  12. 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 !

  13. @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

  14. 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.

  15. 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!

  16. 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

  17. @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

  18. 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

  19. @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.

  20. 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

  21. 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.

  22. 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!

  23. 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

  24. 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 :)

  25. 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

  26. 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

  27. 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.
    ——————————————————————————————————————————————

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

  29. 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)

  30. 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!

  31. 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

  32. @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)

  33. 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.

  34. 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!

Comments are closed.