我要评分
获取效率
正确性
完整性
易理解

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

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

  1. 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
  2. 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.
  3. Select VM image migration for Migration Scenario.
  4. 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.
  5. Click Collect Source Component to collect component information about the migration project nodes. The collection progress is displayed.
  6. After the collection is complete, the Configure Migration Components area is displayed. Configure Component Table.
    Figure 2 Configure Migration Components
    Table 1 Component Table

    Parameter

    Description

    Source Component Name

    Name of the source component to be migrated.

    Owning Node

    Node to which the component belongs.

    Origin of Source Component

    Indicates where the source component comes.

    Target Component Name

    Name of the target component.

    Origin of Target Component

    For middleware and databases, you need to configure where the target component comes. The options are:

    • Download from URL

      Enter a URL that can be accessed by the node in the URL text box.

    • Obtain from node server

      In the Target Component Path text box, enter the path to the target component package on the owning node.

      1. Access the installation package download URL to obtain the target component installation package.

        https://mirrors.huaweicloud.com/kunpeng/archive/Kunpeng_Middleware/

      2. Log in to the tool through SSH and upload the installation package to a user-defined directory on the node server.
      3. Specify the installation package path as the target component path.
    • Upload source component package

      Next to the Upload Target Component Package field, click Upload to upload the required target component package, which can be in .zip, .tar, or .tar.gz format.

      1. Access the installation package download URL to obtain the target component installation package.

        https://mirrors.huaweicloud.com/kunpeng/archive/Kunpeng_Middleware/

      2. Upload the target component installation package.

    Commercial Certificate

    Commercial software requires a license file. Click Upload to upload the required license file.

    Operation

    You can add, edit, and delete components in Component Table.
    • Click Add, enter correct component information, and click OK.
    • Click Edit, modify and check component information, and click OK.
    • Click Delete to delete necessary components. Then click OK.
    • 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:
      1. 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.
        1
        tar cvf xxx.tar.gz /xxx/xxx/xxx
        
      2. Log in to the tool through SSH and upload the compressed package to a user-defined directory on the node server.
      3. Go to the directory of storing the compressed package.
        1
        cd User-defined_directory
        
      4. Decompress the source component package. Replace the example package name with the actual one.
        1
        tar xvf xxx.tar.gz
        
      5. After the decompression is complete, you can run the following command to delete the source component package.
        1
        rm -f xxx.tar.gz
        
      6. Set the path to the decompressed file as the source component path.
    • 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:
      1. 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.
        1
        tar cvf xxx.tar.gz /xxx/xxx/xxx
        
      2. Upload the source component package.
    • No source component available: No source component package is provided and no migration analysis is performed. This parameter is available only to middleware.
  7. 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.

  8. Upload Source Package: If you need to scan the source code for SQL statements or non-SM algorithms, upload all required source packages.
    1. Click Upload and drag the source packages to the upload area. Alternatively, you can click Add File to select source packages and click Upload.
    2. 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.
  9. Click Start Migration.