Migrating a VM Image
Mount the entire system drive of the x86 server as an image to the target server, and then scan the image. This migration option is available to OSs, databases, middleware, and applications.
Prerequisites
- You have logged in to the Kunpeng DevKit.
- You have prepared the migration source components. For details, see Preparing Migration Source Components.
Important Notes
- A node that is being used by a project cannot be added again. You need to delete the project before adding the node.
- Components on the same node cannot be migrated to the same target components.
Procedure
- Click System Migration in the navigation tree on the left and then click
to go to the New Project tab page.Figure 1 Basic Settings
- Set Migration Project Name. A project name is automatically generated by default, which can be changed if needed.
The name must meet the following requirements:
- Can contain only letters, digits, and underscores (_).
- 1 to 64 characters.
- Select VM image migration for Migration Scenario.
- Select migration project nodes. You can select a maximum of 20 nodes and search for nodes by their IP addresses or names. If a node is not included on the list, you can click Add Node to add it for the migration project. For details, see Managing Agent.
- Click Collect Source Component to collect component information about the migration project nodes. The collection progress is displayed.
- After the collection is complete, the Configure Migration Components area is displayed. Configure Component Table.Figure 2 Configure Migration Components
- When configuring the components to be migrated, you can click Save Configuration in the lower left corner to save the current configuration.
- In the upper part of Component Table, you can click Add Component Information and enter the information about the component to be added.
If you manually add component information, the origin of the source component (middleware or applications) can be any of the following:
- Obtain from node server: Obtain the source component package from the specified path on the owning node, scan and analyze it, and generate a migration guide report. If the component belongs to middleware, perform the following steps:
- Compress the installation directory of the source component to be scanned into a package, for example, a tar.gz package. Replace the example package name and source component directory with the actual ones.
1tar cvf xxx.tar.gz /xxx/xxx/xxx
- Log in to the tool through SSH and upload the compressed package to a user-defined directory on the node server.
- Go to the directory of storing the compressed package.
1cd User-defined_directory
- Decompress the source component package. Replace the example package name with the actual one.
1tar xvf xxx.tar.gz
- After the decompression is complete, you can run the following command to delete the source component package.
1rm -f xxx.tar.gz
- Set the path to the decompressed file as the source component path.
- Compress the installation directory of the source component to be scanned into a package, for example, a tar.gz package. Replace the example package name and source component directory with the actual ones.
- Upload source component package: Upload the source component package, scan and analyze it, and generate a migration guide report. If the component belongs to middleware, perform the following steps:
- Compress the directory of the source component to be scanned into a package, for example, a tar.gz package. Replace the example package name and source component directory with the actual ones.
1tar cvf xxx.tar.gz /xxx/xxx/xxx
- Upload the source component package.
- Compress the directory of the source component to be scanned into a package, for example, a tar.gz package. Replace the example package name and source component directory with the actual ones.
- No source component available: No source component package is provided and no migration analysis is performed. This parameter is available only to middleware.
- Trust Target Component URL: If you have selected Download from URL, choose whether to trust the target component URL.
If you enable Trust Target Component URL, SSL certificate verification will be skipped for all software downloads in this migration task. Check that the URL is secure.
- Upload Source Package: If you need to scan the source code for SQL statements or non-SM algorithms, upload all required source packages.
- Click Upload and drag the source packages to the upload area. Alternatively, you can click Add File to select source packages and click Upload.
- Optional: If you select Database in Component Table and need to scan an SQL source package, you are advised to configure the data definition language (DDL) file. For details about how to obtain a DDL file, see Exporting a DDL File.
- The supported source package formats are tar, tar.bz, tar.bz2, tar.gz, tar.xz, tbz, tbz2, tgz, txz, and zip. You can upload multiple source packages at the same time. Each of the source packages must be less than or equal to 2048 MB.
- For Dockerfile and Docker Compose files, the tool identifies the statements that do not support the Arm architecture and provides modification suggestions. For details about the file matching rules, see Dockerfile and Docker Compose Trustlist and Replacement List.
- The tool detects the drivers, dependencies, Druid, and JPA configurations in the source code, and provides Quick Fix suggestions.
- Click Start Migration.
Parent topic: Creating a System Migration Project