I am using the VMware Player with a Windows 8.1 host and an Ubuntu 16.04 guest and I have a shared folder shared_folder
that I want to mount to a specific location at boot: /shared_folder
. I can manually do that using the command
vmhgfs-fuse .host:/shared_folder /shared_folder
Now I would like to do that automatically during boot. Since I am a beginner with Ubuntu, maybe someone can point me to the solution of my problem. Thanks
I set up the shared folders from VMware by clicking on Settings --> Options --> Shared Folders -->Always enabled and then I click Add and i go through the wizard dialog box to add a shared folder.
The VMware share testshare should be mounted on the ~/testshare directory. By default, the VMware shares mounted on the Linux VM is only accessible to the root user as you can see in the screenshot below.
Inside the root folder, locate the “mnt” folder and click on it. Then, select the “hgfs” folder. In this folder, you'll see your shared folder from the Host OS.
So after half a day of googling, try-and-error, 5mins after I post this question I find a working solution.
I added the following line to /etc/fstab
:
.host:/shared_folder /shared_folder fuse.vmhgfs-fuse allow_other,uid=1000,gid=1000,auto_unmount,defaults 0 0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With