Archive
Posts Tagged ‘vmware’
Fixing vmware-tools vmhgfs on newer Linux kernels (probably anything >= 2.6.36)
February 9, 2011
15 comments
If you’re trying to install vmware-tools inside a linux guest and get the dreaded
super.c:73: error: unknown field ‘clear_inode’ specified in initializer
error while compiling vmhgfs for shared folder support (which I use a lot), this will help (thanks to Anjo from German VMWare Forums):
- unpack
/usr/lib/vmware-tools/modules/source/vmhgfs.tarto somewhere - open
vmhgfs-only/super.cin your favorite text editor - edit from
#ifndef VMW_USE_IGET_LOCKED .read_inode = HgfsReadInode, #endif .clear_inode = HgfsClearInode, .put_super = HgfsPutSuper, .statfs = HgfsStatfs, };
to (note .clear_inode -> .evict_inode)
#ifndef VMW_USE_IGET_LOCKED .read_inode = HgfsReadInode, #endif .evict_inode = HgfsClearInode, .put_super = HgfsPutSuper, .statfs = HgfsStatfs, };
- repack
vmhgfs.tarincluding editedsuper.c - execute
vmware-config-tools.pl - profit