Skip to content
Menu
  • CloudThesis-Home
  • Cloud Management
    • VMware Cloud
    • VCF (VMware Cloud Foundation)
    • vRO
    • vRA
    • vRealize Log Insight
    • vCloud Director
    • Hybrid Cloud Extension (HCX)
    • vCloud
    • Cloud on AWS
  • VMware
    • vCenter
    • vSphere
      • Generic vSphere Commands
    • ESXi
    • VMware vRealize Suite Lifecycle Manager –8 Deployment Guide
    • VMware Site Recovery Manager (SRM)
    • vRealize Network Insight
    • VMware Horizon
  • Power CLI
    • PowerCLI Snippets
  • NSX
  • vSAN
    • vSAN 7
  • Nutanix
  • VOIP
  • Microsoft
    • Azure Cloud
    • Microsoft Windows Server
    • Hypervisor
    • Create Azure VMs (Portal)
    • Create Azure VMs – PowerShell
  • Author
  • Contact

vCloud Director Lab 1 – Database installation .

Posted on July 31, 2019

What is vcloud director ?

VMware vCloud Director (vCD) is deployment, automation and management software for virtual infrastructure resources in multi-tenant cloud environments.

” vCloud Director Architecture Diagram as per VMware  “
vcloud.png

 

vCD 9.0 DB Installation with PostgreSQL 9.5 on CentOS 7 :

vCloud Director supported below three databases :

  1. Oracle
  2. Microsoft SQL Server
  3. PostgreSQL

 

Database Hardware Requirements :

                         Minimum Hardware requirement for PostgreSQL 9.5
HDD 100 GB
MEM 16 GB
CPU 4 vCPUs
OS CentOS

I am using PostgreSQL with CentOS as per my requirement ,use this link for complete HW check ( https://pubs.vmware.com/vcd-80/topic/com.vmware.vcloud.install.doc_80/GUID-C258BED7-9664-4DFE-B812-100281D4D460.html )

Install CentOS 7 :

    1. Step 1: Download The ISO Image.
    2. Step 2: Make A bootable Drive.
    3. Step 3: Begin Installation.
    4. Step 4: Select Language And Keyboard.
    5. Step 5: Change The Installation Destination.
    6. Step 6: Select The Partitioning Scheme.
    7. Step 7: Create A Swap Space.
    8. Step 8: Create A Mount Point.
    9. Set the root password and reboot .
    10. Create user .

At last you  will get the desktop ..

Cos

 

You need to update the OS and install required components :

Connect VM with SSH  and use below command :

  1.     yum update yum
  2.      yum update
  3.     Reboot the  OS

Next will Install the PostgreSQL 9.5 rpm and core packages .

  1. rpm -ivh http://yum.postgresql.org/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-2.noarch.rpm
  2. yum install net-tools postgresql95 postgresql95-server postgresql95-libs postgresql95-contrib

 

Now you will nedd to change SQL password and set SQL start on boot.

  1. passwd postgres
  2. /usr/pgsql-9.5/bin/postgresql95-setup initdb
  3. systemctl start postgresql-9.5.service
  4. systemctl enable postgresql-9.5.service

Now Change the postgres user .

  1.   sudo -u postgres -i

Create the vCD user and database

Next need to create the vCD user account and DB .

  1. psql
  2. create user vcloud;
  3. alter user vcloud password ‘VMware1!’;
  4. alter role vcloud with login;
  5. create database vcloud;
  6. grant all privileges on database vcloud to vcloud;

Now Allow PostgreSQL connections with default firewall configuration

  1. Log with root and use below step.
  2. firewall-cmd –zone=public –add-service=postgresql

Next need to allow the vcloud user  login externally .

Add below line …

  1. vi /var/lib/pgsql/9.5/data/pg_hba.conf
    • host    all             all             10.0.0.0/24            md5

Now set the postgreSQL listening port and ip then sync NTP clock

  1. vi /var/lib/pgsql/9.5/data/postgres.conf
  2. Then add below input :
    • listen_address = ‘*’
    • port= 5432
  3.  yum install ntp

 

Now need to configure the NTP server to synchronize the clock with vCD and DB .

  1. vi /etc/ntp.conf

NTP-Config

Start and validate the ntpd service is running .

  1. systemctl start ntpd
  2. systemctl enable ntpd
  3. systemctl status ntpd

5.-NTP-Active-Running.png

Now need to validate ntpd is sync with currect NTP server and also check date .

  1. ntpq -p
  2. date -R

It’s time to reboot the server .

 

Thanks hope you like it.

Rajiv Pandey.

Leave a Reply Cancel reply

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

Search Topic

Categories

  • Azure Cloud
  • Cloud Management
  • Cloud on AWS
  • Create Azure VMs – PowerShell
  • Create Azure VMs (Portal)
  • ESXi
  • Generic vSphere Commands
  • Hybrid Cloud Extension (HCX)
  • Hypervisor
  • Microsoft
  • Microsoft Azure Cloud and Services
  • Microsoft Windows Server
  • NSX
  • Nutanix
  • Power CLI
  • PowerCLI Snippets
  • vCenter
  • VCF (VMware Cloud Foundation)
  • vCloud
  • vCloud Director
  • VMware
  • VMware Cloud
  • VMware Horizon
  • VMware Site Recovery Manager (SRM)
  • VMware vRealize Suite Lifecycle Manager – 8.0
  • vRA
  • vRealize Log Insight
  • vRealize Network Insight
  • vRO
  • vSAN
  • vSAN 7
  • vSphere
  • Windows Servers
©2025 | WordPress Theme by Superbthemes.com