CN106775928B - Automatic virtual machine migration system and method between heterogeneous cloud platforms - Google Patents

Automatic virtual machine migration system and method between heterogeneous cloud platforms Download PDF

Info

Publication number
CN106775928B
CN106775928B CN201611062131.8A CN201611062131A CN106775928B CN 106775928 B CN106775928 B CN 106775928B CN 201611062131 A CN201611062131 A CN 201611062131A CN 106775928 B CN106775928 B CN 106775928B
Authority
CN
China
Prior art keywords
virtual machine
format
cloud platform
target cloud
disk
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.)
Active
Application number
CN201611062131.8A
Other languages
Chinese (zh)
Other versions
CN106775928A (en
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.)
State Grid Corp of China SGCC
State Grid Information and Telecommunication Co Ltd
Beijing Guodiantong Network Technology Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Information and Telecommunication Co Ltd
Beijing Guodiantong Network 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 State Grid Corp of China SGCC, State Grid Information and Telecommunication Co Ltd, Beijing Guodiantong Network Technology Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201611062131.8A priority Critical patent/CN106775928B/en
Publication of CN106775928A publication Critical patent/CN106775928A/en
Application granted granted Critical
Publication of CN106775928B publication Critical patent/CN106775928B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an automatic migration system and method for virtual machines among heterogeneous cloud platforms, wherein the system comprises a judging unit, a migration unit and a migration unit, wherein the judging unit is used for judging whether the format of a disk file of a source virtual machine is matched with the format supported by a target cloud platform; the first import unit and the second import unit respectively import the disk file or the modified disk file into the target cloud platform; the format conversion unit is used for converting the format of the disk file; and the operating system matching unit is used for determining the updating states of the operating system of the target cloud platform and the disk interface driver of the source virtual machine respectively aiming at the condition that the source virtual machine comprises a single disk or a plurality of disks. The system can realize automatic migration of the virtual machine, greatly reduces the workload of manual operation, and can determine the update state of the operating system of the target cloud platform and the update state of the disk interface drive of the source virtual machine according to the number of disks contained in the source virtual machine, so that the migration of the virtual machine containing a single disk or a plurality of disks can be realized.

Description

Automatic virtual machine migration system and method between heterogeneous cloud platforms
Technical Field
The invention relates to the technical field of cloud platforms, in particular to an automatic virtual machine migration system and method between heterogeneous cloud platforms.
Background
Cloud platforms (Cloud platforms): the cloud platform provides "cloud" based services for developers to employ when creating applications. The cloud platform provided by the invention particularly refers to an IaaS cloud platform, and various cloud computing infrastructure software manufacturers in the IaaS cloud platform, such as VMware, Microsoft, IBM, OpenStack and the like, exist. Virtualization technology is the core technology of cloud platforms.
A virtual machine refers to a complete system with complete hardware system functionality, which is simulated by software and runs in a completely isolated environment. The virtual system has the same functions as a real system by generating a brand new virtual mirror image of the existing operating system, can independently install running software, stores data, has an independent desktop and cannot reduce the performance of a computer.
In a specific implementation, migration of a virtual machine is often required between two heterogeneous cloud platforms, and the virtual machine in the cloud platform includes a single disk or multiple disks. In the prior art, manual configuration needs to be executed for migration of a single-disk virtual machine. The target cloud platform operating system and the source cloud platform disk file format are not completely consistent. Firstly, environmental parameters need to be collected, and the format of a disk file is converted according to the mode of a target cloud platform. And then, whether the migrated virtual machine is matched with a disk drive of the target cloud platform or not is checked, and the problem of interface drive compatibility needs to be solved in the migration process. And finally, importing the disk file of the virtual machine into the target cloud platform and generating the virtual machine. For migration of a multi-disk virtual machine on a heterogeneous cloud platform, the migration of the multi-disk virtual machine not only has the problem of migration of a single-disk virtual machine, but also needs to solve the problem of how to mount multiple disks. Due to the heterogeneity of the cloud platforms, some cloud platforms only support the import of a single-disk virtual machine, and cannot support the import of a multi-disk virtual machine. The only solution at present is to rebuild the virtual machine on the new platform and install all the required operating environments and software.
Based on the above discussion, in the prior art, the migration of the virtual machine requires manual operation, and the operation process is very complicated. Therefore, how to reduce the tedious work caused by manual operation is an urgent problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide an automatic virtual machine migration system and method between heterogeneous cloud platforms, which are used for reducing the tedious work brought by manual operation.
In order to solve the above technical problem, the present invention provides an automatic migration system for a virtual machine between heterogeneous cloud platforms, including:
the system comprises a judging unit and a processing unit, wherein the judging unit is used for judging whether the format of a disk file of a source virtual machine in a source cloud platform is matched with the format supported by a target cloud platform;
the first importing unit is used for importing the disk file into the target cloud platform under the condition that the format of the disk file is matched with the format supported by the target cloud platform;
the format conversion unit is used for converting the format of the disk file into the format supported by the target cloud platform under the condition that the format of the disk file is not matched with the format supported by the target cloud platform;
an operating system matching unit, configured to determine, for a case that the source virtual machine includes a single disk or multiple disks, an update state of an operating system of the target cloud platform and an update state of a disk interface driver of the source virtual machine, respectively;
and the second importing unit is used for importing the modified disk file into the target cloud platform according to the update state of the operating system of the target cloud platform and the update state of the disk interface driver of the source virtual machine.
Preferably, the determining unit specifically includes:
the acquisition module is used for acquiring the format of the disk file and the format supported by the target cloud platform;
and the confirmation module is used for judging whether the format of the disk file is matched with the format supported by the target cloud platform.
Preferably, the operating system matching unit specifically includes:
the first judgment module is used for judging whether the source virtual machine occupies a plurality of disks;
the second judging module is used for judging whether the kernel of the operating system of the source virtual machine supports the running of a plurality of disks in the target cloud platform or not under the condition that the source virtual machine occupies the plurality of disks;
the updating module is used for mounting the disk occupied by the operating system of the source virtual machine on the basis of the disk interface drive supported by the target cloud platform and updating the kernel of the operating system of the target cloud platform under the condition that the kernel of the operating system of the source virtual machine does not support the operation of a plurality of disks in the target cloud platform;
a third determining module, configured to determine whether a disk interface driver of an operating system of the source virtual machine supports a disk interface driver required by the target cloud platform when the source virtual machine occupies a single disk, or the source virtual machine occupies multiple disks, and the operating system of the source virtual machine supports multiple disks to run in the target cloud platform, or a kernel of the operating system of the target cloud platform is updated: if yes, triggering the second import unit;
and the drive installation module is used for injecting the disk interface drive required by the target cloud platform into the operating system of the source virtual machine under the condition that the disk interface drive of the operating system of the source virtual machine does not support the disk interface drive required by the target cloud platform.
Preferably, the method further comprises the following steps: and the generating unit is used for generating a new virtual machine on the target cloud platform after receiving the disk file imported by the first importing unit or the modified disk file imported by the second importing unit.
Preferably, the format of the disk file of the source virtual machine includes a vmdk format, a qcow2 format, a raw format, a cow format, a vdi format, a vhd format, a voa format, or a ovf format.
In order to solve the technical problem, the invention provides an automatic virtual machine migration method between heterogeneous cloud platforms, which comprises the following steps:
s10: judging whether the format of a disk file of a source virtual machine in a source cloud platform is matched with the format supported by a target cloud platform; wherein, if it is to enter S11, otherwise, enter S12;
s11: importing the disk file into the target cloud platform;
s12: converting the format of the disk file into a format supported by the target cloud platform;
s13: determining an update state of an operating system of the target cloud platform and an update state of a disk interface drive of the source virtual machine respectively for a case that the source virtual machine contains a single disk or a plurality of disks;
s14: and importing the modified disk file into the target cloud platform according to the update state of the operating system of the target cloud platform and the update state of the disk interface drive of the source virtual machine.
Preferably, the S11 specifically includes:
s110: acquiring the format of the disk file and the format supported by the target cloud platform;
s111: and judging whether the format of the disk file is matched with the format supported by the target cloud platform.
Preferably, the S13 specifically includes:
s130: judging whether the source virtual machine occupies a plurality of disks; if yes, entering S131, otherwise entering S133;
s131: judging whether the kernel of the operating system of the source virtual machine supports the running of a plurality of disks in the target cloud platform; if yes, entering S133, otherwise entering S132;
s132: based on a disk interface driver supported by the target cloud platform, mounting a disk occupied by an operating system of the source virtual machine, and updating a kernel of the operating system of the target cloud platform; entering S133;
s133: judging whether the disk interface driver of the operating system of the source virtual machine supports the disk interface driver required by the target cloud platform: if yes, the process goes to S14, otherwise, the process goes to S134;
s134: injecting a disk interface drive required by the target cloud platform into an operating system of the source virtual machine; proceed to S14.
Preferably, the method further comprises the following steps:
s15: and generating a new virtual machine on the target cloud platform after receiving the imported disk file or the imported modified disk file.
Preferably, the format of the disk file of the source virtual machine includes a vmdk format, a qcow2 format, a raw format, a cow format, a vdi format, a vhd format, a voa format, or a ovf format.
The system comprises a judging unit, a processing unit and a migration unit, wherein the judging unit is used for judging whether the format of a disk file of a source virtual machine is matched with the format supported by a target cloud platform; the first import unit and the second import unit are respectively used for importing the disk file or the modified disk file into the target cloud platform; the format conversion unit is used for converting the format of the disk file; and the operating system matching unit is used for determining the operating system of the target cloud platform and the update state of the disk interface driver of the source virtual machine according to the number of the disks contained in the source virtual machine. The system can realize automatic migration of the virtual machine, greatly reduces the workload of manual operation, and can determine the update state of the operating system of the target cloud platform and the update state of the disk interface drive of the source virtual machine according to the number of disks contained in the source virtual machine, so that the migration of the virtual machine containing a single disk or a plurality of disks can be realized.
Drawings
In order to illustrate the embodiments of the present invention more clearly, the drawings that are needed in the embodiments 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 that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a structural diagram of an automatic virtual machine migration system between heterogeneous cloud platforms according to an embodiment of the present invention;
fig. 2 is a structural diagram of another virtual machine auto-migration system between heterogeneous cloud platforms according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for automatically migrating a virtual machine between heterogeneous cloud platforms according to an embodiment of the present invention;
fig. 4 is a flowchart of another method for automatically migrating a virtual machine between heterogeneous cloud platforms according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
The core of the invention is to provide an automatic virtual machine migration system and method between heterogeneous cloud platforms, which are used for reducing the tedious work brought by manual operation.
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.
Fig. 1 is a structural diagram of an automatic virtual machine migration system between heterogeneous cloud platforms according to an embodiment of the present invention. As shown in fig. 1, the system for automatically migrating virtual machines between heterogeneous cloud platforms includes:
the determining unit 10 is configured to determine whether a format of a disk file of a source virtual machine in a source cloud platform matches a format supported by a target cloud platform.
In a specific implementation, the determining unit 10 specifically includes: an obtaining module 100, configured to obtain a format of a disk file and a format supported by a target cloud platform; the determining module 101 is configured to determine whether the format of the disk file matches a format supported by the target cloud platform. It is understood that the format of the acquired disk file is obtained from the suffix name of the disk file.
The first importing unit 11 is configured to import the disk file into the target cloud platform when the format of the disk file matches the format supported by the target cloud platform.
And a format conversion unit 12, configured to, in a case that the format of the disk file does not match the format supported by the target cloud platform, convert the format of the disk file into the format supported by the target cloud platform.
If the format of the disk file of the source virtual machine is not matched with the format supported by the target cloud platform, the format of the disk file of the source virtual machine needs to be modified, otherwise, the disk file is directly imported into the target cloud platform. In a specific implementation, if the format of the disk file of the source virtual machine does not match the format supported by the target cloud platform, the format of the disk file needs to be modified, and the operating system of the target cloud platform and the disk interface driver of the source virtual machine need to be updated, which is specifically described below.
The operating system matching unit 13 determines, for a case that the source virtual machine includes a single disk or multiple disks, an update state of the operating system of the target cloud platform and an update state of the disk interface driver of the source virtual machine.
In a specific implementation, the operating system matching unit 13 specifically includes:
the first determining module 130 is configured to determine whether the source virtual machine occupies multiple disks.
The second judging module 131 is configured to, when the source virtual machine occupies multiple disks, judge whether a kernel of an operating system of the source virtual machine supports running of the multiple disks in the target cloud platform;
the updating module 132 is configured to mount a disk occupied by the operating system of the source virtual machine on the basis of a disk interface driver supported by the target cloud platform and update the kernel of the operating system of the target cloud platform, when the kernel of the operating system of the source virtual machine does not support the operation of multiple disks in the target cloud platform;
a third determining module 133, configured to determine whether a disk interface driver of an operating system of the source virtual machine supports a disk interface driver required by the target cloud platform when the source virtual machine occupies a single disk, or the source virtual machine occupies multiple disks, and the operating system of the source virtual machine supports multiple disks to run in the target cloud platform, or a kernel of the operating system of the target cloud platform is updated: if yes, triggering a second import unit 14;
the driver installation module 134 is configured to inject a disk interface driver required by the target cloud platform into the operating system of the source virtual machine under the condition that the disk interface driver of the operating system of the source virtual machine does not support the disk interface driver required by the target cloud platform.
It can be understood that, after the disk file of the source virtual machine is modified because the format of the disk file is not matched with that supported by the target cloud platform, the operating systems of the source virtual machine and the corresponding disk interface drivers need to be correspondingly detected and judged. First, the source virtual machine may occupy a single disk or a plurality of disks, and if the determination result of the first determining module 130 is that a single hard disk is occupied, the third determining module 133 determines directly without updating the operating system of the target cloud platform. If the judgment result of the first judgment module 130 is that a plurality of hard disks are occupied, the second judgment module 131 is required to further judge whether the kernel of the operating system of the source virtual machine supports the operation of a plurality of disks in the target cloud platform.
It can be understood that if the kernel of the operating system of the source virtual machine does not support the running of multiple disks in the target cloud platform, the target cloud operating system cannot run even if the modified disk file is imported into the target cloud operating system. In this embodiment, if the kernel of the operating system of the source virtual machine does not support the operation of multiple disks in the target cloud platform, the updating module 132 mounts the disk occupied by the operating system of the source virtual machine based on the disk interface driver supported by the target cloud platform, and updates the kernel of the operating system of the target cloud platform. In other words, each disk interface driver is searched in the target cloud platform, a suitable disk interface driver is selected from the plurality of disk interface drivers to mount a disk, after mounting, the target cloud platform can identify a new disk, that is, multiple disks of the kernel of the operating system of the source virtual machine can be supported to run, and then the update module 132 updates the kernel of the operating system of the target cloud platform.
It can be understood that the formats of the disk files of the source virtual machine in this embodiment include a vmdk format, a qcow2 format, a raw format, a cow format, a vdi format, a vhd format, a voa format, a ovf format, and the like; the interfaces in the disk interface drive include an IDE interface, a SATA interface, a SCSI interface, an SAS interface, an ISCSI interface, or a VIRTIO interface.
The second importing unit 14 is configured to import the modified disk file into the target cloud platform according to the update state of the operating system of the target cloud platform and the update state of the disk interface driver of the source virtual machine.
It can be understood that the automatic virtual machine migration system between heterogeneous cloud platforms in this embodiment may operate as a single system, may be disposed on the source cloud platform side, or may be disposed on the target cloud platform side. The plurality of disks described in this embodiment refer to all cases except a single disk, that is, include two disks and more than two disks.
In the automatic migration system of the virtual machine between the heterogeneous cloud platforms, the automatic migration of the virtual machine is realized by using the first import unit, the format conversion unit, the operating system matching unit and the second import unit of the judgment unit, so that the workload of manual operation is greatly reduced, and the update state of the operating system of the target cloud platform and the update state of the disk interface driver of the source virtual machine can be determined according to the number of disks included in the source virtual machine, thereby realizing the migration of the virtual machine including a single disk or multiple disks.
Fig. 2 is a structural diagram of another virtual machine auto-migration system between heterogeneous cloud platforms according to an embodiment of the present invention. As shown in fig. 2, on the basis of the above embodiment, the method further includes: and the generating unit 15 is configured to generate a new virtual machine on the target cloud platform after receiving the disk file imported by the first importing unit 11 or the modified disk file imported by the second importing unit 14.
Fig. 3 is a flowchart of another method for automatically migrating a virtual machine between heterogeneous cloud platforms according to an embodiment of the present invention. As shown in fig. 3, a method for automatically migrating a virtual machine between heterogeneous cloud platforms includes:
s10: judging whether the format of a disk file of a source virtual machine in a source cloud platform is matched with the format supported by a target cloud platform; wherein, if it is to enter S11, otherwise, enter S12;
s11: importing the disk file into a target cloud platform;
s12: converting the format of the disk file into a format supported by a target cloud platform;
s13: determining the update state of an operating system of a target cloud platform and the update state of a disk interface drive of a source virtual machine according to the number of disks contained in the source virtual machine;
s14: and importing the modified disk file into the target cloud platform according to the update state of the operating system of the target cloud platform and the update state of the disk interface drive of the source virtual machine.
According to the method for automatically migrating the virtual machines between the heterogeneous cloud platforms, the automatic migration of the virtual machines is realized through the steps, the workload of manual operation is greatly reduced, and the update state of the operating system of the target cloud platform and the update state of the disk interface drive of the source virtual machine can be determined according to the number of the disks contained in the source virtual machine, so that the migration of the virtual machine containing a single disk or a plurality of disks can be realized.
Fig. 4 is a flowchart of another method for automatically migrating a virtual machine between heterogeneous cloud platforms according to an embodiment of the present invention. As a preferred embodiment, S11 specifically includes:
s110: acquiring the format of a disk file and the format supported by a target cloud platform;
s111: and judging whether the format of the disk file is matched with the format supported by the target cloud platform.
As a preferred embodiment, S13 specifically includes:
s130: judging whether the source virtual machine occupies a plurality of disks; if yes, entering S131, otherwise entering S133;
s131: judging whether the kernel of an operating system of a source virtual machine supports the running of a plurality of disks in a target cloud platform; if yes, entering S133, otherwise entering S132;
s132: based on a disk interface driver supported by a target cloud platform, mounting a disk occupied by an operating system of a source virtual machine, and updating a kernel of the operating system of the target cloud platform; entering S133;
s133: judging whether the disk interface driver of the operating system of the source virtual machine supports the disk interface driver required by the target cloud platform: if yes, the process goes to S14, otherwise, the process goes to S134;
s134: injecting a disk interface drive required by a target cloud platform into an operating system of a source virtual machine; proceed to S14.
As a preferred embodiment, the method further comprises the following steps:
s15: and generating a new virtual machine on the target cloud platform after receiving the imported disk file or the imported modified disk file.
In a preferred embodiment, the format of the disk file of the source virtual machine includes a vmdk format, a qcow2 format, a raw format, a cow format, a vdi format, a vhd format, a voa format, or a ovf format.
Since the embodiment of the method portion corresponds to the embodiment of the system method portion, the embodiment of the method portion is described with reference to the embodiment of the system portion, and is not repeated here.
The above provides a detailed description of the system and method for automatically migrating a virtual machine between heterogeneous cloud platforms. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. 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 invention.
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.

Claims (8)

1. An automatic migration system for virtual machines between heterogeneous cloud platforms, comprising:
the system comprises a judging unit and a processing unit, wherein the judging unit is used for judging whether the format of a disk file of a source virtual machine in a source cloud platform is matched with the format supported by a target cloud platform;
the first importing unit is used for importing the disk file into the target cloud platform under the condition that the format of the disk file is matched with the format supported by the target cloud platform;
the format conversion unit is used for converting the format of the disk file into the format supported by the target cloud platform under the condition that the format of the disk file is not matched with the format supported by the target cloud platform;
an operating system matching unit, configured to determine, for a case that the source virtual machine includes a single disk or multiple disks, an update state of an operating system of the target cloud platform and an update state of a disk interface driver of the source virtual machine, respectively;
the second import unit is used for importing the modified disk file into the target cloud platform according to the update state of the operating system of the target cloud platform and the update state of the disk interface driver of the source virtual machine;
the operating system matching unit specifically includes:
the first judgment module is used for judging whether the source virtual machine occupies a plurality of disks;
the second judging module is used for judging whether the kernel of the operating system of the source virtual machine supports the running of a plurality of disks in the target cloud platform or not under the condition that the source virtual machine occupies the plurality of disks;
the updating module is used for mounting the disk occupied by the operating system of the source virtual machine on the basis of the disk interface drive supported by the target cloud platform and updating the kernel of the operating system of the target cloud platform under the condition that the kernel of the operating system of the source virtual machine does not support the operation of a plurality of disks in the target cloud platform;
a third determining module, configured to determine whether a disk interface driver of an operating system of the source virtual machine supports a disk interface driver required by the target cloud platform when the source virtual machine occupies a single disk, or the source virtual machine occupies multiple disks, and the operating system of the source virtual machine supports multiple disks to run in the target cloud platform, or a kernel of the operating system of the target cloud platform is updated: if yes, triggering the second import unit;
and the drive installation module is used for injecting the disk interface drive required by the target cloud platform into the operating system of the source virtual machine under the condition that the disk interface drive of the operating system of the source virtual machine does not support the disk interface drive required by the target cloud platform.
2. The system according to claim 1, wherein the determining unit specifically includes:
the acquisition module is used for acquiring the format of the disk file and the format supported by the target cloud platform;
and the confirmation module is used for judging whether the format of the disk file is matched with the format supported by the target cloud platform.
3. The system for automatically migrating a virtual machine between heterogeneous cloud platforms according to claim 1, further comprising: and the generating unit is used for generating a new virtual machine on the target cloud platform after receiving the disk file imported by the first importing unit or the modified disk file imported by the second importing unit.
4. The system for automatically migrating the virtual machines between the heterogeneous cloud platforms according to any one of claims 1 to 3, wherein the format of the disk files of the source virtual machine includes a vmdk format, a qcow2 format, a raw format, a cow format, a vdi format, a vhd format, a voa format, or a ovf format.
5. An automatic migration method for virtual machines among heterogeneous cloud platforms is characterized by comprising the following steps:
s10: judging whether the format of a disk file of a source virtual machine in a source cloud platform is matched with the format supported by a target cloud platform; wherein, if it is to enter S11, otherwise, enter S12;
s11: importing the disk file into the target cloud platform;
s12: converting the format of the disk file into a format supported by the target cloud platform;
s13: determining an update state of an operating system of the target cloud platform and an update state of a disk interface drive of the source virtual machine respectively for a case that the source virtual machine contains a single disk or a plurality of disks;
s14: importing the modified disk file into the target cloud platform according to the update state of the operating system of the target cloud platform and the update state of the disk interface drive of the source virtual machine;
the S13 specifically includes:
s130: judging whether the source virtual machine occupies a plurality of disks; if yes, entering S131, otherwise entering S133;
s131: judging whether the kernel of the operating system of the source virtual machine supports the running of a plurality of disks in the target cloud platform; if yes, entering S133, otherwise entering S132;
s132: based on a disk interface driver supported by the target cloud platform, mounting a disk occupied by an operating system of the source virtual machine, and updating a kernel of the operating system of the target cloud platform; entering S133;
s133: judging whether the disk interface driver of the operating system of the source virtual machine supports the disk interface driver required by the target cloud platform: if yes, the process goes to S14, otherwise, the process goes to S134;
s134: injecting a disk interface drive required by the target cloud platform into an operating system of the source virtual machine; proceed to S14.
6. The method for automatically migrating a virtual machine between heterogeneous cloud platforms according to claim 5, wherein the S10 specifically includes:
s110: acquiring the format of the disk file and the format supported by the target cloud platform;
s111: and judging whether the format of the disk file is matched with the format supported by the target cloud platform.
7. The method for automatically migrating the virtual machine between the heterogeneous cloud platforms according to claim 5, further comprising:
s15: and generating a new virtual machine on the target cloud platform after receiving the imported disk file or the imported modified disk file.
8. The method for automatically migrating the virtual machine between the heterogeneous cloud platforms according to any one of claims 5 to 7, wherein the format of the disk file of the source virtual machine includes a vmdk format, a qcow2 format, a raw format, a cow format, a vdi format, a vhd format, a voa format, or a ovf format.
CN201611062131.8A 2016-11-25 2016-11-25 Automatic virtual machine migration system and method between heterogeneous cloud platforms Active CN106775928B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611062131.8A CN106775928B (en) 2016-11-25 2016-11-25 Automatic virtual machine migration system and method between heterogeneous cloud platforms

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611062131.8A CN106775928B (en) 2016-11-25 2016-11-25 Automatic virtual machine migration system and method between heterogeneous cloud platforms

Publications (2)

Publication Number Publication Date
CN106775928A CN106775928A (en) 2017-05-31
CN106775928B true CN106775928B (en) 2020-12-01

Family

ID=58913373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611062131.8A Active CN106775928B (en) 2016-11-25 2016-11-25 Automatic virtual machine migration system and method between heterogeneous cloud platforms

Country Status (1)

Country Link
CN (1) CN106775928B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678831A (en) * 2017-09-25 2018-02-09 郑州云海信息技术有限公司 It is a kind of to realize the V2V methods migrated between virtual platform
CN107608764A (en) * 2017-09-27 2018-01-19 郑州云海信息技术有限公司 The moving method and moving apparatus of a kind of server
CN108255575A (en) * 2017-12-06 2018-07-06 顺丰科技有限公司 A kind of virtual machine migration method and device
CN109995814B (en) * 2017-12-29 2021-08-13 中移(苏州)软件技术有限公司 Cloud host resource migration method and device, communication equipment and storage medium
CN108108229B (en) * 2018-01-05 2021-08-06 京东方科技集团股份有限公司 Virtual host migration system, method, computer device and readable storage medium
CN109062670A (en) * 2018-08-14 2018-12-21 郑州云海信息技术有限公司 A kind of virtual machine migration method and device
CN109213570A (en) * 2018-08-28 2019-01-15 郑州云海信息技术有限公司 A kind of virtual machine migration method, device, equipment and readable storage medium storing program for executing
CN112328365A (en) * 2020-11-05 2021-02-05 济南浪潮数据技术有限公司 Virtual machine migration method, device, equipment and storage medium
CN113311995B (en) * 2021-05-13 2023-09-26 曙光信息产业股份有限公司 Cloud hard disk preparation method and device, computer equipment and storage medium
CN113485755B (en) * 2021-06-30 2023-08-18 深圳市科力锐科技有限公司 Device driver verification method, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011159249A (en) * 2010-02-04 2011-08-18 Nec Corp Computer system, method and program for managing virtual machine
CN103238136A (en) * 2010-12-10 2013-08-07 亚马逊技术股份有限公司 Virtual machine morphing for heterogeneous migration environments
CN105094964A (en) * 2014-05-20 2015-11-25 苏宁云商集团股份有限公司 Virtual machine migration method and system
CN105159760A (en) * 2014-05-27 2015-12-16 中国电信股份有限公司 Cloud resource migration method and unified cross-platform cloud resource migration capability open interface
CN105260226A (en) * 2015-09-23 2016-01-20 浙江网新恒天软件有限公司 Method for automatically migrating virtual machine on the basis of cloud platform
CN105897866A (en) * 2016-03-29 2016-08-24 新浪网技术(中国)有限公司 IaaS cloud platform-based cloud host migration method and apparatus

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8209680B1 (en) * 2003-04-11 2012-06-26 Vmware, Inc. System and method for disk imaging on diverse computers
CN103036946B (en) * 2012-11-21 2016-08-24 中国电信股份有限公司 A kind of method and system processing file backup task for cloud platform
CN104683444B (en) * 2015-01-26 2017-11-17 电子科技大学 A kind of data migration method of data center's multi-dummy machine
CN105740052A (en) * 2016-01-28 2016-07-06 浪潮(北京)电子信息产业有限公司 Method, device and system for online migration of virtual machines of non-shared memories

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011159249A (en) * 2010-02-04 2011-08-18 Nec Corp Computer system, method and program for managing virtual machine
CN103238136A (en) * 2010-12-10 2013-08-07 亚马逊技术股份有限公司 Virtual machine morphing for heterogeneous migration environments
CN105094964A (en) * 2014-05-20 2015-11-25 苏宁云商集团股份有限公司 Virtual machine migration method and system
CN105159760A (en) * 2014-05-27 2015-12-16 中国电信股份有限公司 Cloud resource migration method and unified cross-platform cloud resource migration capability open interface
CN105260226A (en) * 2015-09-23 2016-01-20 浙江网新恒天软件有限公司 Method for automatically migrating virtual machine on the basis of cloud platform
CN105897866A (en) * 2016-03-29 2016-08-24 新浪网技术(中国)有限公司 IaaS cloud platform-based cloud host migration method and apparatus

Also Published As

Publication number Publication date
CN106775928A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106775928B (en) Automatic virtual machine migration system and method between heterogeneous cloud platforms
US10606628B2 (en) Systems and methods for modifying an operating system for a virtual machine
US8185884B2 (en) System and method for offline updation of software in virtual machine (VM) images
US9471365B2 (en) Techniques for performing virtual machine software upgrades using virtual disk swapping
US9639385B2 (en) Systems and methods to load applications and application data into a virtual machine using hypervisor-attached volumes
US20110246988A1 (en) Hypervisor for starting a virtual machine
US10095731B2 (en) Dynamically converting search-time fields to ingest-time fields
US9535729B2 (en) Live application mobility from one operating system level to an updated operating system level and applying overlay files to the updated operating system
JP6861886B2 (en) Systems and methods for customized operating system conversion
US9841983B2 (en) Single click host maintenance
US20150373102A1 (en) Deployment of virtual machine disks from a shared network file system
US10827034B2 (en) Providing application versions via delta volumes
US11966754B2 (en) Cluster bootstrapping for distributed computing systems
CN113760306A (en) Method and device for installing software, electronic equipment and storage medium
CN106598658A (en) Method for reducing ghost file of Windows to virtual machine
US9557983B1 (en) Flexible storage application deployment mechanism
US10268466B2 (en) Software installer with built-in hypervisor
CN111338751B (en) Cross-pool migration method and device for data in same ceph cluster
US10296318B2 (en) Offline tools upgrade for virtual machines
US8549545B2 (en) Abstraction of computer disk image cloning capabilities from bootable media
JP2015523665A (en) System and method for operating an application distribution system
US11722562B2 (en) Systems, methods and apparatus to manage services in distributed systems
US8745620B2 (en) Software tool and method for updating a virtual appliance
US11792278B2 (en) Resolving conflicts of application runtime dependencies
CN104778048A (en) Method and device for installing and setting up server web environment on the basis of Linux system

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
GR01 Patent grant
GR01 Patent grant