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
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)
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.
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.
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:
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:
| 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:
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