The vSphere Replication Manager manages and monitors the replication process from tenant VMs to the service provider environment. A vSphere Replication management service runs for each vCenter Server and tracks changes to VMs and infrastructure related to replication.

About this task

The Resource vCenter Server is a vCenter Server registered to vCloud Director and made available to tenants.

Important:

Deploy one vSphere Replication Manager for each Resource vCenter Server. The total number of vSphere Replication Management servers depends on your environment and deployment requirements.

Procedure

  1. Create an SSH connection to the vCloud Availability Installer Appliance using your root credentials. You run all installation and configuration commands from the vCloud Availability Installer Appliance.
  2. Create a vSphere Replication Manager.

    Standard Command

    Command Using Registry

    # vcav hms create \
    --ovf-url=vcloud-availability-release_number-xxx-build_number_OVF10.ova \
    --vsphere-address=$VSPHERE01_ADDRESS \
    --vsphere-user=$SSO_USER \
    --vsphere-password-file=~/.ssh/.sso \
    "--network=$VSPHERE01_PLACEMENT_NETWORK" \
    "--vsphere-locator=$VSPHERE01_PLACEMENT_LOCATOR" \
    --datastore=$VSPHERE01_PLACEMENT_DATASTORE \
    --ntp=pool.ntp.org \
    --root-password-file=~/.ssh/.root \
    --vm-name=hms01-name
    
    # vcav hms create \
    --ovf-url=vcloud-availability-release_number-xxx-build_number_OVF10.ova \
    --vsphere=vsphere-01-name \
    --ntp=pool.ntp.org \
    --root-password-file=~/.ssh/.root \
    --vm-name=hms01-name
    

    The IP address of the new vSphere Replication Manager is displayed. Write it down because you need it during the configuration.

    Repeat this step for every resource vCenter Server in your environment.

  3. If necessary, unregister the vSphere Replication extension from the vSphere Web Client.

    By default, the vSphere Replication Manager registers as an extension to the instance of vSphere it is deployed to. This model is called in inventory deployment. For in inventory deployments, the vSphere Replication Manager manages the replications to the vSphere instance it is deployed to. In such cases, you must skip this step.

    You can deploy a vSphere Replication Manager to an infrastructure pool that tenants are not using and register the vSphere Replication Manager to a resource pool instance of vSphere. This model is called out of inventory deployment. For out of inventory deployments, the vSphere Replication Manager does not manage the replications to the vSphere instance it is deployed to. In such cases, you must unregister the vSphere Replication extension by running the following command.

    Standard Command

    Command Using Registry

    # vcav hms unregister-extension \
    --vsphere-address=$VSPHERE01_ADDRESS \
    --vsphere-user=$SSO_USER \
    --vsphere-password-file=~/.ssh/.sso
    # vcav hms unregister-extension \
    --vsphere=vsphere-01-name
  4. Set a variable to the address of the created virtual machine.

    Standard Command

    Command Using Registry

    # HMS01_ADDRESS=`vcav vsphere get-ip \
    --vsphere-address=$VSPHERE01_ADDRESS \
    --vsphere-user=$SSO_USER \
    --vsphere-password-file=~/.ssh/.sso \
    "--network=$VSPHERE01_PLACEMENT_NETWORK" \
    --vm-name=hms01-name`
    # HMS01_ADDRESS=`vcav vsphere get-ip \
    --vsphere=vsphere-01-name \
    "--network=vsphere-01-network" \
    --vm-name=hms01-name`
  5. If you use Fully Qualified Domain Names (FQDN) to access and manage appliances, you must verify that the DNS record matches the vSphere Replication Manager IP address and trusts the SSH certificate for this FQDN.
    1. Check the DNS server to ensure that the entry matches the IP address of the vSphere Replication Manager.
    2. Run the following command to trust the certificate for the vSphere Replication Manager FQDN.

      Standard Command

      Command Using Registry

      # vcav vsphere trust-ssh \
      --vsphere-address=$VSPHERE01_ADDRESS \
      --vsphere-user=$SSO_USER \
      --vsphere-password-file=~/.ssh/.sso \
      --root-password-file=~/.ssh/.root \
      --vm-name=hms01-name \
      --vm-address=hms01-FQDN
      
      # vcav vsphere trust-ssh \
      --vsphere=vsphere-01-name \
      --root-password-file=~/.ssh/.root \
      --vm-name=hms01-name \
      --vm-address=hms01-FQDN