IBM Support

Migrate a virtual machine template from one datastore to another datastore

Question & Answer


Question

You can use ESXi with multiple datastores. How do you migrate the virtual machine template, which is created by the Image Construction and Composition Tool for IBM SmartCloud Orchestrator, from one datastore to another datastore?

Answer

You can use one of the following methods to migrate the virtual machine template:

  • Move the datastore within the same VMware region
    Do not move, delete, or clone the image. Just change the datastore using VMware. You do not need to register the image again.

  • Move datastore 1 (DS1) to datastore 2 (DS2) across VMware region server 1 (RS1) to region server 2 (RS2).
    1. Identify the image (IM1) in glance. Look for a property called metadata. The property contains the UUID of the ISO image, which contains the metadata. You can find the ISO file as /var/lib/glance/images/<image-uuid> on region server 1 (RS1).
    2. Clone the image (IM1) from datastore (DS1) on region server 1 (RS1) to datastore (DS2) on region server 1 (RS2). For this example, use IM2 as the name for this second image. You can use both vmotion or the reference repository check in and check out.

    3. Create a new image in glance region server (RS2), pass it the ISO files that were copied from step 1, and take note of the UUID.

    4. Create or update the glance metadata image property for the image (IM2) to the UUID value that was noted in the previous step.

    5. Register the cloned image (IM2) in IBM SmartCloud Orchestrator
[{"Product":{"code":"SS4KMC","label":"IBM SmartCloud Orchestrator"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Migration","Platform":[{"code":"PF016","label":"Linux"}],"Version":"2.2;2.2.0.1;2.3","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

More support for:
IBM SmartCloud Orchestrator

Software version:
2.2, 2.2.0.1, 2.3

Operating system(s):
Linux

Document number:
236213

Modified date:
17 June 2018

UID

swg21661805