"Error: Cannot complete customization, possibly due to scripting runtime error or invalid script parameters(Error Code:-126)" during IP customization Linux VMs
search cancel

"Error: Cannot complete customization, possibly due to scripting runtime error or invalid script parameters(Error Code:-126)" during IP customization Linux VMs

book

Article ID: 317494

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite) VMware Live Recovery

Issue/Introduction

Symptoms:

This issue was noticed on Ubuntu VM.

Error: Cannot complete customization, possibly due to scripting runtime error or invalid script parameters(Error Code:-126). IP settings may have been partially applied
 
vmware-dr.log at recovery site:
---------------
 
IP customization failed for VM Ubuntu-14-04[vm-22](dr.recovery.fault.IPCustomizationFailure)
commandLine = "echo "Starting IP customization on Linux ..." >> "$VMware_GuestOp_OutputFile"
 
 
/tmp/vmware-ubuntu/srm-vmware142/wrapper.sh:44 /tmp/vmware-ubuntu/srm-vmware142/wrapper.sh: /tmp/vmware-ubuntu/srm-vmware142/linuxDeployPkg: Permission denied
--> Exit code: 126
 
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.  
 
--> return = 126


Environment

VMware vRealize Application Services 6.x
VMware Live Site Recovery 9.x

Cause

1. This issue occurs in Linux virtual machines when the /tmp directory is mounted with the noexec option for security reasons
 
2. We can verify this by reading following file on guest operating system: cat /etc/fstab.

Resolution

There are 2 possible solutions

  1. Open services.sh for vmware tools: sudo vi /etc/vmware-tools/services.sh
  2. Add following line on initial portion of the file(Before "BEGINING_OF_UTIL_DOT_SH"): export TMPDIR=/var/vmtmp
  3. Save changes and exit. Create a vmtmp directory: sudo mkdir /var/vmtmp
  4. Restart VMware tools service: sudo /etc/vmware-tools/services.sh restart
 
Edit /etc/fstab and remove noexec. Changes to this file requires a reboot
 
Note: Directories, sudo commands and files are specific to Ubuntu guest operating system. This might be different on other flavors of linux