Skip to content

Catalog Management ​

Introduction ​

Catalogs in vCloud Director are centralized libraries used to store and manage reusable VM templates. They enable standardized and accelerated deployment of virtual machines across your organization.

There are two types of catalogs:

  • Organization Catalogs – Visible only within your own organization
  • Published/Public Catalogs – Shared and maintained by Swisscom

Benefits of Using Catalogs: ​

  • Ensure consistency across VM deployments
  • Speed up provisioning using pre-configured templates
  • Easily distribute updated base images or utilities
  • Support versioning, import/export, and sharing of catalog items

Catalogs are an essential part of efficient VM lifecycle management in vCloud Director.

Prerequisites ​

You must have at least one Virtual Datacenter (vDC) available.

Create a Catalog ​

INFO

If the catalog should be shared with other Organisazions it should be created from the sub Provider.

1. Navigate to the Catalogs Section ​

Go to Content Hub → Catalogs → NEW

2. Fill Out the Form ​

Provide a name for the new catalog, choose the "wms-template-storage" for your new catalog.

INFO

The "wms-template-storage" was specially created for faster deployment from all locations.

Share a Catalog ​

WARNING

Sharing of catalogs should be made from sup provider.

1. Navigate to the Catalog and Open the Share Option ​

After creating the catalog, it can be shared.

Go to Content Hub → Catalogs, click on the three dots next to the catalog, and choose Share.

2. Configure Sharing Settings ​

Click on the tab Organizations. Here are different options to share the catalog. We choose "Share with all provider-managed organizations" so the catalog will be shared automatically wit all organizations.

it would also be possible to share the catalog only with some of the organizations.

INFO

After clicking Save, the organizations gain access to the catalog and can use the templates it contains.

Upload an OVA/OVF from the Browser ​

1. Choose the Target Catalog ​

Navigate to Content Hub → Catalogs, then select the catalog where the OVA/OVF will be uploaded.

2. Add a Template ​

Click on vApp Templates → ADD

Select the Browse option, then click Upload to select the OVA file from your local machine.

Click Next to continue.

3. Verify Template Information ​

A summary of the OVA’s content will be displayed. Review the details and click Next.

4. Set Template Name ​

Give the template a name. A description is optional.
Ensure the correct catalog is selected.

Click Next again.

Finally, review the summary and click FINISH to start the upload process.

INFO

vCloud Director will now validate the OVA. If it's valid, the upload will begin.
You can track progress in the Recent Tasks section in the VCD interface.

Upload an OVA/OVF from an S3 Bucket ​

INFO

vCloud Director supports importing OVF templates via remote URLs. This allows you to host VM templates in external object stores like S3, enabling dynamic, URL-based imports.

1. Prepare the OVF Package ​

  • Ensure the image is in OVF format (not OVA).
  • The OVF package must include:
    • .ovf descriptor
    • one or more .vmdk files
    • (optionally) a .nvram file

TIP

If you only have an .ova file, extract it first:

sh
tar -xvf file.ova

2. Upload OVF Files to S3 ​

  • Upload the .ovf and .vmdk files to your Swisscom S3 bucket.
  • Example S3 path: s3://templates-ovf/SLES12-SP1/

3. Generate Pre-Signed URLs ​

Use AWS CLI to generate temporary access links:

sh
# Example (expires in 7 days)
aws s3 presign s3://templates-ovf/SLES12-SP1.ovf --expires-in 604800
aws s3 presign s3://templates-ovf/SLES12-SP1-disk1.vmdk --expires-in 604800

Make sure your AWS CLI is configured with Swisscom-compatible settings.


4. Modify the OVF File to Use Pre-Signed URLs ​

vCloud Director requires a specific URL format for VMDK references.

Update the .ovf file as follows:

  • Replace each VMDK <File ovf:href=...> with the modified URL:
    • Replace & with &amp;
    • Replace %2F with /
    • Remove the domain prefix

Example:

xml
<File ovf:href="SLES12-SP1-disk1.vmdk?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=...&amp;X-Amz-Date=...&amp;X-Amz-Expires=...&amp;X-Amz-Signature=..." ovf:id="file1" ovf:size="1234567890"/>

5. Upload the Modified OVF Back to S3 ​

  • Overwrite or upload the modified .ovf file to the same location.
  • Generate a new pre-signed URL for the updated .ovf.

6. Import the OVF into vCloud Director ​

  1. Open vCloud Director
  2. Go to Content Hub → Catalogs → [Your Catalog] → vApp Templates → ADD
  3. Choose “From URL”
  4. Paste the pre-signed URL of the modified .ovf file
  5. Fill in the name and description
  6. Click NEXT, then FINISH

7. Add Template Icon (Optional) ​

  1. Go to Content Hub → Catalogs → vApp Templates → [Template] → Metadata
  2. Click EDIT → ADD
  3. Add the following metadata:
    • Key: icon-base64
    • Value: Base64-encoded image string (see below)
    • User Access: Read Only

Example:

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA...

Use this tool to convert an image to base64: https://www.base64-image.de


WARNING

Make sure pre-signed URLs remain valid until the import completes. Expired or incorrectly modified URLs will result in silent failures or import errors.

Setting a Machine Prefix at the Template Level for VM Names ​

You can define custom machine prefixes for automatically generated VM names directly at the template level in vCloud Director.
This allows each template to generate VM names with a specific prefix, making them easier to identify and manage.


Steps ​

  1. Open vCloud Director.

  2. Navigate to:
    Content Hub → Catalogs → [Your Catalog] → vApp Templates

  3. Select the template you want to configure.

  4. Open the Metadata tab.

  5. Click Add to create a new metadata entry.

    FieldValueDescription
    NamemachinePrefixKey name for the prefix setting.
    Value(Your desired prefix) e.g. winserverPrefix used to generate VM names. e.g. winserver. VM name will be generated as winserver10001 when this template is used.
    TypeTextData type for the metadata value.
    User AccessRead/WriteEnsures users can view and edit this value if needed.

Example ​

If you set: machinePrefix = winserver Then VMs created from this template will automatically be named like: winserver10001, winserver10002

WARNING

The value should not exceed more than 10 characters!