VMWARE 的 Ubuntu 虚拟机无法自动 mount 挂载共享文件夹
在开启 vmware 的共享文件夹,并设置为总是启用后,可以访问共享文件夹的内容,但是在重新启动后,ubuntu 并没有自动 mount 共享文件夹,原因应该是 mnt-hgfs.mount 服务没有自动启动,解决方法为:
增加配置到 /etc/systemd/system/mnt-hgfs.mount
,配置内容为:
[Unit]
Description=VMware mount for hgfs
DefaultDependencies=no
Before=umount.target
ConditionVirtualization=vmware
After=sys-fs-fuse-connections.mount
[Mount]
What=vmhgfs-fuse
Where=/mnt/hgfs
Type=fuse
Options=default_permissions,allow_other
[Install]
WantedBy=multi-user.target
在 /etc/modules-load.d/open-vm-tools.conf
中增加配置(如该配置文件不存在,则新增):
fuse
使能 mnt-hgfs.mount 服务并开启:
sudo systemctl enable mnt-hgfs.mount && sudo systemctl start mnt-hgfs.mount
参考自: https://superuser.com/questions/1731780/vmware-shared-folder-not-showing-on-ubuntu-guest
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

上一篇: 执行与 terminal 会话无关的命令
下一篇: 不要相信一个熬夜的人说的每一句话
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论