A kind of infosystem quick deployment method based on virtual computation environmentalTechnical field
The invention belongs to resource virtualizing technique field, be specifically related to a kind of infosystem quick deployment method based on virtual computation environmental.
Background technology
At present, Intel Virtualization Technology is more and more extensive in the application of IT field.Along with the widespread deployment of multiple nucleus system, cluster, grid and cloud computing in recent years, the advantage of Intel Virtualization Technology in business application embodies day by day, not only reduce IT cost, but also strengthened security of system and reliability, during virtualized concept is also deep into gradually the daily work of people and lives.
The virtual platform Intel Virtualization Technology that mainly refers to that we are usually said, by using control program (Control Program, be also referred to as Virtual Machine Monitor or Hypervisor), hide the real physical characteristics of specific calculation platform, for user provides computing environment (being called virtual machine) that is abstract, unified, simulation.The operating system of moving in virtual machine is called as Client OS (Guest OS), and the operating system of operation monitor of virtual machine is called as host operating system (Host OS).We are referred to as host computer system the real system of operation virtual machine.Such virtual machine running environment, is called virtual computation environmental.
By template rapid deployment virtual machine, it is one of advantage using virtual computing technique.The hardware (as virtual cpu, virtual memory, virtual disk etc.) of virtual machine all simulates out by Intel Virtualization Technology, and wherein virtual disk itself is a file on physical host, is known as virtual machine disk mirroring file.So-called virtual machine template is exactly the virtual machine image file that basic operating system has been installed.In the time that needs are disposed new virtual machine, existing template can be copied, generate new virtual machine image file, then use this image file to start virtual machine.By such mode, in newly-generated virtual machine, install basic operating system, do not need to reuse CD and install, greatly improve the deployment speed of virtual machine.
But, in general virtual machine template, only comprise basic operating system and partial common software (as Java Runtime Environment, middleware etc.), the functional software that inclusion information system need to not used.Due to the function difference that virtual machine will be realized, the equal reason of residing running environment, needs the software of installation different in virtual machine, need to, in the time disposing virtual machine, revise flexibly as required.Like this in the time offering information system environment, still need to be by the manual mounting software of keeper, complicated operation, wastes time and energy, the object that cannot realize infosystem rapid deployment and offer fast.That is to say, at present general virtual computing technique, template dispositions method can only solve the rapid deployment of virtual machine basic operating system, cannot solve the rapid deployment problem of application software.
In the time that reality is used virtual computation environmental, sometimes need to dispose many complementary virtual machines, form a business unit, jointly realize the function of infosystem.In this case, the application software between many virtual machines need to interconnect, and the deployment of virtual machine and application software and debugging work load and difficulty all can increase greatly, also leap ahead greatly of the time of deployment.
Therefore, need a kind of method of offering fast virtual service unit of development badly, the workload while reducing to offer, and shorten and offer the time.
Summary of the invention
Technical matters to be solved by this invention is, for above-mentioned deficiency, provides a kind of on the basis of existing resource Intel Virtualization Technology, meets the quick deployment method of offering fast the required infosystem of business unit under virtual computation environmental.
The technical solution adopted in the present invention is:
A kind of infosystem quick deployment method based on virtual computation environmental, comprise that running environment preparation, prediction scheme analysis, scheme forming and prediction scheme dispose four parts, running environment is prepared as whole business unit rapid deployment provides basic running environment to support, analyze described configuration information according to prediction scheme and carry out scheme forming, to the prediction scheme audit generating, according to the prediction scheme generating, in basic running environment, extract and initiate prediction scheme after the described all kinds of resources of configuration information and dispose; Wherein, running environment prepares to comprise template base and prediction scheme storehouse; Prediction scheme is a description document, describes the configuration information of business unit, adopts xml file layout to represent, adopts key-value (key-value) to define its main configuration information; Scheme forming comprises that prediction scheme is examined, prediction scheme is pre-configured, prediction scheme checking; Prediction scheme is disposed and is comprised according to carrying out the template of prediction scheme to system call and carry out initial configuration and encapsulation with application program, carry out communication prediction scheme environment is carried out to robotization configuration according to the software configuration item in running environment configured list with a section server.
Described running environment prepares to comprise that template base and prediction scheme storehouse, described template base comprise required all templates in deployment business unit operating environment, and template style has unitarity; The prediction scheme after all deployment success is preserved in described prediction scheme storehouse.
The described main configuration information of prediction scheme analysis comprises: business unit essential information, running environment information (software build-in services device address etc.), each virtual machine characteristic (operating system version, application software list to be disposed) and configuration information (network address etc.).
Described prediction scheme audit refers to examine according to the descriptor of required establishment prediction scheme after the available resources situation of basic environment and prediction scheme analysis; The configuration of described prediction scheme refers to by carrying out prediction scheme according to prediction scheme descriptor after audit pre-configured; The checking of described prediction scheme refer to verify existing system environment can support this prediction scheme operation and all kinds of dependences of application program whether correct.
According to carrying out the step that prediction scheme carries out initial configuration and encapsulation to system call template and application program be:
(1), according to the prediction scheme generating, call the template of template base in basic environment;
(2) launch template, implant initial configuration program and configuration file;
(3) template is encapsulated again.
Carrying out with section server the step that communication carries out robotization configuration to prediction scheme environment according to the software configuration item in running environment configured list is:
(1) system is carried out real-time monitoring to whole constructive process;
(2), according to software configuration item requirement, download software installation kit from section server;
(3) robotization configuration installation environment, completes prediction scheme and disposes.
The invention has the beneficial effects as follows:
Realize the robotization of software in virtual machine and disposed, improved deployment speed and the automatization level of infosystem.
Accompanying drawing explanation
Fig. 1 is scheme forming process flow diagram;
Fig. 2 is that prediction scheme is disposed process flow diagram.
Embodiment
Below in conjunction with accompanying drawing, a kind of infosystem quick deployment method based on virtual computation environmental provided by the invention is introduced:
A kind of infosystem quick deployment method based on virtual computation environmental, it is characterized in that: comprise that running environment preparation, prediction scheme analysis, scheme forming and prediction scheme dispose four parts, running environment is prepared as whole business unit rapid deployment provides basic running environment to support, analyze described configuration information according to prediction scheme and carry out scheme forming, to the prediction scheme audit generating, according to the prediction scheme generating, in basic running environment, extract and initiate prediction scheme after the described all kinds of resources of configuration information and dispose; Wherein, running environment prepares to comprise template base and prediction scheme storehouse; Prediction scheme analysis is a description document, adopts xml file layout to represent, adopts key-value (key-value) to define its main configuration information; Scheme forming comprises that prediction scheme is examined, prediction scheme is pre-configured, prediction scheme checking; Prediction scheme is disposed and is comprised according to carrying out the template of prediction scheme to system call and carry out initial configuration and encapsulation with application program, carry out communication prediction scheme environment is carried out to robotization configuration according to the software configuration item in running environment configured list with a section server.
2. a kind of infosystem quick deployment method based on virtual computation environmental according to claim 1, it is characterized in that: described running environment prepares to comprise template base and prediction scheme storehouse, described template base comprises disposes required all templates in business unit operating environment, and template style has unitarity; The prediction scheme after all deployment success is preserved in described prediction scheme storehouse.
3. described a kind of infosystem quick deployment method based on virtual computation environmental according to claim 1, is characterized in that: the described main configuration information of prediction scheme analysis comprises: business unit essential information, running environment information, each virtual machine characteristic and configuration information.
4. described a kind of infosystem quick deployment method based on virtual computation environmental according to claim 1, is characterized in that: described prediction scheme audit refers to examine according to the descriptor of required establishment prediction scheme after the available resources situation of basic environment and prediction scheme analysis; The configuration of described prediction scheme refers to by carrying out prediction scheme according to prediction scheme descriptor after audit pre-configured; The checking of described prediction scheme refer to verify existing system environment can support this prediction scheme operation and all kinds of dependences of application program whether correct.
5. a kind of infosystem quick deployment method based on virtual computation environmental according to claim 1, is characterized in that: according to carrying out the step that prediction scheme carries out initial configuration and encapsulation to system call template and application program be:
1. according to the prediction scheme generating, call the template of template base in basic environment;
2. launch template, implant initial configuration program;
3. pair template encapsulates again.
Carrying out with section server the step that communication carries out robotization configuration to prediction scheme environment according to the software configuration item in running environment configured list is:
1. system is carried out real-time monitoring to whole constructive process;
2. according to software configuration item requirement, download software installation kit from section server;
3. robotization configuration installation environment, completes prediction scheme and disposes.
Running environment is prepared: for realizing rapid deployment function based on prediction scheme, in virtual computation environmental, need to have template base and prediction scheme storehouse, and the running environment such as prediction scheme deployment engine.
Prediction scheme is analyzed: prediction scheme refers in virtual computation environmental the obtaining of business unit configuration information requirement, and comprises the requirement such as quantity, configuration, running environment, the application software of needs use of virtual machine.
Scheme forming: according to requirements such as the business unit virtual machine quantity of user's submission, configuration, running environment, system is examined, according to system available resources situation, configuring virtual machine deployment template, and carry out pre-configured to the running environment of network and virtual machine, can the available resources of verification system support the operation of this prediction scheme, and generation can be carried out prediction scheme.
Prediction scheme is disposed: require to formulate prediction scheme according to user, and system call template, expansion template, implantation initial configuration program, and template is encapsulated again.System is monitored in real time to whole constructive process.Finally, by carrying out communication with section server, according to the software configuration item requirement in running environment configured list, download software installation kit from section server, and installation environment is carried out to robotization configuration, configured and can be delivered for use.