Migrate a batch of instances (vCenter)

This is an example guide for migrating instances from VMware vCenter to Incus.

Overview of the available VMs and networks in the vCenter deployment: vCenter VMs

vCenter Networks

Register a source

Note

The vCenter credentials used to register with Migration Manager are required to have a minimum set of privileges. See vCenter access requirements

Refer to Register a source (ESXi) for a step by step guide. The process for registering a source for vCenter is the same as for ESXI.

After registering the source, instances and their networks will be imported from the source with vCenter-specific properties:

List instances List networks

Note

For the best possible experience, ensure VMs have background import (change tracking) enabled. See Enable change tracking for details.

Without change tracking, migrations cannot occur with running VMs, prolonging downtime.

Folders, resource pools, and tags

On top of the default properties imported from ESXi sources, Migration Manager supports tags, resource pools, and folder structure from vCenter:

  • Tags are available as config keys, prefixed with tag.<category> with tags as comma-separated values

  • Resource pools are available as config keys, prefixed with vmware.resource_pool with the resource pool name as the value

  • Folder structure is included in the location path identifying the instance

Register a target

Refer to Register a target (Incus) for a step by step guide. The process for registering a target for vCenter is the same as for ESXi.

Creating a batch

Refer to Batches for more details about batch configuration.

Now we can create a batch of instances to be migrated, and set up the migration plan. In this case, we will assume target incus01 has a storage pool named default, and a project named default with a network named incusbr0.

Add a batch List batch instances

Here we have set up an include_expression filter that matches the instances with tag mytag in category category_1 or the instances in the resource pool named Windows in the folder Incus migrations. Most fields are left with their defaults, and we have added a single migration window that lasts 10 minutes. While waiting for the migration window to begin, background sync will top-up every 1 hour, and perform one final top-up 10 minutes before the migration window starts.

Once the batch is explicitly started, the target instances will be created on the target, and begin pulling data from the still-running source VMs. The source VMs will not be stopped until the migration window starts, and if the migration does not complete before the window ends, then the migration will fail for that VM and it will be turned back on.

Adding required artifacts

Some external files are required for migrations to proceed. See artifacts

Migrating a batch

Refer to Migrating a batch (ESXi) for a step by step guide. The process for migrating a batch from vCenter is the same as for ESXi.