Thursday, March 1, 2012

vCenter Operations 5: ideal screen resolution

The screenshots below is based on Full HD resolution. So hopefully this helps in justifying why you need a nice 24” screen monitor.

 

 

 

 

 

 

Tuesday, February 28, 2012

vCenter Operations and lots of VM

The screenshot belows show vCenter Operations 5 managing a large environment. It has >2000 powered on VM and >7000 powered off VM, total almost 9500 VM. It spans 4 vCenters, so each of them is averaging 2500 VM. vCenter Operations makes it easy for you to see the health, workload, faults etc at a glance across all these objects. Visually, you can tell which ESXi host is not healthy, or unable to cope, or having faults.

 

 

 

 

Sunday, February 19, 2012

vSphere HA: isolation, partition and failure

I needed to internalise the above, so I made this diagram. The actual process is certainly more comprehensive than this. I need to keep the chart simpler so I can remember it.

The main lesson for me is Isolation is no longer a big deal in 5.0, because of datastore heartbeating.

 

Below is the process for a single Slave host. The process starts with the slave not getting the heartbeat from its master, which it should get every second.

 

Below is the process from the Master point of view. There are 2 processes here, as a master carries 2 roles. Besides being a master, it also runs VM just like any other Slave. A master receives heartbeat from all its slaves, so if any of the heartbeat is received, that means the master is not isolated. It might be partitioned, but definitely not isolated.

The bottom process above is for Failure of a slave. If a master does not receive heartbeat from a slave, it will check for datastore heartbeat file. It will also ping the host IP address. The ping and the heartbeat go through the same network. A situation where ping might work but no network heartbeat is the FDM agent failure itself.

If the datastore heartbeat file is not updated by the slave, then the slave is assumed dead.

Thursday, February 2, 2012

Capacity Planning: Projecting for 1 year

As part of annual planning, you normally need to project for next year. vCenter Operations 5 lets you see next year projection.

 

To do that, you need to change the timeline in Configuration dialog box. The default setting is Weekly. In the screenshot below, I’ve changed the “Summary trend intervals” to Yearly.

In the report internal, you can also set it to Yearly, so the Report show next year too.

 

So in the above screenshot, I’ve set it to Yearly. As a result, the Summary page changed. Instead of seeing “Next Half Year” column, you will see “Next Year”. I’ve highlighted

 

The above screenshot shows from “Remaining” perspective. What if you want to see the other side, which is from deployed perspective? You can do that by selecting Deployed from the perspective field.

You will notice that the columns show “Last 2 years” instead. If I set the configuration to be Daily, then this column would be “Last 2 days” instead.

 

Sunday, January 29, 2012

vCenter Operations 5

Links to the various posts on vCenter Operations 5:

vCenter Operations 5: hard threshold

By default, vCenter Operations uses dynamic thresholding for attributes. This is also what I recommend as there are many limitations with static threshold, especially in dynamic environment like vSphere 5. A hard threshold is static. A hard threshold changes _only_ when you change it.

You can set multiple static thresholds, each with a different criticality level, for the _same_ attribute.

You can also define the criticality level that a metric must violate for it to be considered a KPI breach. Hard thresholds that are not set as KPIs generate notification alerts if they are violated.

 

In the rare event you need to set a hard thresholds, the steps are below. In this example, I want to set threshold for Ready Time.

All metrics are grouped together into packages. So choose Attribute Packages from the menu, as shown below.

 

It will pop up the dialog box below.

 

I’ve filtered the list by choosing Virtual Machine.

 

After I clicked the above icon to edit it, it pops up the dialog box below.

 

From there, I chose CPU, then selected Ready%. It brings up the details.

I also clicked the Advanced Configuration to expand the section. It is hidden by default.

From the above, I’ve ticked that valuation of upper limit and lower limit are considered KPI.

 

