How to install vmware server 2.0.x on 2.6.30 Kernels

VMware Server is a free virtualization product for Windows and Linux servers with enterprise-class support and VirtualCenter management. VMware Server is a robust yet easy to use server virtualization product and is based on proven virtualization technology, which has been used by thousands of customers for many years.
First you need to download vmware server 2.0.x from vmware website and get the vmware server installation key.

Currently we have a problems compiling vmware server under kernel version >=2.6.30 so this tutorial will explain how to install vmware server 2.0.x

Now we have VMware-server-2.0.2-203138.i386.tar.gz file so unpack this file

tar -zvxf VMware-server-2.0.2-203138.i386.tar.gz

go to vmware-server-distrib directory

cd vmware-server-distrib

Run vmware-install.pl script using the following command

./vmware-install.pl

Now you might receive compilation error messages so now you need to download required patch files from here to vmware-server-distrib directory.

You can use the following command to download patches

wget  http://www.evsblog.tk/files/vmware-server.2.0.1_x64-modules-2.6.30.4-fix.tgz

After downloading extract vmware-server.2.0.1_x64-modules-2.6.30.4-fix.tgz file

tar xvzf vmware-server.2.0.1_x64-modules-2.6.30.4-fix.tgz

Now run the patch script using the following command

sh vmware-server.2.0.1_x64-modules-2.6.30.4-fix.sh

Note:- This script will work 2.6.30,2.6.31 kernel versions

After each completing the patch installation you should see similar to the following message

After completing the patch installation you need to remove /usr/lib/vmware/modules/binary directory because The original VMware modules directory is still in the way so this will confuses VMware that is why we are removing this directory

rm -rf /usr/lib/vmware/modules/binary

Now run vmware-config.pl script

vmware-config.pl

This should complete the vmware server installation.

On some kernels you may receive an error when compiling Vsock. You will need to do download this patch and run the following

wget http://www.evsblog.tk/files/vmware-config.pl.patch.txt
patch /usr/bin/vmware-config.pl  /opt/vmware-config.pl.patch.txt

Reinstall Vmware server

If you still having  problems with your vmware server installation follow these steps

Delete the vmware modules using the following command

rm -rf /usr/lib/vmware/modules/

rm -rf /lib/modules/2.6.31-13-server/misc/vm*

Now kill all vmware processes manually

kill -9 $( ps -ef | awk ‘/vm/ { print $2 }’ )

Now run vmware-install.pl file

./vmware-install.pl

at the time of installation where you see the following message type no and press enter

Before running VMware Server for the first time, you need to configure it by
invoking the following command: “/usr/bin/vmware-config.pl”. Do you want this
program to invoke the command for you now? [yes] no

Now you need to run the patch script file using the following command

sh vmware-server.2.0.1_x64-modules-2.6.30.4-fix.sh

After completing this you should run vmware-config.pl

/usr/bin/vmware-config.pl

Via How to install vmware server 2.0.x in Ubuntu 9.10 Karmic | Ubuntu Geek and Installation and Quick Start Ubuntu 9.10 (VMWare Server 2.0.x)