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 cdrom_iso_line.py 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 cdrom_iso_line.py script.
First, copy the attached cdrom_iso_line.py 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:
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.