新本本到手,东搞搞,西搞搞,终于弄得差不多啦。装好vmware10之后,立马新建了一个centos7的虚拟机,一切还算顺利,可是装vmware tools的时候出西西啦,编译文件共享部分报错:
In file included from /tmp/modconfig-2MHZ0W/vmhgfs-only/inode.c:36:0:
/tmp/modconfig-2MHZ0W/vmhgfs-only/inode.c: In function ‘HgfsPermission’:
/tmp/modconfig-2MHZ0W/vmhgfs-only/./shared/compat_dcache.h:57:38: error: ‘struct dentry’ has no member named ‘d_count’
#define compat_d_count(dentry) dentry->d_count
^
/tmp/modconfig-2MHZ0W/vmhgfs-only/inode.c:1904:23: note: in expansion of macro ‘compat_d_count’
int dcount = compat_d_count(dentry);
安装完成之后,/mnt/hgfs看不到主机共享的目录。。。。。还好有狗狗
按照别人描述,进到/tmp/vmware-tools-distrib/lib/modules/source目录下,解压vmhgfs.tar,修改解压后的shared/compat_dcache.h,,,把54行 if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0) 的版本号改成 3,10。。。重新打包成vmhgfs.tar, 然后再安装成功。。。。。。。。
敢快做个快照睡觉去罗。。。。。
等睡醒了起来b4一下7的界面,还是5看起来习惯些。
原文地址:http://www.cnblogs.com/janus1999/p/4001110.html