Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

Cannot compose a vApp or add a virtual machine to a vApp after upgrading from vCloud Director 1.x to 1.5 (2007019)

Symptoms

After upgrading from vCloud Director 1.x to 1.5, you experience these symptoms:
  • Unable to compose vApps from a template
  • Composing vApps fails
  • You see the error:

    Invalid computer name: Computer name can only contain alphanumeric characters, hyphens and underscores, and must not contain only digits.

  • In the vCloud Director logs, you see the error:

    com.vmware.vcloud.api.presentation.service.BadRequestException: Invalid computer name: Computer name can only contain alphanumeric characters, hyphens and underscores, and must not contain only digits.

  • Unable to add a new virtual machine to the vApp
  • Adding a new virtual machine to a vApp using the template which contains virtual machine computer name with underscores or dots fails

NOTE: This issue is resolved in vCloud Director 1.5.1.

Cause

This issue occurs if the computer name of the virtual machine in the vApp template has underscores, dots, or both.

Resolution

To workaround this issue, change the computer names of the virtual machines that cause this issue and remove the underscores and dots from the name.

Note: Changing the computer name of the virtual machine in a vApp template cannot be done from the UI and can only be done by updating the database.

For example, to replace underscores or dots with hyphens in all virtual machines in vApp templates, use an update statement similar to:

update VM set computer_name=TRANSLATE (computer_name,'_.','--') where id in (select id from VM where SG_ID in (select SG_ID from VM_CONTAINER where SG_TYPE=2));
commit;

Note: Use only a hyphen or an alphanumeric character (A-Z and 0-9) to replace the underscore or dot.
 
Alternatively, try these steps:
  1. Identify the vApp template which has the virtual machine with computer name containing underscores and dots.
  2. Right click the vApp template and click Add to My Cloud....
  3. Open the vApp and select the virtual machine.
  4. Right-click the virtual machine and click Properties.
  5. In the General tab, change the computer name to a name that does not include underscores or dots.
  6. Repeat Steps 3-5 for other virtual machines in the vApp.
  7. Click vApps in the left pane of the window to view all vApps.
  8. Right-click the modified vApp and and click Add to Catalog...

See Also

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 1 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
  • 1 Ratings
Actions
KB: