Steps to Install VMware and the Linux Kernel > 2.4.8

I encountered some problems installing VMware Express (v2.0.4 build 1133) on SuSE Linux 8.0 and RedHat Linux 7.1 & 7.2. Below are the steps I used to resolve the problem. This fix may work with later kernels (2.4.10, 2.4.11, 2.4.12,..), but I have not tested it.

I have received a report from Peter Schwekendiek that this works with VMware GSX-Server 1.0.3 with Kernel 2.4.16, but it does NOT work with 2.4.17.

Prerequisites You need to have VMware Express installed

Steps

  1. cd /usr/lib/vmware/modules/source

  2. tar xf vmmon.tar

  3. vi vmmon-only/linux/driver.c

  4. Insert #include “hostif.h” after the line #include “driver-config.h”

  5. Change #include <malloc.h> to #include <slab.h>

  6. Remove the line #include “hostif.h” located a few lines below the line inserted in step 5

  7. Replace the text current->dumpable with the text current->mm->dumpable

  8. Save the file & exit vi

  9. vi vmmon-only/linux/hostif.c

  10. Change #include <malloc.h> to #include <slab.h>

  11. rm vmmon.tar

  12. tar cf vmmon.tar vmmon-only

  13. rm -rf vmmon-only

  14. tar xf vmnet.tar

  15. cd vmnet-only

  16. grep “malloc.h” *

  17. For each file listed by the output of 16, edit the file, and perform step 10. upon it, and then save it

  18. cd ..

  19. rm vmnet.tar

  20. tar cf vmnet.tar vmnet-only

  21. rm -rf vmnet-only

You should now be able to run vmware-config.pl and the modules should compile without any problems.