1.在本机中创建共享文件夹
2.VM中安装vm-tools
3.安装完成后,在需要添加共享文件夹的虚拟机中,选择设置,添加共享文件夹,路径选择自己创建的文件夹
在添加共享文件夹时,直接点击下一步到完成即可
4.重启虚拟机
5.命令
[root@10.21.214.222 dockerfile]# vmware-hgfsclient ISO [root@10.21.214.222 dockerfile]# mkdir /mnt/ISO [root@10.21.214.222 dockerfile]# vmhgfs-fuse .host:/ /mnt/ISO/ -o subtype=vmhgfs-fuse,allow_other [root@10.21.214.222 dockerfile]# ls /mnt/ISO/ ISO [root@10.21.214.222 dockerfile]# ls /mnt/ISO/ISO/ CentOS-6.5-x86_64-bin-DVD1.iso CentOS-7-x86_64-DVD-1908.iso win7.iso
如果需要开机启动
echo 'vmhgfs-fuse .host:/ /mnt/ISO/ -o subtype=vmhgfs-fuse,allow_other' >> /etc/rc.local
Comments | NOTHING