vCloud Director 9.7 Install

A few weeks ago, vCloud Director 9.7 was released. There are a slew of new features in this release, which you can dig into in further detail here. I was anxious to get started with this release, and I wanted to create a walk through on how to get it up and running. Note: The only prerequisite I created prior to this walk through is an NFS server, which is a hard requirement for the deployment.

vCloud Director 9.7 Install
Very HTML5’y

Begin with creating a new CentOS 7 virtual machine with the following specifications:

vCloud Director 9.7 Install
Correction: Set provisioning to “Thin”

Once the OS provisioning is complete, log into the VM and perform an update with yum:

vCloud Director 9.7 Install

Next install a few basic packages to get started:

vCloud Director 9.7 Install

Configure ntp by editing /etc/ntpd.conf, and modifying the “Use public servers…” line to have your internal ntp server (if available).

vCloud Director 9.7 Install

Then start ntp:

vCloud Director 9.7 Install

Now we can start the Postgres installation. Install the package:

vCloud Director 9.7 Install

Initialize the database:

vCloud Director 9.7 Install

And start the service:

vCloud Director 9.7 Install

Next we have some configuration options for Postgres. First up is to set the password for the postgres user account, and then update postgres to use that new password:

vCloud Director 9.7 Install
May be a good idea to use something other than ‘secretpassword’ for your Production install

Next we can configure the vcloud user, and database, and set the appropriate permissions for the user:

vCloud Director 9.7 Install

Edit the /var/lib/pgsql/10/data/pg_hba.conf file to allow connections from anywhere (not recommended for Production):

vCloud Director 9.7 Install

And finally, edit the /var/lib/pgsql/10/data/postgresql.conf file to uncomment the listen_addresses line and change ‘localhost’ to ‘*’.

vCloud Director 9.7 Install

With our Postgres configuration now complete, we can restart the service:

vCloud Director 9.7 Install

Next we can start with the vCloud Director installation, sort of. We must first install the prerequisite RPM packages:

vCloud Director 9.7 Install

Download the vCloud Director 9.7 binary from the VMware site, which is available here. There are a number of ways to transfer the .bin file to your VM; I personally like to use WinSCP. Once the file is on your VM, set the appropriate permissions on it:

vCloud Director 9.7 Install

And then execute the file:

vCloud Director 9.7 Install

At the conclusion of the installer, it will ask you if you want to run the configuration script, select no.

vCloud Director 9.7 Install

Prior to configuring vCloud Director, we need to setup our SSL certificates.

vCloud Director 9.7 Install
Syntax below..
./keytool -keystore /opt/keystore/certificates.ks -storetype JCEKS -storepass secretpassword -keypass secretpassword-genkey -keyalg RSA -keysize 2048 -alias http -dname "CN=vcd01.domain.local, OU=VirtualRamblings, O=OU, L=City S=State C=US" -ext "san=dns:vcd01.domain.local,dns:vcd01,ip:192.168.10.44"

./keytool -keystore /opt/keystore/certificates.ks -storetype JCEKS -storepass secretpassword -keypass secretpassword -genkey -keyalg RSA -keysize 2048 -alias consoleproxy -dname "CN=vcd01-rc.domain.local, OU=VirtualRamblings, O=OU, L=City S=State C=US" -ext "san=dns:vcd01-rc.domain.local,dns:vcd01-rc,ip:192.168.10.45"

I run two instances of they key generator tool; once for the HTTP service and again for the remote console proxy IP. And now we are ready to configure vCloud Director! Execute the configuration script with:

vCloud Director 9.7 Install

Input your HTTP and console proxy IP addresses, and set the keystore with your SSL certificates to /opt/keystore/certificates.ks. Select “PostgreSQL” for the database type, and input the database name, database username, and database password. If all is well, you should see the following message:

vCloud Director 9.7 Install

Barring no errors, you should be met with a “vCloud Director configuration is now complete message!” Press “y” to start the vmware-vcd service.

vCloud Director 9.7 Install

Now stand by while your vCloud Director 9.7 installation loads!

vCloud Director 9.7 Install

Leave a Reply

Your email address will not be published. Required fields are marked *