> For the complete documentation index, see [llms.txt](https://docs.higiocloud.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.higiocloud.vn/hi-gio-draas/failover-scenario/failover/step-5-migrate-the-vms-back-from-hi-gio-cloud-to-on-premises.md).

# 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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;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&amp;token=216e5694-71b5-4f2f-81f9-378e2764234e" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
