# How To Use vCDA On-Premises

## <mark style="color:green;">**Overview**</mark> <a href="#overview" id="overview"></a>

This short manual guide is designed to help HI GIO users navigate

* *How to create a Migration Job*
* *How to create a Protection Job*
* *How to Test Failover, Failover, Reverse, or Migrate*

## &#x20;<mark style="color:green;">**Procedure**</mark>

{% tabs %}
{% tab title="1. How to create a migration job" %}

* Configuring a migration allows later migrating a vApp or a virtual machine to a remote organization and running the workload in the destination site
* The target recovery point objective **(RPO)** for a migration is **24 hours**
* If you log in to VMware Cloud Director Availability **On-Premises** Appliance, then :
  * **Outgoing Replications** are replication and failover VM from the on-premises vCenter Server to a cloud site
  * **Incoming Replications** are replication and failover VM from the cloud site to the on-premises vCenter Server
* If you login to VMware Cloud Director Availability **Tenant Portal** (provided by Services Provider) then :
  * **Incoming Replications** is replication and failover VM from the on-premises vCenter Server to a cloud site
  * **Outgoing Replications** are replication and failover VM from cloud site to on-premises vCenter Server or Cloud to Cloud
* In the left pane, choose a Replication Direction – Choose **Outgoing Replication** – Create **New Migration**

<figure><img src="/files/9Llb6di3kJXM6wSDwDiP" alt=""><figcaption></figcaption></figure>

* Select the VMs you want to migration by checking the corresponding box(es). Click **Next**

<figure><img src="/files/VPHeIK8YL2K5IYUdIHLg" alt=""><figcaption></figcaption></figure>

* On **the Destination VDC and Storage** policy page, select the virtual data center for the replication destination and the storage policy for placing the recovered virtual machines, and click **Next**.

<figure><img src="/files/SR1uN7wzkrrF9FwShFHv" alt=""><figcaption></figcaption></figure>

* On the Settings page, configure the following replication settings and click **Next**
  * To apply compression on the replication data traffic for reducing the network data traffic at the expense of CPU, leave **Compress replication traffic** selected
  * To start the replication when the wizard finishes, leave **Delay start synchronization** deselected. Alternatively, to schedule the start of the replication, select it and enter the local date and time for starting the replication
  * From the **VDC VM placement policy** drop-down menu, select an organization VDC placement compute policy for the recovered virtual machines
  * *(Optional)* To select specific hard disks of the virtual machines for replicating to the destination site for reducing the replication data network traffic, select **Exclude disks**
  * *(Optional)* To select a previous copy of the virtual machines in the destination site for reducing the replication data network traffic, select **Configure Seed VMs**

<figure><img src="/files/mxT75Cx2UozwBjEaX5RA" alt=""><figcaption></figcaption></figure>

* If you selected **Exclude disks**, on the **Replicated Disks** page select the virtual machine disks for replicating and click **Next**

<figure><img src="/files/ZezsNWAQshwVl89BLASt" alt=""><figcaption></figcaption></figure>

* On the **Ready to complete** page, verify that the replication settings of the migration are correct and click **Finish**

<figure><img src="/files/hLbV8S9IsBOFu1ZjRJYP" alt=""><figcaption></figcaption></figure>

* After the replication finishes, for the vApp and its virtual machines in the **Replication type column**, you see a **Migration** state

<figure><img src="/files/H7O7esHxPoHtgBLst7wH" alt=""><figcaption></figcaption></figure>

&#x20;
{% endtab %}

{% tab title="2. How to create a protection job" %}

* Configuring a protection allows protecting a vApp or a virtual machine from one organization to another, while keeping the workload running in the source site. If the source site is unavailable, after a successful replication you can fail over and power on the source virtual machine in the destination site
* If you login to VMware Cloud Director Availability **On-Premises** Appliance then :
  * **Outgoing Replications** is replication and fail over VM from the on-premises vCenter Server to a cloud site
  * **Incoming Replications** is replication and fail over VM from cloud site to on-premises vCenter Server
* If you login to VMware Cloud Director Availability **Tenant Portal** (provided by Services Provider) then :
  * **Incoming Replications** is replication and fail over VM from the on-premises vCenter Server to a cloud site
  * **Outgoing Replications** is replication and fail over VM from cloud site to on-premises vCenter Server or Cloud to Cloud
* In the left pane, choose a Replication Direction – Choose **Outgoing Replication** – Create **New Protection**

<figure><img src="/files/GJN40csYX6KHJktiV21h" alt=""><figcaption></figcaption></figure>

* Select the VMs you want to protect by checking the corresponding box(es). Click **Next**

<figure><img src="/files/QcsS4Y4MHjjCCiTcnnYV" alt=""><figcaption></figcaption></figure>

* On **the Destination VDC and Storage** policy page, select the virtual data center for the replication destination and the storage policy for placing the recovered virtual machines, and click **Next**.

<figure><img src="/files/7bYsH4g4bVzgPyOJ60pR" alt=""><figcaption></figcaption></figure>

