Closed qgrosperrin closed 9 years ago
Not every patch will apply cleanly. In fact, most won't apply cleanly, as they are all to be applied to a specific version of VMware Tools. I'll update the README to make that clear.
The important thing is did VMware Tools compile cleanly.
The important thing is did VMware Tools compile cleanly.
It doesn't compile properly.. that was the point I was making, sorry this wasn't clear enough. Here is the compiling error I get:
The VMware Host-Guest Filesystem allows for shared folders between the host OS
and the guest OS in a Fusion or Workstation virtual environment. Do you wish
to enable this feature? [yes]
Using 2.6.x kernel build system.
make: Entering directory `/tmp/modconfig-cirPN6/vmhgfs-only'
/usr/bin/make -C /lib/modules/3.18.0-kali1-amd64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-3.18.0-kali1-amd64'
CC [M] /tmp/modconfig-cirPN6/vmhgfs-only/backdoorGcc64.o
CC [M] /tmp/modconfig-cirPN6/vmhgfs-only/backdoor.o
CC [M] /tmp/modconfig-cirPN6/vmhgfs-only/bdhandler.o
CC [M] /tmp/modconfig-cirPN6/vmhgfs-only/cpName.o
CC [M] /tmp/modconfig-cirPN6/vmhgfs-only/cpNameLinux.o
CC [M] /tmp/modconfig-cirPN6/vmhgfs-only/cpNameLite.o
CC [M] /tmp/modconfig-cirPN6/vmhgfs-only/dentry.o
CC [M] /tmp/modconfig-cirPN6/vmhgfs-only/dir.o
CC [M] /tmp/modconfig-cirPN6/vmhgfs-only/file.o
CC [M] /tmp/modconfig-cirPN6/vmhgfs-only/filesystem.o
CC [M] /tmp/modconfig-cirPN6/vmhgfs-only/fsutil.o
CC [M] /tmp/modconfig-cirPN6/vmhgfs-only/hgfsBd.o
CC [M] /tmp/modconfig-cirPN6/vmhgfs-only/hgfsEscape.o
CC [M] /tmp/modconfig-cirPN6/vmhgfs-only/hgfsUtil.o
CC [M] /tmp/modconfig-cirPN6/vmhgfs-only/inode.o
CC [M] /tmp/modconfig-cirPN6/vmhgfs-only/link.o
/tmp/modconfig-cirPN6/vmhgfs-only/inode.c: In function ‘HgfsPermission’:
/tmp/modconfig-cirPN6/vmhgfs-only/inode.c:1898:7: error: ‘struct dentry’ has no member named ‘d_alias’
/tmp/modconfig-cirPN6/vmhgfs-only/inode.c:1898:7: warning: initialization from incompatible pointer type [enabled by default]
/tmp/modconfig-cirPN6/vmhgfs-only/inode.c:1898:7: error: ‘struct dentry’ has no member named ‘d_alias’
/tmp/modconfig-cirPN6/vmhgfs-only/inode.c:1898:7: error: ‘struct dentry’ has no member named ‘d_alias’
/tmp/modconfig-cirPN6/vmhgfs-only/inode.c:1898:7: error: ‘struct dentry’ has no member named ‘d_alias’
/tmp/modconfig-cirPN6/vmhgfs-only/inode.c:1898:7: error: ‘struct dentry’ has no member named ‘d_alias’
/tmp/modconfig-cirPN6/vmhgfs-only/inode.c:1898:7: warning: initialization makes pointer from integer without a cast [enabled by default]
/tmp/modconfig-cirPN6/vmhgfs-only/inode.c:1898:7: error: ‘struct dentry’ has no member named ‘d_alias’
make[4]: *** [/tmp/modconfig-cirPN6/vmhgfs-only/inode.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [_module_/tmp/modconfig-cirPN6/vmhgfs-only] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.18.0-kali1-amd64'
make: *** [vmhgfs.ko] Error 2
make: Leaving directory `/tmp/modconfig-cirPN6/vmhgfs-only'
As you can see because the error is related to vmhgfs-only
, I just assumed this was caused by the patch not being applied cleanly (which I noticed when troubleshooting).
Could you then give me some directions as to what is needed here for the tools to compile properly ?
You're using VMware Tools 9.6.2 which is 5 versions old. The current version is VMwareTools-9.9.2-2496486.tar.gz (VMware Fusion 7.1.1 & Workstation 11.1.0).
Can you retry using that version, or is there a technical reason why you need to use 9.6.2?
If so, we will accept all patches if you can get it to work. I would start with vmhgfs/04-vmhgfs-d_alias-kernel-3.18.1-tools-9.9.0.patch and fix it to work with 9.6.2.
Yes, the reason I am still using VMware fusion 6.0.5 on OS X is because I couldn't find a legitimate reason to pay the fee for the 7.x.x upgrade. So VMwareTools-9.6.2-1688356.tar.gz is the correct version for the VMware version I have now.
I'm afraid I don't have the required knowledge to help create a patch for this kind of things, so this is why I came here hoping for assistance.
@qgrosperrin: ok, I've committed a patch that should work for you with 9.6.2, but I'm testing on kernel 3.13 and not the 3.18 that you have, so I'm not sure, but give it a shot and let us know.
Worked like a charm ! Many thanks
Glad it worked for you.
I am getting errors while trying to patch and compile VMware tools for my kernel (the shared folders feature specifically). The patches are not applying correctly so obviously it ends up not compiling properly..
Any help appreciated ! Thanks.
Sample error logs stored in vmware-tools-distrib/lib/modules/source/vmhgfs-only