When using VMware virtual machine, it is necessary to configure a shared folder to share files between the host and client. And note that you must have installed the VMware Tools before setting a shared folder. To know how to install it, see details in VMware Tools Installation
-
Enable the shared folder
In the VIRTUAL MACHINE OPTIONS, Select the following option:

and then add a folder:

You should assign a name to it, which will be seen in your client system.
-
Mount the shared folder
Start your client and use the command:
//confirm the shared folder
Ubuntu:~$ vmware-hgfsclient
share
//create a mount point
Ubuntu:~$ sudo mkdir /mnt/hgfs
//mount the shared folder
Ubuntu:~$ sudo vmhgfs-fuse .host:/ /mnt/hgfs
//confirm the mounted shared folder
Ubuntu:~$ sudo ls /mnt/hgfs
share
Ubuntu:~$ sudo ls /mnt/hgfs/share
1.conf 2.conf
However, after rebooting the client, we need to use the same command again. So we should edit the configuration file next.
-
Stable configuration
Use the command:
Ubuntu:~$ sudo vim /etc/fstab
to edit the file, and add the following content to it:
.host:/ /mnt/hgfs fuse.vmhgfs-fuse defaults 0 0
to execute the command when boot. Then save the modification and exit.