Overview
Installing VMware Tools manually from the ISO image (1003910) Last Updated: 9/28/2012 Categories: Troubleshooting. VMware Tools installation errors before completion. VMware Tools installation fails to complete. Unable to complete VMwareTools installation. Download CentOS VM virtual machine (VHD, VDI, VMDK) images for VMware and VirtualBox and run CentOS inside your primary operating system.
This procedure installs the open source version of VMware Tools (open-vm-tools
) and then compiles and installs the HGFS driver which allows use of VMware's native shared folder support. It is specifically for use with the official CentOS Vagrant boxes published at https://app.vagrantup.com/centos.
Requirements
- Most versions of VMware and Vagrant should work with these instructions. The latest version of the Vagrant VMware plugin should always be used.
Tested versions (MacOS)
Component | Version |
---|---|
CentOS box | 1809.01 |
VMware Fusion Pro | 10.1.3 |
Vagrant | 2.1.5 |
Vagrant VMware Desktop Plugin | 2.0.0 |
Windows support
Download Centos Iso For Vmware
This procedure is no longer tested directly on a Windows host.
The steps have remained largely unchanged for several years, and are expected to remain valid until at least the next major release of RHEL/CentOS.
Host preparation
- Copy the VMware Tools installer from the VMware application folder to the guest. The default locations for the installer are:
/Applications/VMware Fusion.app/Contents/Library/isoimages/linux.iso
(MacOS)C:Program Files (x86)VMwareVMware Workstationlinux.iso
(Windows)
- Use
vagrant rsync
(MacOS) or a SMB synced folder (Windows) to copy the iso into the guest's/vagrant
directory
Commands to run within Vagrant guest
Update and reboot (if needed)
This is only required if the kernel has been updated since the box was released, so that the kernel-devel
package matches the running kernel version
Install the EPEL repository (CentOS 6 only)
Install the open source tools package
This provides all VMware functionality except for the HGFS driver required for synced folders:
Centos 7 Download For Vmware
Install build dependencies
Mount the installer iso and extract it to /tmp
Download Vmware Tools Iso Image
Install VMware Tools
Both --force-install
and --default
are required to avoid prompting, as we have already installed open-vm-tools
. See https://kb.vmware.com/kb/2126368 for more details:
Cleanup
Create a new shared folder using VMware shared folders
It currently isn't possible to override the default rsync synced_folder
for /vagrant
(this is a known issue). As a workaround, use a different name for the mount point in the guest, by adding a line like this to the Vagrantfile
before the final end
: