To prepare your on-premises environment for deployment, you must manually configure your vSphere environment settings.
You must finish the following configuration steps to prepare each of your vSphere environments for an on-premises VMware Blockchain deployment.
Prerequisites
Verify that your environment has vSphere 7.0 or 6.7 installed. See vSphere Installation and Setup Process.
Procedure
- Log in to vCenter Server.
- Configure a cluster of hosts.
- Create a dedicated datastore for allocating datastore resources to VMware Blockchain.
The minimum requirement for allocating datastore resources is a single host. See Create a Datastore Cluster.
- To dedicate cluster resources for VMware Blockchain, create a resource pool.
- To allow firewall access to the deployed VMs in your data center, configure the outbound connectivity.
-
https://vmwaresaas.jfrog.io/vmwblockchain
*. vmware.com
If you plan to use Wavefront for collecting metrics, activate firewall access to vmware.com.
-
- Set up a content library to store VMware Blockchain templates in the vSphere inventory.
If your vSphere inventory has a connection to Amazon S3, add the subscription URL https://vmbc-saas.s3.us-east-2.amazonaws.com/vmw-blockchain-lvm-sh-ova-1.0/lib.json as the content library distribution point.
If your vSphere inventory cannot connect to Amazon S3, you can manually set up the connectivity.
- Configure the vSphere environment to the VMware Blockchain Orchestrator IP address to deploy VMware Blockchain VMS.
The content library server is available within the VMware Blockchain Orchestrator appliance.
http://<orchestrator-ip-address>/lib.json
- (Optional) Get the latest Nginx images from JFrog.
docker login https://vmwaresaas.jfrog.io/vmwblockchain -u <username> -p <password> docker pull vmwaresaas.jfrog.io/vmwblockchain/persephone-provisioning:cl-nginx-blockchain-1.0
- (Optional) Run the Docker command to set a local proxy.
docker run --name proxy -p 8083:80 -d vmwaresaas.jfrog.io/vmwblockchain/persephone-provisioning:cl-nginx-blockchain-1.0
- Add the subscription URL as the content library distribution point.
docker run --name proxy -p 8083:80 -d vmwaresaas.jfrog.io/vmwblockchain/persephone-provisioning:cl-nginx-blockchain-1.0 http://<subscription_url>/lib.json
Add the subscription URL as the content library distribution point. See Create a Library.
- Configure the vSphere environment to the VMware Blockchain Orchestrator IP address to deploy VMware Blockchain VMS.
- To group the same type of objects for easier management, create a VM and Templates folder.
Note:
You must assign a unique folder name and use this folder name across multiple vCenter Server clusters.
See Create a Folder.
- (Optional) Create a vSphere Standard Switch or a vSphere Distribute Switch with a VM port group for the network connectivity with VMware Blockchain.
Note:
The VM network name you assign here is used for VMware Blockchain.
See Create a vSphere Standard Switch or Create a vSphere Distributed Switch.
- (Optional) Configure the DNS settings to denote the network gateway, subnet size, and the IP address range in the subnet allocated exclusively for VMware Blockchain.
See Edit the DNS and IP Address Settings.
Note:The vSphere and VMware Cloud have different terminology that refers to the same feature option. For example, in vSphere, the port group name option equates to the compute network option in VMware Cloud.
- Create a VMware Blockchain service role with required privileges and assign roles to the newly created vCenter Server objects.
Menu Item
Configuration
Content Library
Select the Read storage menu item.
Datastore section
Select the Allocate Space menu item.
Network
Select all the menu items.
Resource
Assign a vApp to the resource pool.
vApp
Select all the menu items.
Virtual Machine
Select all the menu items.
- Create a service user account in the vCenter Server.
- Connect to the Docker repositories.
- Create a VM that supports Docker in your vSphere environment.
- Verify that vCenter Server has network connectivity to the newly created VM.
- Configure the VM Internet connectivity to access the public Docker repositories.
- Extract the vCenter Server public key for VMware Blockchain Orchestrator if vCenter Server does not have a CA certificate.
The VMware Blockchain Orchestrator uses the vCenter Server public key to make API calls to the vCenter Server.
- Download the vCenter Server certificate ZIP file.
wget --no-check-certificate https://<vCenter_URL>/certs/download.zip
Substitute the <vCenter_URL> variable with your vCenter Server URL.
- Unzip the certificate file.
unzip download.zip
- Locate the Linux certificate file in the lin directory.
certs/lin/<certificate_file_with_0_as_extension>
The Linux certificate file has a .0 as the extension.
- (Optional) For multiple certificate files with .0 extension, collate the files into one file using the cat command.
cat ca034145.0 ca036789.0 ca067854.0 > certs.0
The collated certificate file certs.0 can be used as a single certificate. For example, certs/lin/ca034145.0.
- Verify the certificate using the curl --cacert command.
curl --cacert <certificate_file> https://<vCenter_URL>
- Convert the Linux certificate into a single line.
awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' certs/lin/<certificate_file>
- In the infrastructure descriptor file, add this single-line certificate output value for the tlsCertificateData attribute under the vCenter section.
- Download the vCenter Server certificate ZIP file.
What to do next
You can optionally verify permissions and VM connectivity. See Verify vSphere Permissions and VM Connectivity.
If you plan to use your private Docker container registry, you must download trusted VMware images. See Download Trusted VMware Images for Your Private Docker Container Registry.