VM设置
- 选择设置的虚拟机 》 顶部点击
选项
》 选择共享文件夹
》总是启用
》添加
centos设置
- /usr/bin/vmhgfs-fuse .host:/
虚拟机共享目录
-o subtype=vmhgfs-fuse,allow_other - 示例:
/usr/bin/vmhgfs-fuse .host:/ /home/wwwroot -o subtype=vmhgfs-fuse,allow_other
加入开机启动命令
- 打开文件:
vim /etc/rc.d/rc.local
加入要设置的启动命令/usr/bin/vmhgfs-fuse .host:/ /home/wwwroot -o subtype=vmhgfs-fuse,allow_other
- 更新权限:
chmod +x /etc/rc.d/rc.local