Assuming you have already installed the 2.6 31 kernel, this link has a patch and script to modify the modules VMware compiles when you run the vmware-config.pl script. The script is for 2.6.30.4 and later kernels, and works fine for 2.6.31.
- Run the vmware-install.sh script that came with VMware Server 2.0.1, but DO NOT run the vmware-config.pl script at the end.
- Get the patch script – vmware-server.2.0.1_x64-modules-2.6.30.4-fix.sh and make it executable.
- Get the patch – vmware-server.2.0.1_x64-modules-2.6.30.4-fix.patch.
- Make a directory, say, /usr/src/vmware-patches and cd to it.
- Copy the patch, the script and the four module sources (/usr/lib/vmware/modules/source/*.tar) to the patch directory you are now in.
- Run the patch – it should build for 64-bit systems. I do not know about 32-bit systems…
- Run the vmware-config.pl command, and install as normal.
There have been reports of minor script errors, so you may need to make some slight edits. Or you may not – I had no trouble. If you need to reinstall, make sure you stop the vmware services, rmmod the vmware modules, and delete everything in the /usr/lib/vmware/modules directory before re-running the installer-patch-config steps above. You will also need to delete the modules from your system – running the installer should generate a failure message telling you what files to delete from where. Successfully running the installer will put everything you need back in the /usr/lib/vmware/modules directory.
Big thanks to meubeukeu and michelemase for their work in making these patches!
Filed under: HowTo, Kernel, Linux, VMWare | Tagged: 64-bit, HowTo, Kernel, modules, virtualization, VMWare, VMware-Server 2

Hi, i just tried your step and it still fails…here is a copy of the errors i get when i run the *.sh script.
===============================
Found tar file for vsock module
Found tar file for vmmon module
Found tar file for vmci module
Found tar file for vmnet module
Using patch file: /doc/vmware/patch/vmware-server.2.0.1_x64-modules-2.6.30.4-fix.patch
Using module directory: /usr/lib/vmware/modules/source
Using backup directory: /usr/lib/vmware/modules/source-backup
Untarring vsock.tar
Untarring vmmon.tar
Untarring vmci.tar
Untarring vmnet.tar
Testing patch
patching file vmci-only/Makefile
Hunk #1 FAILED at 113.
1 out of 1 hunk FAILED — saving rejects to file vmci-only/Makefile.rej
patching file vmmon-only/linux/driver.c
Hunk #1 FAILED at 1984.
1 out of 1 hunk FAILED — saving rejects to file vmmon-only/linux/driver.c.rej
patching file vmmon-only/linux/hostif.c
Hunk #3 FAILED at 3660.
1 out of 3 hunks FAILED — saving rejects to file vmmon-only/linux/hostif.c.rej
patching file vmmon-only/include/x86svm.h
patching file vmmon-only/Makefile
Hunk #1 FAILED at 113.
1 out of 1 hunk FAILED — saving rejects to file vmmon-only/Makefile.rej
patching file vmnet-only/Makefile
Hunk #1 FAILED at 113.
1 out of 1 hunk FAILED — saving rejects to file vmnet-only/Makefile.rej
patching file vmnet-only/netif.c
Hunk #3 succeeded at 324 with fuzz 2.
patching file vsock-only/Makefile
Hunk #1 FAILED at 113.
1 out of 1 hunk FAILED — saving rejects to file vsock-only/Makefile.rej
Sorry, problem with the patch, I can’t apply it
Try the link in the article to the VMware Communities site – there are four pages total with links to other posts on this patch – page 1 in particular has lots of instructions to try. Are you using a clean install of VMware Server 2.0? I cannot vouch that this patch will work for different products (like Player or Workstation). Is your install using the default directories? If not, you will need to change the script’s VMMODDIR from “/usr/lib/vmware/modules” to the actual path on your system.
Sorry I cannot be more helpful…
Thanks a lot for the detailed instructions. The script i downloaded contained CRLF end of line characters. It had to be converted to Unix end-of-line characters to work.
AWH! & ARGH!
Sometimes I hate this world… Your link directs me to a login page… I login, login, login, reregister, relogin relogin and so on. I cannot reach far enough to get the scripts… Only to login page.
I FRIKKEN HATE THIS SHIT.
Sorry, JOR. I tried the link after seeing your comment, and it worked fine – no login prompt occurred. Perhaps your browser is caching something?
Wonderfull article. Nice to see great sharing.
thanks for the article, very helpful.