Prerequisites
Install open-vm-tool
1 | sudo apt update |
User Mode
You can actually get this done by either using kernel mode
or user mode
. Here we’ll go for user mode
.
- Kernel mode client file system type
vmhgfs
- User mode client FUSE file system type
vmhgfs-fuse
How to Mount the Shared Folder
The default options will mount all share folders for all guest users under the default mount point which will be at the location: /mnt/hgfs
Here’s the command for mounting shared folders using user mode FUSE client:
1 | /usr/bin/vmhgfs-fuse .host:/ /mnt/hgfs -o subtype=vmhgfs-fuse,allow_other |
In case if you’d like to specify the target folder called /home/xxx/mySharedFolder
instead of all under the general mount point, you can use following command:
1 | /usr/bin/vmhgfs-fuse .host:/home/xxx/mySharedFolder /mnt/hgfs -o subtype=vmhgfs-fuse,allow_other |
Persistent Mounts
Shared folders can be mounted persistently in /etc/fstab
.
1 | <file system> <mount point> <type> <options> <dump> <pass> |