* To set the SLA settings of the replication, select any of the preconfigured SLA profiles. Click **Next**
  * From the **VDC VM placement policy** drop-down menu, select an organization VDC placement compute policy for the recovered virtual machines
  * *(Optional)* To select specific hard disks of the virtual machines for replicating to the destination site for reducing the replication data network traffic, select **Exclude disks**
  * *(Optional)* To select a previous copy of the virtual machines in the destination site for reducing the replication data network traffic, select **Configure Seed VMs**

<figure><img src="/files/dXU9W2YBGV6gtvnLFdAi" alt=""><figcaption></figcaption></figure>

* To manually configure the SLA settings, select **Configure settings manually**
  * **Target recovery point objective (RPO):** If you selected Configure settings manually, set the acceptable period for which data can be lost if there is a site failure by using the slider or by clicking the time intervals. The available RPO range for a protection is from one minute to 24 hours
  * **Retention policy for point in time instances:** If you selected Configure settings manually, to preserve multiple rotated distinct instances to which the virtual machines can be recovered, select this option, select the number of replication instances to keep, and select the retention time distance and unit. The retention distance unit must be greater than RPO
  * **Compress replication traffic:** If you selected Configure settings manually, to apply compression on the replication data traffic for reducing the network data traffic at the expense of CPU, select this option
  * **Delay start synchronization:** If you selected Configure settings manually, choose the following option
    * To schedule the start of the replication, select this option and enter the local date and time to start the replication.
    * To start the replication when the wizard finishes, leave this option deselected.
  * **VDC VM placement policy:** Select an organization VDC placement compute policy for the recovered virtual machines
  * **Exclude disks:** To select specific hard disks of the virtual machines for replicating to the destination site for reducing the replication data network traffic, select this option
  * **Configure Seed VMs :** To select a previous copy of the virtual machines in the destination site for reducing the replication data network traffic, select this option
* **Create a Replication Seed**: Use one of the following methods for creating a seed VM in the destination site
  * **Offline data transfer**: Export the VM as an OVF package into removable media and send it to Cloud service administrator imports the package to your cloud organization
  * **Copy over the network:** Copy a source VM to the cloud organization and transfer the source data to the destination site by using other means than VMware Cloud Director Availability (FTP, OneDrive, Google Drive, …)

<figure><img src="/files/e9h9P3Y5mcwHV6bCFQEw" alt=""><figcaption></figcaption></figure>

&#x20;

* **Instances**: Select how many rotated instances participate in the current retention rule. The total number of instances in this example matches **the maximum of 24 rotated instances**
* **Distance:** Select the time distance that the rotated instances spread apart in the current retention rule
* **Unit:** Select the time unit for spreading the rotated instances in the current retention rule. Select one from: Minutes – Hours – Days – Weeks – Months – Years
* On the **Disks page** you must select the hard disks to replicate and click **Next**

<figure><img src="/files/Wy9G4eoKCzj34OgkwPvz" alt=""><figcaption></figcaption></figure>

* On the Ready to complete page, verify that the replication settings of the protection are correct and click **Finish**

<figure><img src="/files/dBBkVuuZgQp8o21Bsx7B" alt=""><figcaption></figcaption></figure>

&#x20;
{% endtab %}

{% tab title="3. How to Failover, Reverse, or Migrate" %}

* **Diagram for Replication State**

<figure><img src="/files/X5N8C7BeogdGXZ0ouc0t" alt=""><figcaption></figcaption></figure>

* **Test Failover**: By performing a test failover you can validate that the data from the source site replicates correctly in the destination site
* In the left pane, choose a replication direction
* Select the protected vApp or virtual machine to test the failover and click **All actions > Test Failover**

<figure><img src="/files/RrFN24H0hcSArZjnYxDi" alt=""><figcaption></figcaption></figure>

* On the **Recovery Settings page**, configure the recovered workload and click **Next**
  * **Power on recovered vApps**: Select to power on the virtual machines in the destination site after the task completes
  * **Network settings:**
    * Select *Apply preconfigured network settings on failover*, to assign the network configured during the virtual machine replication
    * Select *Connect all VMs to network* and from the drop-down menu select a network to connect the replicated virtual machines to

<figure><img src="/files/86HA1DXHMhW1z5tdm3bz" alt=""><figcaption></figcaption></figure>

&#x20;

* On the **Recovery Instance** page, configure the recovery point in time and click **Next**
  * *Synchronize all VMs to their current state*: Creates an instance of the power on workload with its latest changes and uses that instance for the test failover
  * *Manually select existing instance:* Select an instance without synchronizing the data for the recovered workload

<figure><img src="/files/h3BXJm2WBH3BsqnKWrBq" alt=""><figcaption></figcaption></figure>

* On the **Ready To Complete** page, review the test details and click **Finish**

<figure><img src="/files/Pj8Cdrph72HAnUdAbEyZ" alt=""><figcaption></figcaption></figure>

* In the **Last changed column**, you can monitor the progress of the test. After the test finishes, for the vApp and its virtual machines in the **Recovery state** column you see a **Test image ready state**

<figure><img src="/files/haOrsLkTf1Pg6QmdyQgr" alt=""><figcaption></figcaption></figure>

* To Delete the Test Failover results, select the replication to clean. **Click All actions** > **Test Cleanup.**

<figure><img src="/files/W03XPJubIKKYlbXGW0at" alt=""><figcaption></figcaption></figure>

* The Cleanup Deletes All recovered vApps and virtual machines

<figure><img src="/files/epdlfsIhXGO06raSgvdj" alt=""><figcaption></figcaption></figure>

* **Perform a Failover Task**: If the protected source site is unavailable, in the destination site perform a workload disaster recovery operation
* Select the protected vApp or virtual machine to fail over and click **All actions > Failover**

<figure><img src="/files/RpJQs0SH7mH9s4khdhHw" alt=""><figcaption></figcaption></figure>

* In the **Failover wizard**, configure your selected workload for the failover
  * **Consolidate VM disks**: Select this option for a better performance of the recovered virtual machines at the expense of the failover task taking longer to complete
  * **Power on recovered vApps**: Select this option to power on the virtual machines on the destination site after the task completes.
  * **Network settings:**
    * Select *Apply preconfigured network settings on failover*, to assign the network configured during the virtual machine replication
    * Select *Connect all VMs to network* and from the drop-down menu select a network to connect the replicated virtual machines to

<figure><img src="/files/8ZtksFCLeGIofFPmHuPP" alt=""><figcaption></figcaption></figure>

* On the **Recovery Instance** page, configure the recovery point in time and click **Next**

<figure><img src="/files/FHhZM8R7ecgI5Q2k6W7U" alt=""><figcaption></figcaption></figure>

* On the **Ready To Complete page**, review the task details and click **Finish**

<figure><img src="/files/rgjS0XZh3Wd1zG6mMshd" alt=""><figcaption></figcaption></figure>

* After the failover task finishes, the failed over workload is running in the destination site and the workload is no longer protected upon the task completion. For the vApp and its virtual machines, in the **Recovery state** column you see a **Failed-Over state**

<figure><img src="/files/MsXAKHE3KkFWmwhCu2Un" alt=""><figcaption></figcaption></figure>

* **Perform a Reverse Task**:
  * After performing failover or migration, return the workload data from the destination site back to the original source site by reversing the replication.
  * After failing over or migrating from the source site to the destination site, the workload runs on the destination site. A subsequent reverse task replicates the failed-over or migrated workload data back to the original source protected vApp or virtual machine
  * When reversing a replication from a cloud site back to an on-premises site, VMware Cloud Director Availability uses the original datastore for the placement of the workload, regardless of the current on-premises local placement setting
* Select the vApp or the virtual machine that are failed-over and **All actions > Reverse**
* In the **Reverse window**, to confirm the reversal click **Reverse.** Reversing the replication enables the replication traffic and allows the replication to be recovered back to the source

<figure><img src="/files/xs4W2kbUylrq9c1xPDMa" alt=""><figcaption></figcaption></figure>

* After the reverse task finishes, the reversed replication overwrites the source vApp or virtual machine. The reversed workload runs in the destination site with a workload protection in the original source site. For the vApp and its virtual machines, in the **Recovery state** column you see a **Reversed state**

<figure><img src="/files/qwOV3XE7ZLswiHopn0MG" alt=""><figcaption></figcaption></figure>

&#x20;

&#x20;

* **Perform a Migrate Task**: By migrating an existing replication to a remote organization, the workload runs in the destination site and the source workload is powered off
* Select the protected vApp or virtual machine to migrate over and **All actions > Migrate**

&#x20;

<figure><img src="/files/anHZfTJxyB3eSi3Uzn1b" alt=""><figcaption></figcaption></figure>

* On the **Migrate Settings** page, configure the recovered workload and click **Next**
* *All source vApps will be powered-off after successful recovery*
  * **Consolidate VM disks**: Select this option for a better performance of the recovered virtual machines at the expense of the failover task taking longer to complete
  * **Power on recovered vApps**: Select this option to power on the virtual machines on the destination site after the task completes.
  * **Network settings:**
    * Select *Apply preconfigured network settings on failover*, to assign the network configured during the virtual machine replication
    * Select *Connect all VMs to network* and from the drop-down menu select a network to connect the replicated virtual machines to

<figure><img src="/files/s5CNZWcoMGiK2qOhjDHR" alt=""><figcaption></figcaption></figure>

&#x20;

* On the **Ready To Complete** page, review the task details and click **Finish**

<figure><img src="/files/BmMQWz3mxCm74DitvsfM" alt=""><figcaption></figcaption></figure>

&#x20;

&#x20;

* After a successful recovery, all source **virtual machines** are synchronized and then **powered off**. The migration completes when in the **Recovery state** column of the replication you see **Failed-Over**
* A manual (offline) sync runs. If the source workload is powered on, then it is powered off and a manual sync runs. Then the vApp or virtual machines are recovered on the destination site

  &#x20;

<figure><img src="/files/pkd8cmRe7erLiLnAQg93" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.higiocloud.vn/hi-gio-draas/how-to-use-vcda-on-premises.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
