where is the shared folder in linux inside Vmware Player?
I'm trying to write a program which will copy files from my guest OS which is linux Ubunto to my host OS which is windows 7. I have enabled the shared folders options but of course in order to copy files, i need to write a destination path in my code and I don't know where is the shared folder located inside Linux... so does someone knows where it's located?
First you need to configure the shared folders in VMware Player, as you said you've done. Let's assume you named the shared folder Shared
. Then, on the linux guest, add a line like the following to /etc/fstab
:
.host:/Shared /mnt/C vmhgfs user 0 0
This will make the host folder that you named Shared
accessible as the directory /mnt/C
on the linux guest.
You'll need to create the mount point on the guest manually:
sudo mkdir /mnt/C
Finally, restart the linux guest.
The shared folders you add to the VMWare player Virtual Machine Settings > Options tab, under "Folders"
are available in the guest OS at:
/mnt/hgfs/<folder_name>
In this case, I access the folder named "shared" using the path:
/mnt/hgfs/shared/