Default Reasoning

Construction of sensible guesses when some useful information is lacking and no contradictory evidence is present…

  • Subscribe

  • Disclaimer

    This blog is personal. The views and opinions expressed here represent my own and not those of the people, institutions or organizations that I may or may not be related with unless stated explicitly. All blog post, white papers and manuals were written during the projects, mostly at a customer site and are scenario specific. Use at your own risk.
  • Meta

Building vCloud Suite POC – Part 14: Configure vCenter Operations Manager

Posted by Marek.Z on 15 May 2013

Now the vCenter Operations Manager vApp is deployed, we can proceed with the initial configuration.

Initial Setup

  1. Open the vSphere Client and log in to the vCenter Server where the vCenter Operations Manager vApp is located.
  2. Select the vApp and from the Summary tab click the Available link to open the vCenter Operations Manager Administration page.P14-S1-Available
  3. Accept the SSL security warning and log in with username admin and password admin.
  4. In the Initial Setup Wizard, provide the vCenter Server address which will be monitored and a username and password. Click Next. Note that the IP address of the Analytics VM is already present.P14-S2-vCS
  5. Click Yes on the SSL security alert to accept the authenticity of the vCenter Server.
  6. Next, change the password for the admin account (for the vCenter Operations Manager Administration Portal) and the root password (for the vCenter Operations Manager virtual appliance console).P14-S3-Pass
  7. Specify the details for vCenter Server that will be monitored. Provide a display name, FQDN or IP address, username, password for the registration user and optionally for the collector user. Click Next.P14-S4-Monitor
  8. Click Next on the Import Data section. This is only available if you already running a legacy version of vCenter Operations Manager or vCenter CapacityIQ.
  9. In the next step, you can register vCenter Servers that are in Linked Mode with your vCenter Server. In my case there are no vCenter Servers in Linked Mode. Click Finish to complete the initial setup.

When the registration of the vCenter Server instance is completed you will be redirected to the vCenter Operations Manager Administrations user interface. This process can take some time to complete.

Configure Email Notifications

The vCenter Operations Manager can send email notifications when a problem with its operation occurs. An Administrative alert is sent when the vCenter Operations Manager detects a problem with one or more of its components and cannot collect data from the monitored objects.

  1. On the vCenter Operations Manager Administration UI select the SMTP/SNMP tab and enable SMTP and/or SNMP.P14-S5-SMTPSNMP
  2. Click Update.
  3. Close the vCenter Operations Manager Administration page.

Enable Plug-in

  1. Open the vSphere Client and log in.
  2. From the Plug-ins menu, select Manage Plug-ins.
  3. In the Plug-in Manager, scroll down to vCenter Operations Manager plug-in.
  4. If not enabled, right click the plug-in and select Enable.
  5. The plug-in should now be enabled.
  6. Click Close to close the Plug-in Manager.
  7. You should now see a vCenter Operations Manager icon under the Solutions and Applications section.

Assign License

The final step in the initial vCenter Operations Manager setup is assigning a valid license key. This must be done in the vCenter Server.

  1. Open vSphere Client or vSphere Web Client and log in to you vCenter Server. In this case I will use the Web Client.
  2. From the Home page, select Licensing under Administration.
  3. Next, select the Solutions tab.
  4. Highlight the vCenter Operations Manager and click Assign License Key.P14-S6-Key
  5. From the drop-down menu, choose if you want to assign an existing key or if you want to assign a new one.
  6. Enter a new key or choose one, if you already entered one.
  7. Click OK to assign the license key.

This concludes the initial setup of the vCenter Operations Manager. Proceed to part 15 (coming soon) where we will create a custom user interface dashboard.

Cheers!

- Marek.Z

Posted in How To, Operations Manager, vCenter, vCloud Suite, VMware | Tagged: , , , , , | 2 Comments »

Building vCloud Suite POC – Part 13: Add vCenter Operations Manager

Posted by Marek.Z on 7 May 2013

