vCloud Director 9.5 single cell unatended installation

Happy New Year everyone,

I am back with some cool unattended script for installation of vCloud director which you can just copy paste to your environment, run it. Wait abit. and you got your running vCD 9.5.

Pre Reqs:

  1. Have CentOS7 machine installed and updated with proper IP addresses.
  2. Put vCD.bin file in “script run location”
  3. Modify passwords and addresses
  4. Install MS SQL
  5. Create required DNS records

Here is the SQL queries which are required to build the database:

USE [master]
GO
CREATE DATABASE [vcloud] ON PRIMARY
(NAME = N'vcloud', FILENAME = N'S:\vcd\vcloud.mdf', SIZE = 100MB, FILEGROWTH = 10% )
LOG ON
(NAME = N'vcdb_log', FILENAME = N'S:\vcd\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 = 'P@ssw0rdoooo', 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

SSH to your VCD-CELL and run the following script:

systemctl stop firewalld
systemctl disable firewalld

cp /etc/selinux/config /etc/selinux/config.bak
echo "SELINUX=disabled" > /etc/selinux/config
echo "SELINUXTYPE=targeted" >> /etc/selinux/config
setenforce 0

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 wget which -y

chmod u+x vmware-vcloud-director-distribution-9.5.0-10266189.bin<br>
./vmware-vcloud-director-distribution-9.5.0-10266189.bin <<EOF
n
EOF


/opt/vmware/vcloud-director/jre/bin/keytool -keystore /opt/vmware/vcloud-director/certificates.ks -alias http -storepass P@ssw0rdoooo -keypass P@ssw0rdoooo -storetype JCEKS -genkeypair -keyalg RSA -keysize 2048 -validity 365 -dname "CN=vcd-cell01.it-notes.co.uk,OU=Lab,O=IT-Notes,L=None,S=None,C=RU" -ext "san=ip:10.20.1.60"

/opt/vmware/vcloud-director/jre/bin/keytool -keystore /opt/vmware/vcloud-director/certificates.ks -alias consoleproxy -storepass P@ssw0rdoooo -keypass P@ssw0rdoooo -storetype JCEKS -genkeypair -keyalg RSA -keysize 2048 -validity 365 -dname "CN=consoleproxy.it-notes.co.uk,OU=Lab,O=IT-Notes,L=None,S=None,C=RU" -ext "san=ip:10.20.1.61"

/opt/vmware/vcloud-director/bin/configure -cons 10.20.1.61 -ip 10.20.1.60 -dbhost sql01.it-notes.co.uk -dbport 1433 -dbtype sqlserver -dbname vcloud -dbinstance vcd -dbuser vcloud -dbpassword 'P@ssw0rdoooo' -k /opt/vmware/vcloud-director/certificates.ks -w P@ssw0rdoooo -unattended

service vmware-vcd start

/opt/vmware/vcloud-director/bin/cell-management-tool system-setup --email vcloud@it-notes.co.uk --full-name administrator --installation-id 1 --password P@ssw0rdoooo --system-name vcloud-test --unattended --user administrator

That is it. Login to the web address of your new CLOUD!

Hope that was helpful! Stay Tuned!

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.