CN109508223A - A kind of virtual machine batch creation method, system and equipment - Google Patents

A kind of virtual machine batch creation method, system and equipment Download PDF

Info

Publication number
CN109508223A
CN109508223A CN201710826123.4A CN201710826123A CN109508223A CN 109508223 A CN109508223 A CN 109508223A CN 201710826123 A CN201710826123 A CN 201710826123A CN 109508223 A CN109508223 A CN 109508223A
Authority
CN
China
Prior art keywords
virtual machine
creation
virtual
machine
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.)
Pending
Application number
CN201710826123.4A
Other languages
Chinese (zh)
Inventor
郭思远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SF Technology Co Ltd
SF Tech Co Ltd
Original Assignee
SF 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 SF Technology Co Ltd filed Critical SF Technology Co Ltd
Priority to CN201710826123.4A priority Critical patent/CN109508223A/en
Publication of CN109508223A publication Critical patent/CN109508223A/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/45562Creating, deleting, cloning virtual machine instances
    • 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 present invention relates to a kind of virtual machine batch creation method, system and equipment.The virtual machine batch creation method, comprising: S1, obtain with physical machine in cluster attribute information;The configuration information of S2, the attribute information based on physical machine and virtual robot arm to be created screen same cluster physical;S3, virtual robot arm to be created is distributed to the target physical machine filtered out, the batch creation operation of virtual robot arm is executed, if creation unsuccessfully thens follow the steps S4;S4, current fail step during creation is re-executed.Virtual machine can create in batches, batch is delivered, greatly reduce system manager's workload, and virtual machine creating failure can retry, and without the step of executing again or not repeating successful execution, accelerate the creation speed of virtual machine, improve virtual machine creating reliability, the risk and human cost of rollback resource are reduced unsuccessfully, to improve the efficiency that batch creates virtual machine, improves the resilient expansion efficiency of virtual robot arm capacity.

Description

A kind of virtual machine batch creation method, system and equipment
Technical field
The present invention relates to virtual machine creating more particularly to a kind of virtual machine batch creation methods, system and equipment.
Background technique
Continuous with cloud is popularized, and creation virtual machine unlike traditional vmware mode delivery virtual machine, is System administrator wishes to create multiple complete referable virtual machines by least manually input batch.
It generally needs to dispose agent on every physical machine using open source virtual machine management program at present, use simultaneously Shared storage, although can quickly create, virtual machine is higher to each component maintenance cost, and physical machine reaches certain amount Control node creation efficiency also gradually reduces afterwards, unstability occurs.
There is no retry mechanisms after virtual machine creating failure for existing virtual machine creating tool, rebuild after can only deleting. Completed step reduces the efficiency of creation virtual machine there is still a need for repeating.
And existing tool does not carry out virtual machine initialization operation after virtual machine is completed in creation, can not be truly realized Virtual machine requirement for delivery.
Summary of the invention
In order to solve the above-mentioned technical problem, the purpose of the present invention is to provide a kind of virtual machine batch creation methods, system And equipment.
According to an aspect of the invention, there is provided a kind of virtual machine batch creation method, comprising the following steps:
S1, obtain with physical machine in cluster attribute information;
The configuration information of S2, the attribute information based on physical machine and virtual robot arm to be created carry out same cluster physical Screening;
S3, virtual robot arm to be created is distributed to the target physical machine filtered out, executes the batch creation behaviour of virtual robot arm Make, if creation unsuccessfully thens follow the steps S4;
S4, current fail step during creation is re-executed.
Further, before the batch creation operation for executing virtual robot arm, comprising:
Obtain virtual machine state, if in creation or creation fail, then execute virtual robot arm batch creation operation.
Further, after virtual robot arm to be created to be distributed to the target physical machine filtered out, comprising:
Json format parameter needed for generating virtual machine creating, sends it to kafka designated key.
Further, the attribute information of physical machine includes physical machine cpu information, memory information, disc information, network interface card letter One of breath, physical machine libvirtd managing process status information are a variety of.
Further, the configuration information includes CPU information, memory information, disc information.
Further, the configuration information based on virtual robot arm to be created, screens same cluster physical, comprising:
Based on CPU usage, memory usage, disk utilization rate threshold value, to same cluster physical carry out first time sieve Choosing;
Based on CPU number, memory size, disk size threshold value, to same cluster physical carry out programmed screening.
Further, the batch creation operation of virtual robot arm is executed, comprising:
S31, virtual machine storage catalogue is created by virtual machine uuid;
S32, newest mirror image is copied from mirror cache server, under the storage catalogue, carry out virtual machine image wound It builds;
S33, corresponding image file, xml document are created in the storage pool of storage catalogue;
S34, the starting virtual machine;
S35, it executes and presets script in virtual machine, carry out the virtual machine and initially inject, complete the virtual machine creating.
Each virtual management platform is set to have oneself special catalogue to store by step S31.
Step S32 is that mirror cache, mirror image web services and mirror-image copies limit are completed by squid+httpd+nc technology Speed.The way of Openstack is included glance module to manage mirror image.
S35 executes injection order using qemu-guest-agent secondary development, by configuring in virtual machine image Script enters ginseng to initialize each virtual machine, can customize virtual machine initialization content, realize that different function virtual machine is handed over It pays.
Further, after step S31, comprising:
Whether confirmation virtual machine catalogue has created success;
If so, thening follow the steps S32;
If not then executing creation using virtual machine uuid in the physical machine that virtual machine to be distributed by ansible to appoint Business.
Further, after step S32, comprising:
Whether confirmation virtual machine image creates success;
If so, thening follow the steps S33;
If not then copying newest mirror image from mirror cache server by ansible, creation task is executed.
Further, before step S33, comprising:
Whether confirmation virtual machine storage pool has created success;
If so, thening follow the steps clone's virtual machine image carries out image file creation;
If not then executing creation task through creation storage pool interface by libvirtd.
Further, after creating corresponding image file in the storage pool of storage catalogue, comprising:
Confirm whether corresponding image file has created success;
It is confirmed whether to need additionally to create data disks if so, thening follow the steps;
If not then cloning mirror image interface by libvirtd executes creation task.
Further, it is confirmed whether to need additionally to create data disks, comprising:
If so, executing creation data disks step;
If not then creating corresponding xml document in the storage pool of storage catalogue.
Further, it executes after creating data disks step, comprising:
Whether confirmation virtual-machine data disk has created success;
If so, thening follow the steps creation virtual machine xml document;
If not then creating data disks interface by libvirtd executes creation task.
Further, after creation virtual machine xml document, comprising:
Whether confirmation virtual machine xml document has created success;
If so, thening follow the steps S34;
If not then creating interface by the virtual machine xml of libvirtd executes creation task.
Further, after starting the virtual machine, comprising:
Whether confirmation virtual machine has been started up;
If so, thening follow the steps S35;
If not then starting virtual machine by the Virtual Machine Manager interface of libvirtd.
Further, after virtual machine initialization injection, comprising:
Whether confirmation virtual machine initializes success;
If so, updating virtual machine state is to create successfully;
Initialization task is completed if not then executing by qemu-agent and presetting script in virtual machine os.
According to another aspect of the present invention, a kind of virtual machine batch creation system is provided, comprising:
Acquisition unit obtains the attribute information with physical machine in cluster;
Physical machine screening unit, the configuration information of attribute information and virtual robot arm to be created based on physical machine, to same collection Group's physical machine is screened;
Virtual robot arm to be created is distributed to the target physical machine filtered out, executes the batch of virtual robot arm by creating unit Creation operation, re-executes current fail step during creation if creating failure.
The system is based on a kind of any of the above-described system of virtual machine batch creation method, with the category of physical machine in cluster The acquisition of property information, the configuration information of attribute information and virtual robot arm to be created based on physical machine, to same cluster physical into Row screening;Virtual robot arm to be created is distributed to the target physical machine filtered out, executes the batch creation operation of virtual robot arm, if Creation failure then re-executes the creation specific steps such as current fail step, such as above-mentioned virtual machine batch creation method portion in the process Described in point.
According to another aspect of the present invention, a kind of virtual machine batch creation equipment is provided, including is stored with computer The computer-readable medium of program, described program are run for executing:
S1, obtain with physical machine in cluster attribute information;
The configuration information of S2, the attribute information based on physical machine and virtual robot arm to be created carry out same cluster physical Screening;
S3, virtual robot arm to be created is distributed to the target physical machine filtered out, executes the batch creation behaviour of virtual robot arm Make, if creation unsuccessfully thens follow the steps S4;
S4, current fail step during creation is re-executed.
The equipment is based on a kind of any of the above-described equipment of virtual machine batch creation method, with the category of physical machine in cluster The acquisition of property information, the configuration information of attribute information and virtual robot arm to be created based on physical machine, to same cluster physical into Row screening;Virtual robot arm to be created is distributed to the target physical machine filtered out, executes the batch creation operation of virtual robot arm, if Creation failure then re-executes the creation specific steps such as current fail step, such as above-mentioned virtual machine batch creation method portion in the process Described in point.
Compared with prior art, the invention has the following advantages:
1, the exemplary virtual machine batch creation method of the present invention, virtual machine can create in batches, and batch is delivered, and greatly reduce System manager's workload, and virtual machine creating failure can retry, without executing or not repeating successful execution again Step accelerates the creation speed of virtual machine, improves virtual machine creating reliability, reduces unsuccessfully risk and the people of rollback resource Power cost improves the resilient expansion efficiency of virtual robot arm capacity to improve the efficiency that batch creates virtual machine.
2, the exemplary virtual machine batch creation method of the present invention can customize virtual machine initialization content, realize different Virtualization of function machine is delivered.Solving existing tool at present, there is no carry out virtual machine initialization behaviour after virtual machine is completed in creation The problem of making, virtual machine requirement for delivery can not be truly realized.
3, the exemplary virtual machine batch of the present invention creates system, by acquisition unit, obtains the category with physical machine in cluster Property information;By physical machine screening unit, same cluster physical is screened;By creating unit, by virtual machine to be created Group distributes to the target physical machine filtered out, executes the batch creation operation of virtual robot arm, re-executes wound if creating failure Current fail step during building.Said units cooperative cooperating, the common batch creation for realizing virtual machine, and when virtual machine is created When building unsuccessfully, fail step can be retried, without the step of executing again or not repeating successful execution, improves virtual machine wound Reliability is built, the risk and human cost of rollback resource are reduced unsuccessfully.
4, the exemplary virtual machine batch of the present invention creates equipment, is stored with the computer-readable medium of computer program, institute State program be run for execute same cluster physical is screened;Virtual robot arm to be created is distributed to the target filtered out Physical machine executes the batch creation operation of virtual robot arm, current fail step during creation is re-executed if creating failure. Virtual machine creating failure can retry, and without the step of executing again or not repeating successful execution, reduce the money that unsuccessfully retracts The risk and human cost in source improve the resilient expansion effect of virtual robot arm capacity to improve the efficiency that batch creates virtual machine Rate is worthy to be popularized.
Detailed description of the invention
Fig. 1 is flow chart of the present invention.
Specific embodiment
In order to be better understood by technical solution of the present invention, combined with specific embodiments below, Figure of description is to the present invention It is described further.
Embodiment one:
As shown in Figure 1, present embodiments providing a kind of virtual machine batch creation method, comprising the following steps:
Each virtual machine creating task can distribute a task_id for recording work order information, a request_ Id is for indicating each virtual machine creating process.
S1, it obtains with the attribute information of physical machine in cluster (consolidated network region in identical computer room).The attribute of physical machine Information includes physical machine cpu information, memory information, disc information, network interface card information, physical machine libvirtd managing process state letter Breath.Further, attribute information includes that physical machine cpu, memory, disk size information and physical machine cpu utilization rate, memory make With rate, hard disk utilization rate, network interface card utilization rate and physical machine libvirtd managing process state.
By finding the physical machine list of all libvirtd management programs normal works of same cluster and being taken from database Out in list each physical machine performance data information, that is, attribute information.
The configuration information of S2, the attribute information based on physical machine and virtual robot arm to be created carry out same cluster physical Screening.The configuration information includes CPU information, memory information, disc information.
Based on the configuration information of virtual robot arm to be created, same cluster physical is screened, comprising:
(1) based on CPU usage, memory usage, disk utilization rate threshold value, to same cluster physical carry out for the first time Screening.The specific steps are by setting physical machine performance screening washer, (cpu utilization rate is no more than 80%, and memory usage is no more than 95%, disk utilization rate is no more than 70%) screening and meets condition physical machine, and screening needs to consider data age, number in 1 minute It is presently considered to be effective.
(2) based on CPU number, memory size, disk size threshold value, to same cluster physical carry out programmed screening. Specific steps are as follows: the physical machine of screening pre-allocates out resource required for the N platform virtual machine for needing to create, and (cpu number, memory are big Small, disk size), use the physical machine of screening washer screening oversubscription.
S3, virtual robot arm to be created distributed to the target physical machine filtered out, required for assembled virtual machine creating Json format parameter transmits the message to kafka designated key, judges virtual machine state, executes the batch creation of virtual robot arm Operation, if creation unsuccessfully thens follow the steps S4.
Judge virtual machine state step are as follows: the virtual machine uuid being passed to by front end, which inquires virtual machine state in database, is No is in creation or creation fails, and only the virtual machine creating message of the two states just executes operates below.
If virtual machine state to start to execute each virtual machine creating task in creation or if creation failure, specifically Are as follows:
S31, creation virtual machine storage catalogue.Confirm whether virtual machine catalogue has created by request_id checking storehouse Function, it is successful then skip this step, otherwise by using virtual machine uuid to create on ansible to the physical machine to be distributed of virtual machine Virtual machine storage catalogue is built, runs succeeded and continues below step.
S32, detection virtual machine image.Confirm whether virtual machine image has created success by request_id checking storehouse, It is successful then skip this step, newest mirror image is otherwise copied from mirror cache server using ansible, copy is needed according to net Network environment does speed limit, runs succeeded and continues below step.
S33, creation virtual machine storage pool.Virtual machine storage pool (storage pool) is confirmed by request_id checking storehouse Whether success has been created, it is successful then skip this step, storage pool otherwise is created using libvirtd creation storage interface, It runs succeeded and continues below step.
S34, clone's virtual machine image.Confirm whether virtual machine image file has created by request_id checking storehouse Function, it is successful then skip this step, otherwise create virtual machine image file using libvirtd clone's mirror image interface, run succeeded after Continuous below step.
S35, creation virtual-machine data disk.Whether confirmation virtual machine needs additionally to create data disks, needs, passes through Whether request_id checking storehouse confirmation virtual-machine data disk has created success, successful then skip this step, otherwise whether Libvirtd creates the creation of data disk (data disks) interface, runs succeeded and continues below step.
S36, creation virtual machine xml document.Confirm whether virtual machine xml document has created by request_id checking storehouse Success, it is successful then skip this step, otherwise execute creation task using the virtual machine xml creation interface of libvirtd, execution at Function continues below step.
S37, starting virtual machine.Confirm whether virtual machine has been started up by request_id checking storehouse, it is successful then skip this Otherwise step starts virtual machine using the Virtual Machine Manager interface of libvirtd, runs succeeded and continue below step.
S38, virtual machine initialization injection.Confirm whether virtual machine initializes success by request_id checking storehouse, success This step is then skipped, is otherwise executed using qemu-agent and presets script completion initialization task in virtual machine os.
S4, current fail step during creation is re-executed.
The virtual machine batch of the present embodiment creates system, comprising:
Acquisition unit obtains the attribute information with physical machine in cluster;
Physical machine screening unit, the configuration information of attribute information and virtual robot arm to be created based on physical machine, to same collection Group's physical machine is screened;
Virtual robot arm to be created is distributed to the target physical machine filtered out, executes the batch of virtual robot arm by creating unit Creation operation, re-executes current fail step during creation if creating failure.
A kind of virtual machine batch of the present embodiment creates equipment, computer-readable Jie including being stored with computer program Matter, described program are run for executing:
S1, obtain with physical machine in cluster attribute information;
The configuration information of S2, the attribute information based on physical machine and virtual robot arm to be created carry out same cluster physical Screening;
S3, virtual robot arm to be created is distributed to the target physical machine filtered out, executes the batch creation behaviour of virtual robot arm Make, if creation unsuccessfully thens follow the steps S4;
S4, current fail step during creation is re-executed.
Embodiment two
The feature that the present embodiment is the same as example 1 repeats no more, and the present embodiment feature different from embodiment one exists In:
S31, creation virtual machine storage catalogue.Confirm whether virtual machine catalogue has created by request_id checking storehouse Function, it is successful then skip this step, otherwise by using virtual machine uuid to create on ansible to the physical machine to be distributed of virtual machine Virtual machine storage catalogue is built, runs succeeded and continues below step.
S32, detection virtual machine image.Confirm whether virtual machine image has created success by request_id checking storehouse, It is successful then skip this step, newest mirror image is otherwise copied from mirror cache server using ansible, copy is needed according to net Network environment does speed limit, runs succeeded and continues below step.
S33, creation virtual machine storage pool.Virtual machine storage pool (storage pool) is confirmed by request_id checking storehouse Whether success has been created, it is successful then skip this step, storage pool otherwise is created using libvirtd creation storage interface, It runs succeeded and continues below step.
S34, clone's virtual machine image.Confirm whether virtual machine image file has created by request_id checking storehouse Function, it is successful then skip this step, otherwise create virtual machine image file using libvirtd clone's mirror image interface, run succeeded after Continuous below step.
S35, creation virtual machine xml document.Confirm whether virtual machine xml document has created by request_id checking storehouse Success, it is successful then skip this step, otherwise execute creation task using the virtual machine xml creation interface of libvirtd, execution at Function continues below step.
S36, starting virtual machine.Confirm whether virtual machine has been started up by request_id checking storehouse, it is successful then skip this Otherwise step starts virtual machine using the Virtual Machine Manager interface of libvirtd, runs succeeded and continue below step.
S37, virtual machine initialization injection.Confirm whether virtual machine initializes success by request_id checking storehouse, success This step is then skipped, is otherwise executed using qemu-agent and presets script completion initialization task in virtual machine os.
Embodiment three
The feature that the present embodiment is the same as example 1 repeats no more, and the present embodiment feature different from embodiment one exists In:
It can also realize that batch creates using the open source cloud platform such as openstack.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Energy.

Claims (18)

1. a kind of virtual machine batch creation method, characterized in that the following steps are included:
S1, obtain with physical machine in cluster attribute information;
The configuration information of S2, the attribute information based on physical machine and virtual robot arm to be created screen same cluster physical;
S3, virtual robot arm to be created is distributed to the target physical machine filtered out, executes the batch creation operation of virtual robot arm, if Creation unsuccessfully thens follow the steps S4;
S4, current fail step during creation is re-executed.
2. virtual machine batch creation method according to claim 1, characterized in that execute the batch creation behaviour of virtual robot arm Before work, comprising:
Obtain virtual machine state, if in creation or creation fail, then execute virtual robot arm batch creation operation.
3. virtual machine batch creation method according to claim 2, characterized in that distribute to virtual robot arm to be created After the target physical machine filtered out, comprising:
Json format parameter needed for generating virtual machine creating, sends it to kafka designated key.
4. virtual machine batch creation method according to claim 1, characterized in that the attribute information of physical machine includes physics One of machine cpu information, memory information, disc information, network interface card information, physical machine libvirtd managing process status information or It is a variety of.
5. virtual machine batch creation method according to claim 4, characterized in that the configuration information include CPU information, Memory information, disc information.
6. virtual machine batch creation method according to claim 5, characterized in that based on matching for virtual robot arm to be created Confidence breath, screens same cluster physical, comprising:
Based on CPU usage, memory usage, disk utilization rate threshold value, to same cluster physical carry out first time screening;
Based on CPU number, memory size, disk size threshold value, to same cluster physical carry out programmed screening.
7. -6 any virtual machine batch creation method according to claim 1, characterized in that execute the batch of virtual robot arm Creation operation, comprising:
S31, virtual machine storage catalogue is created by virtual machine uuid;
S32, newest mirror image is copied from mirror cache server, under the storage catalogue, carry out virtual machine image creation;
S33, corresponding image file, xml document are created in the storage pool of storage catalogue;
S34, the starting virtual machine;
S35, it executes and presets script in virtual machine, carry out the virtual machine and initially inject, complete the virtual machine creating.
8. virtual machine batch creation method according to claim 7, characterized in that after step S31, comprising:
Whether confirmation virtual machine catalogue has created success;
If so, thening follow the steps S32;
If not then executing creation task using virtual machine uuid in the physical machine that virtual machine to be distributed by ansible.
9. virtual machine batch creation method according to claim 7, characterized in that after step S32, comprising:
Whether confirmation virtual machine image creates success;
If so, thening follow the steps S33;
If not then copying newest mirror image from mirror cache server by ansible, creation task is executed.
10. virtual machine batch creation method according to claim 7, characterized in that before step S33, comprising:
Whether confirmation virtual machine storage pool has created success;
If so, thening follow the steps clone's virtual machine image carries out image file creation;
If not then executing creation task through creation storage pool interface by libvirtd.
11. virtual machine batch creation method according to claim 7, characterized in that created in the storage pool of storage catalogue It builds after corresponding image file, comprising:
Confirm whether corresponding image file has created success;
It is confirmed whether to need additionally to create data disks if so, thening follow the steps;
If not then cloning mirror image interface by libvirtd executes creation task.
12. virtual machine batch creation method according to claim 11, characterized in that be confirmed whether to need additionally to create number According to disk, comprising:
If so, executing creation data disks step;
If not then creating corresponding xml document in the storage pool of storage catalogue.
13. virtual machine batch creation method according to claim 12, characterized in that execute creation data disks step it Afterwards, comprising:
Whether confirmation virtual-machine data disk has created success;
If so, thening follow the steps creation virtual machine xml document;
If not then creating data disks interface by libvirtd executes creation task.
14. virtual machine batch creation method according to claim 7, characterized in that
After creation virtual machine xml document, comprising:
Whether confirmation virtual machine xml document has created success;
If so, thening follow the steps S34;
If not then creating interface by the virtual machine xml of libvirtd executes creation task.
15. virtual machine batch creation method according to claim 7, characterized in that
After starting the virtual machine, comprising:
Whether confirmation virtual machine has been started up;
If so, thening follow the steps S35;
If not then starting virtual machine by the Virtual Machine Manager interface of libvirtd.
16. virtual machine batch creation method according to claim 7, characterized in that
After virtual machine initialization injection, comprising:
Whether confirmation virtual machine initializes success;
If so, updating virtual machine state is to create successfully;
Initialization task is completed if not then executing by qemu-agent and presetting script in virtual machine os.
17. a kind of virtual machine batch creates system, characterized in that include:
Acquisition unit obtains the attribute information with physical machine in cluster;
Physical machine screening unit, the configuration information of attribute information and virtual robot arm to be created based on physical machine, to same cluster object Reason machine is screened;
Virtual robot arm to be created is distributed to the target physical machine filtered out by creating unit, executes the batch creation of virtual robot arm Operation re-executes current fail step during creation if creating failure.
18. a kind of virtual machine batch creates equipment, characterized in that the computer-readable medium including being stored with computer program, Described program is run for executing:
S1, obtain with physical machine in cluster attribute information;
The configuration information of S2, the attribute information based on physical machine and virtual robot arm to be created screen same cluster physical;
S3, virtual robot arm to be created is distributed to the target physical machine filtered out, executes the batch creation operation of virtual robot arm, if Creation unsuccessfully thens follow the steps S4;
S4, current fail step during creation is re-executed.
CN201710826123.4A 2017-09-14 2017-09-14 A kind of virtual machine batch creation method, system and equipment Pending CN109508223A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710826123.4A CN109508223A (en) 2017-09-14 2017-09-14 A kind of virtual machine batch creation method, system and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710826123.4A CN109508223A (en) 2017-09-14 2017-09-14 A kind of virtual machine batch creation method, system and equipment

