VMware player problem with compiling modules (ubuntu host)?

  1. git clone https://github.com/mkubecek/vmware-host-modules
  2. git checkout workstation-<vmware_version>
  3. tar -cf vmmon.tar vmmon-only
  4. tar -cf vmnet.tar vmnet-only
  5. sudo cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/
  6. sudo vmware-modconfig –console –install-all

source