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
- After a migration task is complete on a node, you can create another migration task on the node.
- If a node is occupied by another project, wait until the occupied project is complete and the node is automatically released. Alternatively, delete the project and select another 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
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: By default, the target component package is downloaded from the Kunpeng image repository and automatically installed.
- Obtain from node server: Obtain the target component package from the specified path on the node and start an automatic installation.
- Upload target component package: Click Origin of Target Component in the lower part of the dialog box to obtain the target component package.
Default Deployment Path
The default deployment path of the target component cannot be modified.
NOTE:The tool deploys the target component based on the source component path. If the source component path cannot be determined, the default deployment path is used. For the detailed deployment path, see the suggestions on the migration result page.
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.
- The estimated migration duration is displayed in real time based on the selected migration content. You can adjust your migration plan accordingly.
- In the upper part of Component Table, you can click Add Component Information and enter the information about the component to be added.
To manually add component information, click Add Component Information above the table. See Figure 3. The source component (middleware or application) can come from any of the following origins:
For details about how to package source components (except the RabbitMQ middleware), see Preparing Migration Source Components.
- 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.
- Click Start Migration.
