Latest Articles

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

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

About Marek (288 Articles)
Marek is an IT professional with 15+ years of experience in the IT industry and is currently working as PSO Senior Consultant SDDC at VMware for the NEMEA region.

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

  1. VISHAL SHARMA // 26 April, 2017 at 15:40 // Reply

    Hello Sir,

    I have gone through your blog and it is really impressive and want to test it in my home lab however I am not registered to vmware site as a partner so cannot download the vcloud suite.

    Request you to suggest me the alternative.

    With Regards
    Vishal Sharma

Leave a reply...