Setup replication with two HCP-VMs on your laptop

Document created by Ab de Kwant on Jun 10, 2013Last modified by Michael Ratner on Oct 11, 2017
Version 4Show Document
  • View in full screen mode

If you want to setup replication with two HCP-VMs on your notebook you may find the following instructions helpful.

 

Please refer to the "Replicating Tenants And Namespaces" manual for full detail on configuring and working with Replication.

 

The following instructions will suggest to setup the second HCP VM and connect it to the same network as the HCP VM you already have (primary).

To run both systems on the same network you must use HCP 6.0.1 (6.0.1.92) or above. Upgrade to this release if you have installed an older version.

Instructions on how to upgrade are in Update Your HCP VM to the Latest Version.

 

We will reference your currently installed HCP VM as "Source HCP" and the new HCP VM as "Replica HCP".

 

Login to your Source HCP and export your Certificate

  1. Startup your Source HCP and login  https://admin.hcp-demo.hcpdomain.com:8000
  2. In the top menu go to Menu > Services > Replication, click on Certificates, and download the certificate under "Replication Server" as Source_HCP_Cert.
  3. Stop/power down  your Source HCP to install the Replica HCP.
  4. Create a folder for your Replica HCP VM, e.g.  c:\vm\hcpr  and extract the four  HCP-VM-Eval-Edition*.*  files from the zip to this folder (the same you have used for your Source HCP).

 

Configure your Replica HCP networking

  1. Start VMplayer
  2. Go to File > Open Virtual Machine and select  c:\vm\hcpr\HCP-VM-Eval-Edition
  3. Select this  HCP virtual machine and click "Edit Virtual Machine settings"
  4. Select "Memory Configuration" and reduce the configured memory from 4GB to 1GB (good enough for demo)
  5. Click OK to save changes
  6. Start the new HCP virtual machine
  7. Click in the virtual machine screen to get control
  8. Login with "install" and "Chang3Me!"
  9. Press RETURN to get to the menu
  10. From the menu select [2] and confirm with [y] (these confirmations are typical for HCP)
  11. Configure Front-end [1] with an unique IP on the same network used for your Source HCP.  Let’s assume the Source HCP address is 192.168.31.100. We will use available 192.168.31.101  for the Replica HCP.   Note: Use  ping to check to see if the IP is currently used.

  12. Configure Front-end gateway address [3] with the same address as you have used with your Source HCP.
  13. The Back-end configuration must use a different network as your Source HCP.  We suggest you add one to the third octet.  We assume you have used the default 172.21.220.220  for your Source HCP.  If so, use  172.21.221.220 for your Replica HCP.
  14. Select [b] to complete this configuration, and restart the system

 

Initial setup of Replica HCP

  1. Point your browser to  https://192.168.31.101:8000
  2. The default and initial credentials are "security" and "Chang3Me!"

  3. After you have changed the password, create a new user "admin" with the password same as you used on the Source HCP (to make it easy for you to remember).
  4. Go to Menu > Security > Domains and Certificates and create a domain  hcp-replica.hcpdomain.com  with  "Generate and install self-signed certificate".
  5. Go to Menu > Configuration > Networks, open [hcp_system] details, and select  hcp-replica.hcpdomain.com  as the new domain.
  6. The HCP VM will now restart

 

Install the Trusted Certificates before you create the replication link

  1. After the system is restarted, login again.
  2. In the top menu go to Menu > Services > Replication, click on Certificates, and upload the Source_HCP_Cert under "Trusted Server".
  3. Download the certificate under "Replication Server" as Replica_HCP_Cert.
  4. You may now also remove the old domain  hcp-demo.hcpdomain.com  to avoid confusion.  Go to Menu > Security > Domains and Certificates.
  5. Start your Source HCP again (tet Replica HCP running)
  6. After the system is restarted, login again.
  7. In the top menu, go to Menu > Services > Replication, click on Certificates, and upload the Replica_HCP_Cert under "Trusted Server".

 

Create the replication Link

  1. In the top menu, go to Menu > Services > Replication and click on Create Link.
  2. Name the link and specify the IP address of the Replica HCP, e.g. 192.168.31.101.
  3. Click on Create Link to confirm.
  4. Now the only thing left is to have Replica HCP accept the link.
  5. Log into Replica HCP and go to Menu > Services > Replication to accept.

 

Done!

Attachments

    Outcomes