API Doc
Search Docs...
⌘ K
ACOSABSAVEANSABDR

Migrating a virtual machine

As shown in the figure above, the main process for migrating a virtual machine is as follows:

  1. Initiate virtual machine migration in the AOC cluster UI, including hot migration and cold migration.

  2. AOC calls the AVE virtual machine migration API and AVE creates a task.

  3. AVE asynchronously processes the virtual machine migration task:

    1. Sets up the target virtual machine: plugs the vNICs into the VPC bridge.

    2. Cleans up the source virtual machine: unplugs the vNICs from the OVS bridge.

  4. The VPC agent on the target host detects the port plug-in event on the VPC bridge and pushes vNIC-related configurations, including:

    1. Based on the vNIC IDs and VPC ID of the port, adds the target host and TEP IP for the vNICs.

    2. Retrieves the VPC, VPC subnet, security policy, route table, and other local configuration for the port, along with information about other vNICs in the VPC.

    3. Based on the retrieved information, generates data plane rules and pushes them to the VPC OVS bridge.

  5. The VPC agent on the source host detects the port unplug event on the VPC bridge and clears the vNIC-related configurations, including:

    1. Clears the local configuration associated with the port, such as VPC, VPC subnet, security policy, and route table.

    2. Based on the vNIC IDs and VPC ID of the port, removes the source host and TEP IP for the vNICs.