VMware Cloud Community
jherry
Contributor
Contributor

Customization script not run on Linux

I'm trying to run a simple script on a Linux based VM.

See the configuration in cutscript.jpg

When I do "Power On and Force Recustomization" the script is not executed.

How does it work? Where is the script saved? When should it be executed?

Thank you.

0 Kudos
3 Replies
jgiland
Enthusiast
Enthusiast

I ran in to a similar issue with Linux guests, mainly Redhat and Ubuntu.  The issue was that the VMware Tools installation did not symlink a file to the correct location.  I also found that this happens when installating VMware Tools from the linux repos provided by VMware and not when installing from source.  I posted about this on my blog:

http://virtual-grind.com/2010/12/10/vmware-customization-errors-with-linux-guest-operating-systems/

0 Kudos
bercheg
Contributor
Contributor

thanks jgiland for your response!

This seems to match an issue now referenced into http://kb.vmware.com/kb/1025885 and fixed in ESX 4.0 update 1.

I'm observing this when trying to deploy a vApp created with vmware studio 2.1.0.1318 Build 268792 and using an ESXi 4.0.0 to create the vApp template, and deploying on a vCloud director running on top of a ESXi 4.0.0 host.

Moreover the vmware studio 2.0 developper guide at http://www.vmware.com/support/developer/studio/studio20/studio_developer.pdf mentions on p43  "After deploying a VM with this type of VMware Tools installed, users should not run Install VMware Tools on their virtualization platform, because doing so overwrites the existing VMware Tools in the VM, and the differences in format could cause installation failure or runtime errors."

So I guess this is not great to try to fix the vmware tools from vCloud director on a vApp packaged from vmware studio.

Did you find any workaround to fix this automatically in the vApp without manually copying/symlinking  /usr/lib/vmware-tools/lib32/libDeployPkg.so ? I guess the fix is to upgrade to ESXi 4.0 update 1. I'm not sure whether this is only necessary in the ESX controlled by cloud director to host the vApp, or also in the ESX used by vmware studio to create the vApp template.

Any thoughts on this would be useful.

Thanks in advance,

Guillaume.

0 Kudos
bercheg
Contributor
Contributor

Weird, the libDeploy.so does not exist at all on the VM from the Vapp template created from the vmstudio 😞

0 Kudos