Error - Cannot complete customization, possibly due to a scripting runtime error or invalid script parameters (Error code: -1). IP settings may have been partially applied.vmware-dr.log log file on the SRM server, you see entries similar to:[00632 error 'Recovery' ctxID=27dcf3a7] [recovery-plan-3198.ipCust-protected-vm-3133-IPCustomization] Guest command on VM: [vim.VirtualMachine:vm-232] failed with exit code: 1
[02956 trivia 'Recovery' ctxID=27dcf3a7]<msg>Cannot complete customization, possibly due to a scripting runtime error or invalid script parameters (Error code: 1). IP settings may have been partially applied.</msg>VMware Site Recovery Manager 8.x
VMware Live Site Recovery 9.x
%TEMP% or temporary folder within the guest operating system on the SRM server is changed from the default value and the new folder does not exist.%TEMP% in Microsoft Windows is C:\windows\temp.%TEMP%, the guest operating system does not check if the folder exists. For example, if you change the default value of %TEMP% from C:\windows\temp to C:\temp, you do not see an error if C:\temp does not exist.%TEMP%. If this folder does not exist, guest customization fails./tmp directory is mounted with the noexec option for security reasons./tmp. If this file cannot be executed, guest customization fails.To resolve the issue in a Windows virtual machine:
%TEMP% exists and can be written to.%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.To resolve the issue in a Linux virtual machine:
findmnt -l | grep noexec
To fix issue on an individual Linux VM:
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:
Note: Any modification to the VMware Tools initialization script will need to be reapplied when VMware Tools is upgraded.