So far the vCloud Suite proof of concept has been installed and configured with the vCloud Director with vCloud Networking and Security, vCloud Connector and vCenter Chargeback Manager. In this part we will take a look on how to proactively manage the health of vSphere infrastructure, virtual machines and applications. But also how to spot potential bottlenecks and how to remediate the problems. To do this, VMware offers vCenter Operations Manager, which is also part of the vCenter Operations Management Suite, to address these questions. Before we jump into installation and configuration of vCenter Operations Manager, let’s define what it actually is.

VMware vCenter Operations Manager is the key component of the vCenter Operations Management Suite. It provides a new and much simplified approach to operations management of vSphere, physical and cloud infrastructure. Using patented, self-learning analytics and an open, extensible platform, vCenter Operations Manager provides you with operations dashboards to gain deep insights and visibility into health, risk and efficiency of your infrastructure, performance management and capacity optimization capabilities.

Source: VMware vCenter Operations Manager Overview

Architecture

The vCenter Operations Manager is a virtual appliance and comes as an OVA downloadable from VMware. It can be deployed using the vSphere Client and the Web Client. Once deployed the vCenter Operations Manager is a vApp containing two virtual machines.

  • UI VM: this virtual machines provides you with access to the analytics using a web-based application.
  • Analytics VM: this virtual machine is responsible for gathering data from one or multiple vCenter Servers or vCenter Configuration Manager of any other third party data resources.

Licensing

The vCenter Operations Manager comes in four versions:

  • Foundation
  • Standard
  • Advanced
  • Enterprise

The license model is either per processor with unlimited virtual machines which is advisable for environments with high consolidation ratio or per virtual machines on physical server which is suitable for environments with low consolidation ratio. Other option is the “a la carte” license which contains a 25 virtual machine instance license pack. More information about licensing can be found on VMware website.

Tip: if you are (re)building or upgrading your infrastructure, consider buying vCenter Operations Manager as part of vCloud Suite or as part of vSphere with Operations Management.

Network Ports

The vCenter Operations Manager uses the following ports for communications. Make sure these ports are open before the deployment on the firewalls.

  • Port 22: SSH access to vCenter Operations Manager vApp
  • Port 80: redirects to port 443
  • Port 443: SSL access to the Admin portal and the application
  • Port 1194: tunnel between the UI VM and the Analytics VM

Supported Browsers

At the time of this writing, the vCenter Operations Manager supports the following browsers:

  • Internet Explorer 8.0 and 9.0
  • Mozilla Firefox 18 and 19
  • Google Chrome 24 and 25
  • Apple Safari 6

Deploy vCenter Operations Manager

The deployment of vCenter Operations Manager vApp is quite easy and straightforward, it is just basically like deploying any other vApp on you vSphere infrastructure. I assume you already downloaded the OVA file from VMware. In my case I am using version 5.7 which is the latest at the time of this writing.

  1. Before you begin the deployment, you must configure an IP Pool which will provide network identity to the vApp. The vCenter Operations Manager vApp can then use this IP Pool to automatically provide an IP address to the UI and Analytics VM. Also, the IP Pool facilitates the use of a static IP address during the vApp deployment process.
  2. Connect to the vCenter Server where you want to deploy the vCenter Operations Manager. In my case I used the vSphere Web Client.
  3. Navigate to Hosts and Clusters, select the datacenter object, click the Manage tab and select the Network Protocol Profiles (this is the IP Pool tab in the vSphere Client).P13-S1-NPP
  4. Click the green plus button to create a new profile.
  5. In the Add New Protocol Profile wizard, provide a name and select a network association from the list.P13-S2-Select
  6. Next, specify the subnet, gateway address and DNS servers. DO NOT select the “Enable IP Pool” checkbox and DO NOT specify a range of IP addresses. Those will be specified in the deployment of vCenter Operations Manager vApp.P13-S3-Specify
  7. Enter the DHCP server if there is one available on your network, but in this case it is not necessary. Click Next.
  8. Leave the IPv6 Configuration and the Other Network Configuration as default.
  9. Review the settings and click Finish to complete the wizard.
  10. Now the Network Protocol Profile is created, we can proceed with the vCloud Operations Manager Deployment.
  11. With the datacenter object still selected, click the Action button and select Deploy OVF Template.
  12. Select the source and click Next.
  13. Review the details and click Next.
  14. Accept the EULA and click Next.
  15. Provide an intuitive name and select datacenter or folder for the deployed vApp.P13-S4-Name
  16. Next, chose the deployment configuration. You can chose from small, medium or large. Each option displays its limits in the window below. Click Next.
  17. Select a resource in your datacenter and click Next.
  18. Select a location on your storage for the files and select the virtual disk format.P13-S5-Storage
  19. Next, in the network setup, chose the network destination from the drop-down menu and make sure the IP allocation is set to Static-Manual.P13-S6-Network
  20. In the Customize Template window, set the appropriate time zone setting and provide static IP addresses for the UI and the Analytics virtual machines. Click Next.P13-S7-IPs
  21. Review the settings, select “Power on after deployment” checkbox and click Finish to start the deployment. When it is finished, the vApp and the virtual machines should be powered on.

