Upgrading vCloud Availability From 3.0 to 3.5

In this post I will walk through steps of upgrading vCloud Availability deployment upgrade from version 3.0 to 3.5.

If you have missed earlier posts of this series, I would recommend reading them from below links:

1: vCAV 3.0-Provider Setup

2: vCAV 3.0-Replication Policies

3: vCAV 3.0-Tenant Setup

vCloud Availability upgrade can be performed via various methods (CLI & UI). These methods are very well documented Here 

Upgrading vCloud Availability in the Cloud

Before upgrading vCAV in service provider side, we need to ensure that environment is configured as per Pre-Upgrade requirement.

vCloud Availability Upgrade Sequence

For a multi site vCloud Availability deployment, upgrade the sites in the following order:

  • Upgrade all vCloud Availability appliances in the local cloud site.
  • Upgrade all vCloud Availability appliances in remote cloud sites.
  • Upgrade all vCloud Availability On-Premises Appliance nodes.

In a vCloud Availability cloud site, upgrade all the appliances in following sequence:

  • Upgrade the vCloud Availability Cloud Replication Management Appliance.
Read the rest

Configuring vCloud Availability 3.0-Part 3:Tenant Setup

In first Part of vCAV 3.0 series, we learnt about service provider side configuration and in last Post we discussed about Replication Policies in vCAV. In this post I will walk through steps of configuring on-prem environment with vCAV. 

To configure on-prem environment to work with vCAV, you need to first download the vCAV 3.0 Appliance for Tenants which is located Here

Deployment of appliance is very straight forward like any other vmware product. Below slideshow shows the deployment steps.

Once the appliance boots up, make a note of the login url.

vcav-onprem-10

Login to vCAV on-prem appliance by typing https://<vcav-fqdn>/ui/admin

You will be prompted to change root password on first login.

vcav-onprem-11

Click Run initial setup wizard. 

On first page of wizard, specify the site name. When you pair the on-prem appliance with Cloud Site, your environment will be identified using this site name.

vcav-onprem-12

Enter vCenter lookup service details and sso credentials and hit Next.Read the rest

vCloud Availability 3.0-Part 2: Replication Policies

In the last post, we learned how to perform a vCloud Availability 3.0 provider-side configuration. But before tenant-side configuration can be performed, replication policies must be created.

Replication policies are sets of rules that define and control the replication attributes on a vCD organization level. Typically, a replication policy enforces the following attributes:

  • Whether an organization can be used as a replication source.
  • Whether an organization can be used as a replication destination.
  • The minimum Recovery Point Objective (RPO) for an organization.
  • The maximum number of retained snapshots per single virtual machine replication for an organization.
  • The maximum number of virtual machine replications that can be created for an organization.

Note: A single replication policy can be assigned to multiple vCD organizations. 

Create a Replication Policy

You can edit and use the default replication policy that comes with vCAV, or you can create custom ones. 