vCenter Operations Manager multiplies the wait cycle value by the collection interval to calculate the number of minutes that a threshold must be out of bounds before generating an anomaly. So in my case, the warning Critical Level has to happen for 10 minutes (5 minutes interval x 2 wait cycle) before it gets triggered. In the same manner, the info Critical Level only gets triggered if it is sustained in 15 minutes.

 

vCenter Operations Manager multiplies the cancel cycle value by the collection interval to calculate the number of minutes the metric must be in bounds before canceling an anomaly. So in my case, it only waits for 5 minutes (1 internal) to clear it. If you want to be more certain that it is completely “gone”, you might want to wait for a few more samples (cycles).

 

Hope that helps.

 

Wednesday, January 25, 2012

vCenter Operations 5: Demand vs Supply for each VM

The screenshot below shows the "VM Inventory" view of vCenter Operations 5 (it is still in beta). It is showing performance data, not configuration data. To be precise, it is showing analysed data. It is showing the following info:

1.       Days Remaining. Based on the 4 components (CPU, RAM, Disk, Network), how many days before the VM hits the configured capacity.

2.       Demand. Demand ≠ Usage.

a.       Usage may mean passive usage. E.g. the RAM page is there but no write/read.

b.      So demand is a more accurate reflection.

3.       Contention.

a.       This is interesting. If you know the formula or how it derives this, would be grateful if you share.

4.       Disk I/IO demand and Disk I/O Contention.

a.       This will be useful as some Apps Owner may perceive that his application generates a lot of IO.

 

The screenshot was based on Full HD resolution. As you can see I still have to scroll to the left, as the network info is not shown. If you're managing a large farm (>1000 VM), I recommend you use 2x 24" screen (each is portrait). Now that would be really cool! J

 

 

Now, the table above does not show which element (CPU, RAM, Disk, Network) would run out. To do that, you need to drill down. The screenshow below shows that it is the Reservation that is causing the above to show 0.

 

The screenshot below shows the full details. The Legend on the right shows the actual counters used in the table. You can display them as Chart too.

 

 

Saturday, January 21, 2012

Distributed virtual switch: Changing property for multiple port groups

You can change the property consistently across Port Groups. This can be handy when you have a lot of port groups or a lot of hosts. I don’t know how long it takes if you have 50 port groups and 500 hosts. If you do have the data for large scale deployment, kindly let me know at e1@vmware.com.

To make the changes, right click on the Distributed vSwitch, then choose Manage Port Groups….

 

The dialog box below appears. Pick the policy you want to change.

 

Choose which distributed port groups you want to change…

 

If you tick all the policies in the earlier screen, you will get the each policy shown. I’ve doctored the screen so they fit into 1 screen. In reality you will have to scroll down.

 

And that’s about it. Hope that helps.

 

 

 

 

Sunday, January 15, 2012

vCenter Orchestrator appliance: installation

I have some problems configuring it, so I thought I document it.

Orchestrator needs 4 users with the following default passwords:
  • root. Password is vmware. This is for the base Linux appliance config.
  • vmware. Password is vmware. This is for the Orchestrator config.
  • vcoadmin. Password is vcoadmin. This is for Orchestrator administrator, in the Orchestrator client.
  • The admin used to start the plug-in. I use my domain ID irahabok as it won’t accept vcoadmin and vmware in my case. It did accept vcoadmin until I changed the default LDAP with my MS AD.
The screenshot below shows where the 3 users are used.

If you click Orchestrator Configuration link, you get the screen below. User is vmware, not vcoadmin.

The appliance does not come with the vCenter plug-in enabled. You can see it is grey. Click “Apply changes” at the bottom corner.
Also notice that the default user name “vcoadmin”. This does not work in my case, and I have to use my domain ID. This because I configured MS AD after that and that changed the default LDAP.

It is enabled now. Next step is to configure it.
The message “will perform installation at next server startup” refers to the vCO server, not vCenter server. You don’t need to restart the vCenter servers, and it works for both vCenter appliance and Windows.

