Migrating virtual machines using VMware Vmotion

Cloud Automation Manager supports VMware vMotion to migrate virtual machines between VMware ESX servers and datastores. In addition, it also supports the migration of virtual machines from one vCenter to another. You can perform the migration task from both VMware vSphere console and IBM Cloud Automation Manager user interface.

Note: VMware vMotion is not supported in cross-cluster scenario.

For more information about VMware vMotion, see VMware Docs.

Steps to migrate virtual machine from Cloud Automation Manager

  1. Log in to IBM Cloud Manager.
  2. Go to your Deployed Instance > Template tab.
  3. Click to open a deployed instance.
  4. Click Modify tab.
  5. In the Modify deployed instance page, optionally, select a new template version from the drop down list.
  6. If the selected version has Data Types defined, then you select values for the associated Data Objects.
  7. In the Edit Parameters tab, change the values for Cluster and Storage.
  8. Plan and apply those changes to destroy the existing virtual machines and redeploy them to the new Host or Storage.
  9. Go to terraform logs to check the success of the migration.
  10. To verify the migration in VMware vSphere client console, go to Recent Tasks and see whether the datastore or the host has changed accordingly.

Steps to migrate virtual machine from VMware vSphere client

From the VMware vSphere client console, migrate a virtual machine through vMotion onto a different VMware ESX servers / clusters and datastore.

For more information about VMware Vmotion, see VMware Docs.

Migrate to a different host

  1. Log in to VMware vSphere client console.
  2. Right-click the virtual machine and select Migrate.
  3. Go to Migrate Virtual Machine.
  4. Select the Change host as the Migration Type and click Next.
  5. Select the destination host and click Next. A compatibility evalation between the source and target is done and the status is displayed.
  6. Select the vMotion priority and click Next. The recommended high priority option reserves CPU for optimal vMotion performance. You can also choose to migrate with available CPU resources.
  7. Retain the default settings and click Finish.
  8. Log in to Cloud Automation Manager and check whether you are able to work with the migrated virtual machine.

    Note: Example tasks to work with the migrated virtual machine are start, stop, plan, apply, and destroy the virtual machine.

Migrate to a different datastore

  1. Log in to VMware vSphere client console.
  2. Right-click the virtual machine and select Migrate.
  3. Go to Migrate Virtual Machine.
  4. Select the Change datastore as the Migration Type and click Next.
  5. Select the destination datastore and click Next.
  6. Retain the default settings and click Finish.
  7. Log in to Cloud Automation Manager and check whether you are able work with the migrated virtual machine.

    Note: Example tasks to work with the migrated virtual machine are start, stop, plan, apply, and destroy the virtual machine.