CN113608826A - Virtualization platform migration method and device, electronic equipment and readable storage medium - Google Patents

Virtualization platform migration method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113608826A
CN113608826A CN202110731962.4A CN202110731962A CN113608826A CN 113608826 A CN113608826 A CN 113608826A CN 202110731962 A CN202110731962 A CN 202110731962A CN 113608826 A CN113608826 A CN 113608826A
Authority
CN
China
Prior art keywords
export
data
task
virtual machine
platform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110731962.4A
Other languages
Chinese (zh)
Inventor
张冬阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Jinan data Technology Co ltd
Original Assignee
Inspur Jinan data Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Jinan data Technology Co ltd filed Critical Inspur Jinan data Technology Co ltd
Priority to CN202110731962.4A priority Critical patent/CN113608826A/en
Publication of CN113608826A publication Critical patent/CN113608826A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a virtualization platform migration method and device, electronic equipment and a readable storage medium. The method comprises the steps of configuring a data export interface of a source virtual platform and a data import interface of a target virtual platform in advance, and generating a migration configuration strategy; the migration configuration strategy comprises a task triggering mode and a task position; based on the migration configuration strategy, calling a data export interface to execute a data export task of exporting the virtual machine of the source virtual platform to an export position; when the data export task is completed, the data import task of importing the virtual machine into the target virtual platform through the data import interface is automatically triggered and executed, so that the virtual machine migration efficiency of the virtual platform can be effectively improved.

Description

