Application Services agent bootstrap problems causes a deployment to fail.

Problem

One of the following error messages appears when you deploy or update an application to the cloud environment and the deployment or update process fails.

  • Run failed due to failure of task (node name, agent_bootstrap).
  • Agent did not respond while running task agent_bootstrap on the node LoadBalancer. Please check the agent logs located at /opt/vmware-appdirector/agent/logs/ on the VM LoadBalancer
    Agent did not respond while running task agent_bootstrap on the node
    

    In the Event Viewer of the Windows-based virtual machine, another error message appears.

    A timeout was reached (30000 milliseconds) while waiting for the VMware vCloud Application Director agent bootstrap service service to connect.
  • During the deployment or update process, an error appears if the password in the template expired.

    The VMware vCloud Application Director agent bootstrap service failed to start due to the following error:
    The service did not start due to a logon failure.
    

Results

The deployment failed because of one of the following reasons.

Cause

Solution

Agent bootstrap script is not present on the virtual machine template. See Using Application Services.

View the Application Services agent logs.

  • For a deployed Linux-based virtual machine, navigate to the /opt/vmware-appdirector/agent/logs directory.

  • For a Windows-based virtual machine, navigate to the files at \opt\vmware-appdirector\bootstrap.log and \windows\system32\darwin-agentDate.log.

Application Services does not limit the amount of memory that you can allocate for virtual machines during deployment.

Insufficient memory allocation might disrupt the virtual machine operating system boot sequence.

Resolve the resource allocation problem.

  • Increase the CPU or RAM resources on the virtual machine.

  • For specific hardware and system requirements, see the operating system documentation.

  • Deploy the application to a cloud environment with adequate resources.

The agent bootstrap service on the Windows-based virtual machine does not restart within the 30 seconds limit causing a time out error message.

For the Application Services agent bootstrap service, set the Windows Recovery actions for the First failure, Second failure, and Subsequent failures to Restart the Service.

The darwin user password within the template has expired.

Update the darwin user password in the template. You can also create a password that does not expire.

Agent does not have network connectivity with the Application Services server and provisioned virtual machine.

Run network diagnostics to verify that you can ping the Application Services server from the virtual machine.

The NAT networking rules are not configured properly on the routed organization network in vCloud Director.

For the routed organization network, see the vCloud Director documentation to configure SNAT rules.

On Linux operating systems, the vCloud Automation Center guest agent service did not start.

  1. Change directory to the vCloud Automation Center guest agent service cd/usr/share/gugent . ./rungugent.sh rpm -qa | grep dmidecode.

  2. Install the missing dmidecode package rpm -i dmidecode-2.11-2.el6.x86_64.rpm/dmidecode-2.11-2.el6.i686.rpm .