You need to do this for every vCenter servers.
From the manual: The user that you select must be a valid user with administrative privileges on your vCenter Server, preferably at the top of the vCenter Server tree structure. Orchestrator uses these credentials to monitor
the vCenter Web service, typically to operate Orchestrator system workflows. All other requests inherit the credentials of the user who triggers an action.

Need to restart the service. If it does not work, restart the entire VM.

To add the vCenter, you need to add the certificate. Else you get an error. To add it, simply add the IP address (or host name) of the vCenter. In my case, it is 172.16.100.11. Then click import. A screen will be shown, click import.
Once done, you will see the result like the one below.

Since I modified the LDAP to MS AD, I need to change the user.

To login to Orchestrator, launch the Java client.
I don’t have the fat client as you can use the standalone Orchestrator client installer on a 32-bit machine only. My admin client is 64 bit Windows 7.

You will see something like this when you launch the client. You can get multiple vCenters registered. It is not shown here, but I have 2 vCenter registered.

You should also see the workflow listed under Workflows. You can expand it, and see the list of workflows. The screenshot below shows a workflow for creating a custom VM.

Saturday, January 14, 2012

vApp Options in a VM

In the VM settings, there is an option to add properties to it. A good use case will be to have IP address configured to the VM when it’s provisioned for the time first from a template.

 

Below is a VM (it is a vitual ESXi VM). When you choose “Enable” in the vApp options, the vApp Options get expanded. 4 more lines are shown right away as highlighted below.

Notice the Properties is still “Not Configured” as we have not configured anything.

 

Select Advanced, and then click Properties, as shown in the picture below.

 

Clicking Properties will bring up the dialog box below. As we have not configured any property, it will be blank.

Click the New button. It brings up another dialog box. I know… it can get deep.

In the example below, I’ve keyed in the Label, Description. Click on the Type field.

Since I want to set the IP address, I need to choose the right type. Clicking Edit will bring up the dialog box below

 

Below are the options for both Static Property and Dynamic Property. Dynamic means the value must be determined. Example, it can grab the value of vCenter IP address.  

In the Static Property, notice that there are “External IP Address” and “vApp IP Address”. vApp IP Address mean the value will come from the vApp, not externally. That means you need a mechanism to pass it. I will cover this a bit later.

  

 

I’ve chosen vApp IP Address as the type. Interestingly, I must specify the Network at this stage. If you know why, let me know.  In large environment, the template might reside on a network that is different to the VM, or there are many VM networks that are sharing the same template. So hardcoding only 1 VM network looks like a limitation to me. Do correct me if this is not the case.

 

I’ve keyed in 2 properties. The result is shown below. Notice the types are different, because for the Subnet Mask, I chose “External IP Address” instead of “vApp IP Address”. In the “External IP Address”, there is no network to be chosen.

 

Remember the “vApp IP Address” I mentioned earlier? How do we pass the IP address value? How do we tell vCenter where to get it from?

To do that, you need to select Advanced, then click on “IP Allocation” button, as shown below.

This will bring up the IP Allocation dialog box, as shown by the arrow.

From there, click on OVF Environment. So we tell vCenter to get it from OVF Environment, which can be CD-ROM or VMware Tools.

 

So where do we specify it, and how to see the value?

To do that, select “OVF Settings”. In the screenshot below, I’ve chosen ISO Image as the vehicle to pass the value. So the OVF Environment takes the form a virtual CD-ROM, which the Guest OS can get the value from.

Since we want the IP address to be set one time only, and not at every reboot, there is an option to do that.

 

After we do all the above, going from screen to screen, what does it look like at the end?

The Properties part is now properly configured. So now we have a way to specify IP address, and vCenter has a way to pass it to the VM upon first boot.

 

For more info, see this blog post: http://blogs.vmware.com/vapp/2009/07/selfconfiguration-and-the-ovf-environment.html

Kindly note that the post is based on vSphere 4.0 while mine is 5.0. There is some minor difference I notice.

 

Hopefully the above helps in automating further.