Install open-vm-tools
Distros which use rpm, yum, dnf:
yum install -y open-vm-tools
dnf install -y open-vm-tools
Distros which use apt, apt-get:
apt-get install -y open-vm-tools
Mounting the host shares
Temporarily.
Execute the following command.
mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
This will mount the shared folders for the current Session. It will have to be done again the next time you start the VM.
Make it persistent.
Putting the following command in fstab file will give you access to the shared folders automatically after each start: the operating system will take care of the mounting. Insert the following line at the end of your /etc/fstab.
.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other 0 0
Removing the shared folders
The shared folders can be removed from your linux system.
- call umount on the mount point
- umount /mnt
- remove or comment out the line that do the mounting in /etc/fstab
- remove the shared from the virtual machine’s settings page.
- this process may fix vmhgfs-fuse mount errors .