martedì 13 novembre 2018

AutoMount VmWare Shared Folder on Linux kernels 4.0 and later


Depending on the kernel version of the Linux guest operating system, VMware Tools uses different components to provide shared-folder functionality. 
In Linux kernels prior to version 4.0, the VMware Tools services script loads a driver that performs the mount.
 Linux kernels 4.0 and later use a FUSE file system component.
You can use different mount commands to mount all shares, one share, or a subdirectory within a share to any location in the file system. The commands also vary depending on the Linux-kernel version of the guest

Usually is better if you insert following line in your /etc/fstab file

.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other 0 0

create directory /mnt/hgfs

and  mount -a

to mount immediately your shared folder