Bugzilla – Bug 904373
Folder sharing when running 13.2 in VMware Workstation
Last modified: 2016-11-17 14:37:24 UTC
Hi, how does folder sharing work when running 13.2 in vmware workstation? On 13.1, the VMware provided tools mount the shared foulders from the host on /mnt/hgfs. Should it work the same with the open-vm-tools RPM on 13.2? Or is there a different mechanism to get the shared folder in the 13.2 guest? I also tried to install the vmware provided tools but got below error when compiling the vmhgfs kernel module. Googling it brought this patch for open-vm-tools https://github.com/skroll/open-vm-tools-dkms/blob/master/0007-Fix-vmhgfs-module-on-kernels-3.16.patch Could that get needed for open-vm-tools to get a kernel module that allows the folder sharing in 13.2? Error message when compiling the vmware provided tools: ake: Entering directory '/tmp/modconfig-p5CyLy/vmhgfs-only' Using 2.6.x kernel build system. /usr/bin/make -C /lib/modules/3.16.6-2-desktop/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. \ MODULEBUILDDIR= modules make[1]: Entering directory '/usr/src/linux-3.16.6-2-obj/x86_64/desktop' make[1]: Entering directory `/usr/src/linux-3.16.6-2-obj/x86_64/desktop' CC [M] /tmp/modconfig-p5CyLy/vmhgfs-only/backdoorGcc64.o CC [M] /tmp/modconfig-p5CyLy/vmhgfs-only/message.o In file included from /tmp/modconfig-p5CyLy/vmhgfs-only/backdoor.h:30:0, from /tmp/modconfig-p5CyLy/vmhgfs-only/message.c:54: /tmp/modconfig-p5CyLy/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined [enabled by default] #define DEPRECATED(_fix) do {} while (0) ^ In file included from /usr/src/linux-3.16.6-2/include/linux/kernel.h:13:0, from /tmp/modconfig-p5CyLy/vmhgfs-only/./shared/kernelStubs.h:36, from /tmp/modconfig-p5CyLy/vmhgfs-only/message.c:45: /usr/src/linux-3.16.6-2/include/linux/printk.h:103:0: note: this is the location of the previous definition #define DEPRECATED "[Deprecated]: " ^ CC [M] /tmp/modconfig-p5CyLy/vmhgfs-only/dir.o CC [M] /tmp/modconfig-p5CyLy/vmhgfs-only/request.o In file included from /tmp/modconfig-p5CyLy/vmhgfs-only/hgfs.h:40:0, from /tmp/modconfig-p5CyLy/vmhgfs-only/hgfsProto.h:37, from /tmp/modconfig-p5CyLy/vmhgfs-only/dir.c:37: /tmp/modconfig-p5CyLy/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined [enabled by default] #define DEPRECATED(_fix) do {} while (0) ^ In file included from /usr/src/linux-3.16.6-2/include/linux/kernel.h:13:0, from /usr/src/linux-3.16.6-2/arch/x86/include/asm/percpu.h:44, from /usr/src/linux-3.16.6-2/arch/x86/include/asm/preempt.h:5, from /usr/src/linux-3.16.6-2/include/linux/preempt.h:18, from /usr/src/linux-3.16.6-2/include/linux/spinlock.h:50, from /usr/src/linux-3.16.6-2/include/linux/seqlock.h:35, from /usr/src/linux-3.16.6-2/include/linux/time.h:5, from /usr/src/linux-3.16.6-2/include/linux/stat.h:18, from /usr/src/linux-3.16.6-2/include/linux/module.h:10, from /tmp/modconfig-p5CyLy/vmhgfs-only/dir.c:29: /usr/src/linux-3.16.6-2/include/linux/printk.h:103:0: note: this is the location of the previous definition #define DEPRECATED "[Deprecated]: " ^ In file included from /tmp/modconfig-p5CyLy/vmhgfs-only/hgfs.h:40:0, from /tmp/modconfig-p5CyLy/vmhgfs-only/hgfsProto.h:37, from /tmp/modconfig-p5CyLy/vmhgfs-only/module.h:39, from /tmp/modconfig-p5CyLy/vmhgfs-only/request.c:38: /tmp/modconfig-p5CyLy/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined [enabled by default] #define DEPRECATED(_fix) do {} while (0) ^ In file included from /usr/src/linux-3.16.6-2/include/linux/kernel.h:13:0, from /usr/src/linux-3.16.6-2/arch/x86/include/asm/percpu.h:44, from /usr/src/linux-3.16.6-2/arch/x86/include/asm/current.h:5, from /usr/src/linux-3.16.6-2/arch/x86/include/asm/processor.h:15, from /usr/src/linux-3.16.6-2/arch/x86/include/asm/atomic.h:6, from /tmp/modconfig-p5CyLy/vmhgfs-only/request.c:29: /usr/src/linux-3.16.6-2/include/linux/printk.h:103:0: note: this is the location of the previous definition #define DEPRECATED "[Deprecated]: " ^ CC [M] /tmp/modconfig-p5CyLy/vmhgfs-only/hgfsUtil.o CC [M] /tmp/modconfig-p5CyLy/vmhgfs-only/cpName.o CC [M] /tmp/modconfig-p5CyLy/vmhgfs-only/rpcout.o In file included from /tmp/modconfig-p5CyLy/vmhgfs-only/hgfs.h:40:0, from /tmp/modconfig-p5CyLy/vmhgfs-only/hgfsUtil.h:55, from /tmp/modconfig-p5CyLy/vmhgfs-only/hgfsUtil.c:33: /tmp/modconfig-p5CyLy/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined [enabled by default] #define DEPRECATED(_fix) do {} while (0) ^ In file included from /usr/src/linux-3.16.6-2/include/linux/kernel.h:13:0, from /usr/src/linux-3.16.6-2/arch/x86/include/asm/percpu.h:44, from /usr/src/linux-3.16.6-2/arch/x86/include/asm/preempt.h:5, from /usr/src/linux-3.16.6-2/include/linux/preempt.h:18, from /usr/src/linux-3.16.6-2/include/linux/spinlock.h:50, from /usr/src/linux-3.16.6-2/include/linux/seqlock.h:35, from /usr/src/linux-3.16.6-2/include/linux/time.h:5, from /tmp/modconfig-p5CyLy/vmhgfs-only/hgfsUtil.h:32, from /tmp/modconfig-p5CyLy/vmhgfs-only/hgfsUtil.c:33: /usr/src/linux-3.16.6-2/include/linux/printk.h:103:0: note: this is the location of the previous definition #define DEPRECATED "[Deprecated]: " ^ In file included from /tmp/modconfig-p5CyLy/vmhgfs-only/./shared/vmware.h:39:0, from /tmp/modconfig-p5CyLy/vmhgfs-only/rpcout.c:43: /tmp/modconfig-p5CyLy/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined [enabled by default] #define DEPRECATED(_fix) do {} while (0) ^ In file included from /usr/src/linux-3.16.6-2/include/linux/kernel.h:13:0, from /tmp/modconfig-p5CyLy/vmhgfs-only/./shared/kernelStubs.h:36, from /tmp/modconfig-p5CyLy/vmhgfs-only/rpcout.c:33: /usr/src/linux-3.16.6-2/include/linux/printk.h:103:0: note: this is the location of the previous definition #define DEPRECATED "[Deprecated]: " ^ CC [M] /tmp/modconfig-p5CyLy/vmhgfs-only/file.o CC [M] /tmp/modconfig-p5CyLy/vmhgfs-only/dentry.o In file included from /tmp/modconfig-p5CyLy/vmhgfs-only/hgfs.h:40:0, from /tmp/modconfig-p5CyLy/vmhgfs-only/hgfsProto.h:37, from /tmp/modconfig-p5CyLy/vmhgfs-only/module.h:39, from /tmp/modconfig-p5CyLy/vmhgfs-only/dentry.c:34: /tmp/modconfig-p5CyLy/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined [enabled by default] #define DEPRECATED(_fix) do {} while (0) ^ In file included from /usr/src/linux-3.16.6-2/include/linux/kernel.h:13:0, from /usr/src/linux-3.16.6-2/arch/x86/include/asm/percpu.h:44, from /usr/src/linux-3.16.6-2/arch/x86/include/asm/preempt.h:5, from /usr/src/linux-3.16.6-2/include/linux/preempt.h:18, from /usr/src/linux-3.16.6-2/include/linux/spinlock.h:50, from /usr/src/linux-3.16.6-2/include/linux/wait.h:8, from /usr/src/linux-3.16.6-2/include/linux/fs.h:6, from /tmp/modconfig-p5CyLy/vmhgfs-only/./shared/compat_fs.h:22, from /tmp/modconfig-p5CyLy/vmhgfs-only/dentry.c:28: /usr/src/linux-3.16.6-2/include/linux/printk.h:103:0: note: this is the location of the previous definition #define DEPRECATED "[Deprecated]: " ^ In file included from /tmp/modconfig-p5CyLy/vmhgfs-only/hgfs.h:40:0, from /tmp/modconfig-p5CyLy/vmhgfs-only/hgfsProto.h:37, from /tmp/modconfig-p5CyLy/vmhgfs-only/file.c:42: /tmp/modconfig-p5CyLy/vmhgfs-only/./shared/vm_assert.h:259:0: warning: "DEPRECATED" redefined [enabled by default] #define DEPRECATED(_fix) do {} while (0) ^ In file included from /usr/src/linux-3.16.6-2/include/linux/kernel.h:13:0, from /usr/src/linux-3.16.6-2/arch/x86/include/asm/percpu.h:44, from /usr/src/linux-3.16.6-2/arch/x86/include/asm/preempt.h:5, from /usr/src/linux-3.16.6-2/include/linux/preempt.h:18, from /usr/src/linux-3.16.6-2/include/linux/spinlock.h:50, from /usr/src/linux-3.16.6-2/include/linux/seqlock.h:35, from /usr/src/linux-3.16.6-2/include/linux/time.h:5, from /usr/src/linux-3.16.6-2/include/linux/stat.h:18, from /usr/src/linux-3.16.6-2/include/linux/module.h:10, from /tmp/modconfig-p5CyLy/vmhgfs-only/file.c:29: /usr/src/linux-3.16.6-2/include/linux/printk.h:103:0: note: this is the location of the previous definition #define DEPRECATED "[Deprecated]: " ^ /tmp/modconfig-p5CyLy/vmhgfs-only/file.c: In function ‘HgfsAioRead’: /tmp/modconfig-p5CyLy/vmhgfs-only/file.c:791:4: error: implicit declaration of function ‘generic_file_aio_read’ [-Werror=implicit-function-declaration] result = generic_file_aio_read(iocb, iov, numSegs, offset); ^ /tmp/modconfig-p5CyLy/vmhgfs-only/file.c: In function ‘HgfsAioWrite’: /tmp/modconfig-p5CyLy/vmhgfs-only/file.c:863:4: error: implicit declaration of function ‘generic_file_aio_write’ [-Werror=implicit-function-declaration] result = generic_file_aio_write(iocb, iov, numSegs, offset); ^ cc1: some warnings being treated as errors /usr/src/linux-3.16.6-2/scripts/Makefile.build:273: recipe for target '/tmp/modconfig-p5CyLy/vmhgfs-only/file.o' failed make[4]: *** [/tmp/modconfig-p5CyLy/vmhgfs-only/file.o] Error 1 make[4]: *** Waiting for unfinished jobs.... /usr/src/linux-3.16.6-2/Makefile:1359: recipe for target '_module_/tmp/modconfig-p5CyLy/vmhgfs-only' failed make[3]: *** [_module_/tmp/modconfig-p5CyLy/vmhgfs-only] Error 2 Makefile:195: recipe for target 'sub-make' failed make[2]: *** [sub-make] Error 2 Makefile:24: recipe for target '__sub-make' failed make[1]: *** [__sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-3.16.6-2-obj/x86_64/desktop' Makefile:130: recipe for target 'vmhgfs.ko' failed make: *** [vmhgfs.ko] Error 2 make: Leaving directory '/tmp/modconfig-p5CyLy/vmhgfs-only'
Dominique, could you take care of this?
Seems we lost the vmhgfs module in open-vm-tools; and actually not only recently... Fixing...
Is fixing somewhere near success ?
Any updates, this is an annoyance.
Apologies for the delay I rewrote the logic in the .spec file to workaround the issue of pesign and the resulting RPMs have been published in the repository at http://download.opensuse.org/repositories/Virtualization:/VMware/openSUSE_13.2/ I would appreciate if you could verify if this works as expected now for you - if it does, I can submit the packages as updates into the :13.2:Update channel.
Those RPMs don´t work for me with VMware Workstation 11. When I opened the bug I used Workstation 10. I build the RPMs locally (from the OBS) and fetched them before the build failed. The RPMs worked with Workstation 10. With Workstation 11, the RPMs don´t work anymore. I had to manually build the tools delivered with Workstaton 11. What info shall I provide when using Workstation 11?
This works for me with VMware Fusion 7.1.0
(In reply to Christian Deckelmann from comment #6) > Those RPMs don´t work for me with VMware Workstation 11. > > When I opened the bug I used Workstation 10. > I build the RPMs locally (from the OBS) and fetched them before the build > failed. > The RPMs worked with Workstation 10. > > With Workstation 11, the RPMs don´t work anymore. I had to manually build > the tools delivered with Workstaton 11. > > What info shall I provide when using Workstation 11? After some more work I can acknowledge that the RPMs are working. It just doesn´t work automatically for me. I had to enable service vmtoolsd and have to load vmhgfs module manually each time. If loaded, I can disable and enable the folder sharing in Workstation 11 and get the folders mounted in the VM.
I am using VMware Player 6.0.4 build-2249910 on Windows 7 as Host and openSuSE 13.2 (Linux version 3.16.7-7-desktop) as Guest. Installing the VMware-tools still fails with the initally reported error. ( Christian Deckelmann 2014-11-07 11:02:51 UTC ) Installing the RPMs from http://download.opensuse.org/repositories/Virtualization:/VMware/openSUSE_13.2/ makes shared folders configurable in the player manage menu after service vmtoolsd is started manually, yet no folder gets mounted. Also I would like to stick with installing the tools from VMware manually, as updates of the RPMs on Kernel updates are usually delayed unpredictably. So the issue to solve is, what needs to be fixed to get the VMware tools compiling properly ?
This doesn't seem to be an openSuSE bug, but rather VMware tools being incompatible with 3.16.x Linux Kernels. A solution is given at https://github.com/rasa/vmware-tools-patches, following the advice at the bottom of the page solves the issue.
(In reply to Casper Pedersen from comment #7) > This works for me with VMware Fusion 7.1.0 With all the info provided here, I consider this solved - there are likely newer products with newer issues popping up anyway