VMware Workstation 12 won't launch under Ubuntu

From Daco.tech Technical Documentation

If you experience the following bug: VMware Workstation refuses to launch under Ubuntu

First of all, there's a Reddit thread talking about that issue here

How to fix it:

Copy/pasted from the above link:

I figured it out. I'll try to be detailed with exactly what I did. Things might be a bit different since I have VMWare Player, but they shouldn't be. Go to the folder cd /usr/lib/vmware/modules/source

Untar the file vmmon.tar using (you might need su/sudo to do these) tar xf vmmon.tar

Edit the file ./vmmon-only/linux/driver.c nano ./vmmon-only/linux/driver.c

Apply these changes, courtesy of https://forums.gentoo.org/viewtopic-p-7841306.html#7841306

  1. ifdef VMX86_DEVEL
   unregister_chrdev(linuxState.major, linuxState.deviceName); 

- if (misc_deregister(&linuxState.misc)) { - Warning("Module %s: error unregistering\n", linuxState.deviceName); - } + misc_deregister(&linuxState.misc);

Backup the original mv vmmon.tar vmmon.tarbackup

Retar the files tar cf vmmon.tar ./vmmon-only

I'm a little iffy from this point on, since I did a few things and didn't test after each step. So both of these might not be strictly necessary. Recompile libs using the driver.c you just edited sudo vmware-modconfig --console --install-all

Run VMWare, telling it to use the libs you just compiled sudo VMWARE_USE_SHIPPED_LIBS=yes vmware