To create a new policy, login to vCloud Availability Portal (https://<vcav-fqdn>ui/admin) via root user and navigate to Home > Policies and click on New

Specify a name for the policy, select the attributes that will be part of this policy, and click the Create button.Read the rest

vCloud Availability 3.0-Part 1:Provider Setup

Recently, I got the chance to work on setting up the vCloud Availability v3.x in my lab, and it was a great learning curve. I will share my experience through a series of blog posts. 

I am not going to write an introduction post on what vCAV is and its architecture. It’s very well documented here

If you have worked on previous versions of vCAV (2.0 & 1.5), you might remember it was a pain setting up various appliances. With vCAV 3.0, installation & configuration have been simplified drastically. No more hanky-panky command-line stuff. You just need a couple of appliances for setting up the cloud and on-prem infrastructure.

In this post, I will cover the cloud (service provider) side deployment & configuration steps.

The screenshot below shows the steps of the vCAV appliance deployment. 

Note: For lab deployment/POC, we can use a combined appliance deployment topology.

 

Once the appliance is deployed and boots up, you will get a login URL to run the configuration workflow.Read the rest

Automating vCloud Usage Meter Deployment & Configuration via API

In my last Post I covered the manual steps of vCloud Usage Meter deployment & configuration. In this post, I will show how we can leverage Usage Meter APIs to perform end-to-end configuration.

Usage Meter Deployment: There is no API for UM deployment, and we have to stick to the ovftool method for this step.

Read the rest

Installing & Configuring vCloud Usage Meter

What is vCloud Usage Meter?

vCloud Usage Meter is an on-premises virtual appliance used to collect and generate reports for Cloud Provider Partners (VCPP) to send back to VMware for monthly billing of usage.

Usage Meter collects usage of the VMware products that are installed in the cloud provider’s datacenter. The current version of Usage Meter (4.1) supports usage collection from the following endpoints:

How Usage Meter collects and reports monthly product consumption data is explained Here

vCloud Usage Insight

vCloud Usage Insight is a VMware cloud service that aggregates and automates monthly and end-user reporting from on-premise vCloud Usage Meter instances to the VMware Cloud Provider Commerce Portal. With vCloud Usage Insight, you retain full control over the usage report data in the Commerce Portal before submission.

To learn more about vCloud Usage Meter & Usage Insight, check VMware’s official Documentation

Usage Meter Installation Requirements

I am not going to cover the nitty-gritty of installation prerequisites, as everything is well documented Here

vCloud Usage Meter is distributed as a virtual appliance (ova) and can be downloaded from Here

vCloud UM deployment is pretty straightforward, like any other OVA deployment.Read the rest

Automating vROPs Tenant Appliance Deployment & Configuration via API

In my previous post on vROPs Tenant Appliance for vCD, I covered steps of manual deployment & configuration. In this post I will cover how we can achieve this via CLI/API.

These API’s can be leveraged via any scripting language to automate the deployment of vROPs TA.

Step 1: Deploy vROPs Tenant Appliance via ovftool

As of now there is no API for automating deployment of appliance via API, so we will use ovftool for this purpose.

Read the rest

Upgrading vCSA 6.7 to 7.0 via CLI

In my current project I have been tasked with identifying the process of VCSA upgrade via CLI so that same can be automated via code and eventually enabling customers to upgrade vCenter server in one click.

During my research I came to know that unfortunately there are no API calls as of now to upgrade vcsa and we have to rely on the CLI installer method. 

vCenter Upgrade Process Overview

Those who have worked on VCSA upgrade in past, VCSA upgrade is not an in-place upgrade and it is a 2 step process.

  • Stage1 is where you gather all the necessary information such as source and target appliance details, target Esxi host/vCenter to deploy appliance and vCenter credentials etc. A new appliance with target version is deployed during the process.
  • In Stage2 data (configuration, historical, and performance metrics) migration is performed from source VCSA to newly deployed VCSA.

During upgrade, the newly deployed appliance is deployed via a temporary IP and once all data is migrated from source appliance, it is shut down and the new appliance is reconfigured with same IP which was configured in source. Read the rest

Installing & Configuring vCD Content Pack in vRLI via API

In this post we will learn how to install vCD content pack in vRealize Log Insight via API. 

What is vCD Content pack?

As per VMware official documentation:

The VMware vCloud Director content pack provides you unparalleled visibility into your vCD environment from 5.5 to the new 9.x SP. Providing graphical representations of important log data, metrics of your vCD workloads and a robust set of alerts this content pack will allow you to better manage vCD utilizing Log Insight’s capabilities.

Installing content packs in vRLI is one of the day 2 operations that most VMware Admins do in their day to day job. In large datacenters where there are several instances of vRLI, configuring content packs & agents via UI is a very tedious and time consuming process. You can use API’s to automate these day 2 tasks to reduce time and to minimize human errors. So let’s get started.Read the rest

Integrating vSphere & vROPs with vRLI via API

In this post I will walk through steps of integrating vSphere and vROPs in vRLI via API.

Note: All GET & POST calls are done over port 9543 with JSON payloads. 

1: Obtain Auth Token: 

Response output is a sessionId  which is a opaque bearer token valid for a limited time, indicated by the ttl value in the response.

Note: Post obtaining Auth Token, sessionId is passed as type “Bearer Token” under Authorization for all subsequent requests.

2: Test vSphere Connection

Read the rest