Centos7由于自身问题,不能直接使用vmtools安装包
1
  | yum install open-vm-tools
  | 
 
从1
  | http://packages.vmware.com/tools/keys
  | 
下载1
  | VMware Packaging Public Keys
  | 
import pub key
1
2
  | rpm -import /tmp/VMWARE-PACKAGING-GPG-DSA-KEY.pub
rpm -import /tmp/VMWARE-PACKAGING-GPG-RSA-KEY.pub
  | 
 
1
2
3
4
5
  | [vmware-tools]
name = VMware Tools
baseurl = http://packages.vmware.com/packages/rhel7/x86_64/
enabled = 1
gpgcheck = 1
  | 
 
1
2
  | yum install open-vm-tools-deploypkg
systemctl restart vmtoolsd
  | 
 
###修改系统版本信息
1
  | rm -f /etc/redhat-release && touch /etc/redhat-release && echo "Red Hat Enterprise Linux Server release 7.0 (Maipo)" > /etc/redhat-release
  |