The jumpbox virtual machine is required to provision the cluster virtual machines for the Greenplum deployment. You must run the Terraform code provided in the next sections from this jumpbox virtual machine.
Download the ISO file. The recommended version is CentOS-7-x86_64-Minimal-2009.iso
. You can download it here. For example:
$ curl -JLO http://mirrors.ocf.berkeley.edu/centos/7.9.2009/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso
Ensure that the sha256sum
output of the downloaded ISO is correct:
$ sha256sum CentOS-7-x86_64-Minimal-2009.iso
The result should match the one provided with the download.
Rename the ISO file to centos7.iso
:
$ mv CentOS-7-x86_64-Minimal-2009.iso centos7.iso
Log in to vCenter using the vSphere client.
Right-click the datastore where you want to upload the ISO and select Browse Files.
Click New Folder and create a new folder named gp-jumpbox
.
Upload centos7.iso
into the gp-jumpbox
directory.
gp-jumpbox
.gp-virtual-external
port group.gp-virtual-internal
port group.Power on the newly created virtual machine and launch the web console.
Select Install CentOS 7 and press Enter.
Select the preferred language and locale, then click Continue.
Click on Installation Destination under System.
Click Network & Host Name under System.
gp-virtual-external
port group.
gp-virtual-internal
port group.
gp-jumpbox
and then click Apply.Click Begin Installation.
Set the root
password, then click Done. Clicking Done a second time may be necessary.
After setup is complete, click Reboot.
Before continuing to the next section, verify that the virtual machine has external network access. Log in to the newly created virtual machine and run the following command:
$ ping 8.8.8.8
Note that you might need to manually install additional packages or tools that are not part of the minimal CentOS ISO image.
You can find more detailed instructions on the VMware Knowledge Base.
On the vSphere client, right click your virtual machine. Select Guest OS → Install VMware Tools....
Select Mount. This mounts an ISO file as a virtual CD-ROM.
Retrieve the IP address of the adapter connected to the gp-virtual-external
port group.
Log in to gp-jumpbox.
Install perl
:
$ yum install -y perl
Mount the ISO containing the VMware Tools binary.
$ mkdir -p /mnt/cdrom
$ mount /dev/cdrom /mnt/cdrom
Extract the installation file.
$ cd /tmp
$ tar -xzvf /mnt/cdrom/VMwareTools*.tar.gz
Umount the ISO.
$ umount /mnt/cdrom
Install VMware Tools, choose yes for the first prompt, and use defaults for the remaining prompts.
$ cd /tmp/vmware-tools-distrib
$ ./vmware-install.pl --force-install --default
Validate that VMware Tools is installed.
$ systemctl status vmware-tools
● vmware-tools.service - SYSV: Manages the services needed to run VMware software
Loaded: loaded (/etc/rc.d/init.d/vmware-tools; bad; vendor preset: disabled)
Active: active (running) since Wed 2021-06-02 18:14:34 EDT; 2min 59s ago
Docs: man:systemd-sysv-generator(8)
Process: 8636 ExecStart=/etc/rc.d/init.d/vmware-tools start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/vmware-tools.service
├─8739 /usr/sbin/vmtoolsd
└─8775 /usr/lib/vmware-vgauth/VGAuthService -s
You must install Terraform on the jumpbox virtual machine. The minimum version required is v0.14.3
. You can find more detailed instructions on the Terraform website.
Download and install the software.
$ cd /tmp
$ yum install -y wget unzip
$ wget https://releases.hashicorp.com/terraform/0.15.5/terraform_0.15.5_linux_amd64.zip
$ unzip terraform_0.15.5_linux_amd64.zip
$ mv terraform /usr/local/bin/
Validate the installation.
$ terraform --version
Terraform v0.15.5
on linux_amd64
The jumpbox virtual machine is now ready for use. Continue to Choosing your Deployment Option to decide which deployment option will best fit your needs.