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
- Select an instance, choose , and select the default KVM virtualization type.
- Choose and find the created image.
- Choose to apply for an EVS disk immediately.
- Create a SATA disk from a private image.
- After the creation is complete, click Attach to attach the created disk as a data disk to the target Kunpeng server.
- Alibaba Cloud
- Select an instance, expand Operation, select Create Custom Image, and click OK.
- Choose , 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
- Create a VM image file for the system to be migrated.
- Copy the image file to the host of the node to be migrated.
- Stop the VM of the node to be migrated.
- Run the virt-manager command on the host to access the Virtual Machine Manager console.
- Select the VM of the node to be migrated and add a virtual disk.
- 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.
- Package the corresponding directory on the x86 VM. Replace the example directory and package name with the actual ones.
1tar cvf xxx.tar.gz /home/xxx/xxx
- 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.
- Decompress the uploaded package. The package name can be customized.
1tar xvf xxx.tar.gz
- After the decompression is complete, delete the source software package.
1rm -f xxx.tar.gz
Parent topic: System Migration