In vCloud Director 9.7 compute policies were introduced to offer/manage the T-shirt sizing of the VMs which i have covered in detail in my this post, in vCloud Director 10 similar concept has been brought in to GUI , which is now easy to implement & manage and in vCD 10 this is being called “Sizing Policy”
So from Cloud Provider prospective VM sizing policy defines the compute resource allocation for virtual machines within an organization VDC. Sizing policy allow provider to control the following aspects of compute resources consumption at the virtual machine level:
- Number of vCPU, vCPU clock speed, reservations, limits and shares
- Amount of memory allocated to the virtual machine , reservation, limits and shares.
Create T-Shirt Sizes:
Let’s create few example T-Shirt sizing policies:
- Policy Name – X1
- Description: Small-size VM policy Memory: 1024 Number of vCPUs: 1
- Name: X1
- Memory: 1024
- Number of vCPUs: 1
- Policy Name – X2
- Description: Medium-size VM policy Memory: 2048 Number of vCPUs: 2
- Name: X2
- Memory: 2048
- Number of vCPUs: 2
- Policy Name – X3
- Description: Large-size VM policy Memory: 4096 Number of vCPUs: 4
- Name: X3
- Memory: 4096
- Number of vCPUs: 4
- Policy Name – X4
- Description: X-Large-size VM policy Memory: 8192 Number of vCPUs: 8
- Name: X4
- Memory: 8192
- Number of vCPUs: 8
Create T-Shirt Sizing policies:
- Cloud Provider Administrator, logins to vCloud Director and go to “VM Sizing Policies” and Click on “New” to create new policy
- Name and describe the policy as per above example and move to Next.
- In next section enter CPU related parameters , in this example i am choosing “vCPU Count” , providers can choose based on their requirement and leave it all blank as none of the fields are mandatory.
- In next section enter Memory related parameters , in this example i am choosing only “Memory”, providers can choose based on their requirement and leave it all blank as none of the fields are mandatory.
that’s it , so simple to create policies , follow the same step to create multiple policies as per above example.
Publish Created Policies:
vCloud Director system administrators create and manage VM sizing policies at a global level and can publish individual policies to one or more organization VDCs.
so above step we have created polices , we need to publish these policies to organisation VDC’s.
- Select Cloud Resources then click on Organization VDCs and go inside an organization VDC
- Inside VDC , go to VM Sizing Policies and click on Add
- Select the policies that you want to make available for a Particular oVDC/Tenant
- You can set policies as default policies, which will make policy appear as the default choice for the tenants during a VM and vApp creation and VM edit.
Once polices published to organisation’s VDC, when tenant user logins and try to deploy a new VM , he/she now see options to chose T-Shirt sizes with their descriptions and if user does not choose any policy , it will pickup default policy and i showed you how to setup default policy.
Tag Template with T-Shirt sizes
So while cloud providers can control sizing of new virtual machines, how about Templates ?
vCloud Director helps providers to achieve this by associating the VMs of a vApp template with specific VM sizing policies, Providers/tenant can tag individual VMs of a vApp template with the policies you want to assign.
To Tag template to a particular sizing policy, you need to login to org and then go to Libraries, and select vApp Templates from the left panel.
Click on particular template/highlight the template and select Tag with Compute Policies.
“TAG WITH COMPUTE POLICIES” gives two options to tag with:
- VM Placement Policies – which allows VM to deploy in to particular cluster.
- VM Sizing Policy – As explained in this Post, so when user will try to deploy a VM from template, it will get deployed according to “VM Sizing Policy”
This completes the process , gain control of your cloud offerings.