CN106598698A - Method and system for starting virtual acceleration machines in batch based on migration mode - Google Patents

Method and system for starting virtual acceleration machines in batch based on migration mode Download PDF

Info

Publication number
CN106598698A
CN106598698A CN201611068381.2A CN201611068381A CN106598698A CN 106598698 A CN106598698 A CN 106598698A CN 201611068381 A CN201611068381 A CN 201611068381A CN 106598698 A CN106598698 A CN 106598698A
Authority
CN
China
Prior art keywords
virtual machine
migration
startup
startup program
batch
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.)
Granted
Application number
CN201611068381.2A
Other languages
Chinese (zh)
Other versions
CN106598698B (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.)
Shandong Qianyun Qichuang Information Technology Co Ltd
Original Assignee
Shandong Qianyun Qichuang 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 Qianyun Qichuang Information Technology Co Ltd filed Critical Shandong Qianyun Qichuang Information Technology Co Ltd
Priority to CN201611068381.2A priority Critical patent/CN106598698B/en
Publication of CN106598698A publication Critical patent/CN106598698A/en
Application granted granted Critical
Publication of CN106598698B publication Critical patent/CN106598698B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • G06F9/4856Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration
    • 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
    • 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/45575Starting, stopping, suspending or resuming virtual machine instances

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)

Abstract

The invention discloses a method and system for starting virtual acceleration machines in batch based on a migration mode. The method comprises following steps: managing image files, storing data queues, counting program modules, starting program modules, and migrating operation modules. When initialization, only one virtual machine is started and remaining virtual machines are started by waiting for an online migration mode. During migration, only stored data is needed to be replicated without replicating disk data. Therefore, the competition of disks is effectively avoided and the overall starting process is sped up. A set of control systems is developed for controlling the overall starting process. Therefore, automatic control over batch starting of the virtual machines in the migration mode is achieved.

Description

The method and system of virtual machine batch startup are accelerated based on migration pattern
Technical field
The present invention relates to be based on the method and system that migration pattern accelerates virtual machine batch to start.
Background technology
There are a large amount of identical virtual machines, such as Virtual Class in some virtualization scenes, each student is virtual using one Machine, all virtual machines are just the same, same system run, comprising same course.Common practice is system in similar scene Make a foundation image file, one group of snapshot document is created based on foundation image, as the hard disk of every virtual machine, virtual machine fortune During row in incremental data write snapshot document, foundation image is used as read-only storage.
Very big is impacted to system resource when virtual machine batch starts, especially storage resource, virtual machine is competing each other during startup Strive, disk I/O operation is intensive, overall startup process is slow, it is overall time-consuming longer.
The content of the invention
The purpose of the present invention is exactly to solve the above problems, there is provided accelerate what virtual machine batch started based on migration pattern Method and system, only normally start a virtual machine when initial, remaining virtual machine is started by way of waiting and migrating online. Internal storage data is only replicated during migration, not copy diskette data, be prevented effectively from the competition of disk resource, accelerate overall startup process. A set of control system is developed, overall startup process is controlled, realizes that migration pattern batch starts the Automated condtrol of virtual machine.
To achieve these goals, the present invention is adopted the following technical scheme that:
Based on the method that migration pattern accelerates virtual machine batch startup, comprise the steps:
Step (1):Create a startup and complete queue and a migration waiting list, startup completes queue and opens to deposit The dynamic virtual machine numbering for completing, migrates waiting list the virtual machine numbering to be migrated such as to deposit, in migration waiting list To n, n is positive integer to the numbering 2 of the virtual machines to be migrated such as write;
Step (2):N startup program of paired running, each startup program manages a virtual machine;
Step (3):First startup program creates the snapshot document of oneself based on foundation image, and in the normal fashion backstage is opened Dynamic First virtual machine, waits First virtual machine to start and completes;Remaining n-1 startup program creates each based on foundation image From snapshot document, to wait migration pattern backstage to start respective virtual machine, wait respective virtual machine to start respectively and complete;
Step (4):Startup program reads virtual machine numbering i from migration waiting list, if migration waiting list For sky, startup program end of run;Otherwise, into step (5);The span of i is 2 to n;
Step (5):Startup program performs migration operation, and to self-administered virtual machine migration instruction is sent, and allows virtual machine Migrate online to numbering be i virtual machine, wait it is to be migrated complete, it is rear to self-administered virtual machine send continue instruct, allow Virtual machine is continued executing with, return to step (4).
Now, all normal startup completes for all virtual machines, can normal register.
Step (10) is additionally provided between the step (1) and step (2):
Timing statistics starts the element number completed in queue, exits when reaching n, and exports accumulative time-consuming.
A udp port for adopting host simulates a serial ports for First virtual machine, and first startup program is waited The port for reading host obtains the character string made an appointment, so as to learn that First virtual machine has been turned on completing.
One group of tcp port for adopting host specifies migration to wait port for remaining every virtual machine, remaining per platform Virtual machine is to be migrated in designated port etc..
The another set tcp port of host is adopted for every virtual machine simulation monitor console, each startup program Interacted with monitor consoles by reading and writing tcp port, control transition process.
First virtual machine sends character string ok of agreement by serial ports, and mark is initiated self and completed, remaining virtual machine Startup complete information and learnt by the corresponding monitor consoles of poll, regularly send to monitor consoles Whether info status are instructed, check in output result comprising running printed words, are completed comprising expression startup, are otherwise represented just Starting.
Startup program sends migrate migration instructions to the monitor consoles of self-administered virtual machine during migration, it Timing afterwards sends info status instructions, checks in output result whether include paused (postmigrate) printed words, comprising Represent that migration is completed, in otherwise representing that migration is carried out.
Each time migration operation obtains the virtual machine of some living running statuses, many equivalent to once replicating Platform virtual machine can simultaneously perform duplication operation, it is only necessary to which j duplication operation can be obtained by 2jThe virtual machine of platform running status.
2 are obtained by j migration operationjThe virtual machine of the living running status of platform.
The startup program is referred to:Management virtual machine start-up course and the program of enforcement migration;
The startup completes queue and refers to:To deposit the queue for starting the virtual machine for completing numbering;
The migration waiting list is referred to:To the queue for the virtual machine numbering to be migrated such as depositing;
It is described to start in the normal fashion:Migration pattern is waited to start to distinguish;
Based on migration pattern accelerate virtual machine batch start system, including:
Image file management module, including a foundation image and one group of snapshot document, snapshot document is based on foundation image Create, used as the hard disk of every virtual machine, when virtual machine runs in incremental data write snapshot document, foundation image is used as read-only Storage;
Data queue's memory module, including a startup completes queue and one migrates waiting list, startup completes queue Start the virtual machine for completing numbering to deposit, migrate waiting list the virtual machine numbering to be migrated such as to deposit;
Statistics program module, for timing statistics the element number completed in queue is started, and is exited when reaching setting number, And export accumulative time-consuming;
Startup program module, for correspondence virtual machine number, runs one group of startup program, and first startup program is based on base Plinth mirror image creates the snapshot document of oneself, and in a usual manner backstage starts First virtual machine, waits First virtual machine to start Complete;Remaining startup program creates respective snapshot document based on foundation image, respective to wait migration pattern backstage to start Virtual machine, wait respective virtual machine to start respectively and complete;
Migration operation module:Called by startup program module, to the virtual machine of startup program management migration instruction is sent, allowed Virtual machine migrate online to etc. virtual machine to be migrated, wait after to be migrated completing startup program to send to virtual machine and continue to refer to Order, allows virtual machine to continue executing with.
Internal storage data is only replicated during migration, not copy diskette data, be prevented effectively from the competition of disk resource, accelerate overall opening Dynamic process.
Beneficial effects of the present invention:
1 accelerates the overall process that virtual machine batch starts:Only normally start a virtual machine, remaining virtual machine when initial Start by way of waiting online migration.Internal storage data is only replicated during migration, not copy diskette data, be prevented effectively from disk money The competition in source, accelerates overall startup process;
The 2 a set of control systems of supporting exploitation, control overall startup process, realize migration pattern batch start virtual machine from Dynamicization is controlled.
Description of the drawings
Fig. 1 is allomeric function configuration diagram;
Fig. 2 replicates schematic diagram for migration;
Fig. 3 takes comparison diagram to start.
Specific embodiment
Below in conjunction with the accompanying drawings the invention will be further described with embodiment.
Based on the method that migration pattern accelerates virtual machine batch startup, 8 virtual machine instances are started with batch, including it is as follows Step:
Step (1):Create a startup and complete queue and a migration waiting list, startup completes queue and opens to deposit The dynamic virtual machine numbering for completing, migrates waiting list the virtual machine numbering to be migrated such as to deposit, in migration waiting list The numbering (2,3,4,5,6,7,8) of the write virtual machine to be migrated such as 7;
Step (2):One statistics program of (optional) operation, timing statistics starts the element number completed in queue, reaches 8 When exit, and export accumulative time-consuming;
Step (3):8 startup programs of parallel running, each startup program manages a virtual machine;
Step (4):No. 1 startup program creates the snapshot document of oneself based on foundation image, and in a usual manner backstage starts 1 Number virtual machine, waits its startup to complete;The behavior of remaining 7 startup programs is similar to, and creates respective fast based on foundation image According to file, to wait migration pattern backstage to start respective virtual machine, wait respective virtual machine to start respectively and complete;
Step (5):Startup program reads virtual machine numbering n from migration waiting list, if queue is sky, starts Program end of run;
Step (6):Startup program performs migration operation, and to self-administered virtual machine migration instruction is sent, and allows virtual machine Migrate online to numbering be n virtual machine, wait it is to be migrated complete, it is rear to self-administered virtual machine send continue instruct, allow Virtual machine is continued executing with, return to step (5);
Now, all normal startup completes for all virtual machines, can normal register.
In the step (4):
Host operating system adopts Centos 7.2.1511, Virtual Machine Manager software to adopt qemu-kvm 1.5.3, virtually Machine operating system adopts win XP, and snapshot document is by the qemu-img program creations with-b options;
Host is the physical host for carrying virtual machine, installs Virtual Machine Manager software, there is provided the hardware needed for virtual machine Resource, supports the management and running of virtual machine.
In the step (6):
Migration operation refers to the preservation of virtual machine and recovers that the complete running status for preserving source virtual machine, quick and smooth recovers To target virtual machine, migrate instruction and sent by QEMU monitor, this is a management console;
The running status of source virtual machine is halted state after migration, and it is continued to run with to need transmission to continue designated command.
Based on migration pattern accelerate virtual machine batch start system, including:
Image file is managed:One foundation image and one group of snapshot document, snapshot document is created based on foundation image, as The hard disk of every virtual machine, when virtual machine runs in incremental data write snapshot document, foundation image is used as read-only storage;
Data queue stores:One startup completes queue and a migration waiting list, and startup completes queue to deposit The virtual machine numbering that startup is completed, migrates waiting list the virtual machine numbering to be migrated such as to deposit;
Statistics program module:Timing statistics starts the element number completed in queue, exits when reaching setting number, and defeated Go out to add up time-consuming;
Startup program module:Correspondence virtual machine number, runs one group of startup program, and No. 1 startup program is based on foundation image The snapshot document of oneself is created, in a usual manner backstage starts No. 1 virtual machine, waits its startup to complete;Other startup programs Behavior is similar to, and based on foundation image respective snapshot document is created, to wait migration pattern backstage to start respective virtual machine, point Do not wait respective virtual machine to start to complete;
Migration operation module:Called by startup program, to self-administered virtual machine migration instruction is sent, allow virtual machine to exist Line is migrated to the virtual machine to be migrated such as certain, waits rear the transmission to self-administered virtual machine for completing to be migrated to continue to instruct, Virtual machine is allowed to continue executing with.
Host operating system adopts Centos 7.2.1511, Virtual Machine Manager software to adopt qemu-kvm 1.5.3, virtually Machine operating system adopts win XP, and snapshot document is by the qemu-img program creations with-b options;
Win XP systems in guiding foundation image, are set to default user and exempt from password automated log on, then write one .bat script file, is put into startup file folder effective to all users, is normally at C:\Documents and Settings All Users the Start menu program start, the content of script only has a line:
echo"ok">com1
So virtual machine starting up when from trend serial ports 1 write one agreement character string ok, mark initiated self Into;
Qemu-kvm programs adopt a udp port of host to simulate a serial ports, startup program etc. for No. 1 virtual machine The port of host to be read obtains the character string arranged, and knows that virtual machine has been turned on completing;
Qemu-kvm programs adopt one group of tcp port of host for every virtual machine simulation monitor console, start Program is interacted by reading-writing port with monitor, controls transition process;
Qemu-kvm programs adopt the another set tcp port of host to specify migration to wait port for every virtual machine, Virtual machine is to be migrated in designated port etc.;
TCP (Transmission Control Protocol, transmission control protocol) is a kind of connection-oriented, reliable , transport layer communication protocol based on byte stream;UDP (User Datagram Protocol, UDP), is one Plant connectionless transport layer protocol, there is provided towards the simple unreliable information transmission service of affairs;
With 8 virtual machine instances, the programme of port is:The serial ports of UDP 10001;TCP 10001- 10008monitor;TCP 20002-20008 migrate port;
The order line example of qemu-kvm programs:
/usr/libexec/qemu-kvm -m 256 -hda/vm/xp-back-1.img -usb -usbdevice tablet -vnc :1-daemonize -monitor tcp:127.0.0.1:10001,server,nowait-serial udp:127.0.0.1:10001-net none
/usr/libexec/qemu-kvm -m 256 -hda/vm/xp-back-2.img -usb -usbdevice tablet -vnc :2-daemonize -monitor tcp:127.0.0.1:10002,server,nowait-incoming tcp:0:20002-net none
The first row No. 1 virtual machine of correspondence, the second row No. 2 virtual machines of correspondence;
- net none parameters are represented without network interface card, it is to avoid all of virtual machine possesses same network interface card ginseng after migration Number, can online add personalized network interface card by monitor consoles after startup is completed for virtual machine;
Only need to simulate a serial ports for No. 1 virtual machine, because No. 1 startup program needs to read its serial ports and obtains its startup Mark is completed, other virtual machines all do not need serial ports, they are waiting migration operation;
The startup of other virtual machines is completed information and is learnt by the corresponding monitor consoles of poll, is spaced 1 second Whether timing to monitor sends info status instructions, check in its output result comprising running printed words;
After the completion of startup program learns that virtual machine starts, its numbering is recorded in startup completes queue, from migration team is waited The virtual machine numbering to be migrated such as reading, sends migrate and refers to the monitor consoles of self-administered virtual machine in row Order, performs the migration operation to target virtual machine, and interval timing in 1 second to monitor sends info status instructions, checks it Whether paused (postmigrate) printed words are included in output result, determine that migration operation is completed;
After migration is completed, the virtual machine of startup program management placed in a suspend state, now to its monitor sends c again Instruction, makes it continue to run with;
The above-mentioned transition process of repetition, is in without virtual machine in migration waiting list and waits transition state, now institute There is virtual machine to start to complete, can normal register.
As shown in figure 1, describing the general frame that migration pattern batch starts virtual machine, whole system with 8 virtual machine instances System is mainly included:8 QEMU processes, 8 launching process, 1 statistics process, 1 foundation image, 8 snapshot documents, 1 is moved Waiting list is moved, 1 startup completes queue, and each part is used as an organic whole collaborative work;
It is initially in migration waiting list and writes the numbering (2,3,4,5,6,7,8) of the virtual machine to be migrated such as 7, parallel 8 startup programs of operation, each startup program manages a virtual machine, is responsible for the startup of QEMU processes, and by its monitor Console is interacted;
No. 1 startup program creates the snapshot document of oneself based on foundation image, and in a usual manner backstage starts No. 1 virtually Machine, waits its startup to complete;
After the completion of startup, virtual machine numbering is recorded in startup completes queue, and wait is read from migration waiting list The virtual machine numbering of migration, migrate instructions are sent by monitor consoles to self-administered virtual machine, are performed to mesh The migration operation of mark virtual machine, with No. 2 virtual machine instances, specific migration instruction is migrate tcp:127.0.0.1: 20002;
Note the instruction for needing first to send a setting migration velocity before migration instruction, such as:migrate_set_ speed 2048
Otherwise transition process may be very slow, causes overall startup process to slow down.
As shown in Fig. 2 demonstrating the overall process that migration pattern batch starts virtual machine, each time migration operation obtains two The virtual machine of the living running status of platform, equivalent to once replicating, multiple stage virtual machine can simultaneously replicate operation, it is only necessary to Replicate the virtual machine that operation can be obtained by 8 running statuses 3 times.
As shown in figure 3, the totality that contrast common mode starts one group of virtual machine with migration pattern batch takes, common mode One group of virtual machine is started using usual manner simultaneously, migration pattern adopts previously described scheme of the invention;
The host environment that test is adopted is Centos 7.2.1511, internal memory 10G, 1 double-core Intel (R) Pentium (R) CPU G640@2.80GHz;
VME operating system adopts win XP, and the internal memory of every virtual machine is 256M, 1 CPU;
Two ways is contrasted respectively starts the time-consuming of 8,16,32 virtual machines simultaneously;
Abscissa is the virtual machine number (unit for starting simultaneously:Platform), ordinate is overall time-consuming (unit:Second);
From the point of view of comparing result, the virtual machine number that batch starts is more, and the advantage that migration pattern batch starts is more obvious.
Although the above-mentioned accompanying drawing that combines is described to the specific embodiment of the present invention, not to present invention protection model The restriction enclosed, one of ordinary skill in the art should be understood that on the basis of technical scheme those skilled in the art are not Need the various modifications made by paying creative work or deformation still within protection scope of the present invention.

Claims (10)

1. the method for accelerating virtual machine batch startup based on migration pattern, is characterized in that, comprise the steps:
Step (1):Create a startup and complete queue and a migration waiting list, startup completes queue and started to deposit Into virtual machine numbering, migrate waiting list the virtual machine numbering to be migrated such as to deposit, write in migration waiting list N is arrived etc. the numbering 2 of virtual machine to be migrated, n is positive integer;
Step (2):N startup program of paired running, each startup program manages a virtual machine;
Step (3):First startup program creates the snapshot document of oneself based on foundation image, and in the normal fashion backstage starts the One virtual machine, waits First virtual machine to start and completes;Remaining n-1 startup program creates respective based on foundation image Snapshot document, to wait migration pattern backstage to start respective virtual machine, waits respectively respective virtual machine to start and completes;
Step (4):Startup program reads virtual machine numbering i from migration waiting list, if migration waiting list is sky, Startup program end of run;Otherwise, into step (5);The span of i is 2 to n;
Step (5):Startup program performs migration operation, and to self-administered virtual machine migration instruction is sent, and makes virtual machine online Migrate to the virtual machine that numbering is i, wait it is to be migrated complete, rear transmission to self-administered virtual machine continue to instruct, allow virtual Machine is continued executing with, return to step (4).
2. the method for accelerating virtual machine batch to start based on migration pattern as claimed in claim 1, is characterized in that, the step (1) step (10) is additionally provided with and step (2) between:
Timing statistics starts the element number completed in queue, exits when reaching n, and exports accumulative time-consuming.
3. the method for accelerating virtual machine batch to start based on migration pattern as claimed in claim 1, is characterized in that,
Adopt a udp port of host and a serial ports is simulated for First virtual machine, first startup program etc. is to be read The port of host obtains the character string made an appointment, so as to learn that First virtual machine has been turned on completing.
4. the method for accelerating virtual machine batch to start based on migration pattern as claimed in claim 1, is characterized in that,
One group of tcp port for adopting host specifies migration to wait port for remaining every virtual machine, remaining virtual per platform Machine is to be migrated in designated port etc..
5. the method for accelerating virtual machine batch to start based on migration pattern as claimed in claim 4, is characterized in that,
Adopt the another set tcp port of host for every virtual machine simulation monitor console, each startup program passes through Read-write tcp port is interacted with monitor consoles, controls transition process.
6. the method for accelerating virtual machine batch to start based on migration pattern as claimed in claim 1, is characterized in that,
First virtual machine passes through character string ok that serial ports sends agreement, mark is initiated self and completed, and remaining virtual machine is opened It is dynamic to complete information and learnt by the corresponding monitor consoles of poll, regularly send info to monitor consoles Whether status is instructed, check in output result comprising running printed words, is completed comprising expression startup, is otherwise represented and open It is dynamic.
7. the method for accelerating virtual machine batch to start based on migration pattern as claimed in claim 1, is characterized in that,
Startup program sends migrate migration instructions, Zhi Houding to the monitor consoles of self-administered virtual machine during migration When send info status instruction, whether check in output result comprising paused printed words, comprising representing that migration completes, otherwise In representing that migration is carried out.
8. the method for accelerating virtual machine batch to start based on migration pattern as claimed in claim 1, is characterized in that,
Each time migration operation obtains the virtual machine of some living running statuses, and equivalent to once replicating, multiple stage is empty Plan machine is performed and replicates operation simultaneously, it is only necessary to which j duplication operation just obtains 2jThe virtual machine of platform running status.
9. the system for accelerating virtual machine batch startup based on migration pattern, is characterized in that, including:
Image file management module, including a foundation image and one group of snapshot document, snapshot document is created based on foundation image, Used as the hard disk of every virtual machine, when virtual machine runs in incremental data write snapshot document, foundation image is used as read-only storage;
Data queue's memory module, including one start complete queue and one migration waiting list, startup complete queue to Storage starts the virtual machine numbering for completing, and migrates waiting list the virtual machine numbering to be migrated such as to deposit;
Statistics program module, for timing statistics the element number completed in queue is started, and is exited when reaching setting number, and defeated Go out to add up time-consuming;
Startup program module, for correspondence virtual machine number, runs one group of startup program, and first startup program is based on basic mirror As creating the snapshot document of oneself, in a usual manner backstage starts First virtual machine, waits First virtual machine to start and completes; Remaining startup program creates respective snapshot document based on foundation image, respective virtual to wait migration pattern backstage to start Machine, waits respectively respective virtual machine to start and completes;
Migration operation module:Called by startup program module, to the virtual machine of startup program management migration instruction is sent, allow virtual Machine migrate online to etc. virtual machine to be migrated, wait after to be migrated completing startup program to send to virtual machine and continue to instruct, allow Virtual machine is continued executing with.
10. system as claimed in claim 9, is characterized in that,
Internal storage data is only replicated during migration, not copy diskette data, be prevented effectively from the competition of disk resource, accelerate overall startup mistake Journey.
CN201611068381.2A 2016-11-25 2016-11-25 Accelerate the method and system of virtual machine batch starting based on migration pattern Active CN106598698B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611068381.2A CN106598698B (en) 2016-11-25 2016-11-25 Accelerate the method and system of virtual machine batch starting based on migration pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611068381.2A CN106598698B (en) 2016-11-25 2016-11-25 Accelerate the method and system of virtual machine batch starting based on migration pattern

Publications (2)

Publication Number Publication Date
CN106598698A true CN106598698A (en) 2017-04-26
CN106598698B CN106598698B (en) 2019-06-14

Family

ID=58595424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611068381.2A Active CN106598698B (en) 2016-11-25 2016-11-25 Accelerate the method and system of virtual machine batch starting based on migration pattern

Country Status (1)

Country Link
CN (1) CN106598698B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109002343A (en) * 2017-06-07 2018-12-14 中兴通讯股份有限公司 A kind of method and device for realizing virtual machine batch creation
CN109597671A (en) * 2018-12-11 2019-04-09 国云科技股份有限公司 A kind of desktop cloud implementation method being compatible with centralized and distributed operation
CN109634713A (en) * 2018-11-02 2019-04-16 新华三云计算技术有限公司 A kind of virtual machine starting method and device
CN111181953A (en) * 2019-12-26 2020-05-19 山东乾云启创信息科技股份有限公司 Method and device for supporting spice protocol through Roc virtualization
CN115016901A (en) * 2022-08-09 2022-09-06 中航金网(北京)电子商务有限公司 Virtual machine migration method, device, medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101697134A (en) * 2009-10-27 2010-04-21 北京大学 Method for supporting quick start of similar virtual machine
CN103399778A (en) * 2013-07-01 2013-11-20 华为技术有限公司 Method and device for on-line integral migration of virtual machine
US8903888B1 (en) * 2006-10-27 2014-12-02 Hewlett-Packard Development Company, L.P. Retrieving data of a virtual machine based on demand to migrate the virtual machine between physical machines
US20150229717A1 (en) * 2014-02-10 2015-08-13 International Business Machines Corporation Migrating local cache state with a virtual machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8903888B1 (en) * 2006-10-27 2014-12-02 Hewlett-Packard Development Company, L.P. Retrieving data of a virtual machine based on demand to migrate the virtual machine between physical machines
CN101697134A (en) * 2009-10-27 2010-04-21 北京大学 Method for supporting quick start of similar virtual machine
CN103399778A (en) * 2013-07-01 2013-11-20 华为技术有限公司 Method and device for on-line integral migration of virtual machine
US20150229717A1 (en) * 2014-02-10 2015-08-13 International Business Machines Corporation Migrating local cache state with a virtual machine

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109002343A (en) * 2017-06-07 2018-12-14 中兴通讯股份有限公司 A kind of method and device for realizing virtual machine batch creation
CN109002343B (en) * 2017-06-07 2023-08-25 中兴通讯股份有限公司 Method and device for realizing batch creation of virtual machines
CN109634713A (en) * 2018-11-02 2019-04-16 新华三云计算技术有限公司 A kind of virtual machine starting method and device
CN109634713B (en) * 2018-11-02 2020-12-08 新华三云计算技术有限公司 Virtual machine starting method and device
CN109597671A (en) * 2018-12-11 2019-04-09 国云科技股份有限公司 A kind of desktop cloud implementation method being compatible with centralized and distributed operation
CN111181953A (en) * 2019-12-26 2020-05-19 山东乾云启创信息科技股份有限公司 Method and device for supporting spice protocol through Roc virtualization
CN115016901A (en) * 2022-08-09 2022-09-06 中航金网(北京)电子商务有限公司 Virtual machine migration method, device, medium and electronic equipment
CN115016901B (en) * 2022-08-09 2022-10-14 中航金网(北京)电子商务有限公司 Virtual machine migration method, device, medium and electronic equipment

Also Published As

Publication number Publication date
CN106598698B (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN106598698A (en) Method and system for starting virtual acceleration machines in batch based on migration mode
US11314499B2 (en) Simulating end-to-end upgrade process in production environment
CN107463402B (en) The operation method and device of virtual opetrating system
US8191063B2 (en) Method for migrating a plurality of virtual machines by associating files and state information with a single logical container
US7555596B2 (en) Systems and methods for attaching a virtual machine virtual hard disk to a host machine
US20170083292A1 (en) Visual content development
US20130263090A1 (en) System and method for automated testing
CN113676363B (en) Network target range flow generation system and method
CN106075911B (en) A kind of generation method and device at the micro- end of web game
US11894983B2 (en) Simulation and testing of infrastructure as a service scale using a container orchestration engine
CN107766052A (en) A kind of method and apparatus for building mirror image
US20150120674A1 (en) Virtual program installation and state restoration
Lowe Mastering VMware vSphere 4
CN108021378A (en) Upgrade-system, the upgrade method based on virtual machine and device
US20180121220A1 (en) Gpu simulation method
CN108089890B (en) It is a kind of that operation method and system are applied based on disk
CN104204976A (en) Information processing apparatus, simulation method, and program
CN109918169A (en) A kind of cloud experiment training system based on OBE mode
CN104199716A (en) Virtual machine thermal migration method, physical host and system
CN112764981B (en) Cooperative testing system and method
Mocevicius CoreOS Essentials
CN106598696A (en) Data interaction method and apparatus for virtual machines
EP3311269B1 (en) Content testing during image production
Sheng et al. A virtual experiment platform based on OpenStack
WO2020138386A1 (en) Cooperative simulation repeater employing previous trace data

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
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method and system for starting virtual acceleration machines in batch based on migration mode

Effective date of registration: 20200413

Granted publication date: 20190614

Pledgee: Ji'nan branch of Limited by Share Ltd.

Pledgor: SHANDONG QIANYUN QICHUANG INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2020370000052

PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20211022

Granted publication date: 20190614

Pledgee: Ji'nan branch of Limited by Share Ltd.

Pledgor: SHANDONG QIANYUN QICHUANG INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2020370000052

PC01 Cancellation of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method and system for accelerating batch startup of virtual machines based on migration mode

Effective date of registration: 20211227

Granted publication date: 20190614

Pledgee: Jinan Rural Commercial Bank Co.,Ltd. Runfeng sub branch

Pledgor: SHANDONG QIANYUN QICHUANG INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2021980016348

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20230217

Granted publication date: 20190614

Pledgee: Jinan Rural Commercial Bank Co.,Ltd. Runfeng sub branch

Pledgor: SHANDONG QIANYUN QICHUANG INFORMATION TECHNOLOGY Co.,Ltd.

Registration number: Y2021980016348

PC01 Cancellation of the registration of the contract for pledge of patent right