I was standing up some Centos 7 boxes in VMware vSphere. And I figured I would blog on the steps to install VMware Tools.
“CentOS 7 documentation covers information on how to install the operating system in a virtual machine. For additional information about the operating system, refer to the instructions included in the installation media.
CentOS 7 documentation includes the following topics:
To install CentOS 7 in a virtual machine you can use either the standard CentOS distribution CD or the boot floppy/network method. The following installation instructions are for standard distribution CD.
Before you begin, verify that the following tasks are complete:
- Insert the CentOS 7 CD-ROM in the CD-ROM drive.
- Power on the virtual machine to start installing CentOS 7.
- Follow the prompts to complete the installation.
- Set the storage location for installation. In the INSTALLATION SUMMARY screen, in the STORAGE session area, select INSTALLATION DESTINATION.
- Change the Base Environment and select Add-Ons to install. In the INSTALLATION SUMMARY screen, in the SOFTWARE session area, click SOFTWARE SELECTION.CentOS 7 includes Open VMware Tools. The default Base Environment is Minimal install, which only has basic functionality.
- For Minimal install and Virtualization Host environments, Open VMware Tools is not available during installation.
After CentOS 7 installation, to install Open VMware Tools, using root privileges, run the command:
# yum install open-vm-tools
- For other types of Base Environments, to install Open VMware Tools, select the Guest Agents Add-On.
- If this Add-On is not listed, the Base Environment already includes Open VMware Tools and installs it by default.
- Click Done.
- Click Begin Installation to continue.
- Set root password and create new users, as needed, in the CONFIGURATION screen.
VMware Tools in an CentOS 7 Guest
Use the guest OS provided Open VM Tools or install VMware Tools, as needed.
Open VM Tools
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. VMware recommends using the Open VM Tools redistributed by the operating system vendors. To use Open VM Tools:
- Add the vmhgfs Driver
If you use the file sharing feature by using Shared Folders in VMware Workstation and Fusion, install the vmhgfs driver in the virtual machine. This driver is not included inbox in the operating system. Installing the additional vmhgfs driver does not disturb the other inbox VMware drivers or Open VMware Tools. To install this driver:
- Install Open VMware Tools.
- Install the traditional TAR Format VMware Tools that is bundled with VMware Workstation or Fusion products.
- Add the deployPkg Tools Plug-in
If you are using the virtual machine as a template or if it will be protected by SRM (Site Recovery Manager), then install the deployPkg Tools plug-in. To install this plug-in:
- Create a file, /etc/yum.repos.d/vmware-tools.repo, with the following content:
[fusion_builder_container hundred_percent="yes" overflow="visible"][fusion_builder_row][fusion_builder_column type="1_1" background_position="left top" background_color="" border_size="" border_color="" border_style="solid" spacing="yes" background_image="" background_repeat="no-repeat" padding="" margin_top="0px" margin_bottom="0px" class="" id="" animation_type="" animation_speed="0.3" animation_direction="left" hide_on_mobile="no" center_content="no" min_height="none"][vmware-tools]
name = VMware Tools
baseurl = http://packages.vmware.com/packages/rhel7/x86_64/
enabled = 1
gpgcheck = 1
- Install the package:
$ sudo yum install open-vm-tools-deploypkg
See knowledge base article 2075048, Installing the deployPkg plug-in in a Linux virtual machine, at http://kb.vmware.com/kb/2075048.
For additional information, see:
For additional information on VMware Tools, see knowledge base article 1014294, General VMware Tools installation instructions, at http://kb.vmware.com/kb/1014294.
Knowledge Base Articles for CentOS 7
The following link refers to knowledge base articles on operating system specific issues. See VMware Knowledge Base for a list of known issues about the operating system.
VMware Compatibility Guide
The VMware Compatibility Guide Web site lists supported guest and host operating systems and provides related support information.”
Here we go.
Then I wanted to update Centos as well.
Now lets look at the VM in the vSphere client.