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 22.214.171.124 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-126.96.36.199-fix.sh and make it executable.
- Get the patch – vmware-server.2.0.1_x64-modules-188.8.131.52-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.