Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vmhgfs-fuse at boot with VMware Windows 8.1 host and Ubuntu 16.04 guest

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

like image 249
takahashi Avatar asked Aug 03 '16 07:08

takahashi


People also ask

How do I share a folder between Ubuntu and windows VMware?

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.

Where is shared folder mounted VMware?

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.

Where are shared folders in VMware ubuntu?

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.


1 Answers

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

like image 200
takahashi Avatar answered Sep 19 '22 17:09

takahashi