"Enter"a basıp içeriğe geçin

vCloud Director 9.5 Installation-Cell Installation Part 4

NFS ve PostgreSql DB kurulumlarından sonra vCloud Director Cell kurulumuna geçebiliriz. Bunun için vmware-vcloud-director-distribution-9.5.0-11038216.bin dosyasını My VMware’den download ediyoruz. Sonrasında Centos 7 sunucumuzun /tmp dizini altına bu dosyasyı atıyoruz.

Sonrasında dosya iznini aşağıdaki gibi ayarlıyoruz.

chmod u+x vmware-vcloud-director-distribution-9.5.0-11038216.bin

Kurulumu başlatıyoruz.

./vmware-vcloud-director-distribution-9.5.0-11038216.bin

Aşağıdaki gibi kurulum başlıyor.

Checking free disk space…done

Checking for a supported Linux distribution…Detected CentOS7 system

done

Checking for necessary RPM prerequisites…done

Extracting VMware vCloud Director. Please wait, this could take a few minutes…

vmware-vcloud-director-23.2018.11.27-11038232.x86_64.rpm

vmware-vcloud-director-rhel-23.2018.11.27-11038232.x86_64.rpm

vmware-vcloud-director-h5ui-23.2018.11.27-11038232.x86_64.rpm

vmware-phonehome-1.0.0-9490868.noarch.rpm

done

Verifying RPM signatures…done

Installing the VMware vCloud Director RPMs…

warning: vmware-vcloud-director-23.2018.11.27-11038232.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 66fd4949: NOKEY

Preparing… ################################# [100%]

Updating / installing…

1:vmware-vcloud-director-rhel-23.20################################# [ 25%]

2:vmware-vcloud-director-23.2018.11################################# [ 50%]

3:vmware-vcloud-director-h5ui-23.20################################# [ 75%]

4:vmware-phonehome-1.0.0-9490868 ################################# [100%]

You should now run the configuration script

(/opt/vmware/vcloud-director/bin/configure) to perform other required

post-installation configuration.

If you will be deploying a vCloud Director cluster you must mount the shared

transfer server storage prior to running the configuration script. If this

is a single server deployment no shared storage is necessary.

If you are not ready to do this right now, you may run the script later

prior to starting the vmware-vcd service.


Konfigurasyon scriptini n ile başlatmıyoruz. bir kaç değişiklik yaptıktan sonra başlatacağız.

Would you like to run the script now? (y/n)? n

Skipping. You may run the configuration script at a later time by executing
/opt/vmware/vcloud-director/bin/configure


vCloud Director Cell’lerinin çalışması için http ve konsol için 2 tane self sign sertifikaya ihtiyaç var. Bu sertifikaları keytool ile cell üzerine yapabilirsiz ya da kendi sertifika sunucunuzda bu sertifikayı hazırlayabilirsiniz. vCloud director konfigrasyonu sırasında bu sertikaların lokasyonunu sorulacaktır. Biz self-sigh olarak cell üzerinde oluşturacağız.

./keytool -keystore vcd-cert.ks -storetype JCEKS -storepass ‘password’ -validity 9999 -genkey -keyalg RSA -keysize 2048 -alias http

./keytool -keystore vcd-cert.ks -storetype JCEKS -storepass ‘password’ -validity 9999 -genkey -keyalg RSA -keysize 2048 -alias consoleproxy

sonrasında vcd-cert.ks dosyasınn sahipliğini ve tipini değiştiriyoruz.

chown vcloud:vcloud vcd-cert.ks

chmod +x vcd-cert.ks

Sertifikalar hazırlandığı için vcloud director konfigrasyonuna devam edebiliriz.

Bunun için aşağıdaki komutu çalıştırıyoruz.

/opt/vmware/vcloud-director/bin/configure

Konfigrasyon aşamasında aşağıdaki bir kaç soruya yanıt vermemiz gerekiyor.

Welcome to the vCloud Director configuration utility.

