Method and system for identifying source host and target host of live migration virtual machine

By configuring shared storage and network connections during the virtual machine hot migration process, performing host name rationality checks, and comparing system-uuid and machine-id, the problem of inaccurate identification of source and target hosts in virtual machine hot migration is solved. , improves the accuracy and stability of migration, and achieves the goals of load balancing and maintenance upgrades.

CN119440720APending Publication Date: 2025-02-14CHINA ELECTRONICS CLOUD DIGITAL INTELLIGENCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411428212.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In the process of hot migration of virtual machines, the uniqueness of the source host and the target host cannot be accurately identified, resulting in the possibility of mistakenly thinking that the source host and the target host are the same, and the goals such as load balancing, hardware maintenance or upgrade cannot be achieved.

Method used

By configuring the shared storage and network connection between the source host and the target host, hot migration is initialized; by checking the rationality of the host name, determine whether the virtualized environment meets the hot migration conditions; when the virtualized environment meets the conditions, compare the source host and the target host's system-uuid and machine-id to determine whether they are the same.

Benefits of technology

Improve the accuracy and reliability of source and target host identification in virtual machine hot migration, ensure that the source and target hosts are different physical nodes during the migration process, realize the goal of optimizing resource utilization, load balancing and maintenance upgrades, and reduce the migration process The possibility of introducing problems into it will improve the stability of the virtualized operation environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440720A_ABST
    Figure CN119440720A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of virtual machine thermal migration, and provides a method and system for identifying a source host and a target host of a thermal migration virtual machine, and the method comprises the steps: carrying out the thermal migration initialization through configuring the shared storage of the source host and the target host and establishing the network connection of the source host and the target host; whether the virtualization environments of the source host and the target host meet the thermal migration condition or not is judged through host name rationality checking; when the virtualization environment of the source host and the virtualization environment of the target host meet the thermal migration condition, whether the source host and the target host are the same or not is judged by comparing system-uuid and macine-id of the source host and the target host. According to the method and the system for identifying the source host and the target host of the live migration virtual machine, the accuracy and the reliability of identifying the source host and the target host corresponding to the live migration virtual machine can be improved, resource utilization optimization, load balancing and maintenance upgrading are realized, the possibility of introducing problems in the migration process is reduced, and the migration efficiency is improved. And the stability of the virtualization operation environment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of virtual machine hot migration, and in particular to a method and system for identifying a source host and a target host of a hot migration virtual machine. Background Art

[0002] Cloud computing is the core of digital transformation. Virtual machine and container technologies optimize resource allocation and application consistency and portability, and simplify business processes. In large-scale cloud environments, managing virtual machines, especially maintaining their stability and continuity during business migration and upgrades, is a major challenge. Virtual machine hot migration technology synchronizes key information of virtual machines in real time, such as memory, CPU status, network configuration, and storage mapping, and migrates virtual machines from the source host to the target host without interrupting services. It is the key to solving business stability and continuity issues.

[0003] Virtual machine live migration consists of three phases: the preparation phase, which requires configuring shared storage, checking network stability and compatibility, and ensuring that the source and target hosts are not duplicated; the data transfer phase, which transfers virtual machine configuration and device information, and uses incremental replication technology to migrate memory data; the verification and recovery phase, which checks the virtual machine status on the target host to ensure that it is consistent with that before migration. However, virtual machine live migration does not allow the source host and the target host to be the same, because this will make resource management difficult and fail to achieve goals such as load balancing, hardware maintenance or upgrades. To avoid this, the uniqueness of the source and target hosts must be accurately identified before migration to ensure that the migration is meaningful.

[0004] The cloud computing platform uses the Qemu-KVM (Quick Emulator, Kernel Virtual Machine) solution to implement the operation and management of virtual machines. In the Qemu-KVM virtual machine hot migration solution, libvirt determines the rationality and uniqueness of the two hosts by reading the host names and system-uuids of the source and target hosts. In the preparation stage of virtual machine hot migration, the system will parse the configuration information of the source and target hosts, including setting up shared storage, checking the rationality of the host names, ensuring the compatibility of the virtualization environment, and checking the standardization of the host names. If the configuration information does not meet the requirements, the system will return an error. Then compare the system-uuids of the source and target hosts to ensure that they are not the same, because the system-uuid is a 128-bit number used to uniquely identify the system, usually generated by the BIOS or firmware. If the system-uuids are the same, the system will also return an error and perform error handling.

