Windows
To resolve the issue in a Windows virtual machine:
Ensure that the new directory for
%TEMP%
exists and can be written to.
Note: The
%TEMP%
variable is case sensitive. If it is set to
C:\Windows\TEMP
, but the real path is
C:\Windows\Temp
, guest customization will fail.
Linux
To resolve the issue in a Linux virtual machine:
Allow files in the
/tmp
directory to be executed by removing the
noexec
option. This option can be removed by editing the /etc/fstab (as root) using 'vi' editor.
To work around this issue without changing the security options on the
/tmp
directory:
- In the Linux virtual machine, open the VMware Tools initialization script using a text editor. The initialization script may be found in different locations depending on how VMware Tools was installed and configured on your system.
- For systems using upstart (see 2015685 ), the initialization script will be one of the following:
* /etc/init/vmware-tools.conf. The command overview is in init(8) and the syntax is described in init(5).
* /etc/init/vmware-tools, which calls /etc/vmware-tools/services.sh
- For systems that do not use upstart, the initialization script will be one of:
* /etc/init.d/vmware-tools
* /etc/init.d/vmware-tools-services.sh
One you have located the initialization script, add this line:
export TMPDIR=/new/desired/path
For example:
main()
{
export TMPDIR=/var/vmtmp
In this example, a new tmp directory called vmtmp was created. SRM will use this temp directory when applying guest customization.
Note: To specify an alternative temporary directory in RHEL7-based guests, add the following entry to the [Service] section of the systemd unit file for the service (usually in /usr/lib/systemd/system):
Environment="TMPDIR=/var/vmtmp"
- Restart the VMware Tools service using whichever command is present on your system:
# /etc/init.d/vmware-tools restart
# /etc/init.d/vmware-tools-services.sh restart
# /etc/vmware-tools/services.sh restart
This forces a reload of the VMware Tools configuration file.
Note: Any modification to the VMware Tools initialization script will need to be reapplied when VMware Tools is upgraded.