You will be prompted to enter a number of parameters that are necessary to
configure and start the vCloud Director service.

Please indicate which IP address available on this machine should be used for
the HTTP service and which IP address should be used for the remote console proxy.

The HTTP service IP address is used for accessing the user interface and the
REST API. The remote console proxy IP address is used for all remote console
connections and traffic.

Please enter your choice for the HTTP service IP address:
1. 172.20.1.46
2. 172.20.1.47
3. 127.0.0.1
4. [fe80:0:0:0:8546:8642:c062:ab88%ens160]
5. [fe80:0:0:0:85cf:f55f:f25b:a049%ens160]
6. [fe80:0:0:0:a213:b0fe:dabb:c90c%ens160]
7. [0:0:0:0:0:0:0:1%lo]
Choice [default=1]: 1

Please enter your choice for the remote console proxy IP address:
1. 172.20.1.47
2. 127.0.0.1
3. [fe80:0:0:0:8546:8642:c062:ab88%ens160]
4. [fe80:0:0:0:85cf:f55f:f25b:a049%ens160]
5. [fe80:0:0:0:a213:b0fe:dabb:c90c%ens160]
6. [0:0:0:0:0:0:0:1%lo]
Choice [default=1]: 1

Please enter the path to the Java keystore containing your SSL certificates and
private keys: /opt/vmware/vcloud-director/jre/bin/vcd-cert.ks
Please enter the password for the keystore:

If you would like to enable remote audit logging to a syslog host please enter
the hostname or IP address of the syslog server. Audit logs are stored by
vCloud Director for 90 days. Exporting logs via syslog will enable you to
preserve them for as long as necessary.

Syslog host name or IP address [press Enter to skip]:
No syslog host was specified, disabling remote audit logging.

The following database types are supported:
1. PostgreSQL
2. Microsoft SQL Server
Enter the database type [default=1]: 1
Enter the host (or IP address) for the database: 172.20.1.43
Enter the database port [default=5432]:
Using default value “5432” for port.

Enter the database name [default=vcloud]: vcddb
Enter the database username: vclouduser
Enter the database password:
Connecting to the database: jdbc:postgresql://172.20.1.43:5432/vcddb?socketTimeout=90
…………………………………\
VMware’s Customer Experience Improvement Program (“CEIP”) provides VMware with information that enables VMware to improve its products and services, to fix problems, and to advise you on how best to deploy and use our products. As part of the CEIP, VMware collects technical information about your organization’s use of VMware products and services on a regular basis in association with your organization’s VMware license key(s). This information does not personally identify any individual.
Additional information regarding the data collected through CEIP and the purposes for which it is used by VMware is set forth in the Trust & Assurance Center at http://www.vmware.com/trustvmware/ceip.html. If you prefer not to participate in VMware’s CEIP for this product, you should enter “n” below.
You may join or leave VMware’s CEIP for this product at any time.

Join the VMware Customer Experience Improvement Program [y/n]: n
Database configuration complete.

vCloud Director configuration is now complete.

Once the vCloud Director server has been started you will be able to
access the first-time setup wizard at this URL:
https://vcdcell01.tanit.local

Would you like to start the vCloud Director service now? If you choose not
to start it now, you can manually start it at any time using this command:
service vmware-vcd start

Start it now? [y/n] y

Starting vmware-vcd-watchdog: [ OK ]
Starting vmware-vcd-cell [ OK ]
The vCD service will be started automatically on boot. To disable this,
use the following command: chkconfig –del vmware-vcd

cell servislerinide açıp konfigrasyonu tamamlıyoruz.

Son olarak test ortamı olduğu için sunucu üzerindeki firewall servisini kapatıyoruz.

systemctl stop firewalld
systemctl disable firewalld

Bir sonraki yazımda var olan vCloud Director Cell’in yedekliliği için ikinci cell eklemeye işlemlerine değineceğim.

Bu yazı yorumlara kapalı.