先安装包依赖:
yum -y install kernel-devel-$(uname -r) yum -y install net-tools perl gcc gcc-c++
安装vm tool
mount /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但没有共享文件的解决方法:
mount -t vmhgfs .host:/ /mnt/hgfs Error: cannot mount filesystem: No such device
这时不能用mount工具挂载,而是得用vmhgfs-fuse,需要安装工具包
yum install open-vm-tools-devel -y 有的源的名字并不一定为open-vm-tools-devel(centos) ,而是open-vm-dkms(unbuntu) 执行:vmhgfs-fuse .host:/ /mnt/hgfs
此时进入/mnt/hgfs就能看到你设置的共享文件夹了。
自己补充:
但是我的仍旧未能成功,
执行 vmhgfs-fuse .host:/ /mnt/hgfs 后
显示 fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
重新执行命令,并增加nonempty参数,
vmhgfs-fuse -o nonempty .host:/ /mnt/hgfs
然后成功,挂载在windows中共享的文件
继续阅读与本文标签相同的文章
上一篇 :
为什么摩拜和ofo很难合并?
下一篇 :
“去比特币化“对我们究竟意味着什么?
-
在Win上做Python开发?当然是用官方的MS Terminal和VS Code了
2026-05-19栏目: 教程
-
受用一生的高效 PyCharm 使用技巧(四)
2026-05-19栏目: 教程
-
Springboot 之创建自定义starter
2026-05-19栏目: 教程
-
黑客们会用到哪些Python技术?
2026-05-19栏目: 教程
-
菜鸟如何在阿里云快速建站(pc站+手机站+公众号+小程序)
2026-05-19栏目: 教程
