Skip to content

Instantly share code, notes, and snippets.

@rdbox
Last active June 25, 2023 04:21
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save rdbox/6ae946461e29da8a17aaab8d9b48530d to your computer and use it in GitHub Desktop.
Save rdbox/6ae946461e29da8a17aaab8d9b48530d to your computer and use it in GitHub Desktop.
Ubuntu guest VMware shared folders vmhgfs-fuse
# Данные Команды добавляют в автозагрузку shared folders VMware
# Вариант 1.
a. Install open-vm-tools, apt-get install open-vm-tools.
b. Install open-vm-tools-dkms, apt-get install open-vm-tools-dkms.
c. Run /usr/bin/vmware-hgfsclient, it will display your shared folder.
d. Update your /etc/fstab using the details below:
.host:/{shared-folder} /{path-to-mount-on} vmhgfs defaults,ttl=5,uid=1000,gid=1000 0 0
e. Restart VMware
f. Run mount -t vmhgfs .host:/[your_shared_folder] /mnt/hgfs
g. To check whether mounting is successful, run df -kh
# Вариант 2.
.host:/vmshared /mnt/hgfs fuse.vmhgfs-fuse allow_other,uid=1000,gid=1000,auto_unmount,defaults 0 0
sudo vmhgfs-fuse -o allow_other -o auto_unmount -o uid=1000 -o gid=1000 .host:/shared_folder /mnt/shared_folder
@FoolishWiseman
Copy link

FoolishWiseman commented Jun 25, 2023

Super helpful. Thank you! I used this to auto-mount my company OneDrive folder on my Window host into the /home/{usr} directory of my Linux VM.

@f1h0
Copy link

f1h0 commented Jun 25, 2023

Super helpful. Thank you! I used this to auto-mount my company OneDrive folder on my Window host into the /home/{usr} directory of my Linux VM.

I'm glad it helped you good developments))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment