https://blog.csdn.net/yanguan025/article/details/127439741
https://blog.csdn.net/qq_43776124/article/details/90371909
端菜单 [虚拟机]-> [设置]-》【选项】-【共享文件夹】
* 文件夹共享:总是启用
* 文件夹:(添加一个文件夹,名称使用英文)
vmware客户端菜单 [虚拟机]-> [安装vmware tools]
#进改虚拟机
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom #挂载cdrom
cd /mnt/cdrom
cp VmwareTools-9.6.1-1378637.tar.gz /home/
tar -zxvf VmwareTools-9.6.1-1378637.tar.gz
cd vmware-tools-distrib/
./vmware-install.pl #安装
umount: /mnt/cdrom:
#查看共享目录
vmware-hgfsclient
mkdir /mnt/hgfs
挂载共享目录到/mnt/hgfs
vmhgfs-fuse .host:/ /mnt/hgfs
执行vmhgfs-fuse 命令将share临时挂载到/mnt/hgfs
vmhgfs-fuse .host:/ /mnt/hgfs
如果需要永久挂载需要
修改该文件:/etc/fstab
.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other,defaults 0 0
.host:/kali_share /mnt/hgfs fuse.vmhgfs-fuse allow_other 0 0
mount
umount /mnt/hgfs
#错误 /usr/bin/perl: bad interpreter: No such file or directory
yum -y install gcc gcc-c++ perl make kernel-headers kernel-devel
#错误In which directory do you want to install the documentation files?
/usr/share/doc/vmware-tools
yum install kernel-devel.x86_64
yum install gcc -y
#centos7.9 安装vmtools有内核错误问题(换debian11安装)