vmware+centos文件共享
先安装包依赖:
1
2yum -y install kernel-devel-$(uname -r)
yum -y install net-tools perl gcc gcc-c++安装vm tools
1
2
3
4
5
6mount /dev/cdrom /home/tmp
cp /home/tmp/VMwareTools-9.6.0-1294478.tar.gz /tmp
cd /tmp
tar -zxvf VMwareTools-9.6.0-1294478.tar.gz
cd vmware-tools-distrib
./vmware-install.pl有/mnt/hgfs但没有共享文件的解决方法:
1
2mount -t vmhgfs .host:/ /mnt/hgfs
Error: cannot mount filesystem: No such device这时不能用mount工具挂载,而是得用vmhgfs-fuse,需要安装工具包
1
2
3yum install open-vm-tools-devel -y
有的源的名字并不一定为open-vm-tools-devel(centos) ,而是open-vm-dkms(unbuntu)
执行:vmhgfs-fuse .host:/ /mnt/hgfs