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?

3 Answers

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.

5

The shared folders you add to the VMWare player Virtual Machine Settings > Options tab, under "Folders"

VMWare Player Shared Folder Settings

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/

After installing vms-tools, add the following line to /etc/fstab:

.host:/shared /mnt/hgfs vmhgfs defaults,ttl=5,uid=1000,gid=1000 0 0 

(given that the shared foler name in VMWare Player settings is /shared)

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like