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.
- Steps to migrate virtual machine from Cloud Automation Manager
- Steps to migrate virtual machine from VMware vSphere client
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
- Log in to IBM Cloud Manager.
- Go to your Deployed Instance > Template tab.
- Click to open a deployed instance.
- Click Modify tab.
- In the Modify deployed instance page, optionally, select a new template version from the drop down list.
- If the selected version has Data Types defined, then you select values for the associated Data Objects.
- In the Edit Parameters tab, change the values for Cluster and Storage.
- Plan and apply those changes to destroy the existing virtual machines and redeploy them to the new Host or Storage.
- Go to terraform logs to check the success of the migration.
- 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
- Log in to VMware vSphere client console.
- Right-click the virtual machine and select Migrate.
- Go to Migrate Virtual Machine.
- Select the Change host as the Migration Type and click Next.
- Select the destination host and click Next. A compatibility evalation between the source and target is done and the status is displayed.
- 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.
- Retain the default settings and click Finish.
-
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
- Log in to VMware vSphere client console.
- Right-click the virtual machine and select Migrate.
- Go to Migrate Virtual Machine.
- Select the Change datastore as the Migration Type and click Next.
- Select the destination datastore and click Next.
- Retain the default settings and click Finish.
-
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.