網頁

2014年11月30日 星期日

CentOS 7.0 --- Install Open VM Tools on Guest VM

When I install the WMware Tool on the fresh CentOS 7 minimal version, I get an error message about the bad interpreter /usr/bin/perl command so that the installer script cannot be executed.
ScreenHunter_438The reason is the minimal CentOS installation never installs the Perl package by default.

If the network function is normal, we can execute the yum install perl command to install it from Internet repository.ScreenHunter_449
Or we can install it from local CDROM so that need to mount the CDROM media at first.
ScreenHunter_439next to create a repository configuration file as cdrom.repo in /etc/yum.repos.d/ directory with the following content.
ScreenHunter_447Then use the yum --disablerepo=\* --enablerepo=c7-media install perl commandScreenHunter_448So do that the Perl package will be installed now.ScreenHunter_450
Although we can execute the vmware tools and no any error message as before, another question will show up that tell us the ifconfig command not found.
Next action? We will do another choice to install Open VM tools in CentOS 7 guest.

According to “Guest Operating System Installation Guide”, VMware recommends using the Open VM Tools redistributed by the operating system vendors.
Why?
Open VM Tools is the open source implementation of VMware Tools and consist of a suite of virtualization utilities that improves the functionality, administration, and management of virtual machines on VMware hypervisors.
How to do it?
Install open-vm-tools package (# 1)
Install open source vmware tools by using the yum install open-vm-tools command
ScreenHunter_461
Install open-vm-tools-deploypkg plug-in package (# 2)
Due to this VM will make as a template, we will install the deployPkg Tools plug-in.
At first, we will download all the VMware Public Packaging Public Keys from the http://packages.vmware.com/tools/keys directory by using the wget http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub command.
ScreenHunter_465next to import the VMware packaging public keys by using the rpm --import VMWARE-PACKAGING-GPG-RSA-KEY.pub commandScreenHunter_466
we will create a repository configuration file as vmware-tools.repo in /etc/yum.repos.d/ directory with the following content.
ScreenHunter_462
Install deployPkg Tools plug-in by using the sudo yum install open-vm-tools-deploypkg commandScreenHunter_463
Reference
(# 1)   VMware support of open-vm-tools (2073803)
(# 2)   Installing the deployPkg plug-in in a Linux virtual machine (2075048)
(# 3)   We cannot install Open VM Tools and VMware Tools on the same Guest VM as follows.ScreenHunter_470
Since 2010 Design by Davidwa
©Copyright Davidwa Inc. All rights reserved.