[0005] System-uuid is usually used as the unique identifier of a physical node. This value is converted by the server BIOS based on the serial number of the entire machine. However, in actual applications, there are certain interference factors that may cause system-uuid to be unable to be used as the unique identifier of a physical node. For example, due to the manufacturer's non-standard BIOS design or the user's modification of the BIOS configuration, different servers may have the same system-uuid, causing the source host and the target host to be mistakenly considered to be the same during virtual machine hot migration, thus failing to achieve the goal of optimization and upgrade.

[0006] Therefore, how to provide a more accurate and efficient method for identifying the source host and the target host of a hot migrated virtual machine has become a technical problem that needs to be solved urgently. Summary of the invention

[0007] In view of this, in order to overcome the deficiencies of the prior art, the present invention aims to provide a method and system for identifying a source host and a target host of a live migration virtual machine.

[0008] According to a first aspect of the present invention, a method for identifying a source host and a target host of a live migration virtual machine is provided, the method comprising: Initialize hot migration by configuring shared storage between the source host and the target host and establishing a network connection between the source host and the target host. Check the host name rationality to determine whether the virtualization environment of the source host and the target host meets the hot migration conditions; When the virtualization environments of the source host and the target host meet the hot migration conditions, the system-uuid and machine-id of the source host and the target host are compared to determine whether the source host and the target host are the same.

[0009] Preferably, in the method for identifying a source host and a target host of a live migration virtual machine of the present invention, the live migration initialization is performed by configuring a shared storage of the source host and the target host and establishing a network connection between the source host and the target host, including: Read and parse the configuration information of the source host and the target host, and configure a shared storage that can be accessed simultaneously for the source host and the target host according to the parsed configuration information; By configuring the network parameters of the source host and the target host, a network connection is established between the source host and the target host.

[0010] Preferably, in the method for identifying a source host and a target host of a live migration virtual machine of the present invention, judging whether the virtualization environments of the source host and the target host meet the live migration conditions by checking the rationality of the host names includes: Check whether the user who performs the live migration of the virtual machine has the execution permission. If the user who performs the live migration of the virtual machine has the execution permission, check whether the target physical host exists and is running normally. When the target host exists and is running normally, check whether the migrated virtual machine is in running state; When the migrated virtual machine is in operation, check whether the virtualization services on the source host and the target physical host are running normally; When the virtualization services on the source and target hosts are running normally, check whether the virtualization software versions and CPU instruction sets of the source and target hosts are consistent; When the virtualization software versions and CPU instruction sets of the source and target hosts are consistent, check whether the host name of the target host exists and meets the predefined specifications; When the host name of the target host exists and meets the predefined specification, it is determined that the virtualization environment of the source host and the target host meets the hot migration condition.

[0011] Preferably, in the method for identifying the source host and target host of a hot migration virtual machine of the present invention, a host name rationality check is performed to determine whether the virtualization environment of the source host and the target host meets the hot migration conditions, including: when there are non-compliant items during the host name rationality check process, the virtualization environment of the source host and the target host is determined to be non-compliant with the hot migration conditions.

[0012] Preferably, in the method for identifying the source host and target host of a hot migration virtual machine of the present invention, a host name rationality check is performed to determine whether the virtualization environment of the source host and the target host meets the hot migration conditions, and also includes: when the virtualization environment of the source host and the target host does not meet the hot migration conditions, an error report is generated and hot migration initialization is re-performed.

[0013] Preferably, in the method for identifying the source host and the target host of a live migration virtual machine of the present invention, when the virtualization environments of the source host and the target host meet the live migration conditions, by comparing the system-uuid and machine-id of the source host and the target host, it is determined whether the source host and the target host are the same, including: When the virtualization environments of the source host and the target host meet the hot migration conditions, compare whether the system-uuid of the source host and the target host are the same; If the system-uuid of the source host and the target host are different, continue to perform the virtual machine live migration.

[0014] Preferably, in the method for identifying the source host and the target host of a live migration virtual machine of the present invention, when the virtualization environments of the source host and the target host meet the live migration conditions, by comparing the system-uuid and machine-id of the source host and the target host, it is determined whether the source host and the target host are the same, including: When the system-uuid of the source host and the target host are the same, compare whether the machine-id of the source host and the target host are the same; When the machine-ids of the source host and the target host are different, continue to perform the virtual machine live migration.

[0015] Preferably, in the method for identifying the source host and target host of a hot migration virtual machine of the present invention, when the virtualization environment of the source host and the target host meets the hot migration conditions, it is determined whether the source host and the target host are the same by comparing the system-uuid and machine-id of the source host and the target host, including: when the machine-id of the source host and the target host are the same, an error report is generated and the hot migration is initialized again.

[0016] Preferably, in the method for identifying the source host and the target host of a live migration virtual machine of the present invention, the machine-id is randomly generated when the server system is started or installed, is a unique identifier for each server operating system and remains unchanged throughout the life cycle.

[0017] According to a second aspect of the present invention, a system for identifying a source host and a target host for hot migration virtual machines is provided, the system comprising an identification server, the identification server being used to: initialize hot migration by configuring shared storage of the source host and the target host and establishing a network connection between the source host and the target host; determine whether the virtualization environments of the source host and the target host meet the hot migration conditions by checking the rationality of the host names; when the virtualization environments of the source host and the target host meet the hot migration conditions, determine whether the source host and the target host are the same by comparing the system-uuid and machine-id of the source host and the target host.

[0018] According to a third aspect of the present invention, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect of the present invention when executing the program.

[0019] The method and system for identifying the source host and the target host of a hot migrated virtual machine of the present invention improves the accuracy and reliability of identifying the source host and the target host corresponding to the hot migrated virtual machine by adding the / etc / machine-id file as a basis for judgment, and can ensure that the source host and the target host are different physical nodes when hot migrating the virtual machine, thereby ensuring the expected goals of optimizing resource utilization, achieving load balancing and maintenance and upgrading, reducing the possibility of introducing problems during the migration process, and improving the stability of the virtualization operating environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1 This is an example diagram of the architecture of a system for identifying a source host and a target host of a live migration virtual machine according to an embodiment of the present invention; Figure 2 A flowchart of a method for identifying a source host and a target host for hot migration of a virtual machine according to an embodiment of the present invention; Figure 3 A schematic diagram of an execution flow of a method for identifying a source host and a target host of a live migration virtual machine according to an embodiment of the present invention; Figure 4 A schematic diagram of the structure of the device provided by the present invention. DETAILED DESCRIPTION

[0022] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0023] It should be noted that the following embodiments and features in the embodiments may be combined with each other in the absence of conflict; and, based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making any creative work are within the scope of protection of the present disclosure.

[0024] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.

[0025] The technical principles of the present invention are as follows: In practical applications, the virtual machine hot migration process can be divided into pre-migration preparation, execution of the migration process and post-migration processing according to the different established goals of the tasks in each time period. The present invention relates to the pre-migration preparation stage, which aims to ensure that when the virtual machine hot migration program checks the migration conditions in the preparation stage, it can more accurately determine whether the source host where the virtual machine is located and the corresponding target host are the same. In the preparation stage of the virtual machine hot migration, the present invention adds the system file / etc / machine-id as one of the bases for judging whether the source host and the target host are the same. The / etc / machine-id file contains a unique machine ID that is randomly generated when the system is installed or the operating system is started for the first time, which is exclusive to the currently running system and can be used as a unique identifier for each server running system. It remains unchanged throughout the life cycle of the system and will not change no matter how many times the system is turned on and off.

[0026] Figure 1 FIG. 1 is an exemplary architecture diagram of a system for identifying a source host and a target host of a hot migration virtual machine according to an embodiment of the present invention. Figure 1 As shown, the system may include an identification server 101, a communication network 102 and / or one or more identification clients 103. Figure 1 The example shown is a plurality of identification clients 103 .

[0027] The identification server 101 can be any appropriate server for storing information, data, programs and / or any other suitable type of content. In some embodiments, the identification server 101 can perform appropriate functions. For example, in some embodiments, the identification server 101 can be used to identify the source host and the target host of the hot migration virtual machine. As an optional example, in some embodiments, the identification server 101 can be used to: initialize hot migration by configuring the shared storage of the source host and the target host and establishing a network connection between the source host and the target host; determine whether the virtualization environment of the source host and the target host meets the hot migration conditions through a host name rationality check; when the virtualization environment of the source host and the target host meets the hot migration conditions, determine whether the source host and the target host are the same by comparing the system-uuid (system unique identifier) ​​and machine-id of the source host and the target host.

