vCloud Director 9.1: Install vCloud Director Second Node – Part 6


At first, we need to prepare the virtual machine we are going to deploy the Second 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.167 (Used for HTTP)
  • IP: 10.161.115.168 (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.

01

2. Ensure execute permission.

# chmod u+x vmware-vcloud-director-distribution-9.1.0-8825802.bin

3. Run the installation file.

# ./vmware-vcloud-director-distribution-9.1.0-8825802.bin

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.

02

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=vcd02-prd.example.com, OU= Engineering, O=Example Corp, L=Palo Alto, S=California, C=US" -ext "san=dns:vcd02-prd.example.com,dns:vcd02-prd,ip:10.161.115.167"
  • 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=vcd02-proxy-prd.example.com, OU=Engineering, O=Example Corp, L=Palo Alto, S=California, C=US" -ext "san=dns:vcd02-proxy-prd.example.com,dns:vcd02-proxy-prd,ip:10.161.115.168"

3. Verify that all the certificates are generated, list the context of the keystore file.

# ./keytool -storetype JCEKS -storepass passwd -keystore certificates.ks -list

03

4. Validate the certificates using WinSCP in the following directory /opt/vmware/vcloud-director/jre/bin.

04

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/‘.

05

Continue reading “vCloud Director 9.1: Install vCloud Director Second Node – Part 6”

vCloud Director 9.1: Migrate and Transfer NFS – Part 5


At first, we need to stop vCloud Services by running the next commands.

# service vmware-vcd stop

And them, copy the information to other location.

# cp -r /opt/vmware/vcloud-director/data/transfer/ /tmp/copy

Them, delete the exiting data.

# rm -fR /opt/vmware/vcloud-director/data/transfer/*

Next, we need to mount the shared NFS by runing this command.

# mount -t nfs 10.161.115.160:/nfs /opt/vmware/vcloud-director/data/transfer

And them copy the information from /tmp to /opt/vmware/vcloud-director/data/transfer/

# cp -r /tmp/copy-of-transfer/* /opt/vmware/vcloud-director/data/transfer/

We will confirm the mount point.

01

And them we need to make sure the shared NFS is mounted after reboot by editing /etc/export.

# nano /etc/export

10.161.115.168:/nfs /opt/vmware/vcloud-director/data/transfer/ nfs rw 0 0

02

We have to confirm that the “cells” directory is now owned by vcloud. To configure this:

# chown -R vcloud:vcloud /opt/vmware/vcloud-director/data/transfer/*

Finally, start the vCloud Director service

# service vmware-vcd start

 

Hoping you have enjoyed this post, see you next time.

vCloud Director 9.1: Install NFS – Part 4


At first, we need to prepare the virtual machine we are going to deploy the NFS Server. These are the characteristics of the virtual machine.

  • O.S: CentOS 7 (64-bit)
  • vCPU: 2
  • RAM: 8 GB
  • HDD: 16 GB

Next, we need to install these packages on the CentOS server with yum:.

#yum install nfs-utils

And them, we need to create the directory that will be shared by NFS.

#mkdir /nfs

Change the permissions of the folder as follows.

#chmod -R 755 /nfs #chown nfsnobody:nfsnobody /nfs

Next, we need to start the services and enable them to be started at boot time.

systemctl enable rpcbind
systemctl enable nfs-server
systemctl enable nfs-lock
systemctl enable nfs-idmap
systemctl start rpcbind
systemctl start nfs-server
systemctl start nfs-lock
systemctl start nfs-idmap

Next, we need to install nano to share the NFS directory over the network a follows.

#yum install nano

And them …

# nano /etc/exports

We will make two sharing points  /nfs. Edit the exports file as follows:

/nfs            *(rw,sync,no_root_squash,no_all_squash)

Finally, start the NFS service

# systemctl restart nfs-server

Again we need to add the NFS service override in CentOS 7 firewall-cmd public zone service as:

firewall-cmd --permanent --zone=public --add-service=nfs
firewall-cmd --permanent --zone=public --add-service=mountd
firewall-cmd --permanent --zone=public --add-service=rpc-bind
firewall-cmd --reload

 

Hoping you have enjoyed this post, see you next time.

vCloud Director 9.1: Install Erlang and RabbitMQ – Part 3


If you are using 3rd party solutions with vCloud Director, you will probably need to install an AMQP broker or if you have more than one vCloud director node AMQP broker is needed which allows vCloud Director cells to exchange messages among each other. That´s will be our case.

At first, we need to install Erlang software, which makes rabbit MQ works properly. following the next steps to intall.

1. Download the software from this site https://www.erlang.org/downloads/.

2. execute the installer and choose the componentes you are going to deploy.

1.

3. Make sure that the process is finished.

2

 

Second, follow the next steps to install RabbitMQ software.

1. Download the software from this site https://www.rabbitmq.com/install-windows.html.

2. execute the installer and choose the componentes you are going to deploy.

3

4. Make sure that the process is finished.

4

5. Important: Test the RabbitMQ status by following the next command.

c:\Program files\RabbitMQ Server\rabbitmq_server-3.6.15\sbin>rabbitmqctl status

5

If you fall in this error:

TCP connection succeeded but Erlang distribution failed.

Follow the next step to solve it.

 

6. We need to go to this folder and copy the following file.

c.\Windows\System32\config\systemprofile\.erlang.cookie

6

7. Them, we need to replace the following file.

c.\Users\Administrator\.erlang.cookie

7

8. Finally, execute the RabbitMQ status and you should receive this message.

8

This means RabbitMQ is running.

9. Them, you should run this command to manage the RabbitMQ by HTML.

c:\Program files\RabbitMQ Server\rabbitmq_server-3.6.15\sbin>rabbitmq-plugins enable rabbitmq_management

9

10. Finally, we can get into the RabbitMQ service.

http://localhost:15672/

10

11

Hoping you have enjoyed this post, see you next time.

vCloud Director 9.1: Install vCloud Director – Part 2


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.

01

2. Ensure execute permission.

# chmod u+x vmware-vcloud-director-distribution-9.1.0-8825802.bin

3. Run the installation file.

# ./vmware-vcloud-director-distribution-9.1.0-8825802.bin

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.

02

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

03

 

 

 

4. Validate the certificates using WinSCP in the following directory /opt/vmware/vcloud-director/jre/bin.

04

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/‘.

05

Continue reading “vCloud Director 9.1: Install vCloud Director – Part 2”

vCloud Director 9.1: Install and Configure Database – Part 1


At first, we need to defind what kind of data base we are going to deploy, there are tree options:

  1. Microsoft SQL Server Database
  2. Oracle Database
  3. PostgreSQL Database

In this case, we are going to deploy Microsoft SQL Server 2016 Standard SP1 Database. For Microsoft SQL Server Database these are the minimum prerequisites:

  • RAM: 16 GB
  • CPU: 4 CPUs
  • Disk: 100GB

Before you choose the Microsoft SQL Server Database version validate VMware Product Interoperability Matrices.

01

Second, follow the next steps to deploy Microsoft SQL Server 2016 Standard SP1.

1. Select stand-alone installation.

02

2. Enter your product key.

03

3. Accept license Terms.

04

4. Select Database Engine Services. Here it’s important to select another partition in the operating system for the date base, in this case E:\ – 100GB.

05

5. Select the instance´s name.

06

6. Select the service accounts, in this case keep it by default.

07

7. Select mixed mode and add an administrator account.

Note: Windows Authentication is not supported when use SQL Server with vCloud Director.

08

8. Verify the SQL configuration and click install.

09

9. Validate every feature is succeeded.

10

Continue reading “vCloud Director 9.1: Install and Configure Database – Part 1”