Red Hat Bugzilla – Bug 988641
Cannot mount vmhgfs shares in virtual guest with open-vm-tools
Last modified: 2015-11-06 21:36:26 EST
Description of problem:
Installed Fedora 19 virtual machine (in VMWare Player on Windows 7 host). Open-vm-tools was automatically installed. Configured C:\Users as a share, but could not mount the share in the virtual machine.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install Fedora 19 in VMWare Player
2. Configure a shared file location
3. Create the mountpoint: # mkdir /mnt/hgfs
4. Try to mount the share: # mount -t vmhgfs .host:/Users /mnt/hgfs -or- # mount -t vmhgfs .host:/ /mnt/hgfs
Error emitted and /mnt/hgfs is clean (no entries):
Error: cannot mount filesystem: No such device
No error and shared folder mounted at /mnt/hgfs
What is the error? Look at dmesg and copy any errors there too.
Richard, if you remember we had this discussion in the original bug too. open-vm-tools package contains only user space components. Shared folder requires hgfs kernel driver to work. So, this is expected behavior.
Currently, one needs to get the hgfs driver either by building it from open-vm-tools source code or install new version of VMware Tools (yet to be released) that would let you install the missing drivers without having to uninstall open-vm-tools.
Long term plan is to get rid of the kernel driver piece.
I would like to close this bug because we are aware of this and working on it indirectly.
OK, this makes sense.
To the reporter: This cannot be fixed because Fedora
doesn't allow non-upstream kernel modules to be added.
Therefore you either have to build your own kernel (or module)
or wait for this to be fixed upstream (see previous comment).
Couple of questions:
1.) Do you have a quote that justifies the statement "Fedora
doesn't allow non-upstream kernel modules to be added"? It is, at best, non obvious. The kernels license certainly allows to ship additional modules, and the open-vm-tools are distributed under the terms of GPL, version 2, so they are quite compatible with the kernel license.
2.) If Fedora can't ship the module itself, it should at least be possible to ship it as part of RPMFusion, or something similar. Could you drop some words on what needs to be done technically to achieve that.
2) It would certainly be possible to ship it as an akmod in
RPMFusion. Apparently this is how to do that:
I'd actually much prefer that the module went upstream, but I've
no idea what's involved with that, or indeed why it's not upstream
now. Maybe there's a licensing issue? I guess VMware can provide
the answer to that.
A more important information: In general, the Kernel module isn't needed, because the open-vm-tools contain a program called vmhgfs-fuse, and I can mount a shared VMWare folder named "foo" like this:
# Show a list of all folders:
# Create a directory /home/user/windows, and mount the shared folder
vmhgfs .host:foo /home/user/windows
Note, in particular, that no root privileges in the Linux guest are required.
(In reply to Richard W.M. Jones from comment #5)
> I'd actually much prefer that the module went upstream, but I've
> no idea what's involved with that, or indeed why it's not upstream
> now. Maybe there's a licensing issue? I guess VMware can provide
> the answer to that.
Thanks Richard. There is no licensing issue. It is just that the kernel driver is not ready for upstream and it will require lot of convincing Linux kernel community to accept yet another filesystem driver in presence of NFS and SMB alternatives already being there.
(In reply to Jochen Wiedmann from comment #6)
> A more important information: In general, the Kernel module isn't needed,
> because the open-vm-tools contain a program called vmhgfs-fuse, and I can
> mount a shared VMWare folder named "foo" like this:
> # Show a list of all folders:
> $ vmware-hgfsclient
> # Create a directory /home/user/windows, and mount the shared folder
> mkdir /home/user/windows
> vmhgfs .host:foo /home/user/windows
> Note, in particular, that no root privileges in the Linux guest are required.
Yes, that's right. open-vm-tools v10.0.0 ships Fuse based solution now. We no longer require vmhgfs kernel driver for Shared Folders. So, let's not worry about the driver, just use open-vm-tools v10.0.0 or later :)