This concludes the overview and deployment steps for the vCenter Operations Manager. Continue to part 14 where we will configure vCenter Operations Manager for the first time.

Cheers!

- Marek.Z

Posted in How To, Operations Manager, vCenter, vCloud Suite, VMware | Tagged: , , , , , , | Leave a Comment »

Building vCloud Suite POC – Part 12: vCenter Chargeback Manager Cost Analysis and Reporting

Posted by Marek.Z on 2 May 2013

Now the installation and configuration of vCenter Chargeback Manager is completed, a new chargeback hierarchy can be created. A chargeback hierarchy is an organization of vCenter Server entities and vCenter Chargeback Manager entities. The vCenter Server entities include virtual machines, hosts, data centers, resource pools, host folders, and virtual machine folders.

Create New Hierarchy

To identify the resource utilization and generate a usage or cost report, we must first create a chargeback hierarchy and add the required entities to it.

  1. Log in to vCenter Chargeback Manager homepage.
  2. Select the Mange Hierarchy tab and click the Create Hierarchy button.
  3. In the Create Hierarchy window, enter a name and description. Under the hierarchy creation option select whether you want to create a custom hierarchy, synchronize with a vCenter Server or import a hierarchy from a CSV file. In my case, I selected to synchronize with the vCenter Server.P12-S1-Hierarchy
  4. When you hit the Create button a new hierarchy will be created and you should be able to browse it.P12-S2-Browse

Configure Cost Model

  1. Navigate to the Manage Cost tab and select Cost Template.
  2. Click the Create button to create a new cost template.
  3. On the General tab, provide a name, description and select your currency.P12-S3-Cost
  4. Next, select the Rate Factors. This is the multiplication factor that is used with the base rate to calculate the charge for a unit of chargeable computing resource used or allocated for a specified duration. I set the rate factor to 1 for all entities. If you want to charge more, then set the value to for example 2. This will double the costs. If you want to give a discount for example, set the value to 0.5 for 50% discount.P12-S4-Rates
  5. Next, select the Fixed Costs tab and add any fixed cost you want to charge.
  6. Click Create.
  7. Next, click the Pricing Models tab and click the Create button.
  8. On the General tab provide a name and description and set your preferred currency.
  9. Select the Billing Policy tab, select the period of time and change the billing policy. In my cast the billing policy is the preconfigured “VMware vCloud Director Billing Policy – Reservation Pool”.P12-S5-Billing
  10. Click Create.

Create Report

There are many ways to create reports in vCenter Chargeback Manager, in this case I’ll create a simple report that will reflect the usage on my environment. Also, in my case, the vCenter Chargeback Manager is integrated with the vCloud Director so the cost information will be based on the organizations created in the vCloud Director environment.

  1. With the vCloud Chargeback Manager still open, navigate to the Reports tab and select Create Reports.
  2. From the drop down menu, select an item from the hierarchy, in my case this will be “Organization A”.P12-S6-OrgA
  3. Right-click the organization and select Generate Cost Report.P12-S7-Report
  4. In the Create Report wizard, enter a name and description for the report. Optionally, provide a user name. Set the effective period and select the pricing model created earlier. Click Next.P12-S8-Report
  5. Click Next once again on the Report Summary window.
  6. Select any extra details you want to include in the report and click Next.
  7. Click Submit to start creating the report.
  8. When the report is ready you can view the costs for the specified period. Mine is empty because I did not set any rate for CPU and memory used for the period I specified :) P12-S9-CostsReport
  9. You can now save, export or email this report to your customer.

