At first, we need to prepare the virtual machine we are going to deploy the first cell. These are the characteristics of the virtual machine.
- O.S: CentOS 7 (64-bit)
- vCPU: 2
- RAM: 16 GB
- HDD: 16 GB
- IP: 10.161.115.165 (Used for HTTP)
- IP: 10.161.115.166 (Used for Proxy Console)
Next, we need to prepare the operating system with the following packages.
# yum install alsa-lib bash chkconfig coreutils findutils glibc grep initscripts krb5-libs libgcc libICE libSM libstdc libX11 libXau libXdmcp libXext libXi libXt libXtst module-init-tools net-tools pciutils procps redhat-lsb sed tar which wget
And them, we need to install the lastest operating system updates.
# yum update
And finally, we need to stop and disable the operating system firewall to avoid communication issues.
# systemctl stop firewalld # systemctl disable firewalld
Second, follow the next steps to deploy the vCloud Director 9.1.
1. Copy the installation file using winSCP.
2. Ensure execute permission.
# chmod u+x vmware-vcloud-director-distribution-9.1.0-8825802.bin
3. Run the installation file.
Note: After the software is installed, the installer prompts you to run the configuration scritp, which configures Certificates, Server’s network and database connections.
In this case, choose n and before to execute the script we must configure the certificates.
Third, follow the next steps to create a Self-Signed SSL Certificate.
1. Go to the directory /opt/vmware/vcloud-director/jre/bin.
2. Execute the following commands to generate the Self-Signed SSL Certificates.
- For HTTP service
# ./keytool -keystore certificates.ks -alias http -storepass passwd -keypass passwd -storetype JCEKS -genkeypair -keyalg RSA -keysize 2048 -validity 365 -dname "CN=vcd01-prd.example.com, OU= Engineering, O=Example Corp, L=Palo Alto, S=California, C=US" -ext "san=dns:vcd01-prd.example.com,dns:vcd01-prd,ip:10.161.115.165"
- For Console Proxy service
# ./keytool -keystore certificates.ks -alias consoleproxy -storepass passwd -keypass passwd -storetype JCEKS -genkeypair -keyalg RSA -keysize 2048 -validity 365 -dname "CN=vcd01-proxy-prd.example.com, OU=Engineering, O=Example Corp, L=Palo Alto, S=California, C=US" -ext "san=dns:vcd01-proxy-prd.example.com,dns:vcd01-proxy-prd,ip:10.161.115.166"
3. Verify that all the certificates are generated, list the context of the keystore file.
# ./keytool -storetype JCEKS -storepass passwd -keystore certificates.ks -list
4. Validate the certificates using WinSCP in the following directory /opt/vmware/vcloud-director/jre/bin.
5. Important: Copy the certificates in a directory in which must be readable by the user vcloud.vcloud. The vCloud Director installer creates this user and group. In this case ‘/opt/vmware/‘.
Fourth, Follow the next steps to configure vCloud Director Cell.
1. Run the following comand to execute the configuration utility.
2. Select the IP address to the HTTP service.
3. Select the IP address to the remote console proxy.
4. Select the path where you copied the certificates in the previous point 5 ‘/opt/vmware/’.
5. Configure the database you deployed in the previous post vCloud Director 9.1: Install and Configure Database – Part 1 and join the VMware Customer Expirience Improvement Program.
6. Finally start the services and access to setup vCloud Director.
Fifth, Follow the steps below to initialize vCloud Director.
1 . Go to the URL and click next.
2. Accept the terms.
3. Configure the license key and click next.
4. Configure administrator account and contact information.
5. Configure the system.
6. Confirm the resume.
7. Finally you are ready to login to vCloud Director.
Hoping you have enjoyed this post, see you next time.