[0028] As another example, in some embodiments, the identification server 101 may send the identification method of the hot migrated virtual machine source host and the target host to the identification client 103 for the user to use according to the request of the identification client 103 .

[0029] As an optional example, in some embodiments, the identification client 103 is used to provide a visual identification interface, which is used to receive a user's selection input operation to identify the source host and the target host of the hot migrated virtual machine, and, in response to the selection input operation, obtain an identification interface corresponding to the option selected by the selection input operation from the identification server 101 and display the identification interface, wherein the identification interface at least displays information for identifying the source host and the target host of the hot migrated virtual machine and operation options for identifying the information of the source host and the target host of the hot migrated virtual machine.

[0030] In some embodiments, the communication network 102 can be any suitable combination of one or more wired and / or wireless networks. For example, the communication network 102 can include any one or more of the following: the Internet, an intranet, a wide area network (WAN), a local area network (LAN), a wireless network, a digital subscriber line (DSL) network, a frame relay network, an asynchronous transfer mode (ATM) network, a virtual private network (VPN), and / or any other suitable communication network. The identification client 103 can be connected to the communication network 102 via one or more communication links (e.g., communication link 104), and the communication network 102 can be linked to the identification service end 101 via one or more communication links (e.g., communication link 105). The communication link can be any communication link suitable for transmitting data between the identification client 103 and the identification service end 101, such as a network link, a dial-up link, a wireless link, a hard-wired link, any other suitable communication link, or any suitable combination of such links.

[0031] Identification client 103 may include any one or more clients that present an interface related to identifying a hot migration virtual machine source host and a target host in an appropriate form for use and operation by a user. In some embodiments, identification client 103 may include a device of any suitable type. For example, in some embodiments, identification client 103 may include a mobile device, a tablet computer, a laptop computer, a desktop computer, and / or any other suitable type of client device.

[0032] Although the identification server 101 is illustrated as one device, in some embodiments, any suitable number of devices may be used to perform the functions performed by the identification server 101. For example, in some embodiments, multiple devices may be used to implement the functions performed by the identification server 101. Alternatively, the functions of the identification server 101 may be implemented using a cloud service.

[0033] Based on the above system, an embodiment of the present invention provides a method for identifying a source host and a target host of a live migration virtual machine, which is described below through the following embodiments.

[0034] Figure 2A flowchart of a method for identifying a source host and a target host for hot migration of a virtual machine according to an embodiment of the present invention; Figure 3 FIG. 1 is a schematic diagram of an execution flow of a method for identifying a source host and a target host of a hot migration virtual machine according to an embodiment of the present invention; the method for identifying a source host and a target host of a hot migration virtual machine of this embodiment can be executed at an identification server end, such as Figure 2 and Figure 3 As shown, the method for identifying the source host and the target host of the hot migration virtual machine includes the following steps: Step S201: Initialize hot migration by configuring shared storage between the source host and the target host and establishing a network connection between the source host and the target host.

[0035] As an optional example, this embodiment reads and parses the configuration information of the source host and the target host, and configures a shared storage that can be accessed simultaneously for the source host and the target host based on the parsed configuration information; and establishes a network connection between the source host and the target host by configuring the network parameters of the source host and the target host.

[0036] For example, in the preparation stage of migration, this embodiment first initializes according to the configuration information of the source host and the target host, and uses distributed file systems such as NFS, CephFS or professional NAS devices as shared storage through targeted specific configuration to ensure that both the source host and the target host can access the same disk file, and establishes a network connection by configuring necessary network parameters such as IP address, subnet mask, gateway, etc. to ensure a stable network connection and sufficient bandwidth capacity between the source host and the target host.

[0037] Step S202: determining whether the virtualization environments of the source host and the target host meet the hot migration conditions by checking the rationality of the host names.

[0038] As an optional example, in this embodiment, it is checked whether the user who executes the hot migration of the virtual machine has the execution authority. When the user who executes the hot migration of the virtual machine has the execution authority, it is checked whether the target physical host exists and is running normally; when the target host exists and is running normally, it is checked whether the migrated virtual machine is in a running state; when the migrated virtual machine is in a running state, it is checked whether the virtualization services on the source host and the target physical host are running normally; when the virtualization services on the source host and the target host are running normally, it is checked whether the virtualization software versions and CPU instruction sets of the source host and the target host are consistent; when the virtualization software versions and CPU instruction sets of the source host and the target host are consistent, it is checked whether the host name of the target host exists and meets the predefined specifications; when the host name of the target host exists and meets the predefined specifications, it is determined that the virtualization environment of the source host and the target host meets the hot migration conditions.

[0039] It should be noted that in this embodiment, when there are non-compliant items during the host name rationality check process, the virtualization environment of the source host and the target host is determined to be non-compliant with the hot migration conditions. When the virtualization environment of the source host and the target host does not meet the hot migration conditions, an error report is generated and the hot migration initialization is re-performed.

[0040] For example, in this embodiment, the host name rationality check is to check a series of migration conditions, mainly including checking and ensuring that the user performing the migration has sufficient permissions, checking whether the target physical host exists and is running normally, checking whether the migrated virtual machine is in a running state, checking whether the virtualization services on the source host and the target physical host are running normally, ensuring that the target physical host has sufficient resources (such as memory, CPU, etc.) to host the migrated virtual machine, checking whether the virtualization software version and CPU instruction set of the source host and the target physical host are consistent, checking whether its host name exists and whether it complies with custom specifications, etc. If any condition is not met, an error is directly returned to the previous level.

[0041] Step S203: When the virtualization environments of the source host and the target host meet the hot migration conditions, it is determined whether the source host and the target host are the same by comparing the system-uuid and machine-id of the source host and the target host.

[0042] As an optional example, in this embodiment, when the virtualization environment of the source host and the target host meets the hot migration conditions, the system-uuid of the source host and the target host are compared to see if they are the same; when the system-uuid of the source host and the target host are not the same, the hot migration of the virtual machine continues.

[0043] When the system-uuid of the source host and the target host are the same, compare whether the machine-id of the source host and the target host are the same; when the machine-id of the source host and the target host are different, continue to perform the hot migration of the virtual machine. When the machine-id of the source host and the target host are the same, generate an error report and re-initialize the hot migration. In this embodiment, the machine-id is randomly generated when the server system is started or installed. It is a unique identifier for each server running system and remains unchanged throughout the life cycle.

[0044] For example, after determining that the virtualization environments of the source host and the target host meet the hot migration conditions, this embodiment compares whether the system-uuid of the source host and the target host are the same. Only when the values ​​are different will the subsequent preparation actions for hot migration continue to be executed. If due to certain unexpected factors, such as the server manufacturer's BIOS implementation is not standardized, or the user makes complex modifications to the server BIOS configuration, it may cause an abnormal situation where multiple servers have the same system-uuid, seriously affecting the success rate of virtual machine hot migration. In this case, this solution adds a system file / etc / machine-id with a system unique identifier as a basis for determining whether the source host and the target host are the same. The hot migration process will continue to compare the value of the system file / etc / machine-id. If the machine-id is still the same, an error will be returned upward and the migration will not be successful. Otherwise, other subsequent actions of the virtual machine hot migration process will continue to be executed.

[0045] According to the method and system for identifying the source host and target host of a hot migrated virtual machine according to an embodiment of the present invention, by adding the / etc / machine-id file as a basis for judgment, the accuracy and reliability of identifying the source host and target host corresponding to the hot migrated virtual machine are improved, and it can be ensured that the source host and the target host are different physical nodes when implementing the hot migration of the virtual machine, thereby ensuring the expected goals of optimizing resource utilization, achieving load balancing and maintenance and upgrading, reducing the possibility of introducing problems during the migration process, and improving the stability of the virtualization operating environment.

[0046] like Figure 4 As shown, the present invention also provides a device, including a processor 310, a communication interface 320, a memory 330 for storing a computer program executable by the processor, and a communication bus 340. The processor 310, the communication interface 320, and the memory 330 communicate with each other through the communication bus 340. The processor 310 implements the above-mentioned method for identifying the source host and the target host of the hot migration virtual machine by running the executable computer program.

[0047] Among them, the computer program in the memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0048] The system embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected based on actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0049] Through the description of the above implementation modes, those skilled in the art can clearly understand that each implementation mode can be implemented by means of software plus a necessary general hardware platform, or of course by hardware. Based on such an understanding, the above technical solution can essentially or in other words be embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.

[0050] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims

1. A method for identifying a source host and a target host of a hot migration virtual machine, characterized in that: The method comprises: Initialize hot migration by configuring shared storage between the source host and the target host and establishing a network connection between the source host and the target host. Check the host name rationality to determine whether the virtualization environment of the source host and the target host meets the hot migration conditions; When the virtualization environments of the source host and the target host meet the hot migration conditions, the system-uuid and machine-id of the source host and the target host are compared to determine whether the source host and the target host are the same.

2. The method for identifying a source host and a target host of a live migration virtual machine according to claim 1, characterized in that: Initialize hot migration by configuring shared storage between the source host and the target host and establishing a network connection between the source host and the target host, including: Read and parse the configuration information of the source host and the target host, and configure a shared storage that can be accessed simultaneously for the source host and the target host according to the parsed configuration information; By configuring the network parameters of the source host and the target host, a network connection is established between the source host and the target host.

3. The method for identifying a source host and a target host of a live migration virtual machine according to claim 1, characterized in that: The host name rationality check determines whether the virtualization environment of the source host and the target host meets the hot migration conditions, including: Check whether the user who performs the live migration of the virtual machine has the execution permission. If the user who performs the live migration of the virtual machine has the execution permission, check whether the target physical host exists and is running normally. When the target host exists and is running normally, check whether the migrated virtual machine is in running state; When the migrated virtual machine is in operation, check whether the virtualization services on the source host and the target physical host are running normally; When the virtualization services on the source and target hosts are running normally, check whether the virtualization software versions and CPU instruction sets of the source and target hosts are consistent; When the virtualization software versions and CPU instruction sets of the source and target hosts are consistent, check whether the host name of the target host exists and meets the predefined specifications; When the host name of the target host exists and meets the predefined specification, it is determined that the virtualization environment of the source host and the target host meets the hot migration condition.

4. The method for identifying a source host and a target host of a live migration virtual machine according to claim 3, characterized in that: The host name rationality check is used to determine whether the virtualization environments of the source host and the target host meet the hot migration conditions, including: when there are non-conforming items during the host name rationality check, the virtualization environments of the source host and the target host are determined to be non-conforming to the hot migration conditions.

5. The method for identifying a source host and a target host of a live migration virtual machine according to claim 4, characterized in that: The host name rationality check determines whether the virtualization environment of the source host and the target host meets the hot migration conditions, and also includes: when the virtualization environment of the source host and the target host does not meet the hot migration conditions, an error report is generated and the hot migration initialization is re-performed.

6. The method for identifying a source host and a target host of a live migration virtual machine according to claim 1, characterized in that: When the virtualization environments of the source host and the target host meet the hot migration conditions, the system-uuid and machine-id of the source host and the target host are compared to determine whether the source host and the target host are the same, including: When the virtualization environments of the source host and the target host meet the hot migration conditions, compare whether the system-uuid of the source host and the target host are the same; If the system-uuid of the source host and the target host are different, continue to perform the virtual machine live migration.

7. The method for identifying a source host and a target host of a live migration virtual machine according to claim 6, characterized in that: When the virtualization environments of the source host and the target host meet the hot migration conditions, the system-uuid and machine-id of the source host and the target host are compared to determine whether the source host and the target host are the same, including: When the system-uuid of the source host and the target host are the same, compare whether the machine-id of the source host and the target host are the same; When the machine-ids of the source host and the target host are different, continue to perform the virtual machine live migration.

8. The method for identifying a source host and a target host of a live migration virtual machine according to claim 7, characterized in that: When the virtualization environments of the source host and the target host meet the hot migration conditions, the system-uuid and machine-id of the source host and the target host are compared to determine whether the source host and the target host are the same, including: when the machine-id of the source host and the target host are the same, an error report is generated and the hot migration is initialized again.

9. The method for identifying a source host and a target host of a live migration virtual machine according to claim 1, characterized in that: The machine-id is randomly generated when the server system is started or installed. It is a unique identifier for each server running system and remains unchanged throughout its life cycle.

10. A system for identifying source and target hosts of hot-migrated virtual machines, characterized in that: The system includes an identification server, which is used to: initialize hot migration by configuring shared storage of the source host and the target host and establishing a network connection between the source host and the target host; Check the host name rationality to determine whether the virtualization environment of the source host and the target host meets the hot migration conditions; When the virtualization environments of the source host and the target host meet the hot migration conditions, the system-uuid and machine-id of the source host and the target host are compared to determine whether the source host and the target host are the same.