# Step 5: Migrate the VMs back from HI GIO Cloud to On-Premises

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

Since the VM is successfully replicated from Cloud to On-Prem, we will migrate the VM APP1, DB1 from HI GIO Cloud back to On-Prem.

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

{% stepper %}
{% step %}
**Step 1:** Log on to the HI GIO portal.
{% endstep %}

{% step %}
**Step 2:** Expand **More** > Click on **Availability ()**

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FJQWbAvVokpi1dZDQkrMY%2Fimage.png?alt=media&#x26;token=d1ebca03-9c3b-446b-a0af-47012165c43d" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Step 3:** Click on **Outgoing Replications >** Check the checkbox for vAPP1 > Expand **ALL ACTIONS** > Click on **Migrate**

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FKMRUyBlURztoPwTY5HNC%2Fimage.png?alt=media&#x26;token=f8c4f653-14f7-4448-a90f-675d2027f5d8" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Step 4:** Configure Migrate Settings. Leave the Defaults and Click on **NEXT**

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FbWaIZlIR9Rjd6mj5CLm5%2Fimage.png?alt=media&#x26;token=f21401b9-85ed-457f-9bb9-a868a7a36950" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Step 5:** Review the Migration Settings and click on **FINISH**

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2Frs1IyyJuosWbnG8OI3KQ%2Fimage.png?alt=media&#x26;token=ea17b920-6761-4c38-b842-14fb763c9bc8" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### **Step 6:** Expectation result <a href="#step-6-expectation-result" id="step-6-expectation-result"></a>

1. Migration in Progress

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2Fw08MUDOOlZ75lkK2FD4U%2Fimage.png?alt=media&#x26;token=edd1f5cf-a021-4a1e-bd04-ae71fdb8b632" alt=""><figcaption></figcaption></figure>

2. Migration to on-premises is Completed Successfully. **Confirm that:**

**- Recovery state = Failed-Back**

**- Replication type = On-Premise Protection**

**- Overall health = Green**

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FJdl8hb62Dq39Sg85TmDc%2Fimage.png?alt=media&#x26;token=cc7c6384-2c5b-4246-81d3-cd2cafd4ab8a" alt=""><figcaption></figcaption></figure>

3. **Confirm VMs migrated back to On-premises.**

VM APP1-xxxx, DB-xxxx now show up in the vCenter's inventory

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FnR2iqKlRuD114WFyYi2a%2Fimage.png?alt=media&#x26;token=cd6fb958-23da-4fe2-b688-84a3ae49e748" alt=""><figcaption></figcaption></figure>

4. **Login to APP1 & DB1 by local account > change the IP address to fit with the on-premise site** (in my case, I just changed the default gateway to .1) and validate the application.

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2F75L7zxMVUx9nxxUXn2Xw%2Fimage.png?alt=media&#x26;token=216e5694-71b5-4f2f-81f9-378e2764234e" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# 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/failover-scenario/failover/step-5-migrate-the-vms-back-from-hi-gio-cloud-to-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.
