vCloud Director generates a default compute policy for all virtual data centers (VDCs). The default VDC compute policy contains only a name and description, and all remaining VDC compute policy attributes are empty.

You can also define another VDC compute policy as the default policy for an organization VDC. The default VDC compute policy controls the resource allocation and consumption of the virtual machines (VMs) that tenants create in the organization VDC, unless a tenant assigns another specific VDC compute policy to the VM.

To limit the maximum compute resources that tenants can allocate to individual VMs within an organization VDC, cloud providers can define a maximum VDC compute policy. When assigned to an organization VDC, the maximum VDC compute policy acts as an upper bound for the compute resource configuration for all VMs within the organization VDC. The maximum VDC compute policy is not available to tenant users when creating a VM. When you define a VDC compute policy as the maximum VDC compute policy, vCloud Director copies internally the content of the policy and uses the copied content as the maximum VDC compute policy. As a result, the organization VDC does not depend on the initially used VDC compute policy.

If you publish multiple VDC compute policies to an organization VDC, tenant users can select between all custom policies and the default policy when creating and managing VMs in the organization VDC.

The available VDC compute policy operations for cloud providers are the following:
  • Create a VDC compute policy.
  • Publish a VDC compute policy to one or more organization VDC.
  • Unpublish a VDC compute policy from an organization VDC.
  • Delete a VDC compute policy.

Users that have the ORG_VDC_MANAGE_COMPUTE_POLICIES right can create, update, and publish VDC compute policies. To create VDC compute policies, you use the vCloud API.

The following table lists the available VDC compute policy operations for tenant users.
Table 1. VDC Compute Policy Operations for Tenant Users
Operation Description
Assign a VDC compute policy to a VM during a VM creation. Tenant users that are authorized to create VMs in an organization VDC can optionally assign VDC compute policies to VMs. As a result, the parameters defined in the VDC compute policy control the CPU and memory consumption of the VM. Assigning a VDC compute policy is not a requirement for tenants during a VM creation. If a tenant does not explicitly select a VDC compute policy to assign to a VM, the default VDC policy is applied to the VM. Tenant users can assign a VDC compute policy to a VM during a VM creation using the vCloud Director Tenant Portal.
Assign a VDC compute policy to an existing VM. Tenant users that are authorized to manage VMs in an organization VDC can update the association between a VM and a VDC compute policy. As a result, the system reconfigures the VM to consume compute resources as specified in the new VDC compute policy. Tenant users can assign a VDC compute policy to existing VM using the vCloud Director Tenant Portal.
By using VDC compute policies, cloud providers can restrict the compute resources consumption for all VMs within an organization VDC to, for example, three predefined sizes, for example Small Size, Medium Size, and Large Size. The workflow is the following.
  1. A system administrator creates three VDC compute policies with the following attributes:
    Name Attributes
    Small Size
    • Description: Small-sized VM policy
    • Name: Small Size
    • Memory: 1024
    • Number of vCPUs: 1
    Medium Size
    • Description: Medium-sized VM policy
    • Name: Medium Size
    • Memory: 2048
    • Number of vCPUs: 2
    Large Size
    • Description: Large-sized VM policy
    • Name: Large Size
    • Memory: 4096
    • Number of vCPUs: 4
  2. Publish the new VDC compute policies to an organization VDC.

    Publishing a VDC compute policy to an organization VDC makes the policy available to tenant users in the organization VDC.

  3. Optionally define one of the VDC compute policies as a default VDC policy for the organization VDC.

    If you define a default policy for the organization VDC, and if the tenant users do not specify another policy during the creation of a VM, the default policy is applied to the VM.

To view and modify VDC compute policies, you must use the vCloud API.