View previous topic :: View next topic |
Author |
Message |
Amir10JM n00b
Joined: 10 Nov 2022 Posts: 17
|
Posted: Mon Apr 10, 2023 6:52 pm Post subject: VMware Workstation Pro Shared Folder |
|
|
Hello everyone,
I'm running VMware Workstation 16 Pro on Windows 10 Pro.
I'm running 2 Linux clients;
1- Linux Mint
2- Gentoo Linux
On the Linux Mint the shared folder is located at: //mnt/hgfs
By "Shared Folder" I mean the folder that you can share files with the Host and the Client/Guest.
Will the Shared folder on Gentoo be in the same location?
If yes; it is not working for me; and I feel that it's a "Permission Issue".
Am I correct?
And how do I fix this issue? |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3934
|
|
Back to top |
|
|
Amir10JM n00b
Joined: 10 Nov 2022 Posts: 17
|
Posted: Tue Apr 11, 2023 7:29 pm Post subject: |
|
|
Ok, I'm going to be honest; I saw the second link before I asked the question, and I have no idea what they are talking about.
The location of the share on the Client side in Linux is:
//mnt/hgfs
Now in Linux Arch; Arch creates a folder inside hgfs, like this:
//mnt/hgfs/_VMware Shared Folder (I named the folder that, not Arch)
The first Link is for VMware ESXi Server and I'm running Workstation 16 Pro.
I don't think it applies, but I could be wrong about that.
I just don't understand what to do.
Thank you for any help anyone can give me. |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3934
|
Posted: Tue Apr 11, 2023 8:06 pm Post subject: |
|
|
According to the first link you need to
Code: |
emerge --ask app-emulation/open-vm-tools
|
inside the Gentoo vmware guest.Start and enable the service and make sure also you have configured the Gentoo kernel accordingly.
If this is hard then maybe
Code: |
emerge -av gentoo-kernel-bin
|
which hopefully will have all these configs enabled.
Having done all that, inside the guest issue
Code: |
vmhgfs-fuse .host:/ /home/user1/shares -o subtype=vmhgfs-fuse,allow_other
or
vmhgfs-fuse .host:/foo /tmp/foo -o subtype=vmhgfs-fuse,allow_other
or
vmhgfs-fuse .host:/foo/bar /var/lib/bar -o subtype=vmhgfs-fuse,allow_other
|
to have the shares mounted at different location in the fs.
according to the second link.
But according to this link the shares by default will also be available under
_________________
|
|
Back to top |
|
|
Amir10JM n00b
Joined: 10 Nov 2022 Posts: 17
|
Posted: Wed Apr 12, 2023 10:24 pm Post subject: |
|
|
Ok, I got the share working.
Thank you for that; but when I reboot I loose the share.
Can someone give me the right syntax for fstab?
I would like to add an entry in fstab so I have the share going all the time.
By the way; if anyone has a better method or proper solution; I'm open to any and all suggestions.
This is what I'm entering in fstab but the computer does not boot when I add this?
# Use shared folders between VMWare guest and host
.host:/shared /mnt/hgfs/shared fuse.vmhgfs-fuse defaults,allow_other,uid=1000 0 0 |
|
Back to top |
|
|
Amir10JM n00b
Joined: 10 Nov 2022 Posts: 17
|
Posted: Wed Apr 12, 2023 10:34 pm Post subject: |
|
|
Sorry let me retype that proper: Code: |
# Use shared folders between VMWare guest and host
.host:/shared /mnt/hgfs/shared fuse.vmhgfs-fuse defaults,allow_other,uid=1000 0 0 |
|
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22913
|
Posted: Thu Apr 13, 2023 1:08 am Post subject: |
|
|
Amir10JM wrote: | This is what I'm entering in fstab but the computer does not boot when I add this? | What happens instead? Telling us something is broken without describing how will rarely lead to useful suggestions about how to make it work. Amir10JM wrote: | Code: | # Use shared folders between VMWare guest and host
.host:/shared /mnt/hgfs/shared fuse.vmhgfs-fuse defaults,allow_other,uid=1000 0 0 |
| If I had to guess, I would speculate that the Host-Guest Filesystem is somehow network-based, and so needs to be deferred to the netmount phase, rather than brought up with local filesystems. Have you tried marking that this is a _netdev mount? |
|
Back to top |
|
|
Amir10JM n00b
Joined: 10 Nov 2022 Posts: 17
|
Posted: Thu Apr 13, 2023 3:51 pm Post subject: |
|
|
Ok, let me ask the question this way.
This is the command I use to make the VMware Share Folder work:
Code: | sudo vmhgfs-fuse .host:/shared /mnt/hgfs/shared -o allow_other -o uid=1000
But that only works until I reboot.
Once I reboot the share doesn't work.
So how do I get this share working permanently?
How do I run this command automatically at boot up?
|
|
|
Back to top |
|
|
Amir10JM n00b
Joined: 10 Nov 2022 Posts: 17
|
Posted: Thu Apr 13, 2023 3:52 pm Post subject: |
|
|
Sorry I'm new at this.
But that only works until I reboot.
Once I reboot the share doesn't work.
So how do I get this share working permanently?
How do I run this command automatically at boot up?
Code: |
sudo vmhgfs-fuse .host:/shared /mnt/hgfs/shared -o allow_other -o uid=1000 |
|
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22913
|
Posted: Thu Apr 13, 2023 4:56 pm Post subject: |
|
|
Adding an appropriate entry to /etc/fstab is the proper way to make a filesystem mount again at boot. Please do so, and if it does not work, describe precisely what you see that you would characterize as incorrect. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20550
|
Posted: Fri Apr 14, 2023 12:13 am Post subject: |
|
|
Amir10JM wrote: | This is what I'm entering in fstab but the computer does not boot when I add this?
Code: | # Use shared folders between VMWare guest and host
.host:/shared /mnt/hgfs/shared fuse.vmhgfs-fuse defaults,allow_other,uid=1000 0 0 |
| That closely matches an example from here.
When you have that in /etc/fstab, does it work without rebooting?
(mount /mnt/hgfs/shared and umount /mnt/hgfs/shared should work)
Do those commands work? If they do not, what is the output / error message? _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Amir10JM n00b
Joined: 10 Nov 2022 Posts: 17
|
Posted: Mon Apr 17, 2023 7:28 pm Post subject: |
|
|
So I got it to work.
If you go to VMware's support site they give you 2 methods for file sharing.
I was using the 2nd method which does not work.
At least it didn't work for me in multiple Linux Distros.[/code]
By the way; I did not get any error messages with the 2nd method.
The share just didn't work.
The 1st method worked for me.
Here's the link for VMware's website solutions:
https://kb.vmware.com/s/article/60262
This was the solution; I saved the code in the fstab file:
[code]
vmhgfs-fuse /mnt/hgfs fuse defaults,allow_other 0 0 |
|
Back to top |
|
|
Amir10JM n00b
Joined: 10 Nov 2022 Posts: 17
|
Posted: Mon Apr 17, 2023 7:29 pm Post subject: |
|
|
Sorry here's the code again.
Code: | vmhgfs-fuse /mnt/hgfs fuse defaults,allow_other 0 0 |
|
|
Back to top |
|
|
Amir10JM n00b
Joined: 10 Nov 2022 Posts: 17
|
Posted: Mon Apr 17, 2023 7:40 pm Post subject: |
|
|
Even though I got it to work, I don't understand why it worked.
What is "Fuse"?
And why does that line work in fstab?
If someone would take the time to explain that to me; It would be much appreciated.
Thank you in advance. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22913
|
Posted: Mon Apr 17, 2023 8:26 pm Post subject: |
|
|
Amir10JM wrote: | Sorry here's the code again. Code: | vmhgfs-fuse /mnt/hgfs fuse defaults,allow_other 0 0 |
| This forum supports both previewing your post before making it publicly visible, and making edits to it afterward, so that you do not need a follow-up post to correct data entry errors.
According to the fuse project's HOMEPAGE listed in the ebuild, FUSE is the Filesystem in USErspace.
Without seeing the errors from the non-working version, it is difficult to say why one version works and one does not. |
|
Back to top |
|
|
|