Hi,
This is a peculiar problem which I thought of asking. If I have a license to create VMs using vsphere upto 10 CPU. So if the user tries to create VMs having more than 10 CPU, it will fail. Is there a API to find the max licensed CPU for the user?
Yes, you can take a look here - http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.wssdk.apiref.doc_50%2Fvim.LicenseMan...
This information is reflected in the ESXi host under "License Features" and you should see a feature for n-way Virtual SMP for the # of CPUs that you could assign to a VM
If I click esx host on vcenter 5.0 and go to configuration tab. Click Licensed Features I found that product feature: Upto 16-way virtual CMP. Does this corresponds to 16 vCPU can be assigned to a single VM at max? Does this comes as part of key value pair LicenseManagerLicenseInfo?
Here is one more thing.
For 32-way vitual SMP, I can create max 8cpu with 2 cores VM or 16cpu VM
For 8-way virtual SMP, I can create max 4 cpu with 2 cores CM or 8cpu VM
Not sure how SMP number corresponds to max vCPU number that can be assigned to VM