Google

VMware-server-1.0.4 with kernel 2.6.24 recompiling cleanly using vmware-config.pl

vmware-config.pl doesn’t compile cleanly after a kernel upgrade, here’s how you can make it recompile cleanly for you. Find the vmmon.tar and vmnet.tar files on your system.
[root@burnaby ~]# rpm -ql VMware-server |grep tar$
/usr/lib/vmware/modules/source/vmmon.tar
/usr/lib/vmware/modules/source/vmnet.tar
/usr/lib/vmware/modules/source/vmppuser.tar
/usr/lib/vmware/perl/control.tar
[root@burnaby ~]#
Now, unpack these, then move them aside, vmware-config will use these tar files, so we’ll replace them with patched ones.
[root@burnaby ~]# cd /usr/lib/vmware/modules/source
[root@burnaby source]# tar xf vmmon.tar
[root@burnaby source]# tar xf vmnet.tar
[root@burnaby source]# cp vmmon.tar vmmon.tar.orig
[root@burnaby source]# cp vmnet.tar vmnet.tar.orig
Now patch them with the patches I found here: plus one more patch for good measure from me (a one liner).

vmmon-2.6.24.patch vmnet-2.6.24.patch vmmon-asm.patch


[root@burnaby source]# patch -p0 <vmmon-2.6.24.patch
patching file vmmon-only/Makefile.kernel
patching file vmmon-only/include/vm_basic_types.h
patching file vmmon-only/linux/driver.c
[root@burnaby source]# patch -p0 <vmmon-asm.patch
patching file vmmon-only/include/vcpuset.h  
[root@burnaby source]# patch -p0 <vmnet-2.6.24.patch
patching file vmnet-only/Makefile.kernel
patching file vmnet-only/compat_wait.h
patching file vmnet-only/driver.c
patching file vmnet-only/netif.c
patching file vmnet-only/sk_alloc.c
patching file vmnet-only/vm_basic_types.h
patching file vmnet-only/vmnetInt.h
patching file vmnet-only/vnetInt.h
[root@burnaby source]#
Now, make new tar files for the vmware-config script to pick up.
[root@burnaby source]# tar cf vmmon.tar vmmon-only
[root@burnaby source]# tar cf vmnet.tar vmnet-only
[root@burnaby source]#
And you are done, now when you run vmware-config.pl, it will pickup the new tar files and compile cleanly.

Leave a Reply