Publications (1)

Publication Number Publication Date
CN109508223A true CN109508223A (en) 2019-03-22

Family

ID=65744438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710826123.4A Pending CN109508223A (en) 2017-09-14 2017-09-14 A kind of virtual machine batch creation method, system and equipment

Country Status (1)

Country Link
CN (1) CN109508223A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306373A (en) * 2019-07-31 2021-02-02 深信服科技股份有限公司 Cluster capacity expansion method and system, electronic equipment and storage medium
CN112596825A (en) * 2020-11-26 2021-04-02 新华三大数据技术有限公司 Cloud desktop starting method and device
CN112732401A (en) * 2020-12-29 2021-04-30 深圳前海微众银行股份有限公司 Virtual machine resource allocation method, system, device and medium
CN113138837A (en) * 2021-04-22 2021-07-20 康键信息技术(深圳)有限公司 Virtual machine installation method, device, equipment and storage medium based on work order information

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981889A (en) * 2012-11-02 2013-03-20 曙光云计算技术有限公司 Virtual machine creating method and device for virtual machine creation
CN103067425A (en) * 2011-10-20 2013-04-24 ***通信集团公司 Creation method of virtual machine, management system of virtual machine and related equipment thereof
CN103797462A (en) * 2013-10-23 2014-05-14 华为技术有限公司 Method, system, and device for creating virtual machine
US20150277952A1 (en) * 2014-03-31 2015-10-01 Vmware, Inc. Rapid creation and reconfiguration of virtual machines on hosts

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067425A (en) * 2011-10-20 2013-04-24 ***通信集团公司 Creation method of virtual machine, management system of virtual machine and related equipment thereof
CN102981889A (en) * 2012-11-02 2013-03-20 曙光云计算技术有限公司 Virtual machine creating method and device for virtual machine creation
CN103797462A (en) * 2013-10-23 2014-05-14 华为技术有限公司 Method, system, and device for creating virtual machine
US20150277952A1 (en) * 2014-03-31 2015-10-01 Vmware, Inc. Rapid creation and reconfiguration of virtual machines on hosts

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306373A (en) * 2019-07-31 2021-02-02 深信服科技股份有限公司 Cluster capacity expansion method and system, electronic equipment and storage medium
CN112306373B (en) * 2019-07-31 2024-05-31 深信服科技股份有限公司 Cluster capacity expansion method and system, electronic equipment and storage medium
CN112596825A (en) * 2020-11-26 2021-04-02 新华三大数据技术有限公司 Cloud desktop starting method and device
CN112596825B (en) * 2020-11-26 2022-04-01 新华三大数据技术有限公司 Cloud desktop starting method and device
CN112732401A (en) * 2020-12-29 2021-04-30 深圳前海微众银行股份有限公司 Virtual machine resource allocation method, system, device and medium
CN113138837A (en) * 2021-04-22 2021-07-20 康键信息技术(深圳)有限公司 Virtual machine installation method, device, equipment and storage medium based on work order information

