Vmware Workstation 17 使用 vmware tools 文件共享重启后失效

张文远的学习笔记 / 2024-11-06 / 原文

系统为debian12

安装 open-vm-tools:

sudo apt-get install open-vm-tools

如果是桌面版可以继续安装 open-vm-tools-desktop:

sudo apt-get install open-vm-tools-desktop

在共享文件夹里设置共享后,每次重启在 /mnt/hgfs 找不到共享的内容。

Vmware 官方给出的解决方案 为 在/etc/fstab最后添加一行:

vmhgfs-fuse /mnt/hgfs fuse defaults,allow_other 0 0

 执行

echo vmhgfs-fuse /mnt/hgfs fuse defaults,allow_other 0 0 >> /etc/fstab