Setup Hyperledger Fabric 1.4 LTS on GCP

Users will be able to create a Hyperledger Fabric network, managed using the HCL CoTrust Blockchain Platform. They will be able to create new Channels, install/instantiate chaincodes and test them using Web Interface in a 2 org setup.

HCL’s CoTrust™ Platform Introduction

CoTrust is HCL’s blockchain product suite, which enables accelerated adoption of blockchain by enterprises. It is Blockchain platforms agnostic and supports the likes of Hyperledger Fabric/Ethereum/R3 Corda by providing foundational capabilities and scaffolding required to get blockchain network ready. CoTrust Mars releases are a limited feature release of the CoTrust Console. This release is v2.1-MARS. It will be made available on GCP Marketplace where anyone with valid GCP login can create an instance of the Mars release of the CoTrust platform.

What is Included in Mars Release?

Users will get Hyperledger Fabric 1.4 in a two-organization setup configuration. This setup has been done using HCL CoTrust Blockchain Console, referred to as CoTrust Console in this read.

CoTrust Console Web Interface enables you to easily

  • Create additional Channels,
  • Install & instantiate Chaincode / Smart Contracts,
  • Invoke or Query functions of installed Chaincodes.

This setup can be used to build further use cases and explore Hyperledger Fabric. The setup makes use of a docker container for which a user does not have to create or configure any tooling, the setup time is just a few minutes after Compute Instance/VM setup.

Included Software

  1. Hyperledger Fabric 1.4.12
  2. Docker 19.03.12
  3. Docker Compose 1.26.2
  4. NodeJS 12.18.3
  5. HCL CoTrust Blockchain Console — 2.1


Before installing this platform VM on GCP, it is assumed that the user is familiar with Linux commands and has an SSH client installed on the machine.

How to Get it Up and Running?

The following steps allow a user to install Hyperledger Fabric 1.4 environment & HCL CoTrust Blockchain Platform Console on the GCP VM instance.

Step 1: Go to GCP Marketplace

Step 2: Select HCL CoTrust™ Blockchain Platform v2.1 (Mars) product and press launch.

Step 3: Add a public SSH key for user `ubuntu`. This user will be used by the platform to execute required scripts.

Step 4: Once the VM is up and Running, Open the Putty/SSH client and log on to the server using the Putty client. Once logged in, use the following command to assume root privileges.

sudo su -

Step 5: Bring up the Hyperledger Fabric network, and CoTrust Console:
a. Go to the directory using command
b. Execute the following commands


P.S: It is mandatory to replace with your choice of admin password for your initial setup.

Step 6: Access your HCL CoTrust Blockchain Console using the following URL:
Credentials for login are

After 1st login, you will be asked to provide your Ubuntu user PEM Key. This key is used by the CoTrust Console to manage and access your blockchain network. This key will be stored on local drive of your VM instance only.

How to Stop the network and applications?

To stop fabric network, CoTrust Console and Hyperledger explorer
a. Go to
b. Execute command

How to restart the network and applications or start after shutdown?

Bring up the Hyperledger Fabric network, Explorer and CoTrust Console after shutdown or simply restart.
a. Go to
b. Execute command
P.S: Password is optional. The last known password will be used if you do not supply the password here.

Troubleshooting Tip:

In case you encounter any issue during the initial setup, please redo setup 4.
In case you encounter an issue during bringing up the environment or have trouble accessing the Application, try restarting the network and application.

Emerging Technologies Architect/Evangelist with credentials in Blockchain, Virtual Asssitant, Data Analytics & Computer Vision. LinkedIn: