Experts. I've successfully installed VMware tools for Ubuntu. Everything seems to work fine, but shared folders were not mounted automatically.
How do I get them to work?
If I run vmware-hgfsclient
in terminal, I get the list of shared folders, but ls -l /mnt/hgfs
is empty. Actually there's no hgfs
dir in /mnt
. I know I should probably use the vmware-hgfsclient
tool, but I realy don't know how.
P.S. I wouldn't ask if I could understand the vmware-hgfsclient
help I've read.
Any suggestions?
Most other answers are outdated. For Ubuntu 18.04 (or recent Debian distros), try:
If the
hgfs
directory doesn't exist, try:You may have use a specific folder instead of
.host:/
. In that case you can find out the share's name withvmware-hgfsclient
. For example:If you want them mounted on startup, update
/etc/fstab
with the following:I choose to mount them on demand and have them ignored by
sudo mount -a
and the such with thenoauto
option, because I noticed the shares have an impact on VM performance.Requirements
Software requirements may require installing the following tools beforehand:
Others have claimed the following are required:
Official Article
How to configure VMware Tools Shared Folders Linux mounts (60262)
I have set up on Windows 7 host with Ubuntu 11.04 Desktop with VMware Tools installed on.
Virtual Machine settings
On the Ubuntu Guest
check /mnt/hgfs that you can access your shared folder.
If you don't see your shared folders (automounted) inside
/mnt/hgfs
, run VMware configuration tools:sudo vmware-config-tools.pl
update your fstab using the details below:
gksu gedit /etc/fstab
(I am using ubuntu desktop so use other text editor to enter the next line at the end of the file)
.host:/{shared-folder} /{path-to-mount-on} vmhgfs defaults,ttl=5,uid=1000,gid=1000 0 0
Restart your vm (You may need to restart few times or get error message saying unable to mount just skip the error and restart)
run vmware-config-tools.pl, AGAIN!
Refer: http://www.laotudou.com/vmware-player-share-folder.html
[UPDATE 2017-05-18] This answer is outdated for Ubuntu newer than 15.10 (Wiley). The executable
vmware-hgfsmounter
has not been available in Ubuntu since 16.04LTS (xenial). Although,hgfsmounter
may still be available on other Linux distributions, since thehgfsmounter
function is still currently available in the upstream source code on GitHub. If anyone has updated information, please comment or edit this answer, instead of down-voting, as I believe this answer may still be valid for older Ubuntu releases.This answer also assumes that you are not using VMWare Tools from VMWare but instead using
open-vm-tools
from your Linux distribution. VMWare decided to support this switch in 2015. See KB2073803. Therefore this answer also assumes that your version of Ubuntu can install the open-vm-tools from it's software repository.OUTDATED FOR UBUNTU > 15.10 (Wiley)
This worked for me using open-vm-tools from Ubuntu Software Center (trusty-14.04LTS shown - please see update above):
assuming of course that I had already enabled a shared folder from the host machine in VMware Player settings.
Note that
vmware-hgfsclient
returns the list of shared folders that are enabled in the VMware Player settings. This function is available for both open-vm-tools and vmware-tools.Also note that
vmware-hgfsmounter
is equivalent toor to adding to your
/etc/fstab
fileBut the
vmware-hgfsmounter
function is not available using the official vmware-tools from VMware that ships with the current VMware player. Therefore, as the currently accepted answer suggests, running thevmware-config-tools.pl -d
fixes the problem.I had a similar problem. The folder /mnt/hgfs/ appeared back again when I assured that open-vm was uninstalled. As follows
and reinstalled vmware-tools
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.
The
-d
selects all the defaults for you (remove it if you don't want the defaults).open-vm-tools would NOT build kernel modules until I first installed
linux-headers-virtual
(paired withlinux-image-virtual
of course). as soon as I installed the headers package,dpkg-reconfigure open-vm-tools
resulted in successfully building and loading the kernel modules, specifically thevmhgfs
module.vmware-tools-patches worked for me; give this a shot if nothing else works
Follow the
Quickest Start
instructions given there. Reproduced here:I've been having the same problem but I think I have just been able to make some progress.
Type
vmware-hfgs
and then press the<Tab>
key which will show you that there is also avmware-hgfsmounter
command. If you call that without any options it will print some help that shows you how to call this as part of the `mount' command. Using that info I then ran the following which worked for me:I was then able to access the Win 7 share and copy files to and from there.
If you want to make this permanent then I suspect that you will need to edit the
/etc/fstab
file but I can't help you there yet.You need to install the VMWare tools first, after that the
vmware-config-tools
can be used globally. For a more detailed guide, you can see here.