Virtualization platform migration method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of virtualization technologies, and in particular, to a virtualization platform migration method and apparatus, an electronic device, and a readable storage medium.
Background
With the rapid development of cloud technology, there are clouds of various manufacturers in the now privatized cloud. Private cloud services provided by different cloud manufacturers may exist in the same client, which causes inconvenience in later operation and maintenance. Therefore, a customer can select a cloud management tool to centrally manage the virtualization platforms of different virtualization manufacturers, but the method has high requirements on cloud management and needs to dock a large number of different virtualization platforms. But there are few cloud management software that can provide this service. For such a scenario, the client may also select to merge multiple virtualization platforms into the same virtualization platform, and migrate all the Virtual machines on different virtualization platforms to the same virtualization platform, that is, execute a V2V (Virtual to Virtual migration) task.
In the related art, when the V2V task is executed, each virtual machine of the source virtualization platform needs to be exported one by one, and after the export, one virtual machine needs to be reintroduced into the destination virtualization platform, such as an ICS (integrated system interconnection, wave cloud platform). The connection of leading-out and leading-in needs manpower, programming or automation cannot be achieved, and migration efficiency is not high.
Disclosure of Invention
The application provides a virtualization platform migration method and device, electronic equipment and a readable storage medium, and virtual machine migration efficiency of a virtualization platform is effectively improved.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
an embodiment of the present invention provides a virtualization platform migration method, including:
pre-configuring a data export interface of a source virtual platform and a data import interface of a target virtual platform, and generating a migration configuration strategy; the migration configuration strategy comprises a task triggering mode and a task position;
based on the migration configuration policy, invoking the data export interface to execute a data export task of exporting the virtual machine of the source virtual platform to the export location;
and when the data export task is monitored to be completed, automatically triggering and executing a data import task of importing the virtual machine into the target virtual platform through the data import interface.
Optionally, the exporting task triggering manner is a timing exporting manner, and the invoking the data exporting interface to execute the data exporting task of exporting the virtual machine of the source virtual platform to the exporting position based on the migration configuration policy includes:
acquiring export time for triggering the execution of the data export task;
and if the current moment reaches the export moment, calling the data export interface to execute a data export task of exporting the virtual machine of the source virtual platform to the export position.
Optionally, the exporting task triggering manner is a sequential exporting manner, and the invoking the data exporting interface to execute the data exporting task of exporting the virtual machine of the source virtual platform to the exporting position based on the migration configuration policy includes:
judging whether a data export task corresponding to a first virtual machine of the source virtual platform is completed or not;
and if the data export task corresponding to the first virtual machine of the source virtual platform is judged to be completed, calling the data export interface to execute the data export task of exporting the second virtual machine of the source virtual platform to the export position.
Optionally, the step of determining whether the data export task corresponding to the first virtual machine of the source virtual platform is completed includes:
judging whether the export position generates a configuration file of the first virtual machine or not;
if the configuration file of the first virtual machine is not generated at the export position, the data export task corresponding to the first virtual machine is not completed; if the configuration file of the first virtual machine is generated at the export position, judging whether new data is generated in the configuration file within a preset time period;
if new data are generated in the configuration file in the preset time period, the data export task corresponding to the first virtual machine is not completed; and if no new data is generated in the configuration file in the preset time period, finishing the data export task corresponding to the first virtual machine.
Optionally, the exporting task triggering manner is a sequential exporting manner, and the invoking the data exporting interface to execute the data exporting task of exporting the virtual machine of the source virtual platform to the exporting position based on the migration configuration policy includes:
judging whether a data import task corresponding to a first virtual machine of the source virtual platform is completed or not;
and if the data import task corresponding to the first virtual machine of the source virtual platform is completed, calling the data export interface to execute a data export task for exporting the second virtual machine of the source virtual platform to the export position.
Optionally, the determining whether the data import task corresponding to the first virtual machine of the source virtual platform is completed includes:
calling a task interface of the target virtual platform to acquire a derived state according to a preset interface calling frequency;
and judging whether the state to be processed is a finished state or not.
Optionally, the determining whether the data import task corresponding to the first virtual machine of the source virtual platform is completed includes:
and calling a process checking command of an operating system to check whether the virtual machine import process exists or not according to the preset command checking frequency.
Another aspect of the embodiments of the present invention provides a virtualization platform migration apparatus, including:
the pre-configuration module is used for pre-configuring a data export interface of the source virtual platform and a data import interface of the target virtual platform and generating a migration configuration strategy; the migration configuration strategy comprises a task triggering mode and a task position;
the export module is used for calling the data export interface to execute a data export task of exporting the virtual machine of the source virtual platform to the export position based on the migration configuration strategy;
and the import module is used for automatically triggering and executing the data import task of importing the virtual machine into the target virtual platform through the data import interface when the data export task is monitored to be completed.
An embodiment of the present invention further provides an electronic device, which includes a processor, and the processor is configured to implement the steps of the virtualization platform migration method according to any one of the foregoing embodiments when executing the computer program stored in the memory.
Finally, an embodiment of the present invention provides a readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the steps of the virtualization platform migration method according to any one of the foregoing items.
The technical scheme provided by the application has the advantages that the task triggering mode is set and the data export import interface is configured before data migration is executed, the whole process that the virtual machine migrates from the source virtual platform to the target virtual platform is fully automatic, namely, the data export task and the data import task are automatically executed, manual intervention is not needed, migration work is simpler, migration work efficiency is effectively improved, and labor investment and time consumption in the migration process are reduced.
In addition, the embodiment of the invention also provides a corresponding implementation device, electronic equipment and a readable storage medium for the virtualization platform migration method, so that the method has higher practicability, and the device, the electronic equipment and the readable storage medium have corresponding advantages.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the related art, the drawings required to be used in the description of the embodiments or the related art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a virtualization platform migration method according to an embodiment of the present invention;
fig. 2 is a structural diagram of an embodiment of a virtualization platform migration apparatus according to an embodiment of the present invention;
fig. 3 is a block diagram of an embodiment of an electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
Having described the technical solutions of the embodiments of the present invention, various non-limiting embodiments of the present application are described in detail below.
Referring to fig. 1, fig. 1 is a schematic flowchart of a virtualization platform migration method according to an embodiment of the present invention, where the embodiment of the present invention includes the following:
s101: and pre-configuring a data export interface of the source virtual platform and a data import interface of the target virtual platform, and generating a migration configuration strategy.
In this step, the source virtual platform and the target virtual platform may be any virtualization platform, and the target virtual platform may be, for example, an ICS. The data export interface is determined according to a Virtualization Format adopted by the migration method, for example, if the migration method uses an Open Virtualization Format (OVF) or an Open Virtualization Application (OVA), the corresponding data export interface is the OVF export interface or the OVA export interface. The OVF describes, among other things, an open source, secure, efficient, scalable portable virtual package and software distribution format, including OVF files, mf files, cert files, vmdk files, and iso files. A single file of the OVA contains all the files in the OVF. The migration configuration policy includes a derived task trigger mode and a derived position, the derived task trigger mode is used for identifying when or how to trigger the virtual machine of the source virtual platform to be executed to derive the task, and the derived position refers to a path or a position of the virtual machine of the source virtual platform to be exported to the target virtual platform, for example, a storage of the target virtual platform. The export task triggering mode can comprise a timing export mode and a sequence export mode, for example, the timing export mode is timing migration, and the migration is triggered by a program timer and a fixed time point. The sequential derivation means may include: and when the export of a certain virtual machine is completed, triggering the next migration task. This time how to judge virtual machine export completion. When the import of a certain virtual machine is completed, the next previous task is triggered. This time how to judge the completion of the virtual machine import. Of course, those skilled in the art can flexibly select other derived task triggering modes according to actual requirements, which does not affect the implementation of the present application.
S102: and calling a data export interface to execute a data export task of exporting the virtual machine of the source virtual platform to an export position based on the migration configuration strategy.
It can be understood that an export task trigger mode is set in the migration configuration policy, when the data export task is executed can be determined based on the export task trigger mode, after the condition determined by the export task trigger mode is met, the step exports the virtual machine OVF to the export position of the target virtual platform, such as Storage, by calling the OVA or OVF export interface of the source end virtualization platform and combining the migration configuration policy, thereby completing the data export task.
S103: and when the data export task is completed, automatically triggering and executing the data import task of importing the virtual machine into the target virtual platform through the data import interface.
When the data export task is executed in the last step, the virtual machine of the source virtual platform is migrated at the export position of the target virtual platform in an off-line manner, and only if the virtual machine of the source virtual platform is completely exported to the export position, the subsequent data import task can be executed, so that whether the data export task is completed or not needs to be monitored, the file of the export position of the target virtual platform can be monitored in real time, when the detection is completed, the data import interface of the target virtual platform is called to import the virtual machine of the export position to the target virtual platform, the export import is completely automatic, no human intervention is needed, the automation of V2V is realized, and the operation needing manual participation is only to confirm whether the service of the migrated virtual machine is normal or not.
In the technical scheme provided by the embodiment of the invention, the task triggering mode is set and the data export and import interface is configured before the data migration is executed, the whole process of the virtual machine from the source virtual platform to the target virtual platform is fully automatic, namely the data export task and the data import task are automatically executed without human intervention, so that the migration work is simpler, the work efficiency of the migration is effectively improved, and the labor investment and time consumption in the migration process are reduced.
It should be noted that, in the present application, there is no strict sequential execution order among the steps, and as long as the logical order is met, the steps may be executed simultaneously or according to a certain preset order, and fig. 1 is only an exemplary manner, and does not represent that only the execution order is the order.
In the foregoing embodiment, how to execute step S102 is not limited, and various parallel implementations of data export task execution are provided in this embodiment, and may include the following steps:
if the export task trigger mode is the timing export mode, the implementation process of S102 in the application scenario includes:
acquiring export time for triggering the execution of a data export task;
and if the current moment reaches the export moment, calling a data export interface to execute a data export task of exporting the virtual machine of the source virtual platform to an export position.
This embodiment is also a timing migration, which is triggered by a program timer and a fixed time point. The embodiment may include performing the derivation task at fixed time, such as 8 o' clock every morning, or at fixed frequency or at fixed period, such as every 15 hours, and for the manner of the fixed frequency or the fixed period, the derivation time calculation in the above steps needs to be calculated based on the last execution time of the derivation task and the fixed frequency. If the time is fixed, only the current time needs to be acquired.
If the export task triggering mode is a sequential export mode, and the sequential export mode is to trigger the next migration task when export of a certain virtual machine is completed, the implementation process of S102 in the application scenario includes:
judging whether a data export task corresponding to a first virtual machine of a source virtual platform is completed or not;
and if the data export task corresponding to the first virtual machine of the source virtual platform is judged to be completed, calling a data export interface to execute the data export task of exporting the second virtual machine of the source virtual platform to an export position.
In this embodiment, the manner of determining whether the virtual machine derivation is completed may be:
judging whether the export position generates a configuration file of the first virtual machine or not;
if the configuration file of the first virtual machine is not generated at the export position, the data export task corresponding to the first virtual machine is not completed; if the configuration file of the first virtual machine is generated at the export position, judging whether new data is generated in the configuration file within a preset time period;
if new data are generated in the configuration file within a preset time period, the data export task corresponding to the first virtual machine is not completed; and if no new data is generated in the configuration file within the preset time period, the data export task corresponding to the first virtual machine is completed.
The first virtual machine and the second virtual machine of this embodiment are virtual machines that are migrated next to each other, that is, after the first virtual machine is migrated, the second virtual machine needs to be migrated. The preset time period can be determined according to the actual operation service and the physical environment, which is not limited in this application, and taking an OVF or OVA migration manner as an example, the determination manner of whether the data export task corresponding to the first virtual machine is completed is as follows: and judging whether OVF configuration files are generated and whether OVF files or OVA files last for 5-10 minutes are not increased, if so, proving that the data export task corresponding to the first virtual machine is finished, and if one of the OVF files or OVA files is not satisfied, proving that the data export task corresponding to the first virtual machine is not finished.
If the export task triggering mode is a sequential export mode, and the sequential export mode is that when the import of a certain virtual machine is completed, a next previous task is triggered, then the implementation process of S102 in the application scenario includes:
judging whether a data import task corresponding to a first virtual machine of a source virtual platform is finished or not;
and if the data import task corresponding to the first virtual machine of the source virtual platform is finished, calling a data export interface to execute a data export task of exporting the second virtual machine of the source virtual platform to an export position.
Whether the virtual machine import is completed or not can comprise two judgment modes, wherein one mode is to call a task interface of a target virtual platform to acquire an export state according to a preset interface calling frequency; and judging whether the waiting state is a finished state or not. And the other mode is that according to a preset command checking frequency, a process checking command of an operating system is called to check whether the virtual machine import process exists or not.
The first virtual machine and the second virtual machine of this embodiment are virtual machines that are migrated next to each other, that is, after the first virtual machine is migrated, the second virtual machine needs to be migrated. When the target virtual platform starts to execute the data import task, an import process is established, and after the import task is finished, an export state is not set by the data import task. Correspondingly, taking the target virtual platform as ICS as an example, whether the virtual machine import is completed or not can be realized by any one of the following two ways:
and periodically calling an ICS task interface every 1 minute to acquire the export state, and finishing the import when the state is finished.
The import task starts, the operating system will generate an ova import process, and it can check if the process is still in progress by calling the ps command of the operating system periodically, for example, every 1 minute, if so, the import is not completed, and if not, the import is completed.
Therefore, the embodiment provides a plurality of data exporting modes, the whole technical scheme is more flexible, and the practicability is stronger.
In order to make the technical solutions of the present application more clearly understood by those skilled in the art, the present application further explains the whole technical solution by taking a Storage, which is based on OVF, ICS as a target virtual platform, and ICS as an export location in a migration manner, and may include the following contents:
in order to improve the practicability of the technical solution of the present application, the application may make a computer program corresponding to the virtualization platform migration method for implementing any of the above embodiments, which may be referred to as a V2V program, into a software package, install the software package in a linux system, automate the migration process of the virtualization platform through the program, and perform automatic migration through the migration configuration policy of the program without manually migrating one by one. In order not to affect host performance and services, the software package may be installed in a target virtual platform, such as a virtual machine of the ICS, as a control management service for migration. The V2V program can be programmed and automated by using lightweight codes, and can provide simple html and js operation interfaces for the outside. For the simple web service nodes, data only needs to record migration configuration strategies and migration virtual machine information, and the data can be recorded by using simple files. The migration virtual machine information comprises names, memory, cpu network settings, unique identifiers and the like of the target virtual platform and the source virtual platform.
The V2V method provided by this embodiment is limited to offline migration, and does not involve online migration. The interface needs to be exported according to the OVF of the migration source virtualization platform, and is configured into an automation V2V program. The derived position can be set in the Storage of the ICS. The export task is configured by the V2V program.
And the V2V program exports the virtual machine OVF of the source virtual platform into a Storage of the ICS by calling an OVA export interface of the source virtual platform and combining export configuration. And then the V2V program monitors files in an ICS Storage in real time, automatically triggers an import task when the OVF is completed, and finishes the export of the virtual machine by calling an import interface of the ICS.
The present embodiment performs V2V migration by using a program, so that the migration work becomes simpler. The working efficiency of migration is improved. The V2V program does not provide migration technology, but only automates the migration process, and reduces the labor and time consumption during the migration process.
The embodiment of the invention also provides a corresponding device for the virtualization platform migration method, so that the method has higher practicability. Wherein the means can be described separately from the functional module point of view and the hardware point of view. In the following, the virtualization platform migration apparatus provided in the embodiment of the present invention is introduced, and the virtualization platform migration apparatus described below and the virtualization platform migration method described above may be referred to correspondingly.
Based on the angle of the functional module, referring to fig. 2, fig. 2 is a structural diagram of a virtualization platform migration apparatus according to an embodiment of the present invention, where the apparatus may include:
a pre-configuration module 201, configured to pre-configure a data export interface of a source virtual platform and a data import interface of a target virtual platform, and generate a migration configuration policy; the migration configuration strategy comprises a task triggering mode and a task position;
the export module 202 is configured to invoke a data export interface to execute a data export task of exporting the virtual machine of the source virtual platform to an export position based on the migration configuration policy;
and the import module 203 is configured to automatically trigger execution of a data import task of importing the virtual machine to the target virtual platform through the data import interface when it is detected that the data export task is completed.
Optionally, in some embodiments of this embodiment, the derivation module 202 may be further configured to: the export task triggering mode is a timing export mode, and the export time for triggering the execution of the data export task is obtained; and if the current moment reaches the export moment, calling a data export interface to execute a data export task of exporting the virtual machine of the source virtual platform to an export position.
Optionally, in another implementation manner of this embodiment, the derivation module 202 may further be configured to: the export task triggering mode is a sequential export mode, and whether the data export task corresponding to the first virtual machine of the source virtual platform is completed or not is judged; and if the data export task corresponding to the first virtual machine of the source virtual platform is judged to be completed, calling a data export interface to execute the data export task of exporting the second virtual machine of the source virtual platform to an export position.
As an optional implementation manner of this embodiment, the derivation module 202 may further be configured to: judging whether the export position generates a configuration file of the first virtual machine or not; if the configuration file of the first virtual machine is not generated at the export position, the data export task corresponding to the first virtual machine is not completed; if the configuration file of the first virtual machine is generated at the export position, judging whether new data is generated in the configuration file within a preset time period; if new data are generated in the configuration file within a preset time period, the data export task corresponding to the first virtual machine is not completed; and if no new data is generated in the configuration file within the preset time period, the data export task corresponding to the first virtual machine is completed.
Optionally, in another implementation manner of this embodiment, the derivation module 202 may further be configured to: the export task triggering mode is a sequential export mode, and whether a data import task corresponding to a first virtual machine of the source virtual platform is completed or not is judged; and if the data import task corresponding to the first virtual machine of the source virtual platform is finished, calling a data export interface to execute a data export task of exporting the second virtual machine of the source virtual platform to an export position.
As an optional implementation manner of this embodiment, the derivation module 202 may further be configured to: calling a task interface of a target virtual platform to acquire a lead-out state according to a preset interface calling frequency; and judging whether the waiting state is a finished state or not.
As another optional implementation manner of this embodiment, the derivation module 202 may be further configured to: and calling a process checking command of an operating system to check whether the virtual machine import process exists or not according to the preset command checking frequency.
The functions of the functional modules of the virtualization platform migration apparatus according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention can effectively improve the virtual machine migration efficiency of the virtual platform.
The virtualization platform migration apparatus mentioned above is described from the perspective of a functional module, and further, the present application also provides an electronic device described from the perspective of hardware. Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 3, the electronic device comprises a memory 30 for storing a computer program; a processor 31, configured to execute the computer program to implement the steps of the virtualization platform migration method according to any one of the above embodiments.
The processor 31 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 31 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 31 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 31 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 31 may further include an AI (Artificial Intelligence) processor for processing a calculation operation related to machine learning.
Memory 30 may include one or more computer-readable storage media, which may be non-transitory. Memory 30 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 30 is at least used for storing the computer program 301, wherein after being loaded and executed by the processor 31, the computer program can implement the relevant steps of the virtualization platform migration method disclosed in any of the foregoing embodiments. In addition, the resources stored by the memory 30 may also include an operating system 302, data 303, and the like, and the storage may be transient storage or permanent storage. Operating system 302 may include Windows, Unix, Linux, etc. Data 303 may include, but is not limited to, data corresponding to virtualization platform migration results, and the like.
In some embodiments, the electronic device may further include a display 32, an input/output interface 33, a communication interface 34 or network interface, a power source 35, and a communication bus 36. The display 32 and the input/output interface 33, such as a Keyboard (Keyboard), belong to a user interface, and the optional user interface may also include a standard wired interface, a wireless interface, and the like. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, as appropriate, is used for displaying information processed in the electronic device and for displaying a visualized user interface. The communication interface 34 may optionally include a wired interface and/or a wireless interface, such as a WI-FI interface, a bluetooth interface, etc., typically used to establish a communication connection between an electronic device and other electronic devices. The communication bus 36 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
Those skilled in the art will appreciate that the configuration shown in fig. 3 is not intended to be limiting of the electronic device and may include more or fewer components than those shown, such as a sensor 37 to perform various functions.
The functions of the functional modules of the electronic device according to the embodiments of the present invention may be specifically implemented according to the method in the above method embodiments, and the specific implementation process may refer to the description related to the above method embodiments, which is not described herein again.
Therefore, the embodiment of the invention can effectively improve the virtual machine migration efficiency of the virtual platform.
It is to be understood that, if the virtualization platform migration method in the above embodiments is implemented in the form of a software functional unit and sold or used as a stand-alone product, it may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be substantially or partially implemented in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods of the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), an electrically erasable programmable ROM, a register, a hard disk, a removable magnetic disk, a CD-ROM, a magnetic or optical disk, and other various media capable of storing program codes.
Based on this, the embodiment of the present invention further provides a readable storage medium, which stores a computer program, and the computer program is executed by a processor, and the steps of the virtualization platform migration method according to any one of the above embodiments are provided.
The functions of the functional modules of the readable storage medium according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the description related to the foregoing method embodiment, which is not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. For hardware including devices and electronic equipment disclosed by the embodiment, the description is relatively simple because the hardware includes the devices and the electronic equipment correspond to the method disclosed by the embodiment, and the relevant points can be obtained by referring to the description of the method.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The foregoing details a virtualization platform migration method, apparatus, electronic device, and readable storage medium provided by the present application. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1. A virtualization platform migration method, comprising:
pre-configuring a data export interface of a source virtual platform and a data import interface of a target virtual platform, and generating a migration configuration strategy; the migration configuration strategy comprises a task triggering mode and a task position;
based on the migration configuration policy, invoking the data export interface to execute a data export task of exporting the virtual machine of the source virtual platform to the export location;
and when the data export task is monitored to be completed, automatically triggering and executing a data import task of importing the virtual machine into the target virtual platform through the data import interface.
2. The virtualization platform migration method according to claim 1, wherein the export task triggering manner is a timed export manner, and the invoking the data export interface to execute the data export task of exporting the virtual machine of the source virtual platform to the export location based on the migration configuration policy includes:
acquiring export time for triggering the execution of the data export task;
and if the current moment reaches the export moment, calling the data export interface to execute a data export task of exporting the virtual machine of the source virtual platform to the export position.
3. The virtualization platform migration method according to claim 1, wherein the export task triggering manner is a sequential export manner, and the invoking the data export interface to execute the data export task of exporting the virtual machine of the source virtual platform to the export location based on the migration configuration policy includes:
judging whether a data export task corresponding to a first virtual machine of the source virtual platform is completed or not;
and if the data export task corresponding to the first virtual machine of the source virtual platform is judged to be completed, calling the data export interface to execute the data export task of exporting the second virtual machine of the source virtual platform to the export position.
4. The virtualization platform migration method according to claim 3, wherein the step of determining whether the data export task corresponding to the first virtual machine of the source virtual platform has been completed comprises:
judging whether the export position generates a configuration file of the first virtual machine or not;
if the configuration file of the first virtual machine is not generated at the export position, the data export task corresponding to the first virtual machine is not completed; if the configuration file of the first virtual machine is generated at the export position, judging whether new data is generated in the configuration file within a preset time period;
if new data are generated in the configuration file in the preset time period, the data export task corresponding to the first virtual machine is not completed; and if no new data is generated in the configuration file in the preset time period, finishing the data export task corresponding to the first virtual machine.
5. The virtualization platform migration method according to claim 1, wherein the export task triggering manner is a sequential export manner, and the invoking the data export interface to execute the data export task of exporting the virtual machine of the source virtual platform to the export location based on the migration configuration policy includes:
judging whether a data import task corresponding to a first virtual machine of the source virtual platform is completed or not;
and if the data import task corresponding to the first virtual machine of the source virtual platform is completed, calling the data export interface to execute a data export task for exporting the second virtual machine of the source virtual platform to the export position.
6. The virtualization platform migration method according to claim 5, wherein the determining whether the data import task corresponding to the first virtual machine of the source virtual platform is completed comprises:
calling a task interface of the target virtual platform to acquire a derived state according to a preset interface calling frequency;
and judging whether the state to be processed is a finished state or not.
7. The virtualization platform migration method according to claim 5, wherein the determining whether the data import task corresponding to the first virtual machine of the source virtual platform is completed comprises:
and calling a process checking command of an operating system to check whether the virtual machine import process exists or not according to the preset command checking frequency.
8. A virtualization platform migration apparatus, comprising:
the pre-configuration module is used for pre-configuring a data export interface of the source virtual platform and a data import interface of the target virtual platform and generating a migration configuration strategy; the migration configuration strategy comprises a task triggering mode and a task position;
the export module is used for calling the data export interface to execute a data export task of exporting the virtual machine of the source virtual platform to the export position based on the migration configuration strategy;
and the import module is used for automatically triggering and executing the data import task of importing the virtual machine into the target virtual platform through the data import interface when the data export task is monitored to be completed.
9. An electronic device comprising a processor for implementing the steps of the virtualization platform migration method according to any one of claims 1 to 7 when executing a computer program stored in a memory.
10. A readable storage medium, having stored thereon a virtualization platform migration computer program, which when executed by a processor implements the steps of the virtualization platform migration method according to any one of claims 1 to 7.
CN202110731962.4A 2021-06-29 2021-06-29 Virtualization platform migration method and device, electronic equipment and readable storage medium Pending CN113608826A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110731962.4A CN113608826A (en) 2021-06-29 2021-06-29 Virtualization platform migration method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110731962.4A CN113608826A (en) 2021-06-29 2021-06-29 Virtualization platform migration method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113608826A true CN113608826A (en) 2021-11-05

Family

ID=78303869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110731962.4A Pending CN113608826A (en) 2021-06-29 2021-06-29 Virtualization platform migration method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113608826A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281484A (en) * 2014-09-23 2015-01-14 华为技术有限公司 VM (virtual machine) migration method and device
CN105095001A (en) * 2014-05-08 2015-11-25 中国银联股份有限公司 Virtual machine exception recovery method under distributed environment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105095001A (en) * 2014-05-08 2015-11-25 中国银联股份有限公司 Virtual machine exception recovery method under distributed environment
CN104281484A (en) * 2014-09-23 2015-01-14 华为技术有限公司 VM (virtual machine) migration method and device

Similar Documents

Publication Publication Date Title
CN110765026B (en) Automatic test method, device, storage medium and equipment
CN111078368B (en) Memory snapshot method and device of cloud computing platform virtual machine and readable storage medium
US10628187B2 (en) Container runtime support
US20210184923A1 (en) Utilizing machine learning to reduce cloud instances in a cloud computing environment
US20210081303A1 (en) Testing an application in a production infrastructure temporarily provided by a cloud computing environment
CN111600760B (en) Quality detection system, method and equipment of power grid operation monitoring system
CN107797914A (en) Code process method, apparatus and code delivery system
CN106341496A (en) Resource scheduling method and device
CN111176790A (en) Active maintenance method and device of cloud platform physical host and readable storage medium
CN112925652A (en) Application resource deployment method, device, electronic equipment and medium
CN113867743A (en) Network operating system loading burning method and device, electronic equipment and storage medium
CN113687779B (en) Data migration method, device, electronic equipment and readable storage medium
EP4152715A1 (en) Method and apparatus for determining resource configuration of cloud service system
CN113608826A (en) Virtualization platform migration method and device, electronic equipment and readable storage medium
CN112463188B (en) Network card firmware automatic upgrading method and device and computer readable storage medium
CN106656684B (en) Grid resource reliability monitoring method and device
CN108804110A (en) A kind of data processing method, data processing equipment and mobile terminal
CN115237441A (en) Upgrade test method, device and medium based on cloud platform
CN109086099A (en) A kind of method, apparatus, equipment and storage medium starting virtual machine
CN113849229A (en) Server starting method and device, electronic equipment and readable storage medium
CN114567617A (en) IP address allocation method, system, electronic device and storage medium
CN113722212A (en) CPLD upgrade test method, device, equipment and medium
CN111858234A (en) Task execution method, device, equipment and medium
CN114579472B (en) Industrial APP portability test method and device
CN113886365A (en) Data migration method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20211105