Rate This Document
Findability
Accuracy
Completeness
Readability

Preparing Migration Source Components

Before starting system migration, prepare the migration source on the Kunpeng server where you will deploy your application. Prepare the migration source using either of the following methods:

Method 1: VM Images

Package each x86 VM where the migration source resides into a qcow2 image and insert the images as cloud disks to the Kunpeng server of the migration target.

  • Huawei Cloud
    1. Select an instance, choose More > OS & Images > Create Image, and select the default KVM virtualization type.
    2. Choose Cloud Server Console > Image Management Service > Private Images and find the created image.
    3. Choose Cloud Server Console > Elastic Volume Service > Apply to apply for an EVS disk immediately.
    4. Create a SATA disk from a private image.
    5. After the creation is complete, click Attach to attach the created disk as a data disk to the target Kunpeng server.
  • Alibaba Cloud
    1. Select an instance, expand Operation, select Create Custom Image, and click OK.
    2. Choose Storage & Snapshots > Snapshots > Disk Snapshots, find the corresponding image, and select Create Disk on the right. After the disk is created, attach it to the Kunpeng server.

      Snapshots in different domains can be replicated to the target domain using the snapshot replication function.

  • On-premises physical machines
    1. Create a VM image file for the system to be migrated.
    2. Copy the image file to the host of the node to be migrated.
    3. Stop the VM of the node to be migrated.
    4. Run the virt-manager command on the host to access the Virtual Machine Manager console.
    5. Select the VM of the node to be migrated and add a virtual disk.
    6. Select the image file and mount it to the virtual disk.

Method 2: Non-VM Images

If the VM image cannot be obtained, package the current system components, upload the package to the specified directory on the target Kunpeng server, and decompress the package.

  1. Package the corresponding directory on the x86 VM. Replace the example directory and package name with the actual ones.
    1
    tar cvf xxx.tar.gz /home/xxx/xxx
    
  2. Upload the package to the /devkit_sysmig_disk directory on the node to be migrated. If the directory does not exist, create it. The tool will migrate the resources in the directory.
  3. Decompress the uploaded package. The package name can be customized.
    1
    tar xvf xxx.tar.gz
    
  4. After the decompression is complete, delete the source software package.
    1
    rm -f xxx.tar.gz