
1、加载 vmhgfs 模块,安装
sudo modprobe vmhgfs
2、创建hgfs文件夹,如有已有就不用创建了
sudo mkdir -p /mnt/hgfs
3、挂载测试,重启会失效,继续后面的配置自动挂载即可
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
4、配置自动挂载,编辑/etc/fstab,这里使用nano编辑器,习惯别的也可以改成别的
sudo nano /etc/fstab
5、在/etc/fstab文件的末尾添加以下内容
.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other,noauto,x-systemd.automount 0 0
6、重新加载 systemd 配置
sudo systemctl daemon-reload
7、验证挂载
cd /mnt/hgfs
ls
版权声明:《 VMware配置kali挂载共享文件夹,开机自动挂载 》为qinyuhui网络收集,侵删!文中未注明的文章皆为网络收集。
最后编辑:2025-3-23 08:03:25
提示:本文章评论功能已关闭