CN106775922A - A kind of virtual machine migration method based on Plugin Mechanism - Google Patents

A kind of virtual machine migration method based on Plugin Mechanism Download PDF

Info

Publication number
CN106775922A
CN106775922A CN201611029395.3A CN201611029395A CN106775922A CN 106775922 A CN106775922 A CN 106775922A CN 201611029395 A CN201611029395 A CN 201611029395A CN 106775922 A CN106775922 A CN 106775922A
Authority
CN
China
Prior art keywords
virtual machine
management platform
migration
plug
machine management
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
CN201611029395.3A
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.)
Shandong Inspur Cloud Service Information Technology Co Ltd
Original Assignee
Shandong Inspur Cloud Service Information 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 Shandong Inspur Cloud Service Information Technology Co Ltd filed Critical Shandong Inspur Cloud Service Information Technology Co Ltd
Priority to CN201611029395.3A priority Critical patent/CN106775922A/en
Publication of CN106775922A publication Critical patent/CN106775922A/en
Pending legal-status Critical Current

Links

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

Abstract

The invention discloses a kind of virtual machine migration method based on Plugin Mechanism, including source virtual machine management platform and purpose virtual machine management platform, and design migration proxy module, drive module and import proxy module, based on above three module, the specific transition process of virtual machine is:Migration proxy module obtains magnetic disk of virtual machine mirror image and configuration specifications parameter from source virtual machine management platform first, and completes conversion;Then drive module is used for managing drive plug;Finally import proxy module and rebuild virtual machine in purpose virtual machine management platform using the magnetic disk of virtual machine mirror image after conversion.This is based on the virtual machine migration method of Plugin Mechanism compared with prior art, realize the Autonomic Migration Framework of cross-platform virtual machine, the efficiency of virtual machine (vm) migration during effective raising virtual machine management platform O&M, the present invention is based on expansible design architecture, so that without being modified to original system, new virtual machine management platform can be supported, it is practical.

Description

A kind of virtual machine migration method based on Plugin Mechanism
Technical field
It is specifically a kind of practical, based on Plugin Mechanism the present invention relates to virtualize field of cloud computer technology Virtual machine migration method.
Background technology
With the increasingly maturation of Intel Virtualization Technology, the business and increase income Intel Virtualization Technology, wherein business of many maturations are occurred in that Industry version with VMware as representative, ripe and stabilization.However, KVM, Xen etc. increase income, Intel Virtualization Technology there has also been quickly hair Exhibition, all increasingly ripe and stabilization in function and performance.On this basis, cloud computing development surges forward, all big enterprises Numerous and confused infusion of financial resources and technical force have developed the cloud product of oneself.
But, the product bottom of different vendor may have been used different Intel Virtualization Technologies, this just derived one it is new The V2V of demand virtual machine(Virtual-to-Virtual)Migration.Due to different virtual machine management platform underlying virtual technology With the difference of api interface, make the cross-platform migration of virtual machine difficult.
The mode of V2V virtual machine (vm) migrations is broadly divided into two kinds, static migrating and dynamic migration.Static migrating, as the term suggests, Virtual machine is suspended or shut down first before migration, virtual machine image and state is copied to purpose host, then in purpose place Main frame restarts virtual machine.Static migrating, has the disadvantage that its transition process needs virtual machine to shut down, and traffic affecting operation makes With and dynamic migration, virtual machine (vm) migration process only needs of short duration downtime, will not cause service disconnection;Static migrating advantage It is that there is stronger compatibility, it is possible to achieve the migration between different platform virtual machine.
Due to there is identical to realize technology and api interface between same platform virtual machine, can be relatively easy to realize Static migrating and dynamic migration.But for cross-platform virtual machine (vm) migration, because bottom layer realization technology may be different, implement Difficulty is larger.Original open-source cross-platform virtual machine migration tool, such as, virt-v2v can realize other virtual machine platforms to base In the migration of the libvirt management platforms of KVM, but can not well support that other are based on the management platform of KVM, move to Purpose management platform can only be imported from libvirt management platforms again by hand after libvirt management platforms, limit it and use.
Based on this, the present invention proposes a kind of virtual machine migration method based on Plugin Mechanism.
The content of the invention
Technical assignment of the invention is directed to above weak point, there is provided a kind of practical, based on Plugin Mechanism void Plan machine moving method.
A kind of virtual machine migration method based on Plugin Mechanism, including source virtual machine management platform and purpose Virtual Machine Manager Platform, and design migration proxy module, drive module and import proxy module, based on above three module, virtual machine it is specific Transition process is:
Migration proxy module obtains magnetic disk of virtual machine mirror image and configuration specifications parameter from source virtual machine management platform first, and simultaneously Complete the conversion of virtual machine image form;
Then drive module is used for the drive plug of managed source virtual machine management platform and purpose virtual machine management platform, the plug-in unit It is instant inserted and instant using type plug-in unit, i.e., for different virtual machine management platforms, establishing criteria interface realizes drive plug, when using only Plug-in unit need to be put into assigned catalogue;
Finally import proxy module and rebuild virtual machine in purpose virtual machine management platform using the magnetic disk of virtual machine mirror image after conversion.
Migration proxy module obtains magnetic disk of virtual machine mirror image and configuration specifications parameter includes following two modes:
1)Task bag lead-in mode is obtained:Before carrying out the migration of virtual machine, first by virtual machine to be migrated, i.e. source virtual machine Disk mirroring and configuration specification information are obtained and packed by hand;Local packaging file is selected during migration as source virtual machine Management platform type, the automatic packaging file to selecting of migration proxy module is unpacked, the disk mirroring inside conversion packaging file Form and analysis configuration specification information therein;
2)Automatically generate importing task bag:To obtain and the magnetic disk of virtual machine mirror image to be migrated after format transformation and configuration specification letter Breath is encapsulated as an importing task bag for including disk mirroring, configuration specification information and mission bit stream after changing.
The drive plug of the source virtual machine management platform is realized obtaining magnetic disk of virtual machine mirror from source virtual machine management platform Picture and configuration specification information, the drive plug provide following two interfaces:Magnetic disk of virtual machine mirror image obtains interface, virtual machine configuration Specification information obtains interface;The function of purpose virtual machine management platform drive plug be based on magnetic disk of virtual machine mirror image to be migrated and Configuration specification information rebuilds virtual machine in purpose virtual machine management platform, and the drive plug provides a reconstruction virtual machine interface.
Virtual machine management platform drive plug is deposited in into the catalogue that a configuration file is specified, is added in this catalogue when calling Drive plug is carried, and calls corresponding standard interface;Safeguard that a virtual machine management platform and correspondence drive in internal memory simultaneously The mapping table of plug-in unit, this mapping table is loaded from configuration file, and is reloaded before drive plug is called and matched somebody with somebody The mapping table of file is put, so as to ensure that mapping table is newest.
The drive plug of the drive module management can automatically find and call, i.e., when the Virtual Machine Manager for needing support new During platform, drive module finds the new platform and is called according to standard interface to realize corresponding drive plug, drives mould Root tuber the corresponding driving of query driven plug-in unit and is loaded according to the virtual machine management platform type specified from mapping table, then Standard interface is called to complete to obtain virtual machine image and configuration specification information or import mirror image to purpose virtual machine management platform With reconstruction virtual machine.
The drive plug finds automatically and the detailed process called is:
Management platform type is determined first, and management platform type is supported from Parameter File configuration and the selection of foreground UI;
Turntable driving administrative directory, checks whether there is the drive plug of the management platform specified;
If the driven management plug-in unit that will be called is present, load, and go to next step;If it does not exist, then returning wrong False information;
The standard interface of drive plug is called after loading carries out the acquisition or reconstruction of magnetic disk of virtual machine mirror image to be migrated.
Importing proxy module supports being automatically imported for migration task, i.e. the importing proxy module according to migration proxy module life Into importing task bag in magnetic disk of virtual machine mirror image to be migrated and configuration specification information continue migration task operation, in purpose Virtual machine management platform rebuilds virtual machine.
Based on above-mentioned migration proxy module, drive module and proxy module is imported, virtual machine (vm) migration is concretely comprised the following steps:
The disk mirroring of virtual machine is obtained by the Protocol of http agreements, SSH agreements or virtual machine management platform and is matched somebody with somebody Put specification information;
The magnetic disk of virtual machine mirror image for obtaining is changed the disk image format supported into purpose virtual machine management platform;
Whether the virtual machine hardware driving storehouse needed after migration is lacked in analysis magnetic disk of virtual machine mirror image, if missing, is carried out The injection of file is driven to install;
Rebuild empty in purpose virtual machine management platform according to the disk mirroring after the virtual machine configuration specification information and conversion for obtaining Plan machine.
A kind of virtual machine migration method based on Plugin Mechanism of the invention, with advantages below:
A kind of virtual machine migration method based on Plugin Mechanism that the present invention is provided, realize cross-platform virtual machine from moving Move, the efficiency of virtual machine (vm) migration during effective raising virtual machine management platform O&M, the present invention is based on expansible designed holder Structure so that without being modified to original system, you can support new virtual machine management platform;Support that virtual machine image is empty in source The automatic download of plan machine management platform, source virtual machine management platform drives to be realized using Plugin Mechanism, supports plug and play, can be with Support numerous virtual management platforms;Support virtual machine to be migrated to the automatic Reconstruction of purpose virtual machine management platform, purpose Virtual machine management platform drives to be realized using Plugin Mechanism, supports plug and play, can support numerous virtual machines based on KVM Management platform;Support that the injection of the automatic conversion and hardware driving of magnetic disk of virtual machine mirror-image format is installed, eliminate transition process In manually install drive process, improve the efficiency of migration;The operating system migration of current main flow can be supported, such as CentOS, windows 2003, window2008, windows2012 etc., it is practical, it is applied widely, it is easy to promote.
Brief description of the drawings
Accompanying drawing 1 is virtual machine management platform plug-in unit discovery mechanism.
System diagram is realized in the embodiment of the present invention of accompanying drawing 2.
Accompanying drawing 3 is the logical functional entity schematic diagram of migration agency and importing agency in embodiment.
Specific embodiment
Below in conjunction with the accompanying drawings and specific embodiment the invention will be further described.
As shown in Figure 1, a kind of virtual machine migration method based on Plugin Mechanism of the invention, including source virtual machine is managed Platform and purpose virtual machine management platform, and design migration proxy module, drive module and import proxy module, based on above-mentioned three Individual module, the specific transition process of virtual machine is:
Migration proxy module obtains magnetic disk of virtual machine mirror image and configuration specifications parameter from source virtual machine management platform first, and simultaneously Complete the conversion of virtual machine image form;
Then drive module is used for the drive plug of managed source virtual machine management platform and purpose virtual machine management platform, the plug-in unit It is instant inserted and instant using type plug-in unit, i.e., for different virtual machine management platforms, establishing criteria interface realizes drive plug, when using only Plug-in unit need to be put into assigned catalogue;
Finally import proxy module and rebuild virtual machine in purpose virtual machine management platform using the magnetic disk of virtual machine mirror image after conversion.
Based on above-mentioned steps, the present invention carries out described in detail below:
The invention mainly comprises migration proxy module, drive module, proxy module is imported, wherein migration proxy module is responsible for from source Virtual machine management platform obtains virtual machine image and configuration specification information, and completes the form conversion of magnetic disk of virtual machine mirror image.Need To be illustrated, if necessary to install some virtual machine hardware drivings that purpose virtual machine management platform needs, this is specially Sharp methods described is installed by the way of file injection.If there are multiple disk mirrorings in virtual machine to be migrated, can simultaneously by it Download go forward side by side row format conversion.
Due to the otherness of source virtual machine management platform, cause the acquisition side of magnetic disk of virtual machine mirror image and configuration specification information Formula is also different.Such as, if source virtual machine management platform is VMware platforms, it is possible to use http agreements or ssh agreements It is downloaded.
For the diversity of adaptive migration scene in this patent methods described, such as some source virtual machine management platforms due to Security needs limit outer net connection or do not allow non-authorised software to enter its range of management.
Task bag lead-in mode obtains magnetic disk of virtual machine mirror image:
In this patent methods described, the disk mirroring of virtual machine to be migrated and configuration specification information can be obtained by hand first Take and pack.Migration proxy module can select local packaging file as source virtual machine management platform, and it can be automatic to choosing The packaging file selected is unpacked, disk image format and analysis configuration specification information therein inside conversion packaging file.
1st, importing task bag is automatically generated:
In this patent methods described, migration proxy module supports the magnetic disk of virtual machine mirror image to be migrated that will be obtained and configuration specification letter Breath is encapsulated as a task bag for including disk mirroring, configuration specification information and mission bit stream after changing.Importing task bag Specific effect will illustrate that part is introduced proxy module function is imported.
In order to support different types of virtual machine management platform, this patent methods described devises drive module, for every Individual source virtual machine management platform, has a corresponding drive plug, and drive module employs the design philosophy of plug and play.Such as Fruit needs the new virtual machine management platform of support, only need to realize corresponding drive plug according to standard interface.Need special Illustrate, migration proxy module is carried out magnetic disk of virtual machine mirror image by way of the importing of task bag and configures specification information Obtain, be also to be realized as a kind of source virtual machine management platform drive plug.
Proxy module is imported to be responsible for using the magnetic disk of virtual machine mirror image after conversion and configuration specification information in purpose virtual machine Management platform rebuilds virtual machine.Because the virtual machine management platform for being currently based on KVM is more, such as openstack, Cloudstack etc..This patent methods described is directed to different purpose virtual machine management platforms, same using plug and play design The drive plug mechanism of thought.For each purpose virtual machine management platform, a drive plug is realized based on standard interface, Its function is mainly rebuilds virtual machine in purpose virtual machine management platform.
In this patent methods described, cannot in order to adapt to source virtual machine management platform and purpose virtual machine management platform network The scene of connection, imports proxy module and supports being automatically imported for task.Can be generated using foregoing migration proxy module during migration Importing task bag, continue the operation of migration task, magnetic disk of virtual machine mirror image in task based access control bag and configuration specification information exist Purpose virtual machine management platform rebuilds virtual machine.
2nd, the drive plug administrative mechanism of plug and play.
For compatible various virtual machine management platforms, this patent methods described devises a kind of drive plug of plug and play Administrative mechanism, virtual machine management platform drive plug finds that call-by mechanism is as shown in Figure 1.This patent methods described, for migration Drive plug and import the drive plug that proxy module is called that proxy module is called, separately design a set of interface standard, each Plug-in unit is all realized according to this interface standard.When carrying out mirror image acquisition or rebuilding virtual machine, meeting turntable driving administrative directory first In with the presence or absence of the drive plug that will call.If it is present calling the standard interface of corresponding drive plug carries out mirror image Acquisition or virtual machine reconstruction;If it does not exist, then returning to mistake.
3rd, the migration flow of virtual machine.
The disk of virtual machine is obtained by http agreements, the Protocol of ssh agreements or virtual machine management platform and interface Mirror image and configuration specification information, depending on the mode of acquisition magnetic disk of virtual machine mirror image is with virtual machine management platform.Such as, for VMware management platforms can use http agreements or ssh agreements.
The magnetic disk of virtual machine mirror image for obtaining is changed the disk image format supported into purpose virtual machine management platform, for The disk image format that KVM is supported, is changed using qemu-img instruments.
Whether some the virtual machine hardware driving storehouses needed after migration are lacked in analysis magnetic disk of virtual machine mirror image, is such as lacked Lose, then using tripartite's tool storage room file will be driven to inject disk mirroring;Such as there is correspondence hardware driving, then go to next step.
By virtual machine from VMware management platforms move to the virtual machine management platform based on KVM when, for disk drive, The virtio that trawl performance generally uses half virtual machine is driven, it is necessary to install the driving of needs inside disk mirroring.
4th, according to the disk mirroring after the virtual machine configuration specification information and conversion for obtaining in purpose virtual machine management platform Rebuild virtual machine.
With reference to the system architecture diagram in accompanying drawing 2 of the present invention, the scene of cross-platform virtual machine (vm) migration, v2v-agent are applied to It is responsible for obtaining magnetic disk of virtual machine mirror image to be migrated and specification configuration information from source virtual machine management platform, and disk mirroring is changed It is the mirror-image format that KVM is supported, will then needs driving to be mounted to use file if necessary to install hardware driving in transition process The mode of injection is installed.
V2v-agent include downloading service logic entity, transformation service logic entity, wherein downloading service logic entity For obtaining the disk mirroring and configuration specification information of virtual machine to be migrated, it is necessary to illustrate, if virtual machine to be migrated is deposited In multiple disk mirrorings, can be downloaded simultaneously.
Transformation service logic entity, it is purpose Virtual Machine Manager to be responsible for changing the magnetic disk of virtual machine mirror image to be migrated for obtaining The disk image format that platform is supported is, it is necessary to explanation, the disk image format that purpose virtual machine management platform is supported is by putting down Platform bottom Hypervisors is determined.In the present embodiment, purpose disk image format is mainly the kvm such as raw, qcow2 supports Disk image format, disk image format conversion is realized using qemu-img instruments.
As shown in Figure 3, export-agent includes parsing service logic entity and importing service logic entity, parses industry Business logic entity is mainly responsible for the specification configuration information of the virtual machine to be migrated that analysis is obtained, wherein mainly including virtual cpu, interior Deposit, disk, network interface card etc., these information will be used as the foundation when purpose virtual machine management platform rebuilds virtual machine.
Service logic entity is imported, the main disk mirroring being responsible for based on virtual machine to be migrated and configuration specification are empty on mesh ground Plan machine management platform rebuilds virtual machine.It is important to note that magnetic disk of virtual machine mirror image to be migrated here is after changing The disk mirroring that purpose virtual machine management platform is supported.
Due to the difference of purpose virtual machine management platform, the mode for rebuilding virtual machine may also be not quite similar.With based on KVM Openstack as a example by, rebuild virtual machine when need that magnetic disk of virtual machine mirror image to be migrated is uploaded into purpose virtual machine pipe first Platform, while the configuration specification information according to virtual machine to be migrated sets up falvor, be finally based on upload disk mirroring and The falvor of foundation creates virtual machine.It should be noted that being directed to other virtual machine management platforms, the flow for rebuilding virtual machine can Can be different.Such as, purpose virtual machine management platform is managed using libvirt, and the management wherein for mirror image may The mode that storage is shared in rear end is employed, and this is accomplished by the purpose management platform for considering mirror image to be imported using other modes.
As shown in Figure 2, source virtual machine management platform, v2v-agent, export-agent, purpose Virtual Machine Manager are put down Network can be connected platform needs in same network, or between them.V2v-agent and export-agent logic entities Can be deployed in a physical machine, it is also possible to be deployed in respectively in different physical machines, but disposed physical machine must and source Virtual machine management platform and purpose virtual machine management platform are located in same network, or network is connection.
A bit of special instruction, this patent methods described, in order to support source virtual machine management platform and purpose virtual machine pipe The obstructed scene of platform network, v2v-agent supports the magnetic disk of virtual machine mirror image to be migrated that will be obtained and configuration specification information, One is packaged as to import task bag and purpose virtual machine management platform wouldn't be imported.Comprising virtual after changing in importing task bag Machine disk mirroring, virtual machine configuration specification to be migrated and mission bit stream.
Export-agent logic entities support being automatically imported for task, and the operation of the migration task is may proceed to after importing. The magnetic disk of virtual machine mirror image and configuration specification information that it can be based in this importing task bag are rebuild in purpose virtual machine management platform Virtual machine.
In this patent methods described, the virtual machine management platform drive plug of plug and play uses following specific implementation Example.
Firstly, it is necessary to define a set of unified interface standard, particularly point out, due to source virtual machine management platform drive plug Effect with purpose virtual machine management platform drive plug is different, and their interface standard is different.Source virtual machine management is flat Platform drive plug is mainly realization and obtains magnetic disk of virtual machine mirror image and configuration specification information from source virtual machine management platform, therefore sets Count following two primary interfaces:
Magnetic disk of virtual machine mirror image obtains interface.
Virtual machine configuration specification information obtains interface.
For each source virtual machine management platform, the implementation of two above interface is probably different, with virtual machine Disk mirroring is obtained as a example by interface, if source virtual machine management platform uses VMware, can be obtained based on http or ssh agreements Disk mirroring, if source virtual machine management platform uses other management platforms, it is necessary to the way to manage used according to it, realizes The acquisition of magnetic disk of virtual machine mirror image.
For purpose virtual machine management platform drive plug, its major function be based on magnetic disk of virtual machine mirror image to be migrated and Configuration specification information rebuilds virtual machine in purpose virtual machine management platform.Therefore major design one rebuilds virtual machine interface.
Because different purpose virtual machine management platforms, the mode for rebuilding virtual machine is different.Thus, for different Virtual machine management platform, this patent methods described realizes a drive plug based on above standard interface, and it is mainly realized Correspondence virtual machine management platform rebuilds the function of virtual machine.
In this patent methods described, either source virtual machine management platform drive plug or purpose virtual machine management platform Drive plug, all using the loading method of calling of plug and play, is described below the drive plug management for how realizing plug and play Mechanism.
In this patent methods described, virtual machine management platform drive plug is deposited in into the mesh that a configuration file is specified Record, in this catalogue load driver plug-in unit when calling, and calls corresponding standard interface.
Meanwhile, the mapping table of a virtual machine management platform and correspondence drive plug can be safeguarded in internal memory, this is right Answer relation table to be loaded from configuration file, and the mapping table of configuration file was reloaded before drive plug is called, from And it is newest to ensure mapping table.
The type of source virtual machine management platform and purpose virtual machine management platform can allow operating personnel to be selected in UI, Program the corresponding driving of query driven plug-in unit and can be loaded according to the virtual machine management platform type specified from mapping table. Then, the standard interface wherein realized is called to complete to obtain virtual machine image and configuration specification information or to purpose virtual machine pipe Platform imports mirror image and rebuilds virtual machine.
Drive plug management and the key step of discovery mechanism below with regard to plug and play in this patent methods described does one Lower elaboration, is illustrated in the present embodiment by taking source virtual machine management platform drive plug as an example.
(1)According to source virtual machine management platform type read from configuration file or that foreground UI is incoming in internal memory Corresponding driving file is retrieved in mapping table.If retrieved successfully, step is gone to(2);If retrieval failure, returns Error message.
(2)From the scanning of drive plug storage catalogue with the presence or absence of the drive plug specified.
(3)If there is specified drive plug, then load driver plug-in unit;If it does not exist, then returning to specific plug-in not The error message of presence.
(4)Drive plug standard interface is called to obtain magnetic disk of virtual machine mirror image and configuration specification information.
In this patent methods described, the acquisition of magnetic disk of virtual machine mirror image and configuration specification information is realized in drive plug , likewise, it is also to be realized in drive plug to rebuild virtual machine to be migrated in purpose virtual machine management platform.
The embodiment of this patent methods described, the main flow only for virtual machine (vm) migration is illustrated, and is directed to difference Virtual machine management platform, the acquisition of specific disk mirroring and method for reconstructing are different, the main flows of virtual machine (vm) migration It is as follows:
1., by the Protocol of http agreements, ssh agreements or virtual machine management platform obtain virtual machine disk mirroring and Configuration specification information, obtains the mode of virtual machine image different and different because of virtual machine management platform.
2., the virtual machine image for obtaining is changed the disk image format supported into purpose virtual machine management platform, this is specially It is that disk mirroring is converted into the disk image format that KVM is supported in sharp methods described.
3. whether some the hardware driving storehouses needed after migration, are lacked in analysis virtual machine image.As lacked, then driven Dynamic file injection is installed.Such as, by virtual machine from VMware management platforms move to the virtual machine management platform based on KVM when, Driven for the virtio that disk drive, trawl performance generally use half virtual machine, it is necessary to be installed inside disk mirroring Virtio drives.
4., according to the disk mirroring after the virtual machine configuration specification information and conversion for obtaining in purpose virtual machine management platform Rebuild virtual machine.
Above-mentioned specific embodiment is only specific case of the invention, and scope of patent protection of the invention is included but is not limited to Above-mentioned specific embodiment, any claims for meeting a kind of virtual machine migration method based on Plugin Mechanism of the invention And any technical field the appropriate change or replacement done to it of those of ordinary skill, should all fall into it is of the invention specially Sharp protection domain.

Claims (8)

1. a kind of virtual machine migration method based on Plugin Mechanism, it is characterised in that including source virtual machine management platform and purpose Virtual machine management platform, and design migration proxy module, drive module and import proxy module, it is empty based on above three module The specific transition process of plan machine is:
Migration proxy module obtains magnetic disk of virtual machine mirror image and configuration specifications parameter from source virtual machine management platform first, and simultaneously Complete the conversion of virtual machine image form;
Then drive module is used for the drive plug of managed source virtual machine management platform and purpose virtual machine management platform, the plug-in unit It is instant inserted and instant using type plug-in unit, i.e., for different virtual machine management platforms, establishing criteria interface realizes drive plug, when using only Plug-in unit need to be put into assigned catalogue;
Finally import proxy module and rebuild virtual machine in purpose virtual machine management platform using the magnetic disk of virtual machine mirror image after conversion.
2. a kind of virtual machine migration method based on Plugin Mechanism according to claim 1, it is characterised in that migration agency Module obtains magnetic disk of virtual machine mirror image and configuration specifications parameter includes following two modes:
1)Task bag lead-in mode is obtained:Before carrying out the migration of virtual machine, first by virtual machine to be migrated, i.e. source virtual machine Disk mirroring and configuration specification information are obtained and packed by hand;Local packaging file is selected during migration as source virtual machine Management platform type, the automatic packaging file to selecting of migration proxy module is unpacked, the disk mirroring inside conversion packaging file Form and analysis configuration specification information therein;
2)Automatically generate importing task bag:To obtain and the magnetic disk of virtual machine mirror image to be migrated after format transformation and configuration specification letter Breath is encapsulated as an importing task bag for including disk mirroring, configuration specification information and mission bit stream after changing.
3. a kind of virtual machine migration method based on Plugin Mechanism according to claim 1, it is characterised in that the source is empty The drive plug of plan machine management platform is realized obtaining magnetic disk of virtual machine mirror image and configuration specification information from source virtual machine management platform, The drive plug provides following two interfaces:Magnetic disk of virtual machine mirror image obtains interface, virtual machine configuration specification information and obtains interface; The function of purpose virtual machine management platform drive plug is in mesh based on magnetic disk of virtual machine mirror image to be migrated and configuration specification information Virtual machine management platform rebuild virtual machine, the drive plug provide one reconstruction virtual machine interface.
4. a kind of virtual machine migration method based on Plugin Mechanism according to claim 3, it is characterised in that by virtual machine Management platform drive plug deposits in the catalogue that a configuration file is specified, and in this catalogue load driver plug-in unit when calling, and adjusts Use corresponding standard interface;The corresponding relation of a virtual machine management platform and correspondence drive plug is safeguarded in internal memory simultaneously Table, this mapping table is loaded from configuration file, and the correspondence pass of configuration file was reloaded before drive plug is called It is table, so as to ensure that mapping table is newest.
5. a kind of virtual machine migration method based on Plugin Mechanism according to claim 4, it is characterised in that the driving The drive plug of module management can automatically find and call, i.e., when needing to support new virtual machine management platform, drive module It was found that the new platform and being called according to standard interface and realizing corresponding drive plug, drive module is virtual according to what is specified Machine management platform type the corresponding driving of query driven plug-in unit and is loaded from mapping table, then calls standard interface to complete Obtain virtual machine image and configuration specification information or import mirror image to purpose virtual machine management platform and rebuild virtual machine.
6. a kind of virtual machine migration method based on Plugin Mechanism according to claim 5, it is characterised in that the driving Plug-in unit finds automatically and the detailed process called is:
Management platform type is determined first, and management platform type is supported from Parameter File configuration and the selection of foreground UI;
Turntable driving administrative directory, checks whether there is the drive plug of the management platform specified;
If the driven management plug-in unit that will be called is present, load, and go to next step;If it does not exist, then returning wrong False information;
The standard interface of drive plug is called after loading carries out the acquisition or reconstruction of magnetic disk of virtual machine mirror image to be migrated.
7. a kind of virtual machine migration method based on Plugin Mechanism according to claim 1, it is characterised in that import agency Module is supported in the importing task bag of being automatically imported for migration task, i.e. the importing proxy module according to migration proxy module generation Magnetic disk of virtual machine mirror image to be migrated and configuration specification information continue migration task operation, in purpose virtual machine management platform weight Build virtual machine.
8. according to a kind of any described virtual machine migration methods based on Plugin Mechanism of claim 1-7, it is characterised in that base In above-mentioned migration proxy module, drive module and proxy module is imported, virtual machine (vm) migration is concretely comprised the following steps:
The disk mirroring of virtual machine is obtained by the Protocol of http agreements, SSH agreements or virtual machine management platform and is matched somebody with somebody Put specification information;
The magnetic disk of virtual machine mirror image for obtaining is changed the disk image format supported into purpose virtual machine management platform;
Whether the virtual machine hardware driving storehouse needed after migration is lacked in analysis magnetic disk of virtual machine mirror image, if missing, is carried out The injection of file is driven to install;
Rebuild empty in purpose virtual machine management platform according to the disk mirroring after the virtual machine configuration specification information and conversion for obtaining Plan machine.
CN201611029395.3A 2016-11-22 2016-11-22 A kind of virtual machine migration method based on Plugin Mechanism Pending CN106775922A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611029395.3A CN106775922A (en) 2016-11-22 2016-11-22 A kind of virtual machine migration method based on Plugin Mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611029395.3A CN106775922A (en) 2016-11-22 2016-11-22 A kind of virtual machine migration method based on Plugin Mechanism

Publications (1)

Publication Number Publication Date
CN106775922A true CN106775922A (en) 2017-05-31

Family

ID=58970628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611029395.3A Pending CN106775922A (en) 2016-11-22 2016-11-22 A kind of virtual machine migration method based on Plugin Mechanism

Country Status (1)

Country Link
CN (1) CN106775922A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107301088A (en) * 2017-07-14 2017-10-27 郑州云海信息技术有限公司 A kind of method and apparatus for managing virtual machine batch migration
CN109040788A (en) * 2018-09-19 2018-12-18 北京萌科科技有限公司 A kind of video broadcasting method and system
CN109358952A (en) * 2018-10-30 2019-02-19 张家口浩扬科技有限公司 A kind of virtual machine migration method and system
CN109445908A (en) * 2018-10-30 2019-03-08 张家口浩扬科技有限公司 A kind of virtual machine backup method and system
CN109522088A (en) * 2018-09-30 2019-03-26 华为技术有限公司 A kind of virtual machine migration method and device
CN109918147A (en) * 2019-02-20 2019-06-21 杭州迪普科技股份有限公司 Extended method, device, the electronic equipment driven under OpenStack
CN111679889A (en) * 2020-06-10 2020-09-18 广州市品高软件股份有限公司 Virtual machine conversion migration method and system
CN112256397A (en) * 2020-10-28 2021-01-22 上海英方软件股份有限公司 Virtual machine cross-platform migration method and system
CN112328366A (en) * 2020-11-06 2021-02-05 上海英方软件股份有限公司 Efficient cloud platform host protection method and system
CN117112072A (en) * 2023-10-25 2023-11-24 成都云祺科技有限公司 Cross-platform virtual machine drive replacement method, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104216757A (en) * 2014-08-14 2014-12-17 浪潮电子信息产业股份有限公司 Method for migrating VMware virtual machine to KVM (kernel-based virtual machine)
CN104572274A (en) * 2013-10-18 2015-04-29 宇宙互联有限公司 Cross-cloud-node migration system and cross-cloud-node migration method
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572274A (en) * 2013-10-18 2015-04-29 宇宙互联有限公司 Cross-cloud-node migration system and cross-cloud-node migration method
CN105159760A (en) * 2014-05-27 2015-12-16 中国电信股份有限公司 Cloud resource migration method and unified cross-platform cloud resource migration capability open interface
CN104216757A (en) * 2014-08-14 2014-12-17 浪潮电子信息产业股份有限公司 Method for migrating VMware virtual machine to KVM (kernel-based virtual machine)
CN105260226A (en) * 2015-09-23 2016-01-20 浙江网新恒天软件有限公司 Method for automatically migrating virtual machine on the basis of cloud platform

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107301088A (en) * 2017-07-14 2017-10-27 郑州云海信息技术有限公司 A kind of method and apparatus for managing virtual machine batch migration
CN109040788B (en) * 2018-09-19 2021-05-04 北京萌科科技有限公司 Video playing method and system
CN109040788A (en) * 2018-09-19 2018-12-18 北京萌科科技有限公司 A kind of video broadcasting method and system
CN109522088A (en) * 2018-09-30 2019-03-26 华为技术有限公司 A kind of virtual machine migration method and device
WO2020063879A1 (en) * 2018-09-30 2020-04-02 华为技术有限公司 Method and apparatus for migrating virtual machine
CN109358952A (en) * 2018-10-30 2019-02-19 张家口浩扬科技有限公司 A kind of virtual machine migration method and system
CN109445908A (en) * 2018-10-30 2019-03-08 张家口浩扬科技有限公司 A kind of virtual machine backup method and system
CN109445908B (en) * 2018-10-30 2021-04-27 杭州炎魂网络科技有限公司 Virtual machine backup method and system
CN109918147A (en) * 2019-02-20 2019-06-21 杭州迪普科技股份有限公司 Extended method, device, the electronic equipment driven under OpenStack
CN111679889A (en) * 2020-06-10 2020-09-18 广州市品高软件股份有限公司 Virtual machine conversion migration method and system
CN111679889B (en) * 2020-06-10 2023-08-29 广州市品高软件股份有限公司 Conversion migration method and system of virtual machine
CN112256397A (en) * 2020-10-28 2021-01-22 上海英方软件股份有限公司 Virtual machine cross-platform migration method and system
CN112328366B (en) * 2020-11-06 2022-09-06 上海英方软件股份有限公司 Efficient cloud platform host protection method and system
CN112328366A (en) * 2020-11-06 2021-02-05 上海英方软件股份有限公司 Efficient cloud platform host protection method and system
CN117112072A (en) * 2023-10-25 2023-11-24 成都云祺科技有限公司 Cross-platform virtual machine drive replacement method, system and storage medium
CN117112072B (en) * 2023-10-25 2023-12-22 成都云祺科技有限公司 Cross-platform virtual machine drive replacement method, system and storage medium

Similar Documents

Publication Publication Date Title
CN106775922A (en) A kind of virtual machine migration method based on Plugin Mechanism
CN107579931B (en) A kind of block chain, that is, Service Source adaptation method based on Kubernetes
CN105224466B (en) A kind of integration test method and system based on Docker
CN105763602B (en) A kind of method of data request processing, server and system
CN103491144B (en) A kind of construction method of Internet virtual platform
CN105022656B (en) virtual machine snapshot management method and device
CN104718723B (en) For the networking in virtual network and the frame of security service
CN107526626A (en) A kind of Docker containers thermomigration process and system based on CRIU
US20160110434A1 (en) Method and system that determine whether or not two graph-like representations of two systems describe equivalent systems
CN107329799A (en) A kind of fusion Docker containers and the system of KVM virtualization technology
CN104142847B (en) Stateless virtual machine and its application under cloud computing environment
CN107995064A (en) Test platform building method based on virtualization technology
CN104216801B (en) The data copy method and system of a kind of Virtual environment
US20070078988A1 (en) Apparatus, method and system for rapid delivery of distributed applications
CN110019081A (en) Data persistence processing method, device, system and readable storage medium storing program for executing
CN106533804A (en) Network operation support system
CN103425491A (en) Game engine
WO2016064630A1 (en) Disk partition stitching and rebalancing using a partition table
CN102779244B (en) Method and device for carrying out file operation
CN108228452A (en) A kind of test method and test device based on simple factory mode
CN107704309A (en) The method and system of standardization running environment are built based on Docker
CN105635311A (en) Method for synchronizing resource pool information in cloud management platform
EP3241306A1 (en) Method and apparatus for configuring a communication system
CN103634128B (en) The collocation method and device of virtual machine Placement Strategy
CN110018878A (en) A kind of distributed system data load method and device

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

Application publication date: 20170531

RJ01 Rejection of invention patent application after publication