CN106406980A - Deployment method and device for virtual machines - Google Patents
Deployment method and device for virtual machines Download PDFInfo
- Publication number
- CN106406980A CN106406980A CN201610805353.8A CN201610805353A CN106406980A CN 106406980 A CN106406980 A CN 106406980A CN 201610805353 A CN201610805353 A CN 201610805353A CN 106406980 A CN106406980 A CN 106406980A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- module
- virtual
- functional module
- submodule
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45562—Creating, deleting, cloning 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)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention provides a deployment method and device for virtual machines. The method comprises the steps of obtaining one or more function modules of a product object; determining configuration files and communication modes of the one or more function modules; establishing one or more virtual machine template packets through adoption of the one or more function modules and the corresponding configuration files and communication modes of the function modules; and when the virtual machines are deployed on a physical machine, deploying the virtual machines through adoption of the one or more virtual machine template packets. According to the embodiment of the method and the device, the function modules are packaged into the independent virtual machine template packets; black boxing is carried out on the function modules by packaging the function modules into the virtual machine template packets; when the virtual machines need to be deployed, the function modules are deployed by selecting the required virtual machine template packets; and in this way, the risk of wrongly installing plug-ins due to the fact that an operator does not know a system can be avoided.
Description
Technical field
The present invention relates to Internet technical field, more particularly to a kind of dispositions method of virtual machine and a kind of virtual machine
Deployment device.
Background technology
At present, Intel Virtualization Technology is more and more extensive in the application of Internet technical field.With multiple nucleus system in recent years, collection
The widespread deployment of group, grid and cloud computing, advantage in business application for the Intel Virtualization Technology increasingly embodies, and not only reduces into
This, and also enhance security of system and reliability, virtualized concept is also gradually deep into the daily work of people and life
In work.
The hardware (such as virtual cpu, virtual memory, virtual disk etc.) of virtual machine can simulate out by Intel Virtualization Technology
, wherein virtual disk is a file on physical host in itself, is known as magnetic disk of virtual machine image file.So-called virtual machine
Template is it is simply that be mounted with the virtual machine image file of basic operating system.When needing to dispose new virtual machine, can be
Existing template is replicated, and generates new virtual machine image file, then starts virtual machine using this image file.Pass through
Such mode, in newly-generated virtual machine, has installed basic operating system it is not necessary to reuse installation, greatly
Improve greatly the deployment speed of virtual machine.
However, in actually used virtual computation environmental it is sometimes desirable to the deployment complementary virtual machine of multiple stage, forming one
Individual business unit, realizes the function of information system jointly.In this case, need to interconnect between multiple stage virtual machine so that
The deployment of virtual machine and debugging work load and difficulty all can greatly increase, and the time of deployment also can increase significantly.
Further, since internet industry personnel change comparatively fast, bulk items lead to virtual machine module work(due to transition issue
Energy, programming details are unmanned to be understood.Although checking that code can tackle the problem at its root by artificial Review, consumption
When, laborious, for some emergencies and inapplicable.
Content of the invention
In view of the above problems it is proposed that the embodiment of the present invention is to provide one kind to overcome the problems referred to above or at least in part
The deployment device of the dispositions method of a kind of virtual machine that solves the above problems and accordingly a kind of virtual machine.
In order to solve the above problems, the embodiment of the invention discloses a kind of dispositions method of virtual machine, including:
Obtain product object one or more functions module;
Determine one or more of functional module configuration files and communication mode respectively;
Using one or more of functional modules, and described functional module respective profiles and communication mode create
One or more virtual machine template bags;
When virtual machine is disposed on physical machine, carry out the portion of virtual machine using one or more of virtual machine template bags
Administration.
Preferably, described employing one or more functions module, and described functional module respective profiles and communication
The step that mode creates one or more virtual machine template bags includes:
Create one or more initial virtual machines;
Build the basic environment of one or more of initial virtual machines according to described configuration file;
By described functional module be mounted respectively to described in build in the one or more initial virtual machines after basic environment;
One or more initial virtual machines after installation function module are packaged as virtual machine template bag;
Communication mode according to described functional module adds corresponding communication in one or more of virtual machine template bags
Parameter.
Preferably, described when in physical machine dispose virtual machine when, entered using one or more of virtual machine template bags
The step of the deployment of row virtual machine includes:
LVM is installed on physical machine;
Described physical machine arranges memory space, and based on establishment logical volume on described memory space;
One or more of virtual machine template bag solutions are pressed on described logical volume;
On described logical volume, the virtual machine template based on decompression creates virtual machine;
Determine whether virtual machine supports reverse proxy based on messaging parameter;
If so, then to the one or more virtual machine setting reverse proxy entrances supporting reverse proxy.
Preferably, also include:
Monitoring plug-in unit is installed on physical machine;
When described monitoring plug-in unit monitors that the virtual machine template based on decompression creates virtual machine failure in described logical volume,
Destroy described virtual machine.
Preferably, methods described also includes:
Receive the external request for one or more of virtual machines, described external request in reverse proxy porch
Including target position information;
Based on described target position information, described external request is forwarded in corresponding virtual machine.
The embodiment of the invention also discloses a kind of deployment device of virtual machine, including:
Functional module acquisition module, for obtaining product object one or more functions module;
Configuration file determining module, for determining one or more of functional module configuration files and communication party respectively
Formula;
Virtual machine template bag creation module, for using one or more of functional modules, and described functional module
Respective profiles and communication mode create one or more virtual machine template bags;
Deploying virtual machine module, for when disposing virtual machine in physical machine, using one or more of virtual machines
Template bag carries out the deployment of virtual machine.
Preferably, described virtual machine template bag creation module includes:
Initial virtual machine creates submodule, for creating one or more initial virtual machines;
Basic environment builds submodule, for building one or more of initial virtual machines according to described configuration file
Basic environment;
Functional module installs submodule, for building after basic environment described in being mounted respectively to described functional module
In individual or multiple initial virtual machine;
Initial virtual machine packing submodule, for being packaged as the one or more initial virtual machines after installation function module
Virtual machine template bag;
Messaging parameter adds submodule, for the communication mode according to described functional module one or more of virtual
Machine template bag adds corresponding messaging parameter.
Preferably, described deploying virtual machine module includes:
LVM installs submodule, for installing LVM in physical machine;
Establishing logical volume submodule, for arranging memory space, and based on described memory space in described physical machine
Create logical volume;
Virtual machine template bag decompresses submodule, for one or more of virtual machine template bag solutions are pressed on described logic
On volume;
Virtual machine creating submodule, creates virtual machine for the virtual machine template based on decompression on described logical volume;
Based on messaging parameter, reverse proxy determination sub-module, for determining whether virtual machine supports reverse proxy;If supporting
Reverse proxy, then call reverse proxy entrance setting submodule;
Reverse proxy entrance arranges submodule, for arranging reverse generation to the one or more virtual machines supporting reverse proxy
Reason entrance.
Preferably, also include:
Module installed by monitoring plug-in unit, for installing monitoring plug-in unit in physical machine;
Virtual machine destroys module, for monitoring the virtual machine mould based on decompression in described logical volume when described monitoring plug-in unit
When plate creates virtual machine failure, destroy described virtual machine.
Preferably, methods described also includes:
External request receiver module, for receiving for one or more of virtual machines in reverse proxy porch
External request, described external request includes target position information;
External request forwarding module, for being forwarded to corresponding void based on described target position information by described external request
In plan machine.
The embodiment of the present invention includes advantages below:
For when product object completes, each functional module for product object divides the embodiment of the present invention,
And determine corresponding configuration file and communication mode for each functional module, then it is based on functional module again, and function mould
The corresponding configuration file of block and communication mode create virtual machine template bag, when needing to dispose virtual machine, can be according to creating
Virtual machine template bag carry out the deployment of virtual machine.In the embodiment of the present invention, each functional module is packaged as independent virtual machine
Template bag, makes each functional module black box by each functional module is packaged as virtual machine template bag, when needs are carried out
During deploying virtual machine, required virtual machine template bag is selected to carry out the deployment of each functional module, as such, it is possible to evade because of operation
Personnel do not know about the risk of wrongly installed plug-in unit to system.Between the functional module of the embodiment of the present invention, COM1 is adjustable, to ensure work(
After energy module is installed, system can normally be run.
Brief description
Fig. 1 is a kind of flow chart of steps of the dispositions method embodiment of virtual machine of the present invention;
Fig. 2 is the schematic diagram that in a kind of physical machine of the present invention, memory space uses;
Fig. 3 is a kind of virtual machine reverse proxy connection diagram of the present invention;
Fig. 4 is the virtual machine reverse proxy connection diagram after a kind of interpolation Rule of judgment of the present invention;
Fig. 5 is the structural representation of virtual machine in a kind of physical machine of the present invention;
Fig. 6 is a kind of packing process schematic diagram of functional module of the present invention;
Fig. 7 is a kind of schematic diagram packed by different level of functional module of the present invention;
Fig. 8 is a kind of structured flowchart of the deployment device embodiment of virtual machine of the present invention.
Specific embodiment
Understandable for enabling the above objects, features and advantages of the present invention to become apparent from, below in conjunction with the accompanying drawings and specifically real
The present invention is further detailed explanation to apply mode.
The embodiment of the present invention is based on xen virtualized modularization deployment scheme it is therefore intended that system is made black box, fortune
No longer it is concerned about the relation between each functional module of internal system during dimension deployment, only consider the use of overall hardware resource, save
Human time.Meanwhile, be also convenient for work handover, shorten the follow-up systematic learning cycle taking over personnel, can quick left-hand seat, beginning
Work.One of core idea of the embodiment of the present invention is, difference in functionality module is packaged into independent virtual machine, is converted to virtual
Machine template bag black box carries out the deployment of modular based on virtual machine template bag.Evaded because of personnel to system not with this
Understand the risk of wrongly installed plug-in unit.Implement premise and be to ensure that the COM1 of functional module in each virtual machine template bag is adjustable, with
After ensureing that virtual machine template bag is installed, system can normally be run.
With reference to Fig. 1, show a kind of flow chart of steps of the dispositions method embodiment of virtual machine of the present invention, specifically permissible
Comprise the steps:
Step 101, obtains product object one or more functions module;
In implementing, product object may refer to software product, and software product can be counted as by a series of
There is the assembly composition of specific function, a series of functional modules can also be broken down into as a complete system, these work(
The institute that interaction between energy module is the formation of system is functional.
When software product completes, each functional module will make a distinction by the embodiment of the present invention according to its system design,
Merge it is ensured that the functional module in a bag is not mutually conflicted.
Step 102, determines one or more of functional module configuration files and communication mode respectively;
The embodiment of the present invention can be planned for each functional module according to the system design of this product object, for example, need
The COM1 of each functional module of product object to be determined, and configuration file file etc., in addition it is also necessary to determine each
The communication mode of functional module, for example whether the forwarding of message can be carried out by reverse proxy.In particular it is required that considering this work(
The basis of energy module uses scene, and the port numbers using.Certainly, these parameters are all can be repaiied according to actual field environment
Change, before or after being packaged as virtual machine template bag.
Step 103, using one or more of functional modules, and described functional module respective profiles and communication
Mode creates one or more virtual machine template bags;
In the configuration file determining each functional module, after the parameter such as COM1, will be according to these parameters by function mould
Block is packaged as a virtual machine template bag.
In one preferred embodiment of the invention, described step 103 can include following sub-step:
Sub-step S11, creates one or more initial virtual machines;
Sub-step S12, builds the basic environment of one or more of initial virtual machines according to described configuration file;
Sub-step S13, by described functional module be mounted respectively to described in build one or more initial after basic environment
In virtual machine;
Sub-step S14, the one or more initial virtual machines after installation function module are packaged as virtual machine template bag;
Sub-step S15, the communication mode according to described functional module adds in one or more of virtual machine template bags
Corresponding messaging parameter.
According to the planning done when product object completes, disposed on a virtual machine.Build initial virtual machine first,
Then on initial virtual machine, building of basic environment is carried out according to configuration file, and functional module is attached to this initial virtual
On machine, finally it is packaged as virtual machine template bag.In embodiments of the present invention, communication ginseng can also be added for virtual machine template bag
Number, enabling quickly know the communication mode of this virtual machine template bag, for example whether supporting reverse proxy, so convenient needs
When carrying out deploying virtual machine, operating personnel can quickly obtain the communication mode of the functional module of virtual machine template bag.
It should be noted that the packing process of the virtual machine template bag of the embodiment of the present invention should be when product object completes
Carry out in time, to ensure being absolutely correct of virtual machine template bag.So subsequently can take this as the standard when needing and disposing virtual machine.
In embodiments of the present invention, the setting of variable element can be carried out for virtual machine template bag, the setting of variable element
Put and use can virtual machine template bag to dispose the mistake of virtual machine in the packing process of virtual machine template bag or subsequently
Journey.
Specifically, variable element refer to can with building that environment is different and different all kinds of parameters, including equipment itself,
Network environment etc. must be with actual corresponding parameter.
System level:CPU, internal memory, hard disk, IP address.
Service layer:Communication parameter configuration, for the virtual machine template bag that can add reverse proxy, passes through reversely without exception
Agency carries out message forwarding;Cannot interpolation reverse proxy virtual machine template bag, individually treat, i.e. this kind of virtual machine template
Independent deployment carried out by bag.
In the virtual machine template bag of the embodiment of the present invention, each functional module is installed, is capable of based on this functional module
Different functions.In the virtual machine template bag of the embodiment of the present invention, not only contain basic operating system and partial common software
(as basic running environment, middleware etc.), also comprises the functional module of needs use.It is well known that, when disposing virtual machine
Need function to be mounted different, and the embodiment of the present invention dispose virtual machine template bag when, already installed with the work(of system
Energy module, therefore reduce the deployment time of virtual machine.
Step 104, when disposing virtual machine in physical machine, carries out void using one or more of virtual machine template bags
The deployment of plan machine.
In one preferred embodiment of the invention, described step 104 can include following sub-step:
Sub-step S21, installs LVM in physical machine;
Sub-step S22, arranges memory space in described physical machine, and based on establishment logical volume on described memory space;
Sub-step S23, one or more of virtual machine template bag solutions are pressed on described logical volume;
Sub-step S24, on described logical volume, the virtual machine template based on decompression creates virtual machine;
Based on messaging parameter, sub-step S25, determines whether virtual machine supports reverse proxy, if so, then execute sub-step
S26;
Sub-step S26, to the one or more virtual machine setting reverse proxy entrances supporting reverse proxy.
The virtualization of xen when the deployment needing to carry out virtual machine, can be carried out in server.Xen is a virtualization
Software, xen supports without special hardware, just can reach high performance virtualization.
The deploying virtual machine of the embodiment of the present invention is carried out by the order of xen.For example, create new main frame:xl create
Host-confg file.
Specifically, on the server LVM (LVM, Logical Volume Manager) is installed first, makes
Obtain server to support to create logical volume.LVM is a kind of mechanism that disk partition is managed, and LVM is built upon hard disk and divides
A logical layer on area, to improve the flexibility of disk partition management.Magnetic that can easily in management server by LVM
Disk subregion.
The embodiment of the present invention prepares memory space on the server, and creates one or many on ready memory space
Individual logical volume, afterwards virtual machine template bag just can decompress on newly-built logical volume, complete the establishment of virtual machine.Wherein,
The memory space using for the virtual machine of each logical volume in physical machine, is referred to shown in Fig. 2.
The embodiment of the present invention, for the virtual machine that can forward message by reverse proxy, will be these virtual machines in front end
The unified reverse proxy entrance of setting, comes if there are external request, then will receive in reverse proxy entrance first, Ran Houzai
Operated by the distribution that reverse proxy entrance to carry out external request, external request is forwarded on target virtual machine.
In one preferred embodiment of the invention, described method can also comprise the steps:
Receive the external request for one or more of virtual machines, described external request in reverse proxy porch
Including target position information;
Based on described target position information, described external request is forwarded in corresponding virtual machine.
With reference to shown in Fig. 3, it is likely that the virtual robot arm of some serials request is combined in one in creating virtual machine process
Rise, now in order to ensure not interfereing with each other between each virtual machine, different port numbers will necessarily be set as, outside next to receive respectively
Request.It is appreciated that virtual machine so certainly will be caused can not to be freely combined.Therefore be virtual in embodiments of the present invention
Machine adds reverse proxy in front end.
With reference to shown in Fig. 4, the embodiment of the present invention is provided with the distribution operation that reverse proxy interface makes requests on, by reverse
Agency judges for request to be distributed to where.Specifically, each virtual machine is deployed with reverse proxy, is sent to the institute of virtual machine
Have request all with reverse proxy as entrance, port resource can be saved it is often more important that, rear end is write to the service of dead end mouth,
To a certain degree can be shunted by reverse proxy.
When the entrance in reverse proxy receives the external request of request end transmission, according to the domain carrying in external request
The target position informations such as name, port and IP address, corresponding external request classification, then it is distributed to the corresponding virtual machine in rear end again
In.Arranged by reverse proxy, solve the problems, such as virtual machine restructuring so that the embodiment of the present invention becomes for the deployment of virtual machine
Must standardize, liberalization.
In one preferred embodiment of the invention, described method can also comprise the steps:
Monitoring plug-in unit is installed on physical machine;
When described monitoring plug-in unit monitors that the virtual machine template based on decompression creates virtual machine failure in described logical volume,
Destroy described virtual machine.
The embodiment of the present invention can install monitoring plug-in unit during the installation and deployment of virtual machine.Once in virtual machine
The machine of delaying occurs during installation and deployment, or when the interruption of business unknown cause leads to the failure of virtual machine installation and deployment, Ke Yizhi
Pin is ruined virtual machine and is rebuild one.Because the empty machine of xen is when setting up, there is no particular/special requirement for storage device, as long as just having
OK, you can be rebuild using original logical volume, and data will not be lost.
With reference to Fig. 5, from physical layer (physical machine), the functional module in virtual machine keeps one in principle
Virtual machine one functional module, with the flexibility of assurance function block combiner.Combine (virtual-1, virtual- in virtual machine
2 ... virtual-n) in each virtual machine functional module, all message will be forwarded by reverse proxy, end can be saved
Mouth resource, when receiving the request that outside is come, corresponding virtual by being forwarded to according to the target position information carrying in request
The functional module of machine.
It should be noted that the position of reverse proxy can be arranged on virtual machine it is also possible to arrange in physical machine, specifically
Set-up mode depends on external interface and arranges.For example, if providing external network access using physical machine, then can be by
Reverse proxy is arranged in physical machine, if being divided into multiple network interfaces, then just reverse proxy can be arranged on virtual machine
On, arrange according to demand in actual applications, the embodiment of the present invention is not any limitation as to this.
For when product object completes, each functional module for product object divides the embodiment of the present invention,
And determine corresponding configuration file and communication mode for each functional module, then it is based on functional module again, and function mould
The corresponding configuration file of block and communication mode create virtual machine template bag, when needing to dispose virtual machine, can be according to creating
Virtual machine template bag carry out the deployment of virtual machine.In the embodiment of the present invention, each functional module is packaged as independent virtual machine
Template bag, makes each functional module black box by each functional module is packaged as virtual machine template bag, when needs are carried out
During deploying virtual machine, required virtual machine template bag is selected to carry out the deployment of each functional module, as such, it is possible to evade because of operation
Personnel do not know about the risk of wrongly installed plug-in unit to system.Between the functional module of the embodiment of the present invention, COM1 is adjustable, to ensure work(
After energy module is installed, system can normally be run.
In order that those skilled in the art more fully understand the embodiment of the present invention, virtual below for the embodiment of the present invention
The packing of machine template bag illustrates.
With reference to Fig. 6, the process of each functional module packing of system can be summarized as:System modular, operating system
Virtualization, point functional module carries out the deployment of virtual machine, and the communication mode determining functional module is (for example whether support reverse generation
Reason), it is installed to the functional module packing of virtual machine the most at last, so far complete the manufacturing process for virtual machine template bag.When need
When carrying out deploying virtual machine, related personnel quickly can be disposed using these virtual machine template bags.
It is to pack by different level for functional module in the embodiment of the present invention, be specifically referred to shown in Fig. 7:
System level is packed:Comprise the tar compressed package of basic environment.
Service layer is packed:After the completion of service deployment, the tar compressed package of making.
Whole system is packed:According to actual field environment, on the basis of service layer packing, change relevant parameter, make
Compressed package has the attribute of directly transplanting.
This with different levels packing manner of the embodiment of the present invention is so that the functional module of virtual machine is from developing deployment, respectively
The related personnel in individual stage can find the template bag being adapted to itself use, and acceleration environment builds, simplify that to build exploitation preposition
The step of environment, ensures the reproducibility operating simultaneously, no matter who, all can participate in actual deploying virtual machine after simple training
Work.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of action group
Close, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because according to
According to the embodiment of the present invention, some steps can be carried out using other orders or simultaneously.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, the involved action not necessarily present invention is implemented
Example is necessary.
With reference to Fig. 8, show a kind of structured flowchart of the deployment device embodiment of virtual machine of the present invention, specifically can wrap
Include as lower module:
Functional module acquisition module 201, for obtaining product object one or more functions module;
Configuration file determining module 202, for determining one or more of functional module configuration files and communication respectively
Mode;
Virtual machine template bag creation module 203, for using one or more of functional modules, and described function mould
Block respective profiles and communication mode create one or more virtual machine template bags;
In one preferred embodiment of the invention, described virtual machine template bag creation module 203 can include following son
Module:
Initial virtual machine creates submodule, for creating one or more initial virtual machines;
Basic environment builds submodule, for building one or more of initial virtual machines according to described configuration file
Basic environment;
Functional module installs submodule, for building after basic environment described in being mounted respectively to described functional module
In individual or multiple initial virtual machine;
Initial virtual machine packing submodule, for being packaged as the one or more initial virtual machines after installation function module
Virtual machine template bag;
Messaging parameter adds submodule, for the communication mode according to described functional module one or more of virtual
Machine template bag adds corresponding messaging parameter.
Deploying virtual machine module 204, for when disposing virtual machine in physical machine, using one or more of virtual
Machine template bag carries out the deployment of virtual machine.
In one preferred embodiment of the invention, described deploying virtual machine module 204 can include following submodule:
LVM installs submodule, for installing LVM in physical machine;
Establishing logical volume submodule, for arranging memory space, and based on described memory space in described physical machine
Create logical volume;
Virtual machine template bag decompresses submodule, for one or more of virtual machine template bag solutions are pressed on described logic
On volume;
Virtual machine creating submodule, creates virtual machine for the virtual machine template based on decompression on described logical volume;
Based on messaging parameter, reverse proxy determination sub-module, for determining whether virtual machine supports reverse proxy;If supporting
Reverse proxy, then call reverse proxy entrance setting submodule;
Reverse proxy entrance arranges submodule, for arranging reverse generation to the one or more virtual machines supporting reverse proxy
Reason entrance.
In one preferred embodiment of the invention, described device can also be included as lower module:
Module installed by monitoring plug-in unit, for installing monitoring plug-in unit in physical machine;
Virtual machine destroys module, for monitoring the virtual machine mould based on decompression in described logical volume when described monitoring plug-in unit
When plate creates virtual machine failure, destroy described virtual machine.
In one preferred embodiment of the invention, described device can also be included as lower module:
External request receiver module, for receiving for one or more of virtual machines in reverse proxy porch
External request, described external request includes target position information;
External request forwarding module, for being forwarded to corresponding void based on described target position information by described external request
In plan machine.
For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, related
Part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is all described by the way of going forward one by one, what each embodiment stressed be with
The difference of other embodiment, between each embodiment identical similar partly mutually referring to.
Those skilled in the art are it should be appreciated that the embodiment of the embodiment of the present invention can be provided as method, device or calculate
Machine program product.Therefore, the embodiment of the present invention can using complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.And, the embodiment of the present invention can using one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of program code
The form of the computer program implemented.
The embodiment of the present invention is with reference to method according to embodiments of the present invention, terminal device (system) and computer program
The flow chart of product and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or block diagram
In each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or square frame combination.These can be provided
Computer program instructions set to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to produce a machine so that holding by the processor of computer or other programmable data processing terminal equipments
The instruction of row produces for realizing in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame
The device of the function of specifying.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing terminal equipments
So that the instruction being stored in this computer-readable memory produces bag in the computer-readable memory working in a specific way
Include the manufacture of command device, this command device is realized in one flow process of flow chart or multiple flow process and/or one side of block diagram
The function of specifying in frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing terminal equipments so that
Series of operation steps is executed on computer or other programmable terminal equipments to produce computer implemented process, thus
On computer or other programmable terminal equipments, the instruction of execution is provided for realizing in one flow process of flow chart or multiple flow process
And/or the step of the function of specifying in one square frame of block diagram or multiple square frame.
Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art once know base
This creative concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to
Including preferred embodiment and fall into being had altered and changing of range of embodiment of the invention.
Last in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by
One entity or operation are made a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between there is any this actual relation or order.And, term " inclusion ", "comprising" or its any other variant meaning
Covering comprising of nonexcludability, so that include a series of process of key elements, method, article or terminal device not only wrapping
Include those key elements, but also include other key elements being not expressly set out, or also include for this process, method, article
Or the intrinsic key element of terminal device.In the absence of more restrictions, by wanting that sentence "including a ..." limits
It is not excluded that also there is other identical element in process, method, article or the terminal device including described key element in element.
A kind of deployment device to a kind of dispositions method of virtual machine provided by the present invention and virtual machine, is carried out above
It is discussed in detail, specific case used herein is set forth to the principle of the present invention and embodiment, above example
Illustrate that being only intended to help understands the method for the present invention and its core concept;Simultaneously for one of ordinary skill in the art, according to
According to the thought of the present invention, all will change in specific embodiments and applications, in sum, this specification content
Should not be construed as limitation of the present invention.
Claims (10)
1. a kind of dispositions method of virtual machine is it is characterised in that include:
Obtain product object one or more functions module;
Determine one or more of functional module configuration files and communication mode respectively;
Using one or more of functional modules, and described functional module respective profiles and communication mode create one
Or multiple virtual machine template bag;
When virtual machine is disposed on physical machine, carry out the deployment of virtual machine using one or more of virtual machine template bags.
2. method according to claim 1 is it is characterised in that described employing one or more functions module and described
The step of functional module respective profiles and the communication mode one or more virtual machine template bags of establishment includes:
Create one or more initial virtual machines;
Build the basic environment of one or more of initial virtual machines according to described configuration file;
By described functional module be mounted respectively to described in build in the one or more initial virtual machines after basic environment;
One or more initial virtual machines after installation function module are packaged as virtual machine template bag;
Communication mode according to described functional module adds corresponding messaging parameter in one or more of virtual machine template bags.
3. method according to claim 1 and 2 it is characterised in that described when in physical machine dispose virtual machine when, adopt
The step of the deployment that one or more of virtual machine template bags carry out virtual machine includes:
LVM is installed on physical machine;
Described physical machine arranges memory space, and based on establishment logical volume on described memory space;
One or more of virtual machine template bag solutions are pressed on described logical volume;
On described logical volume, the virtual machine template based on decompression creates virtual machine;
Determine whether virtual machine supports reverse proxy based on messaging parameter;
If so, then to the one or more virtual machine setting reverse proxy entrances supporting reverse proxy.
4. method according to claim 3 is it is characterised in that also include:
Monitoring plug-in unit is installed on physical machine;
When described monitoring plug-in unit monitors that the virtual machine template based on decompression creates virtual machine failure in described logical volume, destroy
Described virtual machine.
5. method according to claim 3 is it is characterised in that methods described also includes:
Receive the external request for one or more of virtual machines in reverse proxy porch, described external request includes
Target position information;
Based on described target position information, described external request is forwarded in corresponding virtual machine.
6. a kind of deployment device of virtual machine is it is characterised in that include:
Functional module acquisition module, for obtaining product object one or more functions module;
Configuration file determining module, for determining one or more of functional module configuration files and communication mode respectively;
Virtual machine template bag creation module, for using one or more of functional modules, and described functional module is corresponding
Configuration file and communication mode create one or more virtual machine template bags;
Deploying virtual machine module, for when disposing virtual machine in physical machine, using one or more of virtual machine template
Bag carries out the deployment of virtual machine.
7. device according to claim 6 is it is characterised in that described virtual machine template bag creation module includes:
Initial virtual machine creates submodule, for creating one or more initial virtual machines;
Basic environment builds submodule, for building the basis of one or more of initial virtual machines according to described configuration file
Environment;
Functional module installs submodule, for build described in described functional module is mounted respectively to one after basic environment or
In multiple initial virtual machines;
Initial virtual machine packing submodule, virtual for being packaged as the one or more initial virtual machines after installation function module
Machine template bag;
Messaging parameter adds submodule, for the communication mode according to described functional module in one or more of virtual machine moulds
Plate bag adds corresponding messaging parameter.
8. the device according to claim 6 or 7 is it is characterised in that described deploying virtual machine module includes:
LVM installs submodule, for installing LVM in physical machine;
Establishing logical volume submodule, for arranging memory space in described physical machine, and creates based on described memory space
Logical volume;
Virtual machine template bag decompresses submodule, for one or more of virtual machine template bag solutions are pressed on described logical volume
On;
Virtual machine creating submodule, creates virtual machine for the virtual machine template based on decompression on described logical volume;
Based on messaging parameter, reverse proxy determination sub-module, for determining whether virtual machine supports reverse proxy;If supporting reversely
Agency, then call reverse proxy entrance setting submodule;
Reverse proxy entrance arranges submodule, for entering to the one or more virtual machine setting reverse proxys supporting reverse proxy
Mouthful.
9. device according to claim 8 is it is characterised in that also include:
Module installed by monitoring plug-in unit, for installing monitoring plug-in unit in physical machine;
Virtual machine destroys module, for monitoring the virtual machine template wound based on decompression in described logical volume when described monitoring plug-in unit
When building virtual machine failure, destroy described virtual machine.
10. device according to claim 8 is it is characterised in that methods described also includes:
External request receiver module, for receiving the outside for one or more of virtual machines in reverse proxy porch
Request, described external request includes target position information;
External request forwarding module, for being forwarded to corresponding virtual machine based on described target position information by described external request
In.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610805353.8A CN106406980B (en) | 2016-09-06 | 2016-09-06 | A kind of dispositions method and device of virtual machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610805353.8A CN106406980B (en) | 2016-09-06 | 2016-09-06 | A kind of dispositions method and device of virtual machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106406980A true CN106406980A (en) | 2017-02-15 |
CN106406980B CN106406980B (en) | 2019-11-22 |
Family
ID=57999930
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610805353.8A Active CN106406980B (en) | 2016-09-06 | 2016-09-06 | A kind of dispositions method and device of virtual machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106406980B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106897112A (en) * | 2017-02-23 | 2017-06-27 | 郑州云海信息技术有限公司 | The construction method and device in a kind of virtual machine template storehouse of domain-oriented |
CN107896162A (en) * | 2017-11-08 | 2018-04-10 | 平安科技(深圳)有限公司 | Dispositions method, device, computer equipment and the storage medium of monitoring system |
CN109644223A (en) * | 2016-12-27 | 2019-04-16 | 惠普打印机韩国有限公司 | The operating environment of virtual machine is optimized |
CN109726592A (en) * | 2018-12-31 | 2019-05-07 | 联动优势科技有限公司 | A kind of processing method and processing device of data sandbox |
CN109726593A (en) * | 2018-12-31 | 2019-05-07 | 联动优势科技有限公司 | A kind of implementation method and device of data sandbox |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092650A (en) * | 2013-01-09 | 2013-05-08 | 华中科技大学 | Virtual machine mirror image generating method and device based on software preinstallation in cloud environment |
CN103608773A (en) * | 2011-04-12 | 2014-02-26 | 威睿公司 | Deployment system for multi-node applications |
CN103793242A (en) * | 2013-10-09 | 2014-05-14 | 中国电子设备系统工程公司研究所 | Quick information system deploying method on basis of virtual computing environment |
CN103902347A (en) * | 2012-12-24 | 2014-07-02 | 中国电信股份有限公司 | Deploying method and system of virtual machine system |
CN104407916A (en) * | 2014-12-15 | 2015-03-11 | 北京国双科技有限公司 | Cloning method and device of virtual machine |
CN104636189A (en) * | 2015-02-25 | 2015-05-20 | 哈尔滨工业大学 | Xen-based virtual machine deployment system and Xen-based virtual machine deployment method |
US20150178110A1 (en) * | 2013-12-20 | 2015-06-25 | Vmware, Inc. | State Customization of Forked Virtual Machines |
CN105210326A (en) * | 2014-04-23 | 2015-12-30 | 华为技术有限公司 | Cloud application processing method and application deployment method and relevant apparatus and system |
-
2016
- 2016-09-06 CN CN201610805353.8A patent/CN106406980B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103608773A (en) * | 2011-04-12 | 2014-02-26 | 威睿公司 | Deployment system for multi-node applications |
CN103902347A (en) * | 2012-12-24 | 2014-07-02 | 中国电信股份有限公司 | Deploying method and system of virtual machine system |
CN103092650A (en) * | 2013-01-09 | 2013-05-08 | 华中科技大学 | Virtual machine mirror image generating method and device based on software preinstallation in cloud environment |
CN103793242A (en) * | 2013-10-09 | 2014-05-14 | 中国电子设备系统工程公司研究所 | Quick information system deploying method on basis of virtual computing environment |
US20150178110A1 (en) * | 2013-12-20 | 2015-06-25 | Vmware, Inc. | State Customization of Forked Virtual Machines |
CN105210326A (en) * | 2014-04-23 | 2015-12-30 | 华为技术有限公司 | Cloud application processing method and application deployment method and relevant apparatus and system |
CN104407916A (en) * | 2014-12-15 | 2015-03-11 | 北京国双科技有限公司 | Cloning method and device of virtual machine |
CN104636189A (en) * | 2015-02-25 | 2015-05-20 | 哈尔滨工业大学 | Xen-based virtual machine deployment system and Xen-based virtual machine deployment method |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109644223A (en) * | 2016-12-27 | 2019-04-16 | 惠普打印机韩国有限公司 | The operating environment of virtual machine is optimized |
US10732909B2 (en) | 2016-12-27 | 2020-08-04 | Hewlett-Packard Development Company, L.P. | Optimizing operating environment of virtual machine |
CN106897112A (en) * | 2017-02-23 | 2017-06-27 | 郑州云海信息技术有限公司 | The construction method and device in a kind of virtual machine template storehouse of domain-oriented |
CN107896162A (en) * | 2017-11-08 | 2018-04-10 | 平安科技(深圳)有限公司 | Dispositions method, device, computer equipment and the storage medium of monitoring system |
CN107896162B (en) * | 2017-11-08 | 2020-03-10 | 平安科技(深圳)有限公司 | Deployment method and device of monitoring system, computer equipment and storage medium |
CN109726592A (en) * | 2018-12-31 | 2019-05-07 | 联动优势科技有限公司 | A kind of processing method and processing device of data sandbox |
CN109726593A (en) * | 2018-12-31 | 2019-05-07 | 联动优势科技有限公司 | A kind of implementation method and device of data sandbox |
CN109726592B (en) * | 2018-12-31 | 2021-02-23 | 联动优势科技有限公司 | Data sandbox processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106406980B (en) | 2019-11-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10908926B2 (en) | Plug-in management wrappers | |
US11138030B2 (en) | Executing code referenced from a microservice registry | |
CN110383795B (en) | Server-free cloud management platform based on service graph | |
US11405300B2 (en) | Methods and systems to adjust resources and monitoring configuration of objects in a distributed computing system | |
CN109347663B (en) | Resource visualization arranging method in OpenStack cloud platform | |
CN106406980A (en) | Deployment method and device for virtual machines | |
US9703890B2 (en) | Method and system that determine whether or not two graph-like representations of two systems describe equivalent systems | |
WO2019095936A1 (en) | Method and system for building container mirror image, and server, apparatus and storage medium | |
CN116018795A (en) | Infrastructure processing unit | |
CN110383246A (en) | The independent subset of virtual machine control programmable hardware | |
US20140115161A1 (en) | Method and system for migration of multi-tier virtual application across different clouds hypervisor platforms | |
CN107133083B (en) | Virtual data center resource providing method based on virtualization technology | |
CA2999662C (en) | Cloud resource provisioning using blueprint chaining | |
US9912759B2 (en) | Dynamically generating solution stacks | |
CN105302920A (en) | Optimal management method and system for cloud storage data | |
WO2018001091A1 (en) | Method and device for updating virtualized network function (vnf), and vnf packet | |
CN109067890A (en) | A kind of CDN node edge calculations system based on docker container | |
KR20220042043A (en) | Apparatus, systems, articles of manufacture, and methods for data lifecycle management in an edge environment | |
CN112099917B (en) | Regulation and control system containerized application operation management method, system, equipment and medium | |
CN105912389A (en) | Technique for implementing virtual machine transition system in hybrid cloud environment on basis of data virtualization | |
CN105100127A (en) | Device and method for verifying application deployment topology of cloud computing environment | |
CN109873714B (en) | Cloud computing node configuration updating method and terminal equipment | |
CN111651219A (en) | Method and equipment for managing multi-module project configuration file | |
US20220206864A1 (en) | Workload execution based on device characteristics | |
CN114925644A (en) | Method for verifying logic system design in edge system and edge system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |