Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VMware Workstation Pro Shared Folder
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Amir10JM
n00b
n00b


Joined: 10 Nov 2022
Posts: 17

PostPosted: Mon Apr 10, 2023 6:52 pm    Post subject: VMware Workstation Pro Shared Folder Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3934

PostPosted: Mon Apr 10, 2023 7:30 pm    Post subject: Reply with quote

See
https://wiki.gentoo.org/wiki/VMware#Gentoo_guests
and
https://docs.vmware.com/en/VMware-Workstation-Pro/17/com.vmware.ws.using.doc/GUID-AB5C80FE-9B8A-4899-8186-3DB8201B1758.html
_________________
:)
Back to top
View user's profile Send private message
Amir10JM
n00b
n00b


Joined: 10 Nov 2022
Posts: 17

PostPosted: Tue Apr 11, 2023 7:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3934

PostPosted: Tue Apr 11, 2023 8:06 pm    Post subject: Reply with quote

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
Code:

/mnt/hgfs

_________________
:)
Back to top
View user's profile Send private message
Amir10JM
n00b
n00b


Joined: 10 Nov 2022
Posts: 17

PostPosted: Wed Apr 12, 2023 10:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Amir10JM
n00b
n00b


Joined: 10 Nov 2022
Posts: 17

PostPosted: Wed Apr 12, 2023 10:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22913

PostPosted: Thu Apr 13, 2023 1:08 am    Post subject: Reply with quote

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
View user's profile Send private message
Amir10JM
n00b
n00b


Joined: 10 Nov 2022
Posts: 17

PostPosted: Thu Apr 13, 2023 3:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Amir10JM
n00b
n00b


Joined: 10 Nov 2022
Posts: 17

PostPosted: Thu Apr 13, 2023 3:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22913

PostPosted: Thu Apr 13, 2023 4:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20550

PostPosted: Fri Apr 14, 2023 12:13 am    Post subject: Reply with quote

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
View user's profile Send private message
Amir10JM
n00b
n00b


Joined: 10 Nov 2022
Posts: 17

PostPosted: Mon Apr 17, 2023 7:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Amir10JM
n00b
n00b


Joined: 10 Nov 2022
Posts: 17

PostPosted: Mon Apr 17, 2023 7:29 pm    Post subject: Reply with quote

Sorry here's the code again.

Code:
vmhgfs-fuse /mnt/hgfs fuse defaults,allow_other 0 0
Back to top
View user's profile Send private message
Amir10JM
n00b
n00b


Joined: 10 Nov 2022
Posts: 17

PostPosted: Mon Apr 17, 2023 7:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22913

PostPosted: Mon Apr 17, 2023 8:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum