Local virtualization resource migration method and system, electronic equipment and storage medium

By detecting and repairing the source server and remotely copying the images and configuration files of virtualized resources, the rapid migration and maintenance of domestic autonomous processor servers is realized, solving the problems of complex fault recovery and difficult cross-cloud migration, and improving efficiency and success rate. .

CN118689649AInactive Publication Date: 2024-09-24709TH RESEARCH INSTITUTE CHINA STATE SHIPBUILDING CORP LTD

Patent Information

Application Number
CN202410820644.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Domestic autonomous processor servers have a high failure rate, fault recovery is complex and cross-cloud migration is difficult, and existing virtualization resource migration and maintenance tools are inefficient.

Method used

Provides a local virtualization resource migration method, by obtaining the IP address of the source server, detecting its running status, repairing the hard disk file system, remotely reading and sending image files and configuration files to the target server, achieving rapid migration and recover.

Benefits of technology

It improves the success rate of virtualized resource migration, reduces time costs, enables rapid migration and maintenance across clouds and isolated networks, and improves fault recovery efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689649A
    Figure CN118689649A
Patent Text Reader

Abstract

The invention discloses a local virtualized resource migration method and system, electronic equipment and a storage medium. The method comprises the steps of obtaining an IP address of a source server where a virtualized resource to be migrated is located; detecting whether the source server runs normally or not, and if the source server is detected to run normally, remotely reading a mirror image file and a configuration file of a to-be-migrated virtual resource on the source server based on an IP address of the source server; and acquiring an IP address of a target server corresponding to the to-be-migrated virtualized resource, sending a mirror image file and a configuration file of the to-be-migrated virtualized resource to the target server, and remotely reconstructing the virtualized resource in the target server by using the mirror image file and the configuration file, so that the virtualized resource is recovered to run. According to the method and the device, rapid migration and maintenance of local virtualization resources between an isolation network or different cloud service providers are realized, and the time cost of migration and maintenance of the virtualization resources is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and more specifically, to a local virtualization resource migration method, system, electronic device and storage medium. Background Art

[0002] In the era of digital economy, computing power is becoming a new kind of productivity, widely integrated into all aspects of social production and life, and providing basic power for the digital transformation of thousands of industries. Data centers are the physical carriers of computing power and the key infrastructure for digital development. Their value in enabling industries is gradually becoming more prominent. Domestically, the scale of digital infrastructure based on domestically produced processors is rapidly expanding, and domestic cloud service providers and new technologies are also emerging.

[0003] Although data center-related technologies have made great progress in technology and scale, there are still some shortcomings. First, domestic independent processor servers have a high failure rate due to factors such as process capabilities, test and verification scale, and stability of domestic operating systems, and are in urgent need of virtualization resource migration and maintenance tools to recover from failures; second, with the rapid expansion of the scale of domestic digital infrastructure, the complexity of fault handling and fault recovery time have increased, and related maintenance tools are needed to improve fault recovery efficiency; finally, with the continuous emergence of domestic cloud service providers, the demand for cross-cloud migration of virtualized resources has increased, and virtualization resource migration and maintenance tools are urgently needed to achieve cross-cloud migration of local virtualized resources. Summary of the invention

[0004] In view of the defects of the prior art, the purpose of this application is to provide a local virtualization resource migration method, system, electronic device and storage medium, aiming to solve the problem of how to provide a virtualization resource migration and maintenance tool to improve the efficiency of cross-cloud migration and maintenance of local virtualization resources.

[0005] To achieve the above objectives, in a first aspect, the present application provides a local virtualization resource migration method, comprising the following steps:

[0006] Step S101, obtaining the IP address of the source server where the virtualized resources to be migrated are located;

[0007] Step S102, detecting whether the source server is operating normally. If it is detected that the source server is operating normally, remotely reading the image file and configuration file of the virtualized resources to be migrated on the source server based on the IP address of the source server;

[0008] Step S103, obtaining the IP address of the target server corresponding to the virtualized resource to be migrated, sending the image file and configuration file of the virtualized resource to be migrated to the target server, and remotely rebuilding the virtualized resource on the target server using the image file and configuration file to restore the virtualized resource to operation.

[0009] In an optional example, step S102 further includes:

[0010] If an abnormality is detected in the source server, the hard disk file system of the source server is repaired. If it is detected that the hard disk file system of the source server is repaired successfully, the image file and configuration file of the virtualized resources to be migrated on the source server are remotely read based on the IP address of the source server.

[0011] In an optional example, repairing the hard disk file system of the source server further includes:

[0012] If it is detected that the hard disk file system of the source server has not been repaired successfully, the image file and configuration file of the virtualized resource on the hard disk of the source server are remotely scanned based on the IP address of the source server; the image file of the virtualized resource and the corresponding configuration file are matched and provided to the user for selection;

[0013] Based on the image file and / or configuration file selected by the user, the image file and configuration file of the virtualized resource to be migrated are determined.

[0014] In an optional example, remotely scanning the image file and configuration file of the virtualized resource on the hard disk of the source server specifically includes:

[0015] Determine the priority of each address list based on the frequency of occurrence of virtualized resources in each address list;

[0016] Based on the priority of each address list, the image files and configuration files of the virtualized resources in each address list on the hard disk are scanned sequentially.

[0017] In an optional example, the virtualized resource is a virtual machine and / or a container.

[0018] In a second aspect, the present application provides a local virtualization resource migration system, including:

[0019] An IP address acquisition module is used to acquire the IP address of the source server where the virtualized resources to be migrated are located;

[0020] The resource file acquisition module is used to detect whether the source server is operating normally. If the source server is detected to be operating normally, the image file and configuration file of the virtualized resource to be migrated on the source server are remotely read based on the IP address of the source server;

[0021] The virtualization resource migration module is used to obtain the IP address of the target server corresponding to the virtualization resource to be migrated, so as to send the image file and configuration file of the virtualization resource to be migrated to the target server, and remotely rebuild the virtualization resource on the target server using the image file and configuration file to restore the virtualization resource to operation.

[0022] In an optional example, the resource file acquisition module is further used to:

[0023] If an abnormality is detected in the source server, the hard disk file system of the source server is repaired. If it is detected that the hard disk file system of the source server is repaired successfully, the image file and configuration file of the virtualized resources to be migrated on the source server are remotely read based on the IP address of the source server.

[0024] In a third aspect, the present application provides an electronic device comprising: at least one memory for storing programs; and at least one processor for executing the programs stored in the memory. When the program stored in the memory is executed, the processor is used to execute the method described in the first aspect or any possible implementation of the first aspect.

[0025] In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the method described in the first aspect or any possible implementation of the first aspect.

[0026] In a fifth aspect, the present application provides a computer program product. When the computer program product runs on a processor, the processor executes the method described in the first aspect or any possible implementation of the first aspect.

[0027] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0028] In general, the above technical solutions conceived by this application have the following beneficial effects compared with the prior art:

[0029] The present application provides a local virtualized resource migration method, system, electronic device and storage medium, which improve the success rate of virtualized resource migration by detecting whether the source server is operating normally before migration. When the source server is operating normally, the image file of the virtualized resource and the configuration file matching it are copied in a targeted manner instead of a full disk copy, and the image file and the configuration file are automatically used on the target server to restore the operation and service of the virtualized resource, thereby reducing the time cost of virtualized resource migration and maintenance, and realizing the rapid migration and maintenance of local virtualized resources between isolated networks or different cloud service providers. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 This is one of the flow diagrams of the local virtualization resource migration method provided in the embodiment of the present application;

[0031] Figure 2 This is the second flow chart of the local virtualization resource migration method provided in the embodiment of the present application;

[0032] Figure 3 It is an architecture diagram of a local virtualized resource migration system provided in an embodiment of the present application;

[0033] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0035] The term "and / or" in this document is a description of the association relationship of associated objects, indicating that three types of relationships may exist. For example, virtual machines and / or containers may represent three situations: the existence of a virtual machine alone, the existence of a virtual machine and a container at the same time, and the existence of a container alone.

[0036] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0037] In the description of the embodiments of the present application, unless otherwise specified, “plurality” means two or more than two. For example, a plurality of virtualized resources refers to two or more virtualized resources.

[0038] Existing virtualization resource migration and maintenance methods are mainly based on the cloud online migration algorithm of shared storage, which combines the resource requirements of VNF and the occupied resource information on each physical host to determine the virtual machine migration strategy. However, this method is not suitable for local storage environments and cross-cloud environments.

[0039] In this regard, the present application provides a local virtualization resource migration method. Figure 1 This is one of the flow charts of the local virtualization resource migration method provided in the embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:

[0040] Step S101, obtaining the IP address of the source server where the virtualized resources to be migrated are located;

[0041] Step S102, detecting whether the source server is operating normally. If it is detected that the source server is operating normally, remotely reading the image file and configuration file of the virtualized resources to be migrated on the source server based on the IP address of the source server;

[0042] Step S103, obtaining the IP address of the target server corresponding to the virtualized resource to be migrated, sending the image file and configuration file of the virtualized resource to be migrated to the target server, and remotely rebuilding the virtualized resource on the target server using the image file and configuration file to restore the virtualized resource to operation.

[0043] It is understandable that the virtualized resources to be migrated, i.e., the virtualized resources that need to be migrated on the source server, can be damaged virtualized resources, or virtualized resources that are expected to be deployed on the target server, and the embodiments of the present application do not specifically limit this. When the source server is operating normally, the operating status and quantity of virtualized resources such as virtual machines and containers on the source server can be read according to the IP address of the source server, and all running virtualized resources on the source server can be obtained, and then the image files and configuration files of all running virtualized resources on the source server can be directly read, and the operation and services of these virtualized resources can be automatically restored on the target server.

[0044] Before copy migration, it is possible to determine whether the source server is operating normally by detecting whether the network is connected, whether important system services are available, etc., so as to improve the success rate of virtualized resource migration. Similarly, it is also possible to further determine whether the target server is operating normally, so as to further improve the success rate of virtualized resource migration. The target server can be determined based on the input obtained from the user, or it can be selected and allocated based on the resources already occupied by multiple candidate servers, which is not specifically limited in the embodiments of the present application.

[0045] Configuration files and image files appear in pairs, and the read files can be matched. The services of virtualized resources can be restored using matching image files and configuration files. During the copying process, the images and configuration files of virtualized resources such as virtual machines and containers are copied in a targeted manner instead of full disk copies. System files, logs, and audio and video files do not need to be copied. Only service-related files are copied, which reduces the time cost of virtualized resource migration and maintenance. By executing the local virtualized resource migration method through the software provided by this application, the user only needs to enter two IP addresses to achieve rapid cross-cloud migration of virtualized resources, which is relatively convenient to use.

[0046] Furthermore, when there are multiple virtualized resources that need to be migrated, the migration priority of each virtualized resource can be set according to the importance of each virtualized resource or the performance evaluation results such as stability and scalability, and important or high-performance virtualized resources can be migrated first to minimize failure losses and improve user experience.

[0047] The method provided in the embodiment of the present application improves the success rate of virtualization resource migration by detecting whether the source server is operating normally before migration. When the source server is operating normally, the image file of the virtualization resource and the configuration file matching it are copied in a targeted manner instead of a full disk copy, and the image file and the configuration file are automatically used on the target server to restore the operation and service of the virtualization resource, thereby reducing the time cost of virtualization resource migration and maintenance, and realizing the rapid migration and maintenance of local virtualization resources between isolated networks or different cloud service providers.

[0048] Based on the above embodiments, considering that the existing virtualization resource migration and maintenance methods are mainly concentrated in the fault management module of the data center cloud management platform, relying on the remote storage system, by setting high availability and orchestration strategies, calling relevant algorithms to achieve resource recovery or cross-node migration after virtualization resource failure. However, the existing virtualization resource migration and maintenance methods cannot recover local virtualization resources lost due to hardware failure or file system damage, are not suitable for the actual situation of a small number of server failure recovery in the local storage environment, do not involve automatic file system repair, and cross-cloud migration is also difficult.

[0049] In this regard, step S102 in the embodiment of the present application further includes:

[0050] If an abnormality is detected in the source server, the hard disk file system of the source server is repaired. If it is detected that the hard disk file system of the source server is repaired successfully, the image file and configuration file of the virtualized resources to be migrated on the source server are remotely read based on the IP address of the source server.

[0051] Here, repairing the hard disk file system of the source server can be specifically implemented through a file system repair command to ensure smoother reading of the image file and configuration file of the virtualized resource later.

[0052] It should be noted that the embodiment of the present application adds a disk repair function before copying, automatically repairs the file system that may be damaged, and improves the success rate of virtualized resource migration and maintenance. In the case of abnormalities in the source server, the present application can implement online fault repair, restore the image file and configuration file of the virtualized resource after the repair, and then perform subsequent online virtualized resource migration.

[0053] Based on any of the above embodiments, the hard disk file system of the source server is repaired, and then the following step is further included:

[0054] If it is detected that the hard disk file system of the source server has not been repaired successfully, the image file and configuration file of the virtualized resource on the hard disk of the source server are remotely scanned based on the IP address of the source server; the image file of the virtualized resource and the corresponding configuration file are matched and provided to the user for selection;

[0055] Based on the image file and / or configuration file selected by the user, the image file and configuration file of the virtualized resource to be migrated are determined.

[0056] It is understandable that if the file system repair is unsuccessful, it means that the problem cannot be solved by the simple command repair method. At this time, it can be repaired by scanning the entire disk sector by sector. Only after each sector is repaired can the internal files be read, and finally the image file and configuration file of the virtualized resource can be obtained. When the matching is completed, a list to be restored can be generated. The user can select the virtualized resource to be restored according to the list to be restored, and can also select the version to be restored. For example, if virtualized resource A has multiple image files, which are versions generated at different times, the user can select one of the versions to restore.

[0057] Furthermore, when there are multiple virtualized resources that need to be restored, the software can also automatically restore each virtualized resource according to the pre-set order of importance priority of each virtualized resource. When the user only selects the configuration file, the software can also automatically select the corresponding image file version to be restored according to the damage time of the virtualized resource.

[0058] When the source server is detected to be normal, or the hard disk file system is successfully repaired after an exception, the running version can be directly read from the source server, and the read files are relatively clear. At this time, the virtualized resources can be automatically migrated to the target server without user confirmation. However, the method of scanning the hard disk to obtain image files and configuration files cannot obtain operation-related information, and the obtained files need to be generated into a list to be restored and provided to the user for confirmation.

[0059] It should be noted that after the copying is completed, the embodiment of the present application generates a list to be restored through image file and configuration file identification and matching, and restores the virtualized resources off-site after user confirmation, thereby improving the correctness of virtualized resource fault recovery, realizing rapid recovery and cross-node migration of local virtualized resources after server failure, and improving user experience.

[0060] Furthermore, the method of matching the image file of the virtualized resource with the corresponding configuration file can be specifically matching according to the name or other identifier of the file, or matching according to the semantic relevance of the file content, for example, using semantic matching algorithms such as word vectors and cosine similarity for matching, and the embodiments of the present application do not make specific limitations on this.

[0061] Based on any of the above embodiments, considering that a full scan of hard disk files requires a certain amount of time, in the embodiment of the present application, remotely scanning the image files and configuration files of the virtualized resources on the hard disk of the source server specifically includes:

[0062] Determine the priority of each address list based on the frequency of occurrence of virtualized resources in each address list;

[0063] Based on the priority of each address list, the image files and configuration files of the virtualized resources in each address list on the hard disk are scanned sequentially.

[0064] It is understandable that the frequency of occurrence of virtualized resources in each address list can be obtained based on historical data statistics. The address list with the highest frequency of virtualized resources can be set to the highest priority for file scanning and matching. By prioritizing and maintaining the address list with the highest frequency of virtualized resources, the matching efficiency of virtualized resource configuration files and image files can be improved, thereby further improving the recovery efficiency of virtualized resource operation and services.

[0065] It should be noted that if the source server is already in a faulty state, the hard disk file system is repaired first. If the repair fails, the image file and configuration file are scanned and copied. After the copying is completed, the image file and configuration file are identified and matched, and the address list with the highest frequency of virtualization resources is preferentially selected and maintained to improve the matching efficiency of virtualization resource configuration files and image files. After the matching generated list to be restored is manually confirmed, the virtualization resource recovery operation is automatically executed, which can improve the accuracy of virtualization resource failure recovery and realize the rapid recovery and cross-node migration of local virtualization resources after server failure.

[0066] Based on any of the foregoing embodiments, the virtualized resources are virtual machines and / or containers.

[0067] Based on any of the above embodiments, the present application aims to solve the problem of low efficiency in virtualized resource migration and maintenance in the current digital infrastructure environment. The present application provides a local virtualized resource migration and maintenance method, which realizes rapid recovery and cross-node migration of local virtualized resources after server failure by automatically repairing the domestic server file system, targeted copying of virtualized resources and resource matching.

[0068] Referring to the design concept of the hard disk copy machine, the embodiment of the present application provides a method for migrating and maintaining local virtualized resources, including the following steps: (1) detecting and mounting the source server hard disk; (2) copying the virtualized resource-related files in the source server hard disk, and filtering other files; (3) identifying and matching the image files and configuration files of the virtualized resources through algorithms, generating a list to be restored, and restoring the virtualized resources after confirmation by the user. The above steps realize the rapid migration and maintenance of local virtualized resources.

[0069] Furthermore, the source server hard disk is detected and mounted for repair, including the following steps:

[0070] Step 1: Power on the source server. The source server generally refers to the host machine where virtualized resources need to be restored.

[0071] Step 2: Check whether the source server is running normally. Specifically, check the network and services of the source server operating system to determine whether the source server is running normally.

[0072] Step 3: Unplug the source server hard disk and mount it locally. Generally, it means mounting it on the PC where the application software is located;

[0073] Step 4: Automatically repair the source server hard disk file system;

[0074] Step 5: Check whether the source server is repaired successfully.

[0075] Furthermore, the virtualization resource related files in the hard disk of the source server are copied, and other files are filtered, including the following steps:

[0076] Step S1: Check whether the source server is repaired successfully. Generally, it means putting the hard disk of the source server back to its original position after repair and starting the device. If the source server fails to be repaired, go to the next step;

[0077] In step S2, the image files and configuration files of virtualized resources such as virtual machines and containers on the hard disk of the source server are scanned; the address list with the highest frequency of virtualized resources is preferentially selected and maintained to improve the matching efficiency of virtualized resource configuration files and image files;

[0078] Step S3: Match the virtualization resource configuration file and the image file.

[0079] Furthermore, the image file and configuration file of the virtualized resource are identified and matched by an algorithm, a list to be restored is generated, and the virtualized resource is restored after confirmation by the user, including the following steps:

[0080] Step 1: Generate a list to be restored. The same virtualized resource file may have multiple version combinations.

[0081] Step 2: The user chooses to confirm the recovery list;

[0082] Step 3: Enter the target server IP address in the software interface of this application. The target server generally refers to the target machine where the virtualized resources need to be restored.

[0083] Step 4: Remotely rebuild the virtual machine and container on the target server and resume operation.

[0084] Based on any of the above embodiments, Figure 2 This is a second flow chart of the local virtualization resource migration method provided in the embodiment of the present application, such as Figure 2 As shown, the method comprises the following steps:

[0085] Step 1: The source server is powered on and running, which generally refers to the host machine where virtualized resources need to be restored.

[0086] Step 2: Check whether the source server is operating normally. Check the network and services of the source server operating system to determine whether the source server is operating normally. If it is operating normally, proceed to step 3. If it is faulty, proceed to step 7.

[0087] Step 3, enter the source server IP address in the software interface of this application.

[0088] Step 4: Remotely read the image and configuration files of virtual resources such as virtual machines and containers on the source server.

[0089] Step 5: Enter the target server IP address in the software interface of this application. The target server generally refers to the target machine for which virtualized resources need to be restored.

[0090] Step 6: Remotely rebuild the virtual machine and container on the target server and resume operation, and the process ends.

[0091] Step 7: Unplug the source server hard disk and mount it locally. Generally, it means mounting it on the PC where the software of this application is located.

[0092] Step 8: Automatically repair the source server hard disk file system.

[0093] Step 9: Check whether the source server hard disk file system is repaired successfully. Generally, it means putting the source server hard disk back to its original position after repair and starting the device. If the source server is repaired successfully, return to step 3. If not, proceed to step 10.

[0094] Step 10: Scan the image and configuration files of virtual resources such as virtual machines and containers on the hard disk of the source server.

[0095] Step 11: Match the virtualization resource configuration file and the image file.

[0096] Step 12: Generate a list to be restored. The same virtualized resource file may have multiple version combinations.

[0097] Step 13, the user chooses to confirm the restoration list and returns to step 5.

[0098] Based on any of the above embodiments, the present application provides a local virtualization resource migration system. Figure 3is an architecture diagram of a local virtualized resource migration system provided in an embodiment of the present application, such as Figure 3 As shown, including:

[0099] An IP address acquisition module 310 is used to acquire the IP address of the source server where the virtualized resources to be migrated are located;

[0100] The resource file acquisition module 320 is used to detect whether the source server is operating normally. If it is detected that the source server is operating normally, the image file and configuration file of the virtualized resource to be migrated on the source server are remotely read based on the IP address of the source server;

[0101] The virtualization resource migration module 330 is used to obtain the IP address of the target server corresponding to the virtualization resource to be migrated, so as to send the image file and configuration file of the virtualization resource to be migrated to the target server, and remotely rebuild the virtualization resource on the target server using the image file and configuration file to restore the virtualization resource to operation.

[0102] The system provided in the embodiment of the present application improves the success rate of virtualized resource migration by detecting whether the source server is operating normally before migration. When the source server is operating normally, the image file of the virtualized resource and the configuration file matching it are copied in a targeted manner rather than a full disk copy, and the image file and the configuration file are automatically used on the target server to restore the operation and service of the virtualized resource, thereby reducing the time cost of virtualized resource migration and maintenance, and realizing rapid migration and maintenance of local virtualized resources between isolated networks or different cloud service providers. It is more convenient for users to use and has a better user experience.

[0103] It is understandable that the detailed functional implementation of each of the above modules can be found in the introduction of the aforementioned method embodiment, and will not be repeated here.

[0104] Based on the method in the above embodiment, an embodiment of the present application provides an electronic device. Figure 4 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the method in the above embodiment.

[0105] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.

[0106] Based on the method in the above embodiment, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a processor, the processor executes the method in the above embodiment.

[0107] Based on the method in the above embodiment, an embodiment of the present application provides a computer program product. When the computer program product runs on a processor, the processor executes the method in the above embodiment.

[0108] It is understandable that the processor in the embodiment of the present application can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor can be a microprocessor or any conventional processor.

[0109] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.

[0110] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions may be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

[0111] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.

[0112] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A local virtualization resource migration method, characterized in that: The following steps are involved: Step S101, obtaining the IP address of the source server where the virtualized resources to be migrated are located; Step S102, detecting whether the source server is operating normally. If it is detected that the source server is operating normally, remotely reading the image file and configuration file of the virtualized resources to be migrated on the source server based on the IP address of the source server; Step S103, obtaining the IP address of the target server corresponding to the virtualized resource to be migrated, sending the image file and configuration file of the virtualized resource to be migrated to the target server, and remotely rebuilding the virtualized resource on the target server using the image file and configuration file to restore the virtualized resource to operation.

2. The method according to claim 1, characterized in that Step S102 also includes: If an abnormality is detected in the source server, the hard disk file system of the source server is repaired. If it is detected that the hard disk file system of the source server is repaired successfully, the image file and configuration file of the virtualized resources to be migrated on the source server are remotely read based on the IP address of the source server.

3. The method according to claim 2, characterized in that Repairing the hard disk file system of the source server, and then further comprising: If it is detected that the hard disk file system of the source server has not been repaired successfully, the image file and configuration file of the virtualized resource on the hard disk of the source server are remotely scanned based on the IP address of the source server; the image file of the virtualized resource and the corresponding configuration file are matched and provided to the user for selection; Based on the image file and / or configuration file selected by the user, the image file and configuration file of the virtualized resource to be migrated are determined.

4. The method according to claim 3, characterized in that Remotely scan the image files and configuration files of virtualized resources on the hard disk of the source server, including: Determine the priority of each address list based on the frequency of occurrence of virtualized resources in each address list; Based on the priority of each address list, the image files and configuration files of the virtualized resources in each address list on the hard disk are scanned sequentially.

5. The method according to any one of claims 1 to 4, characterized in that: The virtualized resources are virtual machines and / or containers.

6. A local virtualization resource migration system, characterized in that: include: An IP address acquisition module is used to acquire the IP address of the source server where the virtualized resources to be migrated are located; The resource file acquisition module is used to detect whether the source server is operating normally. If the source server is detected to be operating normally, the image file and configuration file of the virtualized resource to be migrated on the source server are remotely read based on the IP address of the source server; The virtualization resource migration module is used to obtain the IP address of the target server corresponding to the virtualization resource to be migrated, so as to send the image file and configuration file of the virtualization resource to be migrated to the target server, and remotely rebuild the virtualization resource on the target server using the image file and configuration file to restore the virtualization resource to operation.

7. The system according to claim 6, characterized in that The resource file acquisition module is also used to: If an abnormality is detected in the source server, the hard disk file system of the source server is repaired. If it is detected that the hard disk file system of the source server is repaired successfully, the image file and configuration file of the virtualized resources to be migrated on the source server are remotely read based on the IP address of the source server.

8. An electronic device, characterized in that: include: at least one memory for storing a computer program; At least one processor is used to execute the program stored in the memory. When the program stored in the memory is executed, the processor is used to execute the method according to any one of claims 1 to 5.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program runs on a processor, the processor is caused to execute the method according to any one of claims 1 to 5.

10. A computer program product, characterized in that When the computer program product runs on a processor, the processor is caused to execute the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Online migration method and device for virtual machine not in shared storage condition

    CN105700944A

Cited By

  • Computing power network container migration method based on probability language and resource similarity

    CN119938227A