Error "Unable to create deployment package" while trying to deploy a new VM and power on a VM in VMware Cloud Director
search cancel

Error "Unable to create deployment package" while trying to deploy a new VM and power on a VM in VMware Cloud Director

book

Article ID: 321901

calendar_today

Updated On: 05-26-2025

Products

VMware Cloud Director

Issue/Introduction

  • Unable to power on a Guest Customization enabled VM or VM's being deployed by a template and you see the below errors:

[ ********-****-****-****-********] Internal Server Error - java.util.concurrent.ExecutionException: com.vmware.ssdc.util.LMException: Unable to create deployment package. - com.vmware.ssdc.util.LMException: Unable to create deployment package. - Unable to create deployment package. - Failed to execute process [/opt/vmware/vcloud-director/deployPkg/deployPkg]. Standard Output: Log file creation failed. Not able to create directory: Permission denied: "/tmp/vmware-imc" Standard Error: Error : Log not started.

 

 

Environment

VMware Cloud Director 10.x

Cause

When trying to power on a VM with Guest Customization enabled in VCD, the deployPkg mentioned to generate a cab file which will contain the customization parameters that will be passed to the VM. So to do the required operations, /tmp file needs the permissions.

Resolution

  • Check the permissions of /tmp directory.
  • By default, the permissions of /tmp directory is: drwxrwxrwt 13 root root 320 Jul 7 07:31 tmp

If these permissions are modified—for example, by a user or a script—various operations may fail as a result.

There are 2 ways to resolve it:

  • Provide full permissions to /tmp.

          chmod 777 /tmp

OR

  • If you have a downtime, reboot of the vCD cell will restore the default permissions of /tmp folder to drwxrwxrwt 13 root root 320 Jul 7 07:31 tmp

Procedure

  1. Log in to each VMware Cloud Director appliance cell as root, either directly or via SSH.
  2. On each cell in the cluster, gracefully shut down the VCD service using the following command:: /opt/vmware/vcloud-director/bin/cell-management-tool cell -i $(service vmware-vcd pid cell) -s
  3. Perform reboot on all cells: reboot 



Additional Information