VMware Cloud Community

VCD 1.0 Guest Custom error (RHEL)

I am getting an error when I attempt to start a vm that is RHEL if I turn on Guest Customization.

Internal Server Error
- Unable to start vApp "vApp_chris_5".
- Unable to start virtual machines in resource pool "1391255196-Cloud_GOLD".
- Unable to create deployment package.CODE[ErrExternalCommand] Failed to execute process [/opt/vmware/cloud-director/deploymentPackageCreator/deploymentPackageCreator].

I am not sure what to check, I know for windows the package creator was used to make the "windows_deployment_package_sysprep.cab" but I was under the impression nothing needed to be done for linux guests.

Tools are installed, and VCD shows the tools version as 8295 for the VM.

Cell.log get nothing at all in it when this error happends.

(edit - added info)

If I try to run the deploymentPackageCreator myself get error - not sure if this is normal.

[root@vcloudcell1 deploymentPackageCreator]# pwd

[root@vcloudcell1 deploymentPackageCreator]# ./deploymentPackageCreator
./deploymentPackageCreator: error while loading shared libraries: libCreatePkg.so: cannot open shared object file: No such file or directory

[root@vcloudcell1 deploymentPackageCreator]# ls -la
total 15540
drwxr-xr-x  2 vcloud vcloud     4096 Apr 26 17:16 .
drwxr-xr-x 19 vcloud vcloud     4096 Apr 26 17:20 ..
-rwxr-xr-x  1 vcloud vcloud     4791 Jan 29  2011 createSysprepPackage.sh
-rwxr-xr-x  1 vcloud vcloud    20729 Jan 29  2011 deploymentPackageCreator
-rwxr-xr-x  1 vcloud vcloud 15827401 Jan 29  2011 libCreatePkg.so

(edit2 : another thing tried)

Workaround: Enable text-relocation for the shared library used by the  script. Run following command as root after vCloud Director  is installed: chcon -t textrel_shlib_t '/opt/vmware/cloud-director/deploymentPackageCreator/libCreatePkg.so'

  * this did not help

(edit3: more log data)

From vcloud-container-info.log

2011-10-05 19:06:19,499 | ERROR    | akimbitask-0              | ProcessWrapper                 | Failed to execute /opt/vmware/cloud-director/deploymentPackageCreator/deploymentPackageCreator /opt/vmware/cloud-director/deploymentPackageCreator/deploymentPackageCreator /opt/vmware/cloud-director/guestcustomization/unix /opt/vmware/cloud-director/guestcustomization/unix_deployment_package.tar.gz /bin/sh /tmp/.vmware/linux/deploy/customize-guest.sh start 0 |
2011-10-05 19:06:19,499 | ERROR    | akimbitask-0              | ProcessWrapper                 | Standard Error: DeployPkg_CreateFilePackage failed with unknown error
2011-10-05 19:06:19,499 | ERROR    | akimbitask-0              | ProcessWrapper                 | Standard Output:  |
2011-10-05 19:06:19,499 | ERROR    | akimbitask-0              | ProcessWrapper                 | Exit Code: 1 |
2011-10-05 19:06:19,500 | ERROR    | akimbitask-0              | DRSClusterDeploymentBucket     | --- DRS deployment failed in Async section |
com.vmware.ssdc.util.LMException: Unable to create deployment package.
        at com.vmware.vcloud.val.customization.internal.impl.DeploymentPackage.createDeploymentPackage(DeploymentPackage.java:95)
        at com.vmware.vcloud.val.customization.internal.impl.DeploymentPackage.BuildDeploymentPackage(DeploymentPackage.java:121)
        at com.vmware.vcloud.val.customization.internal.impl.DeploymentPackage.DeployPackage(DeploymentPackage.java:137)
        at com.vmware.vcloud.val.internal.impl.VC20VirtualServer.pushDeploymentPackage(VC20VirtualServer.java:2679)
        at com.vmware.ssdc.backend.ClusterDeploymentBucket.CustomizeVMs(ClusterDeploymentBucket.java:135)
        at com.vmware.ssdc.backend.DRSClusterDeploymentBucket._AsyncDeploy(DRSClusterDeploymentBucket.java:265)
        at com.vmware.ssdc.backend.DRSClusterDeploymentBucket$2.invoke(DRSClusterDeploymentBucket.java:161)
        at com.vmware.ssdc.backend.CAkimbiTask._invokeChildUnsafe(CAkimbiTask.java:119)
        at com.vmware.ssdc.backend.CAkimbiTask.access$400(CAkimbiTask.java:39)
        at com.vmware.ssdc.backend.CAkimbiTask$InvokeChildThread.innerRun(CAkimbiTask.java:242)
        at com.vmware.ssdc.backend.CAkimbiTask$InvokeChildThread.access$200(CAkimbiTask.java:168)
        at com.vmware.ssdc.backend.CAkimbiTask$InvokeChildThread$1.run(CAkimbiTask.java:183)
        at com.vmware.ssdc.backend.CAkimbiTask$InvokeChildThread$1.run(CAkimbiTask.java:175)
        at com.vmware.vcloud.common.threadpool.ThreadContextExecutor.execute(ThreadContextExecutor.java:36)
        at com.vmware.ssdc.backend.CAkimbiTask$InvokeChildThread.run(CAkimbiTask.java:194)
Caused by: Standard Output:

Standard Error:DeployPkg_CreateFilePackage failed with unknown error

Note: I have tried to run this by hand myself as "root" on two different vcloud 1.0 systems, and on a vcloud 1.5 server.  Same error - All are RHEL 5.4 as supported by VCD.

ChrisF (VCP4, VCP5, VCP-Cloud) - If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
0 Kudos
1 Reply

I have been working with support and PART of the issue has been found - but something is still going on.

to get the deploymentPackageCreator to run via a command line WITHOUT getting a .so library error the following must be done:

export LD_LIBRARY_PATH=/opt/vmware/cloud-director/deploymentPackageCreator

once that is done the command line run of the deploymentPackageCreator will run and tell you it wants 4 paramaters.


However looking in the vcloud-director-info.log we can see that the command that is trying to be run is VERY wrong looking:

From Log:

| Failed to execute  /opt/vmware/cloud-director/deploymentPackageCreator/deploymentPackageCreator   /opt/vmware/cloud-director/deploymentPackageCreator/deploymentPackageCreator  /opt/vmware/cloud-director/guestcustomization/unix  /opt/vmware/cloud-director/guestcustomization/unix_deployment_package.tar.gz  /bin/sh /tmp/.vmware/linux/deploy/customize-guest.sh start 0 |

It looks like it is trying to run:


PARAM1: /opt/vmware/cloud-director/deploymentPackageCreator/deploymentPackageCreator

PARAM2: /opt/vmware/cloud-director/guestcustomization/unix

PARAM3: /opt/vmware/cloud-director/guestcustomization/unix_deployment_package.tar.gz

PARAM4: /bin/sh

PARAM5: /tmp/.vmware/linux/deploy/customize-guest.sh

PARAM6: start


From what I can tell PARAM1, PARAM 4, PARAM5 should not be included?  Or need something wrapped around them or something...

Does anyone have a log that shows the command for deploymentPackageCreator that WORKS for GuestCustimization of a linux system?

Cell is running opn RedHat

ChrisF (VCP4, VCP5, VCP-Cloud) - If you find this or any other answer useful please consider awarding points by marking the answer correct or helpful
0 Kudos