With this blog, I hope to share and make friends with those who are working on VMware products. For a full disclosure, I work for VMware. The blog here is my personal opinion. Anyway, I will focus on pure technical matters, as that's what the geek inside me likes :-)
Saturday, January 7, 2012
Wednesday, January 4, 2012
How to import a vSphere Authentication Proxy Server Certificate to ESXi
To authenticate the vSphere Authentication Proxy server to ESXi, upload the proxy server certificate to ESXi.
You use the vSphere Client user interface to upload the vSphere Authentication Proxy server certificate to ESXi
The screenshot belows shows how to do it. First, click the “Import Certificate” link.
The dialog box shown by rectangle 2 will show up.
CAM is the vSphere Authentication Proxy Server itself. I think CAM stands for Computer Account Management, but it does not feel correct.
Please note that in the picture above, my ESXi is already part of domain. So by right I should have imported the certificate first.
When you join the domain, check the tick box “Use CAM Service” and enter the IP address of the CAM server. From the screenshot below, you can tell that it does not support IPv6 yet!
Wednesday, December 28, 2011
Chargeback 2.0: report
The screenshow below shows a sample report for 51 VMs. It shows 0 host as this hierarchy is not based on the host/cluster hierarchy.
The data center “Mgmt Products” have multiple folders, and I’ve expanded 1 of them so it lists the VM. You can’t expand a VM to see more breakdown (example: to see the cost of each Fixed Cost if there are multiple of them).
Some of the VMs are powered off, so they only incur disk storage cost.
There is no Fixed Cost associated with this Cost Model.
As I select “Mgmt Products”, the charts on the right is about this selection. So the Entity is “Mgmt Products” data center. It has 9 children. The pie charts will only show 6, so it will automaticaly group the smallest ones and call it “Othe..”
The “Base at zero” checkbox will set the axis to be 0, so the chart will look flat as a result.
The charts will not “expand” so it can be difficult to guess which children are which. Below is the screenshot when I give the charts more space. Luckily if you mouse over it will show the entire full name.
You can export the report as CSV file. The outcome is naturally a flatten hierarchy.
If you need to recreate the hierarchy, luckily there is “Parent” column. The “Parent Report Entity Id” field links a child to its parent. For example, you can see here that there are 2 Datacenters: “Mgmt Products” and “Testing & Development”. This is because their “Parent Report Entity Id” field is 1.
If you’re not interested to show the hierarchy and actually just want the VMs, you can filter as there is a field called “Entity Type”. It looks like “Folder” as entity type 5 and VM has entity type 0.
Chargeback 2.0: mapping cost to entity
The screenshot below shows how you map/assign/give a Cost Model to Entity. Entity can have multiple levels or structure in a Hierarchy. Here is showing a hierarchy named “VC Hierarchy”.
You can apply multiple Cost Model. This is really handy as sometimes we don’t know which Cost Model will be the right one in the long run. You can also have internal and external models, where internal is a model you don’t want your customer to see, where external is what you give to them.
The Cost Model has Duration, another word it can be effective dated. If you key in the From and To field, you can get the cost configuration for that period. It would be nice if future version shows us all the cost configurations that we set.
The next field is the “Apply a Cost Template”. It is an optional step as you can assign Fixed Costs and Rate Factors directly in the “Update cost configuration” section.
If you choose it, it will automatically fill the Rate Factors and Fixed Costs tab.
1 Cost Model can only have 1 Cost Template. But if the Cost Template does not exactly meet your requirement, you can change or overwrite it.
The Rate Factors have “Historical Values”. Be careful here, once you set it you can’t delete it. In the screenshot below, there is no way to delete that historical value for the CPU. So I set it to 1 so it will not impact any calculation.
The Fixed Costs tab shows the Fixed Costs that are mapped/assigned to this Entity. I’m not sure what happens if you choose “All” in the Propagate column. It has VMs, Hosts and vApps as entity types. Remember that a Fixed Cost is generic. It has no field for entity type. So a Fixed Cost can be applied to VM, Host or vApp. You might have a Fixed Cost called “VM Back up” and can still apply it to ESXi host. In the screenshot below, if you choose “All”, does it mean the Fixed Cost will be applied to vApps also? That can mean double charging. Since vApp is essentially a resource pool, why resource pool is not listed? If you know the answer please let me know.
vCenter Chargeback 2.0: Concept
Chargeback 2.0: Cost Template and Fixed Cost
- Group multiple Fixed Costs so you can apply them as 1 instead of choosing them one by one.
- Provides adjustment to Base Rate.
How Chargeback 2.0 calculates cost
- Does Chargeback prorate? I mean if I setup $24/day and $1/hour, is it the same thing?
- Answer is Yes. And you can configure this by ticking the Prorate checkbox.
- When it prorates, if I setup $300/month, does it differ between month with 31 day and month with 28 days?
- Answer is Yes. Chargeback does not assume a simple 30 day average.
- If I setup multiple Fixed Cost, does it provide breakdown in the report, since it does not provide breakdown at the Dashboard?
- Answer is yes.
Sunday, December 25, 2011
Installing Quest PowerGUI 3.1
Installing vSphere PowerCLI 5
Saturday, December 24, 2011
Deleting the locked file in NFS
I was not able to power on one of the VM in the lab. The error message was shown below. So a file was locked.
Luckily it is an NFS datastore, not VMFS, so removing the lock is a matter of deleting the lock file.
But the lock file is a hidden file, so we can’t delete from the Datastore browser.
So it’s a matter of using ssh. Just connect to the ESXi, then traverse the /vmfs directory. Yes, NFS datastore is also stored in /VMFS directory.
As the file is hidden, I need to use the ls –la command to show the hidden file.

































