VMware PRO 16 配置共享文件夹

  1. 安装 open-vm-tools(CentOS 为例)
    yum install open-vm-tools open-vm-tools-desktop

  2. 设置共享文件夹

  3. 查看共享文件夹

    vmware-hgfsclient

  1. 挂载共享文件夹

    sudo vmhgfs-fuse .host:/shared_file /mnt/hgfs
    其中:

    • shared_file 就是上图中选择的文件夹名称,git。以上图为例,此处我应该将 your_shared_file 替换为 Linux
    • /mnt/hgfs 是挂载点,安装好 open-vm-tools 会自动生成此目录文件。

    比如我的虚拟机上:
    vmhgfs-fuse .host:/caolizhi-personal /mnt/hgfs

  2. 设置开机自动挂载

    每次关机后,就需要重新挂载。可在文件 /etc/fstab 中添加如下一行:
    .host:/your_shared_file /mnt/hgfs fuse.vmhgfs-fuse defaults 0 0

    比如我的虚拟机上:
    .host:/caolizhi-personal /mnt/hgfs fuse.vmhgfs-fuse defaults 0 0

作者

操先森

发布于

2021-10-26

更新于

2021-10-26

许可协议

评论