mac下使用vmware fusion11 安装vmware tools失败的解决办法

这两天在实验安装centos图形界面,需要开虚拟机,共享文件夹等等操作,发现一个奇怪的现象,在mac下,使用vmware fusion创建的Centos7虚拟机,已经安装好vmware tools并且能够正常使用,不过我做了几个快照后,在回退到某个快照时,就发现vmvare tools不好使了。
重新安装的话,会提示如下:

[root@localhost vmware-tools-distrib]# ./vmware-install.pl
open-vm-tools packages are available from the OS vendor and VMware recommends
using open-vm-tools packages. See http://kb.vmware.com/kb/2073803 for more
information.
Do you still want to proceed with this installation? [no]

实际情况是,之前已经装过并且好使的。主要是我要使用共享文件夹,在fusion里面启用了之后,使用命令进行挂载的时候,发现命令没了!
挂载的命令是:

vmhgfs-fuse .host:/ /mnt/hgfs

就是vmhgfs这个命令没有了,仔细看重新安装时候的提示,发现,他让我安装一个叫open-vm-tools的东西,于是就使用

yum install -y open-vm-tools

安装一下,命令就可以使用了。

之前试过重新进行安装,会发现其中会出现很多问题,因为我使用的是最小化安装,有很多软件没装,中间会各种报错。
另外,执行vmware-install.pl需要用到perl,还得先用

yum install perl

安装perl,才能正常运行。

猜你喜欢

转载自blog.csdn.net/stpice/article/details/100175241