I've attempted to use the tools from the player, use the open-vm-tools package. I even tried compiling open-vm-tools from source and I could fix some compilation errors but it got too complicated. After spending half a day on it, I gave up.
Running the vmware-config-tools.pl script gives errors.
Some of the output of running the script is below.
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]
Before you can compile modules, you need to have the following installed...
make
gcc
kernel headers of the running kernel
Searching for GCC...
Detected GCC binary at "/usr/bin/gcc".
The path "/usr/bin/gcc" appears to be a valid path to the gcc binary.
Would you like to change it? [no]
Searching for a valid kernel header path...
Detected the kernel headers at "/lib/modules/3.19.0-15-generic/build/include".
The path "/lib/modules/3.19.0-15-generic/build/include" appears to be a valid
path to the 3.19.0-15-generic kernel headers.
Would you like to change it? [no]
make: Entering directory '/tmp/modconfig-qFEK5D/vmhgfs-only'
Using 2.6.x kernel build system.
/usr/bin/make -C /lib/modules/3.19.0-15-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory '/usr/src/linux-headers-3.19.0-15-generic'
CC [M] /tmp/modconfig-qFEK5D/vmhgfs-only/dir.o
CC [M] /tmp/modconfig-qFEK5D/vmhgfs-only/rpcout.o
In file included from /tmp/modconfig-qFEK5D/vmhgfs-only/./shared/vmware.h:39:0,
from /tmp/modconfig-qFEK5D/vmhgfs-only/rpcout.c:43:
/tmp/modconfig-qFEK5D/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined
#define DEPRECATED(_fix) do {} while (0)
^
In file included from include/linux/kernel.h:13:0,
from /tmp/modconfig-qFEK5D/vmhgfs-only/./shared/kernelStubs.h:36,
from /tmp/modconfig-qFEK5D/vmhgfs-only/rpcout.c:33:
include/linux/printk.h:103:0: note: this is the location of the previous definition
#define DEPRECATED "[Deprecated]: "
^
CC [M] /tmp/modconfig-qFEK5D/vmhgfs-only/hgfsUtil.o
In file included from /tmp/modconfig-qFEK5D/vmhgfs-only/hgfs.h:40:0,
from /tmp/modconfig-qFEK5D/vmhgfs-only/hgfsUtil.h:55,
from /tmp/modconfig-qFEK5D/vmhgfs-only/hgfsUtil.c:33:
/tmp/modconfig-qFEK5D/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined
#define DEPRECATED(_fix) do {} while (0)
^
In file included from include/linux/kernel.h:13:0,
from include/linux/list.h:8,
from include/linux/preempt.h:10,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from /tmp/modconfig-qFEK5D/vmhgfs-only/hgfsUtil.h:32,
from /tmp/modconfig-qFEK5D/vmhgfs-only/hgfsUtil.c:33:
include/linux/printk.h:103:0: note: this is the location of the previous definition
#define DEPRECATED "[Deprecated]: "
^
In file included from /tmp/modconfig-qFEK5D/vmhgfs-only/hgfs.h:40:0,
from /tmp/modconfig-qFEK5D/vmhgfs-only/hgfsProto.h:37,
from /tmp/modconfig-qFEK5D/vmhgfs-only/dir.c:37:
/tmp/modconfig-qFEK5D/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined
#define DEPRECATED(_fix) do {} while (0)
^
In file included from include/linux/kernel.h:13:0,
from include/linux/list.h:8,
from include/linux/module.h:9,
from /tmp/modconfig-qFEK5D/vmhgfs-only/dir.c:29:
include/linux/printk.h:103:0: note: this is the location of the previous definition
#define DEPRECATED "[Deprecated]: "
^
CC [M] /tmp/modconfig-qFEK5D/vmhgfs-only/cpName.o
CC [M] /tmp/modconfig-qFEK5D/vmhgfs-only/message.o
/tmp/modconfig-qFEK5D/vmhgfs-only/dir.c: In function ‘HgfsPackDirOpenRequest’:
/tmp/modconfig-qFEK5D/vmhgfs-only/dir.c:417:26: error: ‘struct file’ has no member named ‘f_dentry’
file->f_dentry) < 0) {
^
/tmp/modconfig-qFEK5D/vmhgfs-only/dir.c: In function ‘HgfsDirLlseek’:
/tmp/modconfig-qFEK5D/vmhgfs-only/dir.c:707:32: error: ‘struct file’ has no member named ‘f_dentry’
struct dentry *dentry = file->f_dentry;
^
In file included from /tmp/modconfig-qFEK5D/vmhgfs-only/dir.c:39:0:
/tmp/modconfig-qFEK5D/vmhgfs-only/dir.c: In function ‘HgfsReaddirNextEntry’:
/tmp/modconfig-qFEK5D/vmhgfs-only/dir.c:993:31: error: ‘struct file’ has no member named ‘f_dentry’
si = HGFS_SB_TO_COMMON(file->f_dentry->d_inode->i_sb);
^
/tmp/modconfig-qFEK5D/vmhgfs-only/module.h:78:62: note: in definition of macro ‘HGFS_SB_TO_COMMON’
#define HGFS_SB_TO_COMMON(sb) ((HgfsSuperInfo *)(sb)->s_fs_info)
^
/tmp/modconfig-qFEK5D/vmhgfs-only/dir.c:1082:26: error: ‘struct file’ has no member named ‘f_dentry’
*entryIno = file->f_dentry->d_inode->i_ino;
^
In file included from /tmp/modconfig-qFEK5D/vmhgfs-only/dir.c:30:0:
/tmp/modconfig-qFEK5D/vmhgfs-only/dir.c:1088:44: error: ‘struct file’ has no member named ‘f_dentry’
*entryIno = compat_parent_ino(file->f_dentry);
^
/tmp/modconfig-qFEK5D/vmhgfs-only/./shared/compat_fs.h:120:46: note: in definition of macro ‘compat_parent_ino’
#define compat_parent_ino(dentry) parent_ino(dentry)
^
/tmp/modconfig-qFEK5D/vmhgfs-only/dir.c:1093:52: error: ‘struct file’ has no member named ‘f_dentry’
*entryIno = HgfsGetFileInode(&entryAttrs, file->f_dentry->d_inode->i_sb);
^
/tmp/modconfig-qFEK5D/vmhgfs-only/dir.c: In function ‘HgfsDoReaddir’:
/tmp/modconfig-qFEK5D/vmhgfs-only/dir.c:1172:13: error: ‘struct file’ has no member named ‘f_dentry’
!(file->f_dentry) ||
^
/tmp/modconfig-qFEK5D/vmhgfs-only/dir.c:1173:13: error: ‘struct file’ has no member named ‘f_dentry’
!(file->f_dentry->d_inode)) {
^
scripts/Makefile.build:257: recipe for target '/tmp/modconfig-qFEK5D/vmhgfs-only/dir.o' failed
make[2]: *** [/tmp/modconfig-qFEK5D/vmhgfs-only/dir.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /tmp/modconfig-qFEK5D/vmhgfs-only/backdoor.h:30:0,
from /tmp/modconfig-qFEK5D/vmhgfs-only/message.c:54:
/tmp/modconfig-qFEK5D/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined
#define DEPRECATED(_fix) do {} while (0)
^
In file included from include/linux/kernel.h:13:0,
from /tmp/modconfig-qFEK5D/vmhgfs-only/./shared/kernelStubs.h:36,
from /tmp/modconfig-qFEK5D/vmhgfs-only/message.c:45:
include/linux/printk.h:103:0: note: this is the location of the previous definition
#define DEPRECATED "[Deprecated]: "
^
Makefile:1394: recipe for target '_module_/tmp/modconfig-qFEK5D/vmhgfs-only' failed
make[1]: *** [_module_/tmp/modconfig-qFEK5D/vmhgfs-only] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.19.0-15-generic'
Makefile:130: recipe for target 'vmhgfs.ko' failed
make: *** [vmhgfs.ko] Error 2
make: Leaving directory '/tmp/modconfig-qFEK5D/vmhgfs-only'
The filesystem driver (vmhgfs module) is used only for the shared folder
feature. The rest of the software provided by VMware Tools is designed to work
independently of this feature.
If you wish to have the shared folders feature, you can install the driver by
running vmware-config-tools.pl again after making sure that gcc, binutils, make
and the kernel sources for your running kernel are installed on your machine.
These packages are available on your distribution's installation CD.
[ Press Enter key to continue ]
I have exactly the same error messages.
Repeatedly tried to execute vmware-config-tools.pl
I also have exactly the same issue here!
I also had it with Ubuntu 14.04.
Same issue. Apparently the VMWare Tools for Linux just haven't been updated for the newest versions of the Linux kernel.
Now that Ubuntu 15.04 has been officially released I'd guess a new version of VMWare Tools will be released shortly. I hope somebody from VMWare can give us a window of when we can expect this to happen.
I was expecting something like a bug on my VM since the problem lasts since Ubuntu 14.04. I am afraid they will not do anything for us...
I've been able to install VMWare Tools in a fresh image of Ubuntu 14.04 without any issues - I had to do it to a bunch of VMs for a programming lab a month or so ago, but I didn't update their kernels.
@ PositronicBrain: Which kernel did you used? Mine is 3.19.0-15-generic
3.13.0-40-generic
I have the same issue.
Workstation 11.1
Ubuntu 15.04
Kernel 3.19.0-15-generic
VMwareTools-9.9.2-2496486
I found this solution works! scroll down and follow the instruction of the last post.
It also works for VMware workstation 10
Re: Error VMware Tools Installation (Shared Folder) - Ubuntu 15.04
for more information about this issue, refer to
Resolving no shared folders with VMWare Player 7 and Ubuntu 15.04 guest | xpress-ubuntu
I did the same and it works, thank you!
This worked for me also. I'm wondering if the underlying issue is that I have a 2.6 host kernel OS (Centos 6) but the guest is a 3.10 kernel (Centos 7) with the vmware tools version is from the workstation player running on 2.6 kernel thus what's is bundled with it??? thus why it tries to compile for a 2.6 guest kernel instead of a 3.x kernel?