Last updated: 2018-12-23

Manual VM Migration

This guide shows how to manually migrate VMs across OpenStack agents. This may be necessary in certain cases (e.g. different hypervisor versions, if VMs use remote storage not shared by the source and destination agents, and etc.).

Preparation

Gather the following pieces of information before starting migration:

General Steps

The general steps are as follows:

  1. The backing file must be copied from the source agent to the destination agent in the same path
  2. The VM’s specific instance directory (named after its UUID) must be copied to the destination agent
  3. The VM’s entry in nova database should be updated, in particular, the host and node fields

Copying while preserving permissions and timestamps can be done via rsync, e.g.: