Home > Moving Workloads from OpenStack On-Premise Private to Off-Premise such as Public Cloud or Mirantis OpenStack Express

Moving Workloads from OpenStack On-Premise Private to Off-Premise such as Public Cloud or Mirantis OpenStack Express

If you haven’t tried it already, get a free on-demand trial for Mirantis OpenStack Express, now available.

The procedure to migrate from an existing OpenStack environment to Mirantis OpenStack Express is the same regardless of the guest operating system. The OpenStack documentation talks in detail about using snapshots to migrate instances, but in general, you’ll execute these steps:

  1. Create a snapshot of the VM you want to migrate.
  2. Convert that snapshot into an image.
  3. Import the image into Mirantis OpenStack Express.
  4. Launch an instance based on the image.

Start by identifying the virtual machine(s) you want to migrate in the source OpenStack environment. You can see a list of all your virtual machines in the Instances tab of your source cloud’s Horizon dashboard.

Create a snapshot of the Virtual Machine

Start by creating a snapshot of the virtual machine.  To do that, follow these steps:

  1. Select the Virtual Machine and click the Create Snapshot button in the top right. Creating a snapshot will result in an Image of the Virtual Machine in Glance.
  2. Enter a name for the snapshot.  This name will be the image name in Glance.

  3. While the snapshot process is running, the snapshot is displayed as Queued.

  4. When the process finished, the status will turn to Active. Wait until you see this before proceeding.

Export the Virtual Machine Image out of Glance and import it into Mirantis OpenStack Express

When the snapshot is ready, you can export it.  To do that, follow these steps:

  1. Log in to the Controller of the source OpenStack environment and locate the image ID of the snapshot you just created using the nova CLI:
    nova image-list

  2. Export the snapshot image from Glance to the local filesystem of the controller node of the source cloud by logging into that node and typing:
    glance image-download --file {file name for image} {Snapshot ID} 
    For example:
    glance image-download --file sample.qcow c13a0d92-67c3-43a1-8b06-8cf9c72b960a
  3. Using scp or sFTP, download the image to your local machine.
  4. Upload the image to your cloud.

Launch the migrated Virtual Machine on Mirantis OpenStack Express

Now that you have the image, it’s a simple matter to create a new VM from it.  Follow these steps:

  1. If it’s not already open, launch the OpenStack Horizon dashboard.
  2. Click Project->Instances.
  3. Click +Add Instance.
  4. In the Launch Instance dialog box, specify the Instance Boot Source as Boot from Image.
  5. Specify the Image Name to be the new image you just uploaded to the cloud.
  6. Click Launch.
  7. When the new instances is Running, click it to log in via the console to verify that it’s what you expect.

Want to read more?  This article is an excerpt from our new guide, Mirantis OpenStack Express: Application On-boarding Guide (currently in beta).  Please let us know what you think.