This report is just an example. There is a lot of reporting in vCenter Chargeback Manager so you should create one based on your own environment and rates. The vCenter Chargeback Manager provides you with the Base Rate Calculator which enables you to calculate the fixed costs to be charged per virtual machine on a monthly or yearly basis. It also enables you to identify the base rates for the CPU, memory, and storage to recover the hardware investment over a defined period of time.P12-S10-Calculator

This concludes the vCenter Chargeback Manager part of this vCloud Suite POC. The vCloud Chargeback Manager is a very extensive and powerful reporting tool in my opinion. It takes some time to learn it but once set up correctly the reporting can easily be automated.

In the next part  of the vCloud Suite series we will take a closer look at the vCenter Operations Manager.

Cheers!

- Marek.Z

Posted in Chargeback Manager, How To, vCloud Suite, VMware | Tagged: , , , , , , , , | Leave a Comment »

Building vCloud Suite POC – Part 11: Install and Configure vCenter Chargeback Manager

Posted by Marek.Z on 25 April 2013

Now that the installation requirements are met, we can proceed with installation of the vCenter Chargeback Manager. In this case, I’ve created a dedicated virtual machine with default settings running Windows Server 2008 R2 with SP1. I assume you already downloaded the software and extracted it to a directory.

Install vCenter Chargeback Manager

  1. Start the executable and wait for the installation wizard.
  2. Click Next at the Introduction screen.
  3. Accept the EULA and click Next.
  4. Click Next if you accept the default installation folder, or choose another one.
  5. In the vCenter Chargeback Manager Database Configuration section, provide the database type, the database URL, the database name, SQL Authentication Mode, the database username and password. Click Test Connection to verify if the settings are correct. If so, click Next.P11-S1-Test
  6. Accept the settings in the Load Balancer section. In my case, this is the first installation of vCenter Chargeback Manager so it automatically becomes the first load balancer instance.
  7. In the Server Configuration, check “Install vCenter Chargeback Manager Server” and provide a server instance name. Click Next.P11-S2-Name
  8. In the Authentication Details section, provide a username and password for the vCenter Chargeback Manager installation.
  9. Next, in the Data Collector section you have 3 options. I chose all 3 because this deployment is to monitor and collect resource usage in the cloud.P11-S3-DataCollector
  10. If you chose the vCloud Director Data Collector you need to provide the vCloud Director URL or IP address and a username and password.P11-S4-vCD
  11. Review the settings and click Install to start the installation process.
  12. When the installation is finished you should receive a message stating that you should add all the vCenter Servers in your vCloud Director to the vCenter Chargeback Manager. Also, the passwords for all vShield Manager Server in your vCloud Director must be configured in the vCenter Chargeback Manager.P11-S5-Note
  13. Click OK to close the message and click Done to close the installer.
  14. Next, you must generate a SSL certificate for security reasons. You can choose to generate a default certificate or to generate your own. In this case, I chose the default option.
  15. When the generation of the SSL certificate is successful, you should see the following message. Press any key to close the window.P11-S6-SSL

After installation, don’t forget to install vCenter Chargeback Manager 2.5 Patch 01 to resolve some issues in the previous version. Installation instructions and patches can be found in VMware KB 2041041.

Configure vCenter Chargeback Manager

