vCloud Director 9.0 Single Cell Installation

vCD 9.0 was announced yesterday and in my last post I touch based on some of the new features that are included in this new release. In this post we will see how to install and configure vCD 9.0.

vCloud Director Hardware and Software Requirements

Before starting with vCloud director 9.0 installation, please make sure all hardware and software requirements are met. Instructions are laid out here

Installing and Configuring a vCloud Director Database

In my lab I am using MSSQL for vCD database. Although I wanted to try the installation with Postgres database, but I refrained myself from doing so as I wanted to test cell management utility for migrating vCD database from MSSQL to Postgres later.

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

USE [master]
GO
CREATE DATABASE [vcloud] ON PRIMARY
(NAME = N'vcloud', FILENAME = N'C:\vcloud.mdf', SIZE = 100MB, FILEGROWTH = 10% )
LOG ON
(NAME = N'vcdb_log', FILENAME = N'C:\vcloud.ldf', SIZE = 1MB, FILEGROWTH = 10%)
COLLATE Latin1_General_CS_AS
GO
USE [vcloud]
GO
ALTER DATABASE [vcloud] SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
ALTER DATABASE [vcloud] SET ALLOW_SNAPSHOT_ISOLATION ON;
ALTER DATABASE [vcloud] SET READ_COMMITTED_SNAPSHOT ON WITH NO_WAIT;
ALTER DATABASE [vcloud] SET MULTI_USER;
GO
USE [vcloud]
GO
CREATE LOGIN [vcloud] WITH PASSWORD = 'vcloudpass', DEFAULT_DATABASE =[vcloud], 
 DEFAULT_LANGUAGE =[us_english], CHECK_POLICY=OFF
GO
CREATE USER [vcloud] for LOGIN [vcloud]
GO
USE [vcloud]
GO
sp_addrolemember [db_owner], [vcloud]
GO

Next is to deploy a CentOS v6 or RHEL 6 server on which we will install the vCloud director binary file. Also make sure following rpms are installed on the centos/rhel server prior to installing vCD.

vcd9-1.PNG

Create SSL Certificates

Each vCloud Director server must support two different SSL endpoints. These endpoints can be separate IP address, or a single IP address with two different ports. Each endpoint requires its own SSL certificate. Certificates for both endpoints must include an X.500 distinguished name. vCloud Director does not require certificates to include a Subject Alternative Name.

In my lab I am using self-signed certificates as of now.  To create certs using keytool command, ensure JRE version 7 is installed on the node where you are trying to generate certs.Use following commands to create certs for http and console proxy service.

http cert

[root@vcd90 ~]# /usr/java/jdk1.7.0_80/jre/bin/keytool -keystore vcd-cert.ks -storetype JCEKS -storepass passwd -validity 9999 -genkey -keyalg RSA -keysize 2048 -alias http
What is your first and last name?
 [Unknown]: vcd90.alex.local
What is the name of your organizational unit?
 [Unknown]: NextGen-Cloud
What is the name of your organization?
 [Unknown]: Alex-Cloud
What is the name of your City or Locality?
 [Unknown]: Bangalore
What is the name of your State or Province?
 [Unknown]: Karnataka
What is the two-letter country code for this unit?
 [Unknown]: IN
Is CN=vcd90.alex.local, OU=NextGen-Cloud, O=Alex-Cloud, L=Bangalore, ST=Karnataka, C=IN correct?
 [no]: yes
Enter key password for <http>
 (RETURN if same as keystore password):
Re-enter new password:

Console Proxy Certs

[root@vcd90 ~]# /usr/java/jdk1.7.0_80/jre/bin/keytool -keystore vcd-cert.ks -storetype JCEKS -storepass passwd -validity 9999 -genkey -keyalg RSA -keysize 2048 -alias consoleproxy

What is your first and last name?
 [Unknown]: vcd90.alex.local
What is the name of your organizational unit?
 [Unknown]: NextGen-Cloud
What is the name of your organization?
 [Unknown]: Alex-Cloud
What is the name of your City or Locality?
 [Unknown]: Bangalore
What is the name of your State or Province?
 [Unknown]: Karnataka
What is the two-letter country code for this unit?
 [Unknown]: IN
Is CN=vcd90.alex.local, OU=NextGen-Cloud, O=Alex-Cloud, L=Bangalore, ST=Karnataka, C=IN correct?
 [no]: yes
Enter key password for <consoleproxy>
 (RETURN if same as keystore password):
Re-enter new password:

List generated certificates

[root@vcd90 ~]# /usr/java/jdk1.7.0_80/jre/bin/keytool -storetype JCEKS -storepass passwd -keystore vcd-cert.ks -list
Keystore type: JCEKS
Keystore provider: SunJCE
Your keystore contains 2 entries
consoleproxy, Sep 30, 2017, PrivateKeyEntry,
Certificate fingerprint (SHA1): 83:B4:E8:3E:1C:E5:24:9D:BB:B6:62:C2:07:B5:67:C5:32:A6:F9:EC
http, Sep 30, 2017, PrivateKeyEntry,
Certificate fingerprint (SHA1): CF:90:0B:23:CC:98:70:75:7A:FD:D0:A4:52:C7:14:3D:7B:FD:BB:8E

List the presence of vcd-cert.ks file by typing ls -l command. This file should be owned by user vcloud:vcloud.

As of now this user does not exists in system because we have not installed the vCD binary file yet. Post installing the binary file, we will not invoke configuration script immidiately. We will first change the ownership of the cert file and then invoke the config script.

[root@vcd90 ~]# ls -l vcd-cert.ks
-rw-r--r--. 1 root root 4484 Sep 30 00:26 vcd-cert.ks

Now we will proceed with installing the vcd binary file. Before starting installation we have to give execute permission to vcloud installer file otherwise installation wont start

[root@vcd90 ~]# chmod +x vcloud-director-9.0.0-6681978.bin

This will trigger the installation. Remember to not to invoke configuration script as of now

vcd9-2

vCloud installation will create a user named vcloud and also a directory (/opt/vmware/vcloud-director) will be created. Change the ownership of vcd-cert.ks file to vcloud:vcloud and move this file to /opt/vmware/vcloud-director

vcd9-3.PNG

Now its time to invoke the configuration script. Run this command to do so: /opt/vmware/vcloud-director/bin/configure

vcd9-4.PNG

vcd9-5.PNG

With that installation of vCD is completed. We will now configure some basic stuffs.

Login to vCD by typing URL: https://vCD-FQDN or IP

vcd9-6

Accept EULA and hit Next.

vcd9-7

Apply vCD license and hit Next

vcd9-8

Create a user for vCD administration and hit Next.

vcd9-9

Provide a name by which this cell will be identified in a multi-cell environment and hit Next.

vcd9-10

Review settings and hit finish.

vcd-9-11

We have now completed the basic configuration. In next post of this series we will cover how to attach vCenter and NSX manager to vCD and perfrom next steps regarding Org and vDC creation etc.

Similar Posts

Installing vCD 5.6

Install vCloud Director 8 with High Availability

I hope you find this post informational. Feel free to share this on social media if it is worth sharing. Be sociable 🙂