In a previous post I went through the base installation of vRealize Operations Manager 7 and also a deployment of RabbitMQ on a separate CentOS 7 VM. Now it’s time to install the Management Pack and the vRealize Tenant App for vCloud Director.

To begin the first thing we need to do it download the vRealize Operations Management Pack for vCloud Director.

You can find the link to the marketplace here

Select the big green Login to Try button on the right to login and download it.

Login to your vRealize Operations Manager and click on the Administration on the top menu. Then under Solutions click the + button to add a new solution.

Click Browse and select the Management PAK file you just downloaded and then click the Upload button.

Once the file has uploaded you should see the following screen. Click Next

Accept the License Agreement and click Next

The installation will now start. Once complete click Finish

Now if you scroll down on the solutions list you should see Management Pack for vCloud Director

Before we connect to vCloud Director we need to make sure the certificate has been updated and the Public Addresses section has been filled out. To do this log back into the vCloud Director Portal (https://vclouddirectorurl/cloud) and go to Administration then Public Addresses. Update the certificate chain for the API, Tenant Portal and Web Console.

The easiest way is to convert your existing certificate to a pem file, open with wordpad and remove the private key. Then paste the remaining chain into the 3 locations listed above.

Now back over to vRealize,

Click on the Management Pack for vCloud Director and then click on the Configure icon

Next point the Instance Settings to your vCloud Director deployment. If you have a multi-cell environment setup you can enter the load balanced address here.

Click the + to add in your user credentials for vCloud Director and also enter the password for AMQP server we created in the previous post. Then click OK

Once that is complete click Test Connection and accept the certificate prompt

Then click on Save Settings and then OK once the Adapter Instance has saved.

Then click Close to complete.

You may have to refresh your screen before the Management Pack for vCloud Adapter status changes to a green tick and shows Data Receiving.

Now it’s time to download and deploy the vRealize Tenant App for vCloud Director. For this installation I have downloaded the following version from the Marketplace via the following link

From the Resources tab you can scroll down and select the version you would like to use.

vROps-Tenant-App-for-vCD-2.1.0.25981-11344116_OVF10

From vCenter select Deploy OVF Template and browse to the location of the downloaded file. Click Next

Enter a name for the VM and click Next

Select a Cluster to deploy the Tenant App on and click Next

Review the details and click Next

Accept the License Agreement and click Next

Select the Datastore and click Next

Select the Network you would like to use and the default protocol which should be IPv4 and click Next

Complete the Customize Template section updating each of the required fields. This will reference vCloud Director and also the RabbitMQ installation. Once complete click Next

Review the settings and click Finish

Once the VM is ready, power it up and log into the web interface using the Hostname or IP address http://LABTENANTAPP01

Click on vCloud Director and click Finish

Now login using your vRealize Operations Manager credentials

Once logged in you will see the vRealize Tenant App Dashboard

From the Tenant App expand Administration and then select Access Management. Your current vCloud Director Tenants will be listed here.

Click on Enable Plugin Access for the Tenant you would like to enable the plugin for.

Next select the Manage Users tab and the click on Add User

Select the Tenant and click Next

Then select Local User and enter the user details from vCloud Director and click Add User

Then select Administration and click on Support, then click on Configure with VCD Tenant UI

Enter the vCloud Director and RabbitMQ connection details, then click Start

If you have multiple cells enter your load balanced address in the vCloud Director host section.

You will now see the Tenant App listed below and the status should be Running

Before you register the plugin you need to make sure that you have replaced the certificates in use on vCloud Director. Also you need to have updated the public addresses section under then Administration in VCD.

I have mentioned this earlier in the article so if you have issues with the next part please check your Public Addresses in vCloud, specifically the API section.

Now it’s time to register the plugin with vCloud Director

Login to the vSphere Web Client and open up a console session to the Tenant App VM

Login as root and password vmware – defaults

Browse to cd /opt/vmware/plugin

Then run the following python publish.py -H labvcd.stevenonofaro.com -u administrator@system -p ‘password’

Change ‘password’ for your own secure password. You need to keep the brackets in place.

Now let’s login as the Tenant via their URL https://labvcd.stevenonofaro.com/tenant/tenant01 and check if the plugin is available from the vCloud Director Portal

The Operations Manager page for the Tenant will now be displayed. I only have one Linux VM running in the Org at the moment so there isn’t a lot to see yet. If this is your production environment then your dashboard will display more information.

Now let’s run through creating a basic Pricing Policy and assigning it to a Tenant so that they can receive reports from the Tenant App within vCloud Director.

Login into the vCloud Tenant App and expand Metering and select Configuration. Click on Pricing Policies and click Add.

This will be a basic policy setup, if you work for a service provider or cross bill between your internal departments this will look very familiar to you. I will highlight the entries I have modified.

Enter a Policy Name and select the Policy Type. Notice the Currency is already set as we did this earlier. Update the description and click Next

The next section is used to setup the CPU Rate, adjust settings based on how you would like to charge and then click Next.

The next section is used to setup the Memory Rate, adjust settings based on how you would like to charge and then click Next

The next section is used to setup the Storage Rate, adjust settings based on how you would like to charge and then click Next

The next section is used to setup the Network Rate, adjust settings based on how you would like to charge and then click Next

The next section is used to setup the Advanced Network Rate, adjust settings based on how you would like to charge and then click Next

The next section is used to setup the Guest OS Rate, add in a Base Rate for the Guest OS and then click Next

The next section is used to setup the VM Tag Rate, adjust settings based on how you would like to charge and then click Next

The next section is used to setup the VCD Metadata Rate, adjust settings based on how you would like to charge and then click Next

Review the Policy and click Finish

The new policy will now be listed below

Click on the Organization VDCs tab and the click Assign

Then select the policy to assign to the Tenant and click Assign

Then under Metering you can click on Bills and then select Generate New Bill to test

Select the Tenant OVDC and click Next

Select the Policy and click Next

Select the start and end date for the report and enter a Title and click Finish

The Test Bill is now displayed under the My Bills section. I have only had the one VM running for a short period of time so nothing to bill at this stage.

Now let’s see how this would look for the Tenant. Login to VCD as the Tenant (user account we added earlier) and click on Operations Manager from the drop down menu

Under Metering select Bills

Then the user can select the bill and click View to get a breakdown of the costs

The bill details will depend on the policy settings you have selected and the workloads within the Tenant environment. I hope this run through has helped you get started with exploring the features available in the vRealize Tenant App for vCloud Director.

As always use the subscribe box above for new post notifications and follow me on twitter @steveonofaro

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s