19

Sharing files between my Guest Kubuntu OS and Host Windows has become a real headache.

So, far I have done the steps below:

GUEST LINUX OS

  • VM -> Settings -> Options -> Shared Folders. And added my folder.
  • Installed properly my VMware tools (I can drag and drop files so I am confident that it is installed)

HOST WINDOWS OS

  • Shared the folder with everyone (to assure that there is no permit limitations with my files)

If I type vmware-hgfsclient in my guest OS, the folder I am sharing does appear. But when I check the /mnt/hgfs folder, it is empty.

I have gone through the VMware manual, and I am sure that I have followed their requirements.

I am really out of ideas. Does any one have a suggestion?

31

I had this exact problem. It turned out IT had installed some old version of VMWare tools with non-functioning vmhgfs kernel module.

My solution was to run the configuration with the clobber-kernel-modules setting to overwrite the existing vmhgfs module.

 sudo vmware-config-tools.pl -d --clobber-kernel-modules=vmhgfs

The -d selects all the defaults for you (remove it if you don't want the defaults).

  • 2
    bingo, I had the same issue, and running the command above solved it. Thanks a bunch. – Waqas Sep 20 '13 at 16:14
  • 1
    Just want to mention that this worked for me with OSX as host, vmware Fusion running CentOS 6.4 – Kev Nov 29 '13 at 11:58
  • 2
    Perfect! Worked for me with OSX as host and VM runnig Ubuntu 14.04 – pjvds May 2 '14 at 12:18
  • 3
    command not found error, i am using vmware workstation 12 an ubuntu 15.04 – 151291 Feb 25 '16 at 10:00
  • The -d alone was worth the vote. Didn't know about that. – T.Rob Oct 18 '16 at 15:58
8

Run this command:

sudo vmhgfs-fuse .host:/ /mnt/hgfs/ -o allow_other -o uid=1000

It will magically show all shared folders in /mnt/hgfs.
(I had Ubuntu 16 VMWare running on a Windows 10 host)

VMware documentation here

  • I noticed sometimes there is a delay (using VMware workstation 14). And sometimes /mnt/hgfs is in use. I created a new folder /mnt/shares1 and got instant success. – steampowered Aug 16 at 22:28
3

mount -t vmhgfs .host:/share /mnt/hgfs/ where host is the host you are connecting to share is the share name and /mnt/hgfs is the mount point for the share in your system.

vmware-hgsclient will show you the available mounts, you still need to mount them with vmware-hgfsmounter or using the mount command above described.

If that does not work check if the module vmhgfs is loaded lsmod | grep "vm."

  • 1
    It gave me this answer. Host in share name must be ".host". Error: share name is invalid, aborting mount. vmhgfs is not loaded, how can I load it? Thanks. – Peretz Nov 2 '11 at 16:53
  • mkdir /mnt/hgfs/ – Martin Zeitler Feb 27 '13 at 5:21
2

For me, it turned out that vmware-hgfsmounter was not installed (ubuntu 12.10). After installing that module, I was able to mount my share as descibed above

  • I have it installed in /usr/lib/vmware-tools/sbin64, but it still doesn't work for me. – IgorGanapolsky Oct 31 '14 at 14:18
1

This was working for me on Ubuntu 18.04, but suddenly stopped working sometime in February/March 2019. What was needed to be done, was sudo mkdir /mnt/hgfs, as that directory is being used by the vmware init script.

0

For me, I installed "Development Tools" and reinstalled VMware Tool. Then I see the shared folder.

Host: Windows 7 Guest OS: CentOS 7

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.