My host OS is win10 and I use ubuntu22.04 in wm workstation 16 pro.
The shard forder (in /mnt/hgfs/) is missing after first reboot and I try reinstall vmware tools lots of time. It dose not work!
I try add "vmhgfs-fuse /mnt/hgfs fuse defaults,allow_other 0 0" to /etc/fstab, but ubuntu can't boot.
I also try any solutions I can find, but no one works.
Any help would be greatly appreciated!
I just tried this on a fresh Ubuntu 22.04.1 install and got the same failure after inserting the recommended line to /etc/fstab.
It looks like something may have changed in 22.04 in the order of daemon startup and mounts. Shared folders use FUSE in current VMware Tools and open-vm-tools, not a kernel hgfs driver. The error message at boot is telling me that the FUSE daemon is not started by the time the mount command wants to mount the VMware shared folders. I've seen this happen in other operating systems for example when NFS or SAMBA isn't started by the time that a boot time mount of a network file system is processed.
To force the mount later in the startup sequence after networking is enabled, the "_netdev" option can be added to the fstab entry for the file system.
I added the following line to /etc/fstab:
vmhgfs-fuse /mnt/hgfs fuse defaults,allow_other,_netdev 0 0
and rebooted. The reboot completes and the shared folders are mounted.
See if this works for you.
(By the way, it's recommended by VMware to use open-vm-tools and open-vm-tools-desktop if provided by the distro's repos rather than VMware Tools installed from the Workstation GUI. Ubuntu provides open-vm-tools.)
I use my old ubuntu(21.04) vm and it is work! I think it may be only occur on ubuntu22.04.1?
BTW, I try "lsmod | grep vmhgfs" and nothing output.
If I disable & enable shared forder in GUI , I get this error:
Unable to update the runtime folder sharing state: An error occurred loading the shared folder file system in the client operating system
Which in-guest tools do you have installed? Open-vm-tools from the Ubuntu repos, or VMware Tools from the Workstation GUI?
I just tried this on a fresh Ubuntu 22.04.1 install and got the same failure after inserting the recommended line to /etc/fstab.
It looks like something may have changed in 22.04 in the order of daemon startup and mounts. Shared folders use FUSE in current VMware Tools and open-vm-tools, not a kernel hgfs driver. The error message at boot is telling me that the FUSE daemon is not started by the time the mount command wants to mount the VMware shared folders. I've seen this happen in other operating systems for example when NFS or SAMBA isn't started by the time that a boot time mount of a network file system is processed.
To force the mount later in the startup sequence after networking is enabled, the "_netdev" option can be added to the fstab entry for the file system.
I added the following line to /etc/fstab:
vmhgfs-fuse /mnt/hgfs fuse defaults,allow_other,_netdev 0 0
and rebooted. The reboot completes and the shared folders are mounted.
See if this works for you.
(By the way, it's recommended by VMware to use open-vm-tools and open-vm-tools-desktop if provided by the distro's repos rather than VMware Tools installed from the Workstation GUI. Ubuntu provides open-vm-tools.)
Thanks so much!! It works!!
I write down my procedure in the hope that it will be helpful to the people behind me.
First, add this line to /etc/fstab.
vmhgfs-fuse /mnt/hgfs fuse defaults,allow_other,_netdev 0 0Then, I use vmware-uninstall-tools.pl to remove the vmware-tool which install from GUI and reinstall the open-vm-tools & open-vm-tools-desptop(use apt remove & apt install).
Finally, reboot the ubuntu and everything works perfect!
