vCenter User has not been assigned a role on vShield Manager

Problem: Today I faced a new problem in my home lab when I was trying to install the vShield components on my Esxi Hosts. Selecting the Esxi host and navigation to vShield tab was displaying an error

” vCenter User ‘Alexvcadmin’ has not been assigned a role on vShield Manager”

error-1

Reason: The reason for this error was I had not defined any role for the vCenter user (vcadmin in my case) on vShield manager appliance.

Resolution: To fix this issue login to web interface of vShield Manager, select Settings and Reports and navigate to Users tab and click on Add button to add a new user.

As you can see in below screenshot vcadmin user is not visible under user list.

error2

Clicking on Add button will pop-up a new window where you have to specify the user details and associate this user with available role.

Select the second option “Specify a vCenter User” and provide the details of username in the format of Domainusername

error3

Hit Next to select the roles for this user.… Read More

Building a Private Cloud with vCloud Director-Part 7: Configuring vCloud Director

In our last post Configuring vShield Manager we have seen the initial configuration of vShield Manager. Now its time to start doing configuration of the vCloud Director. In this post I will touch down on different configurable options available in vCloud Director. So Lets start.

Open console of the vCloud Director by typing the URL https://vcloud_director_ip

It will present the welcome page listing the initial configuration items.

vcd-conf1

Hit Next to proceed. The very first configuration item is accepting the license agreement.

vcd-conf2

Hitting Next will prompt you to enter the License Key for your vCloud Director instance.

vcd-conf3

Once you entered your license key hit Next. The next screen will present option to set the administrator username and password and other related options. This username/password will be used for logging onto the vCloud director and perform all the other configurations.

vcd-conf4

Hit Next to proceed after you have entered the details. Next screen will provide you an option to define the system name.… Read More

Building a Private Cloud with vCloud Director-Part 6: Configuring vShield Manager

In our last post Installing vShield Manager we learnt what vShield Manager is and how to deploy it. This post will cover the steps needed for configuring the vShield appliance for first use. So let’s start.

Powering-on the vShield Manager VM will give you following console. Unfortunately there is no other way around than configuring it directly from the console for the first time.

Login with the “admin” user and password which you set during deploying the appliance. Sometime you will get an error that “system startup is not complete. Please logout and log back in after a few minutes”

Wait for a few minutes and then try login. Let all the services come up in the vShield VM and then login.

vcns-16

After successful login you will get Manager > prompt. Type enable here to start begin configuring the appliance. It will ask you for a password. Supply the same password which you have given at the time of deploying the appliance.… Read More

Building a Private Cloud with vCloud Director-Part 5: Installing vShield Manager

In our last post  Installing vCloud Director we learnt how to install vCloud director on Redhat Server. Before jumping into configuring the vCloud director appliance we will install one more component of vCloud Suite i.e. vShield Manager.

What is vShield  Manager aka vCloud Networking and Security (vCNS)?

vShield Manager is now known as vCloud Networking and Security and it provides firewall protection, traffic analysis, and network perimeter services to protect your vCenter Server virtual infrastructure. It is also abbreviated as vCNS.

vCNS is used to monitor and push configurations to vShield App, vShield Endpoint, and vShield Edge instances. vShield Manager is a virtual appliance deployed as an OVA file downloaded from VMware.

In this post we will learn how to install the vShield Manager appliance for use with vCloud Director.

Prerequisites for installing vCNS

  • One or more ESXi-servers running that are being managed by vCenter server.
  • If you plan to use vShield Manager with vCloud Director then these ESXi-hosts must be in a cluster to be able to configure that cluster for VXLAN-networking.
Read More

Building a Private Cloud with vCloud Director-Part 4: Installing vCloud Director

In our last post of this series we have configured the vCloud database and made it ready. This database will be used by the vCloud Director Installer to connect to and setup the database.

I am not using the standard ovf vcloud director installer provided by VMware. I wanted to know how the installation is done and configured so I choose to install vCloud Director on RHEL server.

For list of operating system supported for installing vCloud Director please refer the vCloud Documentation Page from VMware.

Pre-requisites before installing vCloud Director:

1: A server with Redhat as guest operating system installed and configured. Hostname and DNS should be configured.

2: The Redhat Server must have 2 NIC’s and each with different IP address (preferred) for HTTP and Console connection. This server should be reachable to your database server over the network.

3: vCloud Director installation file (bin file) downloaded and copied to server where it will be installed.… Read More

Troubleshoot vCloud Director Database Connection Issues

In my Last post Troubleshooting vCloud SSL Certificates Issue I have covered how to resolve the ssl certificates issue.

Once the certificate is accepted by the vCloud director configuration script the next thing is that it will ask you for the database connection details so that it can connect to vcloud database and configure it.

This was not end of life it seems as vCloud director has decided to test me one more time. This time I ran into database connection issue as the vCloud director server was unable to contact my database (MSSQL).

I have covered the database preparation steps in my post Configuring MSSQL Database for vCloud Director

I was getting the error as shown in below screenshot

db-1

I was getting a connection failure error as vCloud director setup was unable to reach my MSSQL database and I was getting socket timeout error. This was very annoying for me.… Read More

Troubleshoot vCloud Director SSL Certificates Installation Issue

Prior to vCloud director installation you need to generate SSL certificates for your http and console-proxy connections. You can also you certificates purchased from certificate issuing company if you are planning to use your vCloud environment over the internet.

I am using self-signed certificates in my Home Lab and instructions for how to generate the certificates I have covered in my earlier post

When vCloud installer is run it invokes a script to configure the vCloud director and in the process it asks for the path to the certificates which will be used in securing the http and console-proxy connections.

I have generated the certificate (vcd.ks) on my root partition as visible in below screenshot.

cert-1

Now when I executed the vCloud installer (vcloud-director.bin file) it invoked a script for configuring the vCloud setup and was asking for the path to the certificate. I entered /root/vcd.ks but the installer was throwing an error that “file could not be found”.… Read More

Building a Private Cloud with vCloud Director- Part-3-Configuring Database for vCloud Director

In our last 2 posts of this series we understood the components of vCloud suite and had a look on my Lab Infrastructure. Lets move ahead and start configuring vCloud director components one by one.

vCloud Director supports MSSQL and Oracle as backend database. I am using MSSQL database for my Lab and this post will be covering the steps needed to configure the database prior to vCloud Director Installation.

Setting up MSSQL database is very easy task. Vmware provides the SQL commands to configure the database on the vCloud Director Documentation page. You can access this page by clicking on vCloud Director Documentation page.

Pre-requisite: Make sure your system meet following 2 pre-requisites before using the database setup script:

1: MSSQL database installed and running

2: SQL Server Management Studio installed

The below script will be used in configuring the database. You have to make minor changes in the script to setup according to your infrastructure

Read More

Building a Private Cloud with vCloud Director- Part-2- Infrastructure Setup

In my previous post vCloud Director Introduction we have seen an overview of what are the components that makes up a vCloud suite and how each component is tied together to provide a cloud based infrastructure.

For setting up vCloud environment a lot of prerequisites are there which should be met prior to deploying the vCloud director and other components. In this post I am including my Infrastructure design and the preparations which I did.

vCloud requires your vSphere Infrastructure (Esxi + vCenter Server) to be ready before start jumping in and installing vCloud director. Also other components like DNS/AD/Storage should be ready in advance. I am listing here all the pieces which I made ready for my home lab.

Hardware Component

I have a Dell M4800 Mobile workstation laptop with 32 GB of RAM and i7 Quad Core processor. I am running all the components inside Vmware Workstation.

My Lab Components

  1. I installed Server 2012 R2 Datacenter edition as my base OS.
Read More

Building a Private Cloud with vCloud Director- Part-1- Introduction

Recently I decided to learn and implement vCloud Director in my Home Lab. Before proceeding it was important to have an overview of the components which makes the vCloud Director and the associated terms and terminology used.

There are plenty of information available on internet and I am including here some of the information which I found.

Understanding the components of vCloud Suite

The vCloud Suite looks like as shown in below picture. The suite is a combination of multiple products which is required to create a complete Cloud Infrastructure.

vcloud-1

                                                           Graphic Thanks to VMware.Com

The suite can be broken into 3 categories to understand better what are the products that made up the suite and how they work and combine together. As shown in above picture we have 3 categories here:

1: Cloud Infrastructure: This contains the vCloud Director itself at top along with vCloud Networking and Security (vCNS) and SRM.… Read More