VMware中的Linux虚拟机安装Open-vm-tools替代VMware Tools
时间:2016-05-26 14:24 来源:linux.it.net.cn 作者:IT
今天在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.创建目录并下载密钥文件
1
2
3
4
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:
1
2
rpm --import VMWARE-PACKAGING-GPG-DSA-KEY.pub
rpm --import VMWARE-PACKAGING-GPG-RSA-KEY.pub
Ubuntu:
1
2
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
1
vi /etc/yum.repos.d/vmware-tools.repo
1
2
3
4
5
[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
1
vi /etc/apt/sources.list.d/vmware-tools.list
1
deb http://packages.vmware.com/packages/ubuntu precise main
4.安装open-vm-tools
CentOS:
1
2
3
4
5
# 查看软件包列表
yum list | grep open-vm
sudo yum install open-vm-tools-deploypkg open-vm-tools-desktop
sudo systemctl restart vmtoolsd
Ubuntu:
1
2
3
4
5
# 查看软件包列表
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发行版安装方法:
(责任编辑:IT)
今天在VMware虚拟机下为CentOS 7安装VMware Tools的时候,shell提示:
访问http://kb.vmware.com/kb/2073803看了下安装教程,发现非常简单。 详细过程1.创建目录并下载密钥文件
2.安装密钥 CentOS:
Ubuntu:
3.新建文件 CentOS:新建 /etc/yum.repos.d/vmware-tools.repo
Ubuntu:新建 /etc/apt/sources.list.d/vmware-tools.list
4.安装open-vm-tools CentOS:
Ubuntu:
open-vm-dkms用于主机和虚拟机共享文件夹。 来源: http://kb.vmware.com/kb/2073803 更多Linux发行版安装方法: (责任编辑:IT) |