by Nino
9. November 2008 04:43
I was preparing a new virtual machine this weekend and ran into some troubles getting VMWare Tools installed (I repeatedly received errors about the vmhgfs module). I am using VMWare Workstation 6.0.2, and the guest OS was Ubuntu Linux 7.10. After quite a bit of futzing about, I turned to the Ubuntu Forums, where I found this gem of a thread. A bit frustrating that the whole thing was caused by having "<" instead of "<=". Thanks to Ubuntu Forums poster aNyBosZ.
Post #2 by aNyBosZ gives the fix:
Software necesario
- sudo aptitude install build-essential linux-headers-$(uname -r)
vmwaretools
- cd /tmp
- tar -xzvf VMwareTools-6.0.2-59824.tar.gz
- cd vmware-tools-distrib/lib/modules/source
- cp vmhgfs.tar vmhgfs.tar.old
- tar xvf vmhgfs.tar
- cd vmhgfs-only
- chmod 644 compat_slab.h
- vi compat_slab.h
Search-> #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR)
Fix-> #if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 22) || defined(VMW_KMEMCR_HAS_DTOR)
Save Chages
- chmod 444 compat_slab.h
- cd ..
- rm vmhgfs.tar
- tar cvf vmhgfs.tar vmhgfs-only
- cd /tmp/vmware-tools-distrib
- sudo ./vmware-install.pl
Feel free to sub in your favorite text editor for vi on the line "vi compat_slab.h". I used gedit. (yesh, I'm a vi hater).