Similar Documents

Publication Publication Date Title
US11880679B2 (en) System and method for supporting patching in a multitenant application server environment
US10394550B2 (en) System and method for supporting patching in a multitenant application server environment
KR101970839B1 (en) Replaying jobs at a secondary location of a service
EP3198426B1 (en) System and method for transaction recovery in a multitenant application server environment
US8364643B2 (en) Method and system thereof for restoring virtual desktops
CN109508223A (en) A kind of virtual machine batch creation method, system and equipment
US10445186B1 (en) Associating a guest application within a virtual machine to create dependencies in backup/restore policy
US20170322826A1 (en) Setting support program, setting support method, and setting support device
CN104750573B (en) The global coherency backup-and-restore method of distributed data system back end
US20070101328A1 (en) Sequencing a single task sequence across multiple operating environments
CN106445733A (en) KVM virtualization-based agency mode-free backup method and system
US10055445B2 (en) Transaction processing method and apparatus
CN104793981B (en) A kind of online snapshot management method and device of cluster virtual machine
US11080909B2 (en) Image layer processing method and computing device
WO2023111910A1 (en) Rolling back database transaction
CN110543385A (en) Virtual backup method and virtual backup restoration method
CN113032107B (en) Resource management method, device and system of cloud database
CN114138563A (en) Method for backing up and restoring Hyper-V virtual machine
CN113419743B (en) Comprehensive application script deployment method, device, equipment and storage medium
CN116360800B (en) Deployment method and device of code branching environment and electronic equipment
CN116974696A (en) Online migration method and device for stateful Pod in Kubernetes cluster

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