1、运行安装 ./vmware-install.pl
安装VMware tool完毕后,使用 vmware-hgfsclient可以查看到共享目录,但是在/mnt/hgfs中没有 :
解决方案:>sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -oallow_other
永久生效方法:vi /etc/fstab,在最后一行加入:.host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other 0 0
2、centos解决The path "" is not a valid path to the 3.2.0-4-amd64 kernel headers.问题
解决方法: yum -y install kernel-devel
重新运行: ./vmware-install.pl
3、安装过程出现错误:vmhgfs-only/page.c:1625:23: error: too many arguments to function ‘wait_on_bit’
1)在解压后的vmware-tools-distrib/目录中,进入lib/modules/source/,解压vmhgfs.tar
2)tar -xvf vmhgfs.tar
3)打开文件vmhgfs-only/page.c : vim vmhgfs-only/page.c
4)把根据报错位置1625的地方修改(说明:因为 CentOS 7 的内核版本是 3.10.0)
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0)
修改为
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0)
5)保存、压缩文件并替换vmhgfs.tar
tar -cvf vmhgfs.tar vmhgfs-only
6)从新执行安装脚本 : ./vmware-install.pl