CN106406980B - A kind of dispositions method and device of virtual machine - Google Patents

A kind of dispositions method and device of virtual machine Download PDF

Info

Publication number
CN106406980B
CN106406980B CN201610805353.8A CN201610805353A CN106406980B CN 106406980 B CN106406980 B CN 106406980B CN 201610805353 A CN201610805353 A CN 201610805353A CN 106406980 B CN106406980 B CN 106406980B
Authority
CN
China
Prior art keywords
virtual machine
functional module
module
virtual
template packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610805353.8A
Other languages
Chinese (zh)
Other versions
CN106406980A (en
Inventor
朱建坤
敖赢戈
冯庚平
于芝涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Hisense Media Network Technology Co Ltd
Original Assignee
Qingdao Hisense Media Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Priority to CN201610805353.8A priority Critical patent/CN106406980B/en
Publication of CN106406980A publication Critical patent/CN106406980A/en
Application granted granted Critical
Publication of CN106406980B publication Critical patent/CN106406980B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a kind of dispositions method of virtual machine and devices, which comprises obtains product object one or more functions module;One or more of functional module configuration files and communication mode are determined respectively;One or more virtual machine template packets are created using one or more of functional modules and the functional module respective profiles and communication mode;When disposing virtual machine in physical machine, the deployment of virtual machine is carried out using one or more of virtual machine template packets.The packing of each functional module is independent virtual machine template packet in the embodiment of the present invention, make each functional module black box by the way that each functional module is packaged as virtual machine template packet, when needing to carry out deploying virtual machine, virtual machine template packet needed for selection carries out the deployment of each functional module, in this way, the risk for not knowing about wrongly installed plug-in unit to system because of operator can be evaded.

Description

A kind of dispositions method and device of virtual machine
Technical field
The present invention relates to Internet technical fields, the dispositions method and a kind of virtual machine more particularly to a kind of virtual machine Dispose device.
Background technique
Currently, virtualization technology is in Internet technical field using more and more extensive.With multiple nucleus system in recent years, collection The widespread deployment of group, grid and cloud computing, advantage of the virtualization technology in business application are increasingly embodied, are not only reduced into This, and security of system and reliability are also enhanced, the concept of virtualization is also gradually deep into the daily work and life of people In work.
The hardware (such as virtual cpu, virtual memory, virtual disk etc.) of virtual machine can be simulated by virtualization technology come , wherein virtual disk itself is a file on physical host, is known as magnetic disk of virtual machine image file.So-called virtual machine Template is exactly the virtual machine image file for being mounted with basic operating system.It, can be when needing to dispose new virtual machine Existing template is replicated, and new virtual machine image file is generated, and then starts virtual machine using this image file.Pass through Such mode has installed basic operating system in newly-generated virtual machine, does not need to reuse installation, greatly The deployment speed of virtual machine is improved greatly.
However, when actually using virtual computation environmental, it is sometimes desirable to dispose the more virtual machines to interdepend, composition one A business unit, the common function of realizing information system.In this case, it needs to interconnect between more virtual machines, so that The deployment of virtual machine and debugging work load and difficulty can all greatly increase, and the time of deployment can also increase significantly.
Further, since internet industry personnel change comparatively fast, bulk items lead to virtual machine module function 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, consume When, it is laborious, for certain emergencies and be not suitable for.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind A kind of dispositions method of the virtual machine to solve the above problems and a kind of corresponding deployment device of virtual machine.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of dispositions methods of virtual machine, comprising:
Obtain product object one or more functions module;
One or more of functional module configuration files and communication mode are determined respectively;
It is created using one or more of functional modules and the functional module respective profiles and communication mode One or more virtual machine template packets;
When disposing virtual machine in physical machine, the portion of virtual machine is carried out using one or more of virtual machine template packets Administration.
Preferably, described using one or more functions module and the functional module respective profiles and communication Mode creates the step of one or more virtual machine template packets and includes:
Create one or more initial virtual machines;
The basic environment of one or more of initial virtual machines is built according to the configuration file;
The functional module is mounted respectively in the one or more initial virtual machines built after basic environment;
One or more initial virtual machines after installation function module are packaged as virtual machine template packet;
Corresponding communication is added in one or more of virtual machine template packets according to the communication mode of the functional module Parameter.
Preferably, it is described when in physical machine dispose virtual machine when, using one or more of virtual machine template packets into The step of deployment of row virtual machine includes:
Logical Volume Manager is installed in physical machine;
Memory space is set in the physical machine, and is based on creating logical volume on the memory space;
One or more of virtual machine template packet solutions are pressed on the logical volume;
Virtual machine template on the logical volume based on decompression creates virtual machine;
Determine whether virtual machine supports reverse proxy based on messaging parameter;
If so, reverse proxy entrance is arranged to the one or more virtual machines for supporting reverse proxy.
Preferably, further includes:
The installation monitoring plug-in unit in physical machine;
When it is described monitoring plug-in unit monitor the logical volume based on decompression virtual machine template creation virtual machine failure when, Destroy the virtual machine.
Preferably, the method also includes:
The external request for one or more of virtual machines, the external request are received in reverse proxy inlet Including target position information;
The external request is forwarded in corresponding virtual machine based on the target position information.
The embodiment of the invention also discloses a kind of deployment devices of virtual machine, comprising:
Functional module obtains 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 packet creation module, for using one or more of functional modules and the functional module Respective profiles and communication mode create one or more virtual machine template packets;
Deploying virtual machine module is used for when disposing virtual machine in physical machine, using one or more of virtual machines The deployment of template packet progress virtual machine.
Preferably, the virtual machine template packet 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 the configuration file Basic environment;
Functional module installs submodule, for the functional module to be mounted respectively to one built after basic environment In a or multiple initial virtual machines;
Initial virtual machine is packaged submodule, for being packaged as one or more initial virtual machines after installation function module Virtual machine template packet;
Messaging parameter adds submodule, for the communication mode according to the functional module one or more of virtual Machine template packet adds corresponding messaging parameter.
Preferably, the deploying virtual machine module includes:
Logical Volume Manager installs submodule, for installing Logical Volume Manager in physical machine;
Establishing logical volume submodule, for memory space to be arranged in the physical machine, and based on the memory space Create logical volume;
Virtual machine template packet decompresses submodule, for one or more of virtual machine template packet solutions to be pressed on the logic On volume;
Virtual machine creating submodule creates virtual machine for the virtual machine template on the logical volume based on decompression;
Reverse proxy determines submodule, for determining whether virtual machine supports reverse proxy based on messaging parameter;If supporting Reverse proxy then calls reverse proxy entrance that submodule is arranged;
Submodule is arranged in reverse proxy entrance, for reversed generation to be arranged to the one or more virtual machines for supporting reverse proxy Manage entrance.
Preferably, further includes:
It monitors plug-in unit and module is installed, for the installation monitoring plug-in unit in physical machine;
Virtual machine destroys module, for monitoring the virtual machine mould in the logical volume based on decompression when the monitoring plug-in unit When plate creates virtual machine failure, the virtual machine is destroyed.
Preferably, the method also includes:
External request receiving module, for receiving in reverse proxy inlet for one or more of virtual machines External request, the external request include target position information;
External request forwarding module, for the external request to be forwarded to corresponding void based on the target position information In quasi- machine.
The embodiment of the present invention includes following advantages:
The embodiment of the present invention for being divided for each functional module of product object when product object is completed, And corresponding configuration file and communication mode are determined for each functional module, it is then based on functional module and function mould again The corresponding configuration file of block and communication mode create virtual machine template packet, can be according to having created when needing to dispose virtual machine Virtual machine template packet carry out virtual machine deployment.The packing of each functional module is independent virtual machine in the embodiment of the present invention Template packet makes each functional module black box by the way that each functional module is packaged as virtual machine template packet, when needing to carry out When deploying virtual machine, required virtual machine template packet is selected to carry out the deployment of each functional module, in this way, can evade because of operation Personnel do not know about the risk of wrongly installed plug-in unit to system.Communication port is adjustable between the functional module of the embodiment of the present invention, to guarantee function After energy module installation, system can be operated normally.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of the dispositions method embodiment of virtual machine of the invention;
Fig. 2 is the schematic diagram that memory space uses in a kind of physical machine of the invention;
Fig. 3 is a kind of virtual machine reverse proxy connection schematic diagram of the invention;
Fig. 4 is the virtual machine reverse proxy connection schematic diagram after a kind of addition Rule of judgment of the invention;
Fig. 5 is the structural schematic diagram of virtual machine in a kind of physical machine of the invention;
Fig. 6 is a kind of packing process schematic diagram of functional module of the invention;
Fig. 7 is the schematic diagram that a kind of functional module of the invention is packaged by different level;
Fig. 8 is a kind of structural block diagram of the deployment Installation practice of virtual machine of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
The embodiment of the present invention is the modularization deployment scheme based on xen virtualization, it is therefore intended that system is made into black box, is transported The relationship being no longer concerned about between each functional module of internal system when dimension deployment, only considers the use of whole hardware resource, saves Human time.Meanwhile also facilitating work handover, shorten the systematic learning period of subsequent catcher personnel, can quickly go up hand, start Work.One of the core concepts of the embodiments of the present invention is, different function module is packaged into independent virtual machine, is converted to virtual Machine template packet --- black box --- carries out the deployment of modular based on virtual machine template packet.Evaded because of personnel to system not with this Understand the risk of wrongly installed plug-in unit.Implement on condition that guarantee that the communication port of functional module in each virtual machine template packet is adjustable, with After guaranteeing the installation of virtual machine template packet, system can be operated normally.
Referring to Fig.1, a kind of step flow chart of the dispositions method embodiment of virtual machine of the invention is shown, it specifically can be with Include the following steps:
Step 101, product object one or more functions module is obtained;
In the concrete realization, product object can refer to software product, and software product can be counted as by a series of Component composition with specific function, can also be broken down into a series of functional modules as a complete system, these function The institute that interaction between energy module is formed system is functional.
When software product is completed, the embodiment of the present invention will be designed according to its system, each functional module is distinguished, Merge, guarantees that the functional module in a packet does not conflict mutually.
Step 102, one or more of functional module configuration files and communication mode are determined respectively;
The embodiment of the present invention can design according to the system of the product object and each functional module is planned, such as need Communication port and the configuration file file etc. of each functional module of product object are determined, in addition it is also necessary to which determination is 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 the function The basic usage scenario of energy module, and the port numbers used.Certainly, these parameters are all that can be repaired according to actual field environment Change, before or after being packaged as virtual machine template packet.
Step 103, using one or more of functional modules and the functional module respective profiles and communication Mode creates one or more virtual machine template packets;
It, will be according to these parameters by function mould after the configuration file for determining each functional module, the parameters such as communication port Block is packaged as a virtual machine template packet.
In one preferred embodiment of the invention, the step 103 may 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 the configuration file;
It is initial to be mounted respectively to the one or more built after basic environment by sub-step S13 for the functional module In virtual machine;
One or more initial virtual machines after installation function module are packaged as virtual machine template packet by sub-step S14;
Sub-step S15 is added according to the communication mode of the functional module in one or more of virtual machine template packets Corresponding messaging parameter.
According to the planning done when product object is completed, disposed on a virtual machine.Initial virtual machine is built first, Then building for basic environment is carried out according to configuration file in initial virtual machine, and functional module is installed to the initial virtual On machine, it is finally packaged as virtual machine template packet.In embodiments of the present invention, communication ginseng can be also added for virtual machine template packet Number, makes it possible to quickly know the communication mode of the virtual machine template packet, for example whether supporting reverse proxy so that it is convenient to need When carrying out deploying virtual machine, operator can be quickly obtained the communication mode of the functional module of virtual machine template packet.
It should be noted that the packing process of the virtual machine template packet of the embodiment of the present invention should be when product object be completed It carries out in time, to guarantee being absolutely correct for virtual machine template packet.It is subsequent in this way to take this as the standard when needing to dispose virtual machine.
In embodiments of the present invention, the setting of variable element can be carried out for virtual machine template packet, variable element is set Setting can be also possible in the packing process of virtual machine template packet in the subsequent mistake using virtual machine template packet deployment virtual machine Journey.
Specifically, variable element refer to can with build the different and different all kinds of parameters, including equipment of environment itself, Network environment etc. must be the same as practical corresponding parameter.
System level: CPU, memory, hard disk, IP address.
Service layer: communication parameter configuration, for the virtual machine template packet of reverse proxy can be added, without exception by reversed Agency carries out message forwarding;Cannot addition reverse proxy virtual machine template packet, individually treat, i.e., this kind of virtual machine template Packet carries out independent deployment.
Each functional module is installed in the virtual machine template packet of the embodiment of the present invention, can be realized based on the functional module Different functions.In the virtual machine template packet of the embodiment of the present invention, basic operating system and partial common software are not only contained (such as basic running environment, middleware etc.), also comprising needing functional module to be used.It is well known that when disposing virtual machine Need function to be mounted different, and the embodiment of the present invention is already installed with the function of system when disposing virtual machine template packet Energy module, therefore reduce the deployment time of virtual machine.
Step 104, it when disposing virtual machine in physical machine, is carried out using one or more of virtual machine template packets empty The deployment of quasi- machine.
In one preferred embodiment of the invention, the step 104 may include following sub-step:
Sub-step S21, installs Logical Volume Manager in physical machine;
Memory space is arranged in sub-step S22 in the physical machine, and is based on creating logical volume on the memory space;
One or more of virtual machine template packet solutions are pressed on the logical volume by sub-step S23;
Sub-step S24, the virtual machine template on the logical volume based on decompression create virtual machine;
Sub-step S25 determines whether virtual machine supports reverse proxy based on messaging parameter, if so, executing sub-step S26;
Reverse proxy entrance is arranged to the one or more virtual machines for supporting reverse proxy in sub-step S26.
It, can be in the virtualization of server progress xen when needing to carry out the deployment of virtual machine.Xen is a virtualization Software, xen is supported without special hardware, 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, the host that creation is new: xl create Host-confg file.
Specifically, LVM (Logical Volume Manager, Logical Volume Manager) is installed on the server first, makes It obtains server and supports creation logical volume.LVM is a kind of mechanism being managed to disk partition, and LVM is built upon hard disk and divides A logical layer on area, the flexibility of Lai Tigao 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 one or more is created on ready memory space A logical volume, later virtual machine template packet can solution be pressed on newly-built logical volume, complete the creation of virtual machine.Wherein, For the memory space that the virtual machine of logical volume each in physical machine uses, it is referred to shown in Fig. 2.
The embodiment of the present invention will be for that can will be these virtual machines in front end by the virtual machine of reverse proxy forwarding message Unified reverse proxy entrance is set, if there is external request comes, then will receive first in reverse proxy entrance, then again It is operated by reverse proxy entrance to carry out the distribution of external request, external request is forwarded on target virtual machine.
In one preferred embodiment of the invention, the method can also include the following steps:
The external request for one or more of virtual machines, the external request are received in reverse proxy inlet Including target position information;
The external request is forwarded in corresponding virtual machine based on the target position information.
Referring to shown in Fig. 3, in creation virtual machine process, it is likely that combine certain virtual machines serially requested one It rises, at this time in order to guarantee not interfereing with each other between each virtual machine, different port numbers will necessarily be set as, come with receiving outside respectively Request.It is appreciated that being bound to cause virtual machine in this way can not freely be combined.It therefore is in embodiments of the present invention virtual Machine adds reverse proxy in front end.
Referring to shown in Fig. 4, the embodiment of the present invention is provided with the distribution operation that reverse proxy interface makes requests, by reversed Agency judges request where be distributed to.Specifically, it is deployed with reverse proxy on each virtual machine, is sent to the institute of virtual machine There is request all using reverse proxy as entrance, port resource can be saved, it is often more important that, the service of dead end mouth is write for rear end, It can be shunted to a certain degree by reverse proxy.
When the entrance in reverse proxy receives the external request of request end transmission, according to the domain carried in external request The target position informations such as name, port and IP address, corresponding external request classification, are then distributed to the corresponding virtual machine in rear end again In.It is arranged by reverse proxy, solves the problems, such as virtual machine recombination, so that the embodiment of the present invention becomes the deployment of virtual machine It must standardize, liberalization.
In one preferred embodiment of the invention, the method can also include the following steps:
The installation monitoring plug-in unit in physical machine;
When it is described monitoring plug-in unit monitor the logical volume based on decompression virtual machine template creation virtual machine failure when, Destroy the 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 When occurring the interruption of delay machine or business unknown cause during installation and deployment causes virtual machine installation and deployment to fail, Ke Yizhi Outbound ruins virtual machine and rebuilds one.Since the empty machine of xen is when establishing, there is no particular/special requirement for storage equipment, as long as having Row, it can rebuild using original logical volume, and data will not lose.
Referring to Fig. 5, from physical layer (physical machine), the functional module in virtual machine keeps one in principle One functional module of virtual machine, with the flexibility of assurance function block combiner.(virtual-1, virtual- are combined in virtual machine 2 ... virtual-n) in each virtual machine functional module, all will forward message by reverse proxy, end can be saved Mouth resource, it is corresponding virtual by being forwarded to according to the target position information carried in request when receiving the request that outside is come The functional module of machine.
It should be noted that the position of reverse proxy can be set on virtual machine, also it can be set in physical machine, specifically Set-up mode is arranged depending on external interface.For example, it accesses, can incite somebody to action if providing external network using physical machine Reverse proxy is arranged in physical machine, if being divided into multiple network interfaces, reverse proxy can be arranged in virtual machine On, it is arranged according to demand in practical applications, the embodiments of the present invention are not limited thereto.
The embodiment of the present invention for being divided for each functional module of product object when product object is completed, And corresponding configuration file and communication mode are determined for each functional module, it is then based on functional module and function mould again The corresponding configuration file of block and communication mode create virtual machine template packet, can be according to having created when needing to dispose virtual machine Virtual machine template packet carry out virtual machine deployment.The packing of each functional module is independent virtual machine in the embodiment of the present invention Template packet makes each functional module black box by the way that each functional module is packaged as virtual machine template packet, when needing to carry out When deploying virtual machine, required virtual machine template packet is selected to carry out the deployment of each functional module, in this way, can evade because of operation Personnel do not know about the risk of wrongly installed plug-in unit to system.Communication port is adjustable between the functional module of the embodiment of the present invention, to guarantee function After energy module installation, system can be operated normally.
In order to make those skilled in the art more fully understand the embodiment of the present invention, below for the virtual of the embodiment of the present invention The packing of machine template packet is illustrated.
Referring to Fig. 6, the process that each functional module of system is packaged can be summarized are as follows: system modular, operating system Virtualization, the deployment for dividing functional module to carry out virtual machine, determines the communication mode of functional module (for example whether supporting reversed generation Reason), finally the functional module for being installed to virtual machine is packaged, so far completes the manufacturing process for virtual machine template packet.When need When carrying out deploying virtual machine, related personnel can use these virtual machine template packets quickly to dispose.
It is to be packaged by different level for functional module in the embodiment of the present invention, is specifically referred to shown in Fig. 7:
System level is packaged: the tar compressed package comprising basic environment.
Service layer is packaged: after the completion of service deployment, the tar compressed package of production.
Whole system is packaged: being modified relevant parameter on the basis of service layer is packaged according to actual field environment, is made Compressed package has the attribute of directly transplanting.
This with different levels packing manner of the embodiment of the present invention so that the functional module of virtual machine from exploitation to deployment, respectively The related personnel in a stage can find the template packet for being adapted to itself use, and acceleration environment builds, simplifies that build exploitation preposition The step of environment, while guaranteeing the reproducibility of operation, no matter who, all practical deploying virtual machine can be participated in after simple training Work.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented Necessary to example.
Referring to Fig. 8, a kind of structural block diagram of the deployment Installation practice of virtual machine of the invention is shown, specifically can wrap Include following module:
Functional module obtains 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 packet creation module 203, for using one or more of functional modules and the function mould Block respective profiles and communication mode create one or more virtual machine template packets;
In one preferred embodiment of the invention, the virtual machine template packet creation module 203 may 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 the configuration file Basic environment;
Functional module installs submodule, for the functional module to be mounted respectively to one built after basic environment In a or multiple initial virtual machines;
Initial virtual machine is packaged submodule, for being packaged as one or more initial virtual machines after installation function module Virtual machine template packet;
Messaging parameter adds submodule, for the communication mode according to the functional module one or more of virtual Machine template packet adds corresponding messaging parameter.
Deploying virtual machine module 204 is used for when disposing virtual machine in physical machine, using one or more of virtual The deployment of machine template packet progress virtual machine.
In one preferred embodiment of the invention, the deploying virtual machine module 204 may include following submodule:
Logical Volume Manager installs submodule, for installing Logical Volume Manager in physical machine;
Establishing logical volume submodule, for memory space to be arranged in the physical machine, and based on the memory space Create logical volume;
Virtual machine template packet decompresses submodule, for one or more of virtual machine template packet solutions to be pressed on the logic On volume;
Virtual machine creating submodule creates virtual machine for the virtual machine template on the logical volume based on decompression;
Reverse proxy determines submodule, for determining whether virtual machine supports reverse proxy based on messaging parameter;If supporting Reverse proxy then calls reverse proxy entrance that submodule is arranged;
Submodule is arranged in reverse proxy entrance, for reversed generation to be arranged to the one or more virtual machines for supporting reverse proxy Manage entrance.
In one preferred embodiment of the invention, described device can also include following module:
It monitors plug-in unit and module is installed, for the installation monitoring plug-in unit in physical machine;
Virtual machine destroys module, for monitoring the virtual machine mould in the logical volume based on decompression when the monitoring plug-in unit When plate creates virtual machine failure, the virtual machine is destroyed.
In one preferred embodiment of the invention, described device can also include following module:
External request receiving module, for receiving in reverse proxy inlet for one or more of virtual machines External request, the external request include target position information;
External request forwarding module, for the external request to be forwarded to corresponding void based on the target position information In quasi- machine.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
The deployment device of dispositions method to a kind of virtual machine provided by the present invention and a kind of virtual machine above carries out It is discussed in detail, used herein a specific example illustrates the principle and implementation of the invention, above embodiments Illustrate to be merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to According to thought of the invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification It should not be construed as limiting the invention.

Claims (10)

1. a kind of dispositions method of virtual machine characterized by comprising
Obtain the multiple functional modules of product object;
The multiple functional module configuration file and communication mode are determined respectively;
Multiple virtual machines are created using the multiple functional module and the functional module respective profiles and communication mode Template packet;The virtual machine template packet has messaging parameter corresponding with the communication mode, wherein the virtual machine template packet In at least one of comprising the multiple functional module;
When disposing virtual machine in physical machine, carried out using a virtual machine template packet in the multiple virtual machine template packet The deployment of virtual machine.
2. the method according to claim 1, wherein described use multiple functional modules and the function mould Block respective profiles and communication mode create the step of multiple virtual machine template packets and include:
Create multiple initial virtual machines;
The basic environment of the multiple initial virtual machine is built according to the configuration file;
By the installation of at least one of the multiple functional module into the multiple initial virtual machines built after basic environment;
Multiple initial virtual machines after installation function module are packaged as virtual machine template packet;
Corresponding messaging parameter is added in the multiple virtual machine template packet according to the communication mode of the functional module.
3. method according to claim 1 or 2, which is characterized in that it is described when disposing virtual machine in physical machine, it uses A virtual machine template packet in the multiple virtual machine template packet carries out the step of deployment of virtual machine and includes:
Logical Volume Manager is installed in physical machine;
Memory space is set in the physical machine, and is based on creating logical volume on the memory space;
The multiple virtual machine template packet solution is pressed on the logical volume;
Virtual machine template on the logical volume based on decompression creates virtual machine;
Determine whether virtual machine supports reverse proxy based on messaging parameter;
If so, reverse proxy entrance is arranged to the multiple virtual machines for supporting reverse proxy.
4. according to the method described in claim 3, it is characterized by further comprising:
The installation monitoring plug-in unit in physical machine;
When the monitoring plug-in unit monitors to destroy in virtual machine template creation virtual machine failure of the logical volume based on decompression The virtual machine.
5. according to the method described in claim 3, it is characterized in that, the method also includes:
The external request for a virtual machine in the multiple virtual machine, the outside are received in reverse proxy inlet Request includes target position information;
The external request is forwarded in corresponding virtual machine based on the target position information.
6. a kind of deployment device of virtual machine characterized by comprising
Functional module obtains module, for obtaining the multiple functional modules of product object;
Configuration file determining module, for determining the multiple functional module configuration file and communication mode respectively;
Virtual machine template packet creation module, for using the multiple functional module and functional module corresponding configuration text Part and communication mode create multiple virtual machine template packets;The virtual machine template packet has communication corresponding with the communication mode Parameter;Wherein, at least one of the multiple functional module is included in the virtual machine template packet;
Deploying virtual machine module is used for when disposing virtual machine in physical machine, using in the multiple virtual machine template packet One virtual machine template packet carries out the deployment of virtual machine.
7. device according to claim 6, which is characterized in that the virtual machine template packet creation module includes:
Initial virtual machine creates submodule, for creating multiple initial virtual machines;
Basic environment builds submodule, for building the basic environment of the multiple initial virtual machine according to the configuration file;
Functional module installs submodule, builds foundation ring for installing at least one of the multiple functional module to described In multiple initial virtual machines behind border;
Initial virtual machine is packaged submodule, for multiple initial virtual machines after installation function module to be packaged as virtual machine template Packet;
Messaging parameter adds submodule, for the communication mode according to the functional module in the multiple virtual machine template Bao Tian Add corresponding messaging parameter.
8. device according to claim 6 or 7, which is characterized in that the deploying virtual machine module includes:
Logical Volume Manager installs submodule, for installing Logical Volume Manager in physical machine;
Establishing logical volume submodule for memory space to be arranged in the physical machine, and is based on creating on the memory space Logical volume;
Virtual machine template packet decompresses submodule, for the multiple virtual machine template packet solution to be pressed on the logical volume;
Virtual machine creating submodule creates virtual machine for the virtual machine template on the logical volume based on decompression;
Reverse proxy determines submodule, for determining whether virtual machine supports reverse proxy based on messaging parameter;If supporting reversed Agency then calls reverse proxy entrance that submodule is arranged;
Submodule is arranged in reverse proxy entrance, for reverse proxy entrance to be arranged to the multiple virtual machines for supporting reverse proxy.
9. device according to claim 8, which is characterized in that further include:
It monitors plug-in unit and module is installed, for the installation monitoring plug-in unit in physical machine;
Virtual machine destroys module, for monitoring to create in the logical volume based on the virtual machine template of decompression when the monitoring plug-in unit When building virtual machine failure, the virtual machine is destroyed.
10. device according to claim 8, which is characterized in that described device further include:
External request receiving module, it is virtual for one in the multiple virtual machine for being received in reverse proxy inlet The external request of machine, the external request include target position information;
External request forwarding module, for the external request to be forwarded to corresponding virtual machine based on the target position information In.
CN201610805353.8A 2016-09-06 2016-09-06 A kind of dispositions method and device of virtual machine Active CN106406980B (en)

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 CN106406980A (en) 2017-02-15
CN106406980B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180076058A (en) 2016-12-27 2018-07-05 에이치피프린팅코리아 주식회사 Image forming apparatus and method for optimizing operating environment of virtual machine executed in image forming apparatus
CN106897112A (en) * 2017-02-23 2017-06-27 郑州云海信息技术有限公司 The construction method and device in a kind of virtual machine template storehouse of domain-oriented
CN107896162B (en) * 2017-11-08 2020-03-10 平安科技(深圳)有限公司 Deployment method and device of monitoring system, computer equipment and storage medium
CN109726593B (en) * 2018-12-31 2021-02-23 联动优势科技有限公司 Method and device for realizing data sandbox
CN109726592B (en) * 2018-12-31 2021-02-23 联动优势科技有限公司 Data sandbox processing method and device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9015710B2 (en) * 2011-04-12 2015-04-21 Pivotal Software, Inc. Deployment system for multi-node applications
CN103902347B (en) * 2012-12-24 2017-09-29 中国电信股份有限公司 The dispositions method and system of dummy machine system
CN103092650B (en) * 2013-01-09 2015-11-18 华中科技大学 Method and system is generated based on the virtual machine image of software pre-installation under cloud environment
CN103793242B (en) * 2013-10-09 2017-10-27 中国电子设备***工程公司研究所 A kind of information system quick deployment method based on virtual computation environmental
US9477507B2 (en) * 2013-12-20 2016-10-25 Vmware, Inc. State customization of forked virtual machines
WO2015161472A1 (en) * 2014-04-23 2015-10-29 华为技术有限公司 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
CN104636189B (en) * 2015-02-25 2018-03-30 哈尔滨工业大学 Virtual machine deployment system and method based on Xen

Also Published As

Publication number Publication date
CN106406980A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
CN107637042B (en) Custom communication channel for application deployment
CN108600029B (en) Configuration file updating method and device, terminal equipment and storage medium
CN112119374B (en) Selectively providing mutual transport layer security using alternate server names
US10831933B2 (en) Container update system
CN106406980B (en) A kind of dispositions method and device of virtual machine
US11119745B2 (en) Automated deployment of applications
CN109347663B (en) Resource visualization arranging method in OpenStack cloud platform
CN107179879B (en) Method and apparatus for data migration of storage device
US9547564B1 (en) Automated deployment of applications
US10061665B2 (en) Preserving management services with self-contained metadata through the disaster recovery life cycle
CN105912389B (en) The virtual machine (vm) migration system under mixing cloud environment is realized based on data virtualization
US9912759B2 (en) Dynamically generating solution stacks
CN105704188A (en) Deployment method and apparatus of applications and services
CN105095103A (en) Storage device management method and device used for cloud environment
JP2023551841A (en) Migrating complex legacy applications
CN115812298A (en) Block chain management of supply failure
CN116627721A (en) Cloud primary database recovery method, device and storage medium based on hybrid cloud
CN115248692A (en) Device and method for supporting cloud deployment of multiple deep learning framework models
US9021479B2 (en) Enforcing machine deployment zoning rules in an automatic provisioning environment
EP4155942A2 (en) Method and apparatus for load testing, and corresponding storage medium
US10459709B1 (en) Automated deployment of applications
CN116263818A (en) Authorization of service requests in a multi-cluster system
CN109814911A (en) Method, apparatus, computer equipment and storage medium for Manage Scripts program
CN115485677A (en) Secure data replication in a distributed data storage environment
CN117389713B (en) Storage system application service data migration method, device, equipment and medium

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