Search the VMware Knowledge Base (KB)
View by Article ID

ISO image entry might not be removed from the VMX file after installing VMware Tools on a virtual machine (2076512)

  • 4 Ratings


After you install VMware Tools on a virtual machine running on an ESXi host, the ISO image entry might not be removed from the VMX file even though the CD has been ejected and the CD-ROM has been disconnected.


To prevent this issue from occurring in future, apply the following patch:

Note: This patch resolves the issue for newly created virtual machines. For existing virtual machines, where the virtual machine configuration files (.vmx) contains an ISO image entry, run the script to identify and remove the entry as described below.

To work around the issue if you cannot upgrade or for existing virtual machines with mounted ISOs, run the script.

First, copy the attached script to the root directory of an ESX/ESXi host in your environment using a suitable tool (For example, WinSCP, Filezilla, and so on).

To run the script locally on a host where you are logged in as root, run this commands:

  1. cd /
  2. chmod 755
  3. ./ -f /usr/lib/vmware/isoimages/linux.iso,/usr/lib/vmware/isoimages/windows.iso
To run the script on a different host with username and password, run these commands:
Note:  Ensure that the script is run by the root user only.
  1. cd /
  2. chmod 777
  3. ./ –h <hostname> -u <username> -p <password> -f usr/lib/vmware/isoimages/linux.iso,/usr/lib/vmware/isoimages/windows.iso

Note: In the above mentioned commands, replace linux.iso with solaris.iso for Solaris machines and replace linux.iso with freebsd.iso for FreeBSD machines.

For help, run this command:

./ --usage

Additional Information

For translated versions of this article, see:


Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.


  • 4 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)

Please enter the Captcha code before clicking Submit.
  • 4 Ratings