Get-ip

If you need the IP address of any of the vCloud Availability for vCloud Director host VMs, you can run the following command.

Standard Command

Command Using Registry

# vcav vsphere get-ip \
--vsphere-address=$MGMT_VSPHERE_ADDRESS \
--vsphere-user=$MGMT_VSPHERE_USER \
--vsphere-password-file=~/.ssh/.vsphere.mgmt \
"--network=$MGMT_VSPHERE_NETWORK" \
--vm-name=host-vm-name
# vcav vsphere get-ip \
--vsphere=mgmt-vsphere-name \
"--network=VM Network" \
--vm-name=vcav-host-name

The IP address is displayed.

Connect

If you lose connectivity to any of the VMs hosting vCloud Availability for vCloud Director services, you can reconnect the component by using vCloud Availability for vCloud Director scripts.

Reconnect to vSphere Replication Management Server

To reconfigure the SSH connectivity, run the following command.

Standard Command

Command Using Registry

# vcav vsphere trust-ssh \
--vsphere-address=$MGMT_VSPHERE_ADDRESS
--vsphere-user=$MGMT_VSPHERE_USER
--vsphere-password-file=~/.ssh/.vsphere.mgmt
--vm-name=hms-VM-name
--root-password-file=~/.ssh/.root
--vm-address=hms-address
# vcav vsphere trust-ssh \
--vsphere=mgmt-vsphere-name \
--vm-name=hms-VM-name \
--root-password-file=~/.ssh/.root \
--vm-address=hms-address

Connect to your vSphere Replication Management Server by running the following command.

Standard Command

Command Using Registry

# vcav hms connect \
--root-password-file=~/.ssh/.root \
--vm-address=hms-address
# vcav hms connect \
--root-password-file=~/.ssh/.root \
--vm-address=hms-address

Reconnect to vSphere Replication Cloud Service host VM

To reconfigure the SSH connectivity, run the following command.

Standard Command

Command Using Registry

# vcav vsphere trust-ssh \
--vsphere-address=$MGMT_VSPHERE_ADDRESS \
--vsphere-user=$MGMT_VSPHERE_USER \
--vsphere-password-file=~/.ssh/.vsphere.mgmt \
--vm-name=hcs-VM-name \
--root-password-file=~/.ssh/.root \
--vm-address=hcs-address
# vcav vsphere trust-ssh \
--vsphere=mgmt-vsphere-name \
--vm-name=hcs-VM-name \
--root-password-file=~/.ssh/.root \
--vm-address=hcs-address

Connect to your vSphere Replication Cloud Service host by running the following command.

Standard Command

Command Using Registry

# vcav hcs connect \
--root-password-file=~/.ssh/.root \
--vm-address=hcs-address
# vcav hcs connect \
--root-password-file=~/.ssh/.root \
--vm-address=hcs-address

Reconnect to vSphere Replication host VM

To reconfigure the SSH connectivity, run the following command.

Standard Command

Command Using Registry

# vcav vsphere trust-ssh \
--vsphere-address=$MGMT_VSPHERE_ADDRESS \
--vsphere-user=$MGMT_VSPHERE_USER \
--vsphere-password-file=~/.ssh/.vsphere.mgmt \
--vm-name=hbr-VM-name \
--root-password-file=~/.ssh/.root \
--vm-address=hbr-address
# vcav vsphere trust-ssh \
--vsphere=mgmt-vsphere-name \
--vm-name=hbr-VM-name \
--root-password-file=~/.ssh/.root \
--vm-address=hbr-address

Connect to your vSphere Replication host by running the following command.

Standard Command

Command Using Registry

# vcav hbr connect \
--root-password-file=~/.ssh/.root \
--vm-address=hbr-address
# vcav hbr connect \
--root-password-file=~/.ssh/.root \
--vm-address=hbr-address

Docker Host

To connect to your Docker host virtual machine, run the following command.

# vcav docker connect \
--root-password-file=~/.ssh/.root \
--vm-address=docker-address

Reconfigure

During configuration of vCloud Availability for vCloud Director components, you run configure command for each appliance. If you want to change the configuration settings of a VM hosting vCloud Availability for vCloud Director services, you run the configure command again with an extra reconfigure argument.

A use case for the reconfigure command is adding vCenter Server to the vCloud Availability for vCloud Director solution.

Procedure

  1. Add the new vCenter Server instance to your existing vCloud Director appliance, to make its resources available for use. For more information, see https://kb.vmware.com/kb/1026866.

  2. Deploy vSphere Replication Management server and vSphere Replication servers to your new vCenter Server instance. For more information, see Installing vCloud Availability for vCloud Director.

  3. Configure your new vSphere Replication Management server. For more information, see Configure vSphere Replication Manager.

  4. Configure vSphere Replication Cloud service host, to add the new vCenter Server in your vsphere-address-list.

    1. You must run vcav hcs configure command with an extra --reconfigure argument.

      # vcav hcs configure \
      --reconfigure \
      --hcs-address=HCS-address \
      --amqp-password-file=~/.ssh/.amqp \
      --cassandra-replication-factor=number-of-Cassandra-nodes \
      --vcd-address=VCD-address \
      --vcd-user=VCD-User \
      --vcd-password-file=~/.ssh/.vcd \
      --sso-user=SSO-User \
      --sso-password-file=~/.ssh/.sso \
      

      The system returns an OK message, after the process finishes.

    2. Run the following command to verify that the hcs service starts successfully.

      # vcav hcs wait-for-extension \
      --hcs-address=$HCS01_ADDRESS \
      --vcd-address=$VCD_ADDRESS \
      --vcd-user=$VCD_USER \
      --vcd-password-file=~/.ssh/.vcd \
      --sso-user=$SSO_USER \
      --sso-password-file=~/.ssh/.sso 

      If the hcs service starts successfully, the system displays an ОК message.

      If the system returns an error, or there is no output in 5 minutes, check the /opt/VMware/logs/hms/hcs.log file for errors.

    3. Assign vSphere Replication Cloud Service rights to the vCloud Director Organization Administrator role.

      • For vCloud Director 8.10 and earlier, you assign vSphere Replication Cloud Service rights to the Organization Administrator role and it applies to all organizations.

        Standard Command

        Command Using Registry

        # vcav hcs add-rights-to-role \
        --vcd-address=$VCD_ADDRESS \
        --vcd-user=$VCD_USER \
        --vcd-password-file=~/.ssh/.vcd \
        "--role=Organization Administrator"
        # vcav hcs add-rights-to-role \
        --vcd=vcd-01-name \
        "--role=Organization Administrator"
      • For vCloud Director 8.20 and above, you assign vSphere Replication Cloud Service rights to the Organization Administrator role for each organization or for all organizations.

        Standard Command

        Command Using Registry

        for each organization

        # vcav hcs add-rights-to-role \
        --vcd-address=$VCD_ADDRESS \
        --vcd-user=$VCD_USER \
        --vcd-password-file=~/.ssh/.vcd \
        "--role=Organization Administrator" \
        --org=org-name
        # vcav hcs add-rights-to-role \
        --vcd=vcd-01-name \
        "--role=Organization Administrator" \
        --org=org-name

        for all organizations

        # vcav hcs add-rights-to-role \
        --vcd-address=$VCD_ADDRESS \
        --vcd-user=$VCD_USER \
        --vcd-password-file=~/.ssh/.vcd \
        "--role=Organization Administrator" \
        --org=*
        # vcav hcs add-rights-to-role \
        --vcd=vcd-01-name \
        "--role=Organization Administrator" \
        --org=*

        Note:

        You do not need to restart any component for the changes to take effect.