You can also edit the files directly to fix this issue. This is a bit of a pain, but the commands follow.
vmhgfs
cd /vmware-tools-distrib/lib/modules/source
tar xf vmhgfs.tar
cd vmhgfs-only/
Open and edit inode.c
. Edit line 888, change
result = compat_vmtruncate(inode, newSize);
to
result = 0;
Then save the file and exit the editor. Finally, tar it back up:
cd ..
rm -rf vmhgfs.tar
tar cf vmhgfs.tar vmhgfs-only/
rm -rf vmhgfs-only/
vmci
cd ./lib/modules/source
tar -xvf vmci.tar.
Open and edit ./vmci-only/linux/driver.c
.
Edit line 127, change
.remove = __devexit_p(vmci_remove_device),
to
.remove = vmci_remove_device,
Edit line 1753, change
static init __devinit vmci_probe_device(struct pci_dev *pdev, const struct pci_device_id *id)
to
static int vmci_probe_device(struct pci_dev *pdev, const struct pci_device_id *id)
Edit line 1981, change
static void __devexit vmci_remove_device(struct pci_dev* pdev)
to
static void vmci_remove_device(struct pci_dev* pdev)
Close and save ./vmci-only/linux/driver.c. Then tar the files back up.
tar -cf vmci.tar vmci-only
Now you can run ./vmware-install.pl
and it should successfully install HGFS.
I needed to fix both of these broken modules to get HGFS working. Other sites report just needing to fix the vmhgfs module.
Sources:
HGFS: https://answers.launchpad.net/ubuntu/+question/227866
VMCI: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2050666
sudo vmware-config-tools
? Have you tried to reinstall the guest additions?