Home Datacenter Install VMware tools on Centos 7

Install VMware tools on Centos 7

by Roger Lund

I was standing up some Centos 7 boxes in VMware vSphere. And I figured I would blog on the steps to install VMware Tools.

 

The below Steps are taken from http://partnerweb.vmware.com/GOSIG/CentOS_7.html

 

 “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:

Installation Instructions

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.

Prerequisites

Before you begin, verify that the following tasks are complete:

Installation Steps

  1. Insert the CentOS 7 CD-ROM in the CD-ROM drive.
  2. Power on the virtual machine to start installing CentOS 7.
  3. Follow the prompts to complete the installation.
  4. Set the storage location for installation. In the INSTALLATION SUMMARY screen, in the STORAGE session area, select INSTALLATION DESTINATION.
  5. 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.
  6. Click Done.
  7. Click Begin Installation to continue.
  8. 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:

  1. 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:

    1. Install Open VMware Tools.
    2. Install the traditional TAR Format VMware Tools that is bundled with VMware Workstation or Fusion products.
  2. 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:

    1. 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
    2. 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:

VMware Tools

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.

 

  1. Login to the linux guest via putty.
  2. Login as root:
  3. [email protected]’s password. I entered the password.
  4. # yum install open-vm-tools -y

Then I wanted to update Centos as well.

 

  1. yum update -y
  2. shutdown -r -t now

 

Now lets look at the VM in the vSphere client.

 

 

 

 

centos7_vmware_tools_vm_selection centos7_vmware_tools_install

Now we have Running VMware Tools!

 

 

Roger L[/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]

You may also like