VMware 6.5.4 and Ubuntu vmnet compile problems and cursor flaw fix
dennis posted this on May 5th 2010 under Linux, vmware
VMware seems to go the Microsoft way of doing things; They create a flawed installer and no KB to fix this.
Fortunately there are some smart dudes who know their stuff and place it on the www. I was lazy to find out this time myself so this is some sort of "placeholder" for the next time when I run into this, or when VMware has sorted their stuff out with a new version, or fix.
Thanks to digital-scurf blog author; Sorry to copy this but this really makes sense. Short and clear:
I recently updated vmware on my desktop to workstation 6.5.4 having previously upgraded the machine to Ubuntu 10.04. This resulted in interesting issues so I thought I’d collate them all here.
1. vmware’s installer remains flawed wrt. output generated during module compile—to fix this, create a gcc wrapper script which removes the -W flags, e.g.
#!/usr/bin/python import sys import copy import os argv = copy.copy(sys.argv) i = len(argv) for i in range(i-1, 0, -1): if len(argv[i]) > 4 and argv[i][:2] == "-W" and argv[i][3] != ",": del argv[i] argv[0] = "/usr/bin/gcc" os.execv(argv[0], argv)
2. Pop that somewhere like /tmp/gcc and chmod +x it.
3. Run sudo env PATH=/tmp:$PATH sh /wherver/VMware-Installer.bundle
4. When the installer finishes, cd into /etc/vmware and add export VMWARE_USE_SHIPPED_GTK="force" to the bootstrap file. (This fixes the mouse-broken in fullscreen mode, two pointers visible, vmware losing grab blahblahblah problem)
5. cd into /usr/lib/vmware/modules/source
6. untar the vmci and vmnet tarballs
7. in vmci-only/include/pgtbl.h add compat_sched.h to the includes
8. in vmnet-only/vnetUserListener.c add compat_sched.h to the includes
9. tar those up again
10. run sudo vmware-modconfig—console—install-all
11. Assuming all is well, vmware will now work properly.