{"id":5403,"date":"2014-09-02T00:53:00","date_gmt":"2014-09-01T16:53:00","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=5403"},"modified":"2023-06-27T13:00:13","modified_gmt":"2023-06-27T13:00:13","slug":"how-to-install-vmware-tools","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-vmware-tools\/","title":{"rendered":"How to Install VMware Tools using yum on CentOS, RHEL, and other Red Hat-based Systems"},"content":{"rendered":"<p><img decoding=\"async\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/09\/vmware-logo-1024x373.png\" alt=\"VMware Tools\" width=\"1024\" height=\"373\" class=\"alignnone size-large wp-image-13152 img-fluid lazyload\" data-srcset=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/09\/vmware-logo-1024x373.png 1024w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/09\/vmware-logo-300x109.png 300w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/09\/vmware-logo-128x47.png 128w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/09\/vmware-logo-420x153.png 420w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/09\/vmware-logo-540x197.png 540w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/09\/vmware-logo-720x262.png 720w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/09\/vmware-logo-960x350.png 960w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/09\/vmware-logo-1140x415.png 1140w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/09\/vmware-logo.png 1200w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/373;\" \/><\/p>\n<p>VMware Tools is a suite of utilities that enhances the performance and management of VMware virtual machines. Installing VMware Tools on your guest Linux operating system can improve performance, enable features such as shared folders and clipboard sharing, and simplify virtual machine management.<\/p>\n<p>In this guide, we will show you how to install VMware Tools using yum on CentOS, RHEL, and other Red Hat-based systems.<\/p>\n<h2>Step 1: Prepare the Virtual Machine<\/h2>\n<p>Before installing VMware Tools, ensure that your virtual machine is running and that you are logged in as a user with sudo privileges.<\/p>\n<h2>Step 2: Install Required Packages<\/h2>\n<p>Some packages are required for the installation of VMware Tools. Open a terminal and run the following command to install them:<\/p>\n<pre>\r\nsudo yum install -y perl gcc make kernel-headers kernel-devel\r\n<\/pre>\n<p>This command installs Perl, GCC, Make, kernel headers, and kernel development packages, which are necessary for building and installing VMware Tools.<\/p>\n<h2>Step 3: Attach the VMware Tools ISO to the Virtual Machine<\/h2>\n<p>In the VMware Workstation or vSphere Client, perform the following steps:<\/p>\n<ol>\n<li>Select your virtual machine.<\/li>\n<li>Click on &#8220;VM&#8221; in the menu bar (or right-click the virtual machine), then choose &#8220;Install VMware Tools&#8221; or &#8220;Guest > Install\/Upgrade VMware Tools.&#8221;<\/li>\n<\/ol>\n<p>This action will mount the VMware Tools ISO file as a virtual CD-ROM drive inside the virtual machine.<\/p>\n<h2>Step 4: Mount the VMware Tools ISO<\/h2>\n<p>Create a directory to mount the VMware Tools ISO in the Linux guest operating system:<\/p>\n<pre>\r\nsudo mkdir -p \/mnt\/cdrom\r\n<\/pre>\n<p>Next, mount the ISO to the directory you created:<\/p>\n<pre>\r\nsudo mount \/dev\/cdrom \/mnt\/cdrom\r\n<\/pre>\n<h2>Step 5: Extract and Install VMware Tools<\/h2>\n<p>Copy the VMware Tools installer to a temporary directory:<\/p>\n<pre>\r\ncp \/mnt\/cdrom\/VMwareTools-*.tar.gz \/tmp\/\r\n<\/pre>\n<p>Go to the temporary directory:<\/p>\n<pre>\r\ncd \/tmp\r\n<\/pre>\n<p>Extract the VMware Tools installer:<\/p>\n<pre>\r\ntar xzvf VMwareTools-*.tar.gz\r\n<\/pre>\n<p>Go to the extracted VMware Tools directory:<\/p>\n<pre>\r\ncd vmware-tools-distrib\r\n<\/pre>\n<p>Run the installer:<\/p>\n<pre>\r\nsudo .\/vmware-install.pl -d\r\n<\/pre>\n<p>The -d flag sets the installer to use default settings. You can omit the -d flag if you want to customize the installation options.<\/p>\n<p>Example:<\/p>\n<pre># .\/vmware-install.pl\r\nCreating a new VMware Tools installer database using the tar4 format.\r\n\r\nInstalling VMware Tools.\r\n\r\nIn which directory do you want to install the binary files?\r\n[\/usr\/bin]\r\n\r\nWhat is the directory that contains the init directories (rc0.d\/ to rc6.d\/)?\r\n[\/etc\/rc.d]\r\n\r\nWhat is the directory that contains the init scripts?\r\n[\/etc\/rc.d\/init.d]\r\n\r\nIn which directory do you want to install the daemon files?\r\n[\/usr\/sbin]\r\n\r\nIn which directory do you want to install the library files?\r\n[\/usr\/lib\/vmware-tools]\r\n\r\nThe path \"\/usr\/lib\/vmware-tools\" does not exist currently. This program is\r\ngoing to create it, including needed parent directories. Is this what you want?\r\n[yes]\r\n\r\nIn which directory do you want to install the documentation files?\r\n[\/usr\/share\/doc\/vmware-tools]\r\n\r\nThe path \"\/usr\/share\/doc\/vmware-tools\" does not exist currently. This program\r\nis going to create it, including needed parent directories. Is this what you\r\nwant? [yes]\r\n\r\nThe installation of VMware Tools 9.4.0 build-1280544 for Linux completed\r\nsuccessfully. You can decide to remove this software from your system at any\r\ntime by invoking the following command: \"\/usr\/bin\/vmware-uninstall-tools.pl\".\r\n\r\nBefore running VMware Tools for the first time, you need to configure it by\r\ninvoking the following command: \"\/usr\/bin\/vmware-config-tools.pl\". Do you want\r\nthis program to invoke the command for you now? [yes]\r\n\r\nInitializing...\r\n\r\n\r\nMaking sure services for VMware Tools are stopped.\r\n\r\nStopping vmware-tools (via systemctl):                     [  OK  ]\r\n\r\n\r\nThe module vmci has already been installed on this system by another installer\r\nor package and will not be modified by this installer.\r\n\r\nThe module vsock has already been installed on this system by another installer\r\nor package and will not be modified by this installer.\r\n\r\nThe module vmxnet3 has already been installed on this system by another\r\ninstaller or package and will not be modified by this installer.\r\n\r\nThe module pvscsi has already been installed on this system by another\r\ninstaller or package and will not be modified by this installer.\r\n\r\nThe module vmmemctl has already been installed on this system by another\r\ninstaller or package and will not be modified by this installer.\r\n\r\nThe VMware Host-Guest Filesystem allows for shared folders between the host OS\r\nand the guest OS in a Fusion or Workstation virtual environment.  Do you wish\r\nto enable this feature? [no]\r\n\r\nThe vmxnet driver is no longer supported on kernels 3.3 and greater. Please\r\nupgrade to a newer virtual NIC. (e.g., vmxnet3 or e1000e)\r\n\r\nThe vmblock enables dragging or copying files between host and guest in a\r\nFusion or Workstation virtual environment.  Do you wish to enable this feature?\r\n[no]\r\n\r\nVMware automatic kernel modules enables automatic building and installation of\r\nVMware kernel modules at boot that are not already present. This feature can be\r\n\r\nenabled\/disabled by re-running vmware-config-tools.pl.\r\n\r\nWould you like to enable VMware automatic kernel modules?\r\n[no]\r\n\r\nNo X install found.\r\n\r\nCreating a new initrd boot image for the kernel.\r\nStarting vmware-tools (via systemctl):                     [  OK  ]\r\nThe configuration of VMware Tools 9.4.0 build-1280544 for Linux for this\r\nrunning kernel completed successfully.\r\n\r\nYou must restart your X session before any mouse or graphics changes take\r\neffect.\r\n\r\nYou can now run VMware Tools by invoking \"\/usr\/bin\/vmware-toolbox-cmd\" from the\r\ncommand line.\r\n\r\nTo enable advanced X features (e.g., guest resolution fit, drag and drop, and\r\nfile and text copy\/paste), you will need to do one (or more) of the following:\r\n1. Manually start \/usr\/bin\/vmware-user\r\n2. Log out and log back into your desktop session; and,\r\n3. Restart your X session.\r\n\r\nEnjoy,\r\n\r\n--the VMware team\r\n<\/pre>\n<h2>Step 6: Clean Up and Restart<\/h2>\n<p>After the installation is complete, remove the VMware Tools installer files:<\/p>\n<pre>\r\ncd \/tmp\r\nrm -rf vmware-tools-distrib VMwareTools-*.tar.gz\r\n<\/pre>\n<p>Unmount the VMware Tools ISO:<\/p>\n<pre>\r\nsudo umount \/mnt\/cdrom\r\n<\/pre>\n<p>Finally, reboot your virtual machine to complete the installation:<\/p>\n<pre>\r\nsudo reboot\r\n<\/pre>\n<h2>Alternative Installation<\/h2>\n<p>As another option, you can use yum to install the open-source implementation of VMware Tools, called Open VM Tools, on CentOS, RHEL, and other Red Hat-based systems. In fact, Open VM Tools is recommended by VMware for guest operating systems.<\/p>\n<p>Here&#8217;s a step-by-step guide to installing Open VM Tools using yum:<\/p>\n<h2>Step 1: Update Your System<\/h2>\n<p>First, update your system by running the following command:<\/p>\n<pre>\r\nsudo yum update\r\n<\/pre>\n<h2>Step 2: Install Open VM Tools<\/h2>\n<p>Now, install Open VM Tools using the following command:<\/p>\n<pre>\r\nsudo yum install -y open-vm-tools\r\n<\/pre>\n<p>This command installs the Open VM Tools package and its dependencies.<\/p>\n<h2>Step 3: Enable and Start the Open VM Tools Service<\/h2>\n<p>Once the installation is complete, enable and start the vmtoolsd service by running the following commands:<\/p>\n<pre>\r\nsudo systemctl enable vmtoolsd\r\nsudo systemctl start vmtoolsd\r\n<\/pre>\n<p>These commands enable the Open VM Tools service to start automatically at boot and start the service immediately.<\/p>\n<h2>Step 4: Verify the Installation<\/h2>\n<p>You can verify that Open VM Tools is running by executing the following command:<\/p>\n<pre>\r\nsystemctl status vmtoolsd\r\n<\/pre>\n<p>If the service is running correctly, you should see output indicating that the service is active and running.<\/p>\n<h2>Conclusion<\/h2>\n<p>There you go. You have successfully installed VMware Tools (Open VM Tools) using yum on CentOS, RHEL, and other Red Hat-based systems. With VMware Tools installed, your virtual machine will benefit from better performance, enhanced features, and easier management.<\/p>\n<p>Please feel free to leave comments and suggest improvements to this guide. Your feedback helps us improve our tutorials.<\/p>\n<h2>FAQ<\/h2>\n<ol itemscope itemtype=\"https:\/\/schema.org\/FAQPage\">\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What is the purpose of VMware Tools?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">VMware Tools is a suite of utilities that enhances the performance and management of VMware virtual machines. It enables features such as shared folders and clipboard sharing, and simplifies virtual machine management.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What are the prerequisites for installing VMware Tools?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">Before installing VMware Tools, ensure that your virtual machine is running and that you are logged in as a user with sudo privileges. Some packages like Perl, GCC, Make, kernel headers, and kernel development packages are also required for the installation.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What is the alternative to VMware Tools?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">An alternative to VMware Tools is Open VM Tools, which is an open-source implementation of VMware Tools. It is recommended by VMware for guest operating systems and can be installed using yum on CentOS, RHEL, and other Red Hat-based systems.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">How can I verify the installation of Open VM Tools?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">You can verify that Open VM Tools is running by executing the command &#8216;systemctl status vmtoolsd&#8217;. If the service is running correctly, you should see output indicating that the service is active and running.<\/span>\n            <\/p>\n<\/li>\n<li itemscope itemprop=\"mainEntity\" itemtype=\"https:\/\/schema.org\/Question\">\n<p class=\"fw-bold\" itemprop=\"name\">What should I do after installing VMware Tools?<\/p>\n<p itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n                <span itemprop=\"text\">After the installation of VMware Tools, it is recommended to reboot your virtual machine to complete the installation. This ensures that all changes take effect properly.<\/span>\n            <\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>VMware Tools is a suite of utilities that enhances the performance and management of VMware virtual machines. Installing VMware Tools on your guest Linux operating system can improve performance, enable&#8230;<\/p>\n","protected":false},"author":6,"featured_media":5411,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[996,1020,1083],"tags":[1244,1978,1713,1895],"class_list":["post-5403","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-oracle-linux-7","category-vmware","tag-centos","tag-open-vm-tools","tag-rhel","tag-vmware"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/5403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=5403"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/5403\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/5411"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=5403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=5403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=5403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}