今天在VMware虚拟机下为CentOS 7安装VMware Tools的时候,shell提示:
open-vm-tools are available from the OS vendor and VMware recommends using
open-vm-tools. See http://kb.vmware.com/kb/2073803 for more information.
Do you still want to proceed with this legacy installer? [no]
访问http://kb.vmware.com/kb/2073803看了下安装教程,发现非常简单。
详细过程
1.创建目录并下载密钥文件
|
mkdir /home/tools
cd /home/tools
wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-DSA-KEY.pub
wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub
|
2.安装密钥
CentOS:
|
rpm --import VMWARE-PACKAGING-GPG-DSA-KEY.pub
rpm --import VMWARE-PACKAGING-GPG-RSA-KEY.pub
|
Ubuntu:
|
sudo apt-key add VMWARE-PACKAGING-GPG-DSA-KEY.pub
sudo apt-key add VMWARE-PACKAGING-GPG-RSA-KEY.pub
|
3.新建文件
CentOS:新建 /etc/yum.repos.d/vmware-tools.repo
|
vi /etc/yum.repos.d/vmware-tools.repo
|
|
[vmware-tools]
name = VMware Tools
baseurl = http://packages.vmware.com/packages/rhel7/x86_64/
enabled = 1
gpgcheck = 1
|
Ubuntu:新建 /etc/apt/sources.list.d/vmware-tools.list
|
vi /etc/apt/sources.list.d/vmware-tools.list
|
|
deb http://packages.vmware.com/packages/ubuntu precise main
|
4.安装open-vm-tools
CentOS:
|
# 查看软件包列表
yum list | grep open-vm
sudo yum install open-vm-tools-deploypkg open-vm-tools-desktop
sudo systemctl restart vmtoolsd
|
Ubuntu:
|
# 查看软件包列表
sudo apt-get update
sudo apt-cache search open-vm
sudo apt-get install open-vm-tools-deploypkg open-vm-tools-desktop open-vm-toolbox open-vm-dkms
|
open-vm-dkms用于主机和虚拟机共享文件夹。
来源:
http://kb.vmware.com/kb/2073803
更多Linux发行版安装方法:
https://kb.vmware.com/selfservice/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=2106167
(责任编辑:IT) |