Before you begin, make sure you have Adobe Flash player installed.

  1. Open Launch vCenter Chargeback Manager Homepage from Start > Programs > VMware > VMware vCenter Chargeback menu.
  2. First, enter a license key, username and password and click the Add button.
  3. Next, enter the admin user credentials and click OK to log in.
  4. Select the Settings tab and under the General section click Add under the Email Settings.P11-S7-Email
  5. Enter the settings for the SMTP server and click Add.P11-S8-SMTP
  6. Click the vCenter Server section under the Settings tab and click the Add button in the right bottom.
  7. Enter the connection information for the vCenter Server and the vCenter Server database.
  8. Check the “Register As vSphere Client Plug-in” option and click Add.P11-S9-vCSAdd
  9. Click Install when prompted if you want to install the vCenter Server certificate.
  10. The vCenter Server should now be added in the vCenter Chargeback Manager.
  11. Next, under the Settings tab, select the Data Collectors.
  12. Navigate to the vShield Manager tab and click the vShield Manager instance.
  13. Click the Edit button in the right bottom and provide the password for the vShield Manger.P11-S10-vShield

At this point the installation and configuration of vCenter Chargeback Manager is completed. Navigate to the System Health tab and make sure that vCenter Chargeback Manager is running correctly.P11-S11-OK

Continue to part 12 where we will create a new vCenter Chargeback Manager hierarchy and generate a cost report.

Cheers!

- Marek.Z

Posted in Chargeback Manager, How To, vCloud Suite, VMware | Tagged: , , , , , , | Leave a Comment »

Building vCloud Suite POC – Part 10: Add vCenter Chargeback Manager

Posted by Marek.Z on 23 April 2013

So, the cloud environment is up and running. The organizations are created and vApps populated with virtual machines. The next question that arises is how to determine the resource utilization and how to calculate the costs for virtual machines that use resources in the cloud. The VMware vCloud Suite includes the vCenter Chargeback Manager which is suited for the job. Before we begin with the preparation, installation and configuration of vCenter Chargeback Manager, let’s first define what vCenter Chargeback Manager actually is and what it does.

Chargeback is a mechanism to account for the operational costs involved in providing and maintaining an IT infrastructure, including the costs for IT services and applications. Measuring resource utilization and calculating the corresponding IT operational cost enables you to account for the IT resources utilized and bill for the services provided.

Source: VMware vCenter Chargeback Manager Installation and Upgrade Guide

Before the installation of vCenter Chargeback Manager, a database and a database user account needs to be created first.

Create Database

In this case I’ll be using my dedicated Microsoft SQL Server 2008 R2.

  1. Open the SQL Server Management Studio and connect.
  2. Right click the Databases and select New Database.
  3. Enter the database name, for example vCCM_DB and click OK to create it.P10-S1-DB
  4. Next, create a database user account. Expand the Security and right click Logins. Select New Login and enter a login name, for example vCCM_user.
  5. Change the authentication to SQL Server and enter a password.
  6. Also, change the default database to the database created in step 3, in my case, vCCM_DB.P10-S2-NewLogin
  7. Next, select User Mapping and change the default schema to DBO.P10-S3-DBO
  8. Click OK.

Assign User Privileges

After you create a database and a database user in SQL Server that vCenter Chargeback Manager can use, you must assign privileges to this user by running the following query.

P10-S4-Query

You can verify if the role is created by browsing to the vCCM_DB database, expand Security, expand Roles and expand Database Roles.

P10-S5-Role

There is also a vCenter Chargeback Manager Database Size Calculator available from VMware vCenter Chargeback Documentation to calculate the estimated database size.

Configure Firewall

The vCenter Chargeback Manager uses ports 443, 8009 and 8080 to communicate with its components. Open the ports on the Windows firewall to prevent any connection errors after the installation.

  1. Open port 443 TCP Inbound. This port is used by the load balancer to listen for user requests.
  2. Open port 8009 TCP Inbound. This port is used by vCenter Chargeback Manager to communicate with the load balancer.
  3. Open port 8080 TCP Inbound. This port is used by vCenter Chargeback Manager for communication using the HTTP protocol.

This concludes a rather simple preparation for the vCenter Chargeback Manager. Continue to part 11 where we will install and configure the vCenter Chargeback Manager on a Windows Server 2008 R2 virtual machine.

Cheers!

- Marek.Z

Posted in Chargeback Manager, How To, vCloud Suite, VMware | Tagged: , , , , , | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.

Join 423 other followers