Summary of the invention
For solving in existing virtual machine platform software management system, the defect of the operation-interface of the virtual machine platform of must predefine supporting, the invention provides a kind of without predefine virtual machine platform operation-interface, the method for can dynamic appending new virtual machine platform.
A kind of dynamic expansion management method of isomerous virtual machine platform, write and be deployed to the system assigned address according to the corresponding module interface of system respectively again by the object module of virtual machine platform, platform management functions module and management function module;
Step is as follows:
A1, system client send the solicited message to virtual machine operations to the system service end;
After B1, system service termination are received solicited message, the information content is analyzed, got respectively virtual machine platform information, virtual machine information and operation information;
C1, system service end are according to virtual machine platform information, and location virtual machine platform type, if system is supported the virtual machine platform of the type, perform step 4; Otherwise prompting makes mistakes and returns to system client;
D1, system service end, according to virtual machine information, are located concrete virtual machine platform and virtual machine, if system is located successfully, perform step 5; Otherwise prompting makes mistakes and returns to system client;
E1, system service end, according to operation information, are carried out concrete operation to virtual machine, if the success of system service end executable operations returns to system client by operating result; Otherwise prompting makes mistakes and returns to system client.
Preferably, described system client and system service end are respectively client and the service end of B/S framework and C/S Framework Software system.
Preferably, virtual machine platform information described in step B1 refers to the unique ID of the overall situation be used to the type that identifies virtual machine platform of system definition.
Preferably, virtual machine information described in step B1 refer to system definition be used to identifying the information of virtual machine, comprise the virtual machine platform ID under the unique ID of the overall situation, virtual machine title, virtual machine type, virtual machine of virtual machine.
Preferably, in step C1, location virtual machine platform type is according to virtual machine platform type I D, in system, searches registered virtual machine platform type, if expression system of success is supported the virtual machine platform of the type.
Preferably, in step D1, concrete virtual machine platform and the virtual machine in location is according to the virtual machine platform ID under virtual machine type and virtual machine, in system, search the platform of concrete this virtual machine of operation, then, according to virtual machine ID and virtual machine title, in system, search concrete virtual machine.
Preferably, described module interface is the general-purpose interface taken out according to virtual machine platform.
The present invention can realize dynamic expansion to the support of isomery virtual machine platform, without the operation that stops software management system, changes without the code to original system; Can support dissimilar virtual machine.
Embodiment
System designs based on dynamic extendible framework, and the module of take is carried out division and the realization of function as unit.System, when operation, can, by the interface that the unique ID of the overall situation searches and access modules defines, be organized the information flow of internal system between each module.System definition module expansion interface and registration service management interface, for the new virtual machine platform of system dynamic expansion provide mechanism.
Under the effect of above-mentioned mechanism, the virtual machine platform that dynamic expansion is new comprises the following steps:
Step 1), according to the virtual machine platform object module interface of system definition, write new virtual machine platform object module.
Step 2), according to the virtual machine platform management function module interface of system definition, write new virtual machine platform management function module.
Step 3), according to the management function of virtual machine module interface of system definition, write new management function of virtual machine module.
Step 4), according to the virtual machine platform register method of system definition, by management interface, above-mentioned 3 modules are deployed to the system assigned address, and revise the virtual machine platform configuration information.
In technique scheme, module refers to the programming unit of system definition, namely meets the set of the computer code of certain condition.Module interface refers to the description of the function that the module of system definition will realize, but does not need the implementation procedure of defined function.
Above-mentioned 3 class interfaces are the general-purpose interfaces to various virtual machine platforms, not for the virtual machine platform of particular type.
System comprises the following steps the management process of certain virtual machine:
Step 1), system client sends the solicited message to virtual machine operations to the system service end.
Step 2), after the system service termination receives solicited message, the information content is analyzed, get respectively virtual machine platform information, virtual machine information and operation information.
Step 3), the system service end is according to virtual machine platform information, location virtual machine platform type.If system is supported the virtual machine platform of the type, perform step 4; Otherwise prompting makes mistakes and returns to system client.
Step 4), the system service end is according to virtual machine information, locates concrete virtual machine platform and virtual machine.If system is located successfully, perform step 5; Otherwise prompting makes mistakes and returns to system client.
Step 5), the system service end is according to operation information, to the concrete operation of virtual machine execution.If the success of system service end executable operations, return to system client by operating result; Otherwise prompting makes mistakes and returns to system client.
Said system client and system service end, refer to respectively client and the service end of B/S framework and C/S Framework Software system.
The described virtual machine platform information of above-mentioned steps 2 refers to the unique ID of the overall situation be used to the type that identifies virtual machine platform of system definition.The definition of employing string format.String length is not limit.
The described virtual machine information of above-mentioned steps 2 refer to system definition be used to identifying the information of virtual machine, comprise the virtual machine platform ID under the unique ID of the overall situation, virtual machine title, virtual machine type, virtual machine of virtual machine.
The described operation information of above-mentioned steps 2 refers to the content to virtual machine operations, comprises the concrete operations type, operating parameter.
The described location of above-mentioned steps 3 virtual machine platform type, refer to according to virtual machine platform type I D, in system, searches registered virtual machine platform type.Search the successfully virtual machine platform of expression system support the type.
The virtual machine platform that the described location of above-mentioned steps 4 is concrete and virtual machine, refer to according to the virtual machine platform ID under virtual machine type and virtual machine, in system, search the platform of concrete this virtual machine of operation, then, according to virtual machine ID and virtual machine title, in system, search concrete virtual machine.
Above-mentioned steps 5 is described carries out concrete operations to virtual machine, refers to according to action type and operating parameter, and virtual machine is carried out to bookkeeping.
Management to virtual machine is to realize by the operation to virtual machine platform.System manages virtual machine platform, needs system to support virtual machine platform, the management interface of definition to virtual machine platform.The present invention is abstracted into different functional modules by virtual machine platform from the virtual machine platform management function, and realizes the functional interface of system definition, in the mode of module registration, adds in system, thereby realizes isomery virtual machine platform dynamic expansion.
Hierarchical relationship figure when Fig. 1 means the system operation between modules.The system service termination receives that when request, the call relation between modules are top-downly to call successively, realizes the management function to virtual machine.In figure, Hypervisor plug-in management object is responsible for receiving request analytical information, selects different virtual machine platform objects, i.e. the Hypervisor plug-in object.The Hypervisor plug-in object is selected corresponding virtual machine object according to the virtual machine information in solicited message, and calls corresponding functional module and carry out concrete Virtual Machine Manager operation.Functional module object and Hypervisor connection management are realized the supplementary module to Virtual Machine Manager to liking system.