Movatterモバイル変換


[0]ホーム

URL:


CN103294494A - Automatic deployment method and system of virtual system - Google Patents

Automatic deployment method and system of virtual system
Download PDF

Info

Publication number
CN103294494A
CN103294494ACN2012100492806ACN201210049280ACN103294494ACN 103294494 ACN103294494 ACN 103294494ACN 2012100492806 ACN2012100492806 ACN 2012100492806ACN 201210049280 ACN201210049280 ACN 201210049280ACN 103294494 ACN103294494 ACN 103294494A
Authority
CN
China
Prior art keywords
virtual
virtual machines
startup
current
list
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
Application number
CN2012100492806A
Other languages
Chinese (zh)
Other versions
CN103294494B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE CorpfiledCriticalZTE Corp
Priority to CN201210049280.6ApriorityCriticalpatent/CN103294494B/en
Publication of CN103294494ApublicationCriticalpatent/CN103294494A/en
Application grantedgrantedCritical
Publication of CN103294494BpublicationCriticalpatent/CN103294494B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明公开了一种虚拟系统自动化部署的方法,包括:预置待启动虚拟系统的配置信息、并保存;虚拟系统是包含一组虚拟机的集合,配置信息包括虚拟系统中每个虚拟机对应的优先级别;根据配置信息,按照优先级别依次启动所述虚拟机;本发明还公开了一种虚拟系统自动化部署的系统。通过本发明可以实现对虚拟系统中虚拟机顺序启动的自动化控制。

Figure 201210049280

The invention discloses a method for automatic deployment of a virtual system, comprising: presetting and saving the configuration information of the virtual system to be started; the priority level; according to the configuration information, start the virtual machines sequentially according to the priority level; the invention also discloses a system for automatic deployment of the virtual system. The invention can realize the automatic control of the sequence startup of the virtual machines in the virtual system.

Figure 201210049280

Description

Translated fromChinese
一种虚拟系统自动化部署的方法和系统A method and system for automatic deployment of a virtual system

技术领域technical field

本发明涉及数据中心和虚拟化技术领域,特别是指一种虚拟系统自动化部署的方法和系统。The present invention relates to the field of data center and virtualization technology, in particular to a method and system for automatic deployment of a virtual system.

背景技术Background technique

虚拟化技术是在物理的服务器上通过虚拟化软件Hypervisor将物理资源分割为多个逻辑的分区,每个分区相互隔离,成为独立的虚拟机,对操作系统和应用程序来说与物理服务器没有区别,它们可以共享同一台物理服务器资源。Virtualization technology divides physical resources into multiple logical partitions on a physical server through the virtualization software Hypervisor. Each partition is isolated from each other and becomes an independent virtual machine. It is no different from a physical server for operating systems and applications. , they can share the same physical server resources.

随着虚拟化技术在传统数据中心的普及,越来越多的应用或服务已经以虚拟系统的方式在数据中心上进行部署。部分传统的应用或服务内涉及到多个模块、进程间的交互,需要控制多个模块和多个进程间的启动顺序,因此也对虚拟系统内的虚拟机提出了顺序启动的控制要求。对于只包含少数几个虚拟机的虚拟系统,可以通过手工或编写脚本的方式对虚拟系统进行部署配置,实现对虚拟机顺序启动的控制。但是对于大型的复杂的应用或服务,由于系统内涉及多个模块和进程,并且彼此之间的交互也比较复杂,如果采用手工或编写脚本的方式进行控制,则比较耗时,不利于传统的应用或服务在数据中心上的快速托管。With the popularity of virtualization technology in traditional data centers, more and more applications or services have been deployed in the data center in the form of virtual systems. Some traditional applications or services involve the interaction between multiple modules and processes, and it is necessary to control the startup sequence of multiple modules and multiple processes. Therefore, the virtual machine in the virtual system is also required to control the sequence startup. For a virtual system containing only a few virtual machines, the virtual system can be deployed and configured manually or by writing scripts, so as to realize the control over the sequence startup of the virtual machines. However, for large and complex applications or services, since multiple modules and processes are involved in the system, and the interaction between them is relatively complicated, it is time-consuming to control by manual or scripting, which is not conducive to the traditional Fast hosting of applications or services on data centers.

发明内容Contents of the invention

有鉴于此,本发明的主要目的在于提供一种虚拟系统自动化部署的方法和系统,可以实现对虚拟系统中虚拟机顺序启动的自动化控制。In view of this, the main purpose of the present invention is to provide a method and system for automatic deployment of a virtual system, which can realize automatic control of the sequential startup of virtual machines in the virtual system.

为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, technical solution of the present invention is achieved in that way:

本发明提供了一种虚拟系统自动化部署的方法,该方法包括:The present invention provides a method for automatic deployment of a virtual system, the method comprising:

预置待启动虚拟系统的配置信息、并保存;所述虚拟系统是包含一组虚拟机的集合,所述配置信息包括所述虚拟系统中每个虚拟机对应的优先级别;Presetting and saving the configuration information of the virtual system to be started; the virtual system is a collection of a group of virtual machines, and the configuration information includes the priority level corresponding to each virtual machine in the virtual system;

根据所述配置信息,按照优先级别依次启动所述虚拟机。According to the configuration information, the virtual machines are started sequentially according to the priority levels.

其中,保存的所述配置信息的形式为:Wherein, the saved configuration information is in the form of:

将所述预置的配置信息中、优先级别相同的虚拟机存入对应的列表,生成一个或多个列表;并在所述列表中对所述优先级别相同的虚拟机进行排序。Storing virtual machines with the same priority in the preset configuration information into a corresponding list to generate one or more lists; and sorting the virtual machines with the same priority in the list.

所述按照优先级别依次启动所述虚拟机,为:The virtual machines are started in order according to the priority level, which is:

按照优先级别从高到低的顺序依次启动对应列表中的虚拟机,在接收到当前优先级别对应列表中所有虚拟机的启动完成指示后,启动下一个优先级别对应列表中的虚拟机。Start the virtual machines in the corresponding list in order of priority from high to low, and start the virtual machines in the next priority corresponding list after receiving the startup completion instructions of all the virtual machines in the current priority corresponding list.

当前优先级别对应的列表中包含多个虚拟机时、启动当前优先级别对应列表中的虚拟机为:按照当前优先级别对应的列表中虚拟机的排序、依次启动所述多个虚拟机。When the list corresponding to the current priority level includes multiple virtual machines, starting the virtual machines in the list corresponding to the current priority level is: starting the multiple virtual machines in sequence according to the order of the virtual machines in the list corresponding to the current priority level.

所述配置信息还包括所述虚拟系统中每个虚拟机对应的启动完成指示信息;所述启动完成指示信息为不需要等待启动完成指示或需要等待启动完成指示。The configuration information also includes startup completion indication information corresponding to each virtual machine in the virtual system; the startup completion indication information is no need to wait for startup completion indication or needs to wait for startup completion indication.

按照当前优先级别对应的列表中虚拟机的排序、依次启动所述多个虚拟机为:According to the sorting of the virtual machines in the list corresponding to the current priority level, starting the multiple virtual machines in sequence is as follows:

启动的当前虚拟机对应的启动完成指示信息为需要等待启动完成指示时,等待当前虚拟机启动完成,当接收到当前虚拟机的启动完成指示后,启动下一个虚拟机;或者,The start-up completion indication information corresponding to the current virtual machine started is that when it is necessary to wait for the start-up completion indication, wait for the start-up completion of the current virtual machine, and start the next virtual machine after receiving the start-up completion indication of the current virtual machine; or,

启动的当前虚拟机对应的启动完成指示信息为不需要等待启动完成指示时,不等待当前虚拟机启动完成,直接启动下一个虚拟机。When the start-up completion indication information corresponding to the current virtual machine started is that there is no need to wait for the start-up completion indication, the next virtual machine is directly started without waiting for the start-up of the current virtual machine to be completed.

本发明还提供了一种虚拟系统自动化部署的系统,该系统包括:The present invention also provides a system for automatic deployment of virtual systems, the system comprising:

虚拟系统管理器,用于预置待启动虚拟系统的配置信息;所述虚拟系统是包含一组虚拟机的集合,所述配置信息包括所述虚拟系统中每个虚拟机对应的优先级别;A virtual system manager, configured to preset configuration information of a virtual system to be started; the virtual system is a collection of a group of virtual machines, and the configuration information includes a priority level corresponding to each virtual machine in the virtual system;

虚拟系统信息库,用于保存所述配置信息;a virtual system repository, configured to save the configuration information;

虚拟系统启动控制器,用于根据所述配置信息,按照优先级别依次启动所述虚拟机。The virtual system startup controller is configured to start the virtual machines sequentially according to the priority levels according to the configuration information.

所述虚拟系统信息库,还用于将所述预置的配置信息中、优先级别相同的虚拟机存入对应的列表,生成一个或多个列表;并在所述列表中对所述优先级别相同的虚拟机进行排序。The virtual system information base is also used to store virtual machines with the same priority in the preset configuration information into corresponding lists to generate one or more lists; The same virtual machines are sorted.

所述虚拟系统启动控制器,还用于按照优先级别从高到低的顺序依次启动对应列表中的虚拟机,在接收到当前优先级别对应列表中所有虚拟机的启动完成指示后,启动下一个优先级别对应列表中的虚拟机。The virtual system startup controller is further configured to start the virtual machines in the corresponding list sequentially in order of priority from high to low, and start the next The priority levels correspond to the virtual machines in the list.

所述虚拟系统启动控制器,还用于在当前优先级别对应的列表中包含多个虚拟机时,按照当前优先级别对应的列表中虚拟机的排序、依次启动所述多个虚拟机。The virtual system startup controller is further configured to, when the list corresponding to the current priority level contains multiple virtual machines, sequentially start the multiple virtual machines according to the order of the virtual machines in the list corresponding to the current priority level.

所述配置信息还包括所述虚拟系统中每个虚拟机对应的启动完成指示信息;所述启动完成指示信息为不需要等待启动完成指示或需要等待启动完成指示。The configuration information also includes startup completion indication information corresponding to each virtual machine in the virtual system; the startup completion indication information is no need to wait for startup completion indication or needs to wait for startup completion indication.

按照当前优先级别对应的列表中虚拟机的排序、依次启动所述多个虚拟机时,所述虚拟系统启动控制器,还用于在启动的当前虚拟机对应的启动完成指示信息为需要等待启动完成指示时,等待当前虚拟机启动完成,当接收到当前虚拟机的启动完成指示后,启动下一个虚拟机;或者,启动的当前虚拟机对应的启动完成指示信息为不需要等待启动完成指示时,不等待当前虚拟机启动完成,直接启动下一个虚拟机。When starting the multiple virtual machines sequentially according to the sorting of the virtual machines in the list corresponding to the current priority level, the virtual system startup controller is also used to indicate that the startup completion indication information corresponding to the current virtual machine that is started needs to wait for startup When the instruction is completed, wait for the current virtual machine to complete the startup, and start the next virtual machine after receiving the startup completion instruction of the current virtual machine; or, when the startup completion instruction information corresponding to the current virtual machine started is no need to wait for the startup completion instruction , start the next virtual machine directly without waiting for the startup of the current virtual machine to complete.

本发明虚拟系统自动化部署的方法和系统,通过对待启动虚拟系统的虚拟机进行启动的优先级别设置,在启动时,虚拟系统启动控制器读取优先级别,并依据优先级别对虚拟机的顺序启动进行自动化控制。The method and system for automatic deployment of the virtual system of the present invention set the priority level of starting the virtual machine of the virtual system to be started. When starting, the virtual system startup controller reads the priority level and starts the virtual machines in order according to the priority level Perform automated control.

附图说明Description of drawings

图1为本发明实施例提供的虚拟系统自动化部署的功能示意图;FIG. 1 is a functional schematic diagram of automatic deployment of a virtual system provided by an embodiment of the present invention;

图2为本发明实施例提供的虚拟系统信息库中保存的虚拟系统的配置信息示意图;FIG. 2 is a schematic diagram of configuration information of a virtual system stored in a virtual system information library provided by an embodiment of the present invention;

图3为本发明实施例提供的虚拟系统中按优先级别启动虚拟机的流程示意图;FIG. 3 is a schematic flow diagram of starting a virtual machine according to a priority level in a virtual system provided by an embodiment of the present invention;

图4为本发明实施例提供的虚拟系统内同一优先级别的多个虚拟机的启动流程图;FIG. 4 is a flow chart of starting multiple virtual machines of the same priority level in the virtual system provided by an embodiment of the present invention;

图5为本发明实施例提供的虚拟系统自动化部署的方法流程示意图。FIG. 5 is a schematic flowchart of a method for automatic deployment of a virtual system provided by an embodiment of the present invention.

具体实施方式Detailed ways

图1所示为本发明实施例提供的虚拟系统自动化部署的功能示意图,其中包括:Figure 1 is a functional schematic diagram of the automatic deployment of the virtual system provided by the embodiment of the present invention, which includes:

虚拟系统管理器101,负责管理资源平台中的虚拟系统、预置待启动虚拟系统的配置信息,并负责将配置信息更新到虚拟系统信息库102中;Thevirtual system manager 101 is responsible for managing the virtual systems in the resource platform, presetting the configuration information of the virtual systems to be started, and responsible for updating the configuration information to the virtualsystem information base 102;

虚拟系统信息库102,负责保存虚拟系统的配置信息,包括:虚拟系统中每个虚拟机对应的优先级别。其中,优先级别指示了虚拟机启动时的顺序。The virtualsystem information base 102 is responsible for saving the configuration information of the virtual system, including: the priority level corresponding to each virtual machine in the virtual system. Wherein, the priority level indicates the sequence when the virtual machines are started.

具体的,虚拟系统信息库102中保存的虚拟系统的配置信息的形式如图2所示,对于某个虚拟系统,将其中优先级别相同的虚拟机存入对应的列表,由此生成一个或多个列表,可以将优先级别作为这些列表的索引,进一步地,将多个列表按照对应的优先级别由高到低进行排序。进一步地,在某个列表中对这些优先级别相同的虚拟机进行排序,排序方式例如,可以按照虚拟机的编号或者按照虚拟机的物理资源大小等进行排序。Specifically, the form of the configuration information of the virtual system stored in the virtualsystem information base 102 is shown in FIG. list, the priority level can be used as the index of these lists, and further, the multiple lists are sorted from high to low according to the corresponding priority level. Further, these virtual machines with the same priority are sorted in a certain list, for example, sorting may be done according to the numbers of the virtual machines or according to the size of the physical resources of the virtual machines.

进一步地,配置信息中还包含虚拟系统中每个虚拟机对应的启动完成指示信息。启动完成指示信息为:需要等待启动完成指示或不需要等待启动完成指示。Further, the configuration information also includes startup completion indication information corresponding to each virtual machine in the virtual system. The start-up completion indication information is: need to wait for the start-up completion indication or do not need to wait for the start-up completion indication.

虚拟系统启动控制器103,负责控制虚拟系统的启动,即根据虚拟系统信息库102中保存的虚拟系统的配置信息、按照优先级别依次启动虚拟系统中的虚拟机。The virtualsystem startup controller 103 is responsible for controlling the startup of the virtual system, that is, according to the configuration information of the virtual system stored in the virtualsystem information base 102, the virtual machines in the virtual system are started sequentially according to the priority.

在启动时,按照优先级别从高到低的顺序依次启动对应列表中的虚拟机,其中,在接收到当前优先级别对应列表中所有虚拟机的启动完成指示后,才可以启动下一个优先级别对应列表中的虚拟机。When starting, start the virtual machines in the corresponding list in order of priority from high to low, where the next priority level can be started only after receiving the startup completion indication of all virtual machines in the current priority level corresponding list. list of virtual machines.

进一步地,当同一个优先级别下有多个虚拟机时:先按照对应列表中虚拟机的排序、依次启动这多个虚拟机,具体的:启动的当前虚拟机对应的启动完成指示信息为需要等待启动完成指示时,等待当前虚拟机启动完成,当接收到当前虚拟机的启动完成指示后,启动下一个虚拟机;或者,启动的当前虚拟机对应的启动完成指示信息为不需要等待启动完成指示时,不等待当前虚拟机启动完成,直接启动下一个虚拟机。Further, when there are multiple virtual machines under the same priority level: first start the multiple virtual machines sequentially according to the sorting of the virtual machines in the corresponding list, specifically: the startup completion indication information corresponding to the current virtual machine started is required When waiting for the startup completion indication, wait for the current virtual machine startup to complete, and start the next virtual machine after receiving the startup completion indication of the current virtual machine; or, the startup completion instruction information corresponding to the current virtual machine that starts does not need to wait for startup completion When indicated, start the next virtual machine directly without waiting for the current virtual machine to start.

虚拟系统104,是包含一组虚拟机的集合,其中,每个虚拟机都对应一个优先级别。Thevirtual system 104 is a collection including a group of virtual machines, where each virtual machine corresponds to a priority level.

通过上述的系统,可以实现自动控制虚拟系统中虚拟机的顺序启动。Through the above system, it is possible to automatically control the sequential startup of the virtual machines in the virtual system.

图3所示为本发明实施例提供的虚拟系统中按优先级别启动虚拟机的流程示意图,如图所示,该流程包括;FIG. 3 is a schematic flow diagram of starting a virtual machine according to a priority level in a virtual system provided by an embodiment of the present invention. As shown in the figure, the flow includes;

步骤301,虚拟系统管理器根据待创建的虚拟系统的特性、预置虚拟系统的配置信息,包括每个虚拟机对应的优先级别和启动完成指示信息。Step 301 , the virtual system manager presets configuration information of the virtual system according to the characteristics of the virtual system to be created, including the priority level corresponding to each virtual machine and the start completion indication information.

以虚拟系统X为例,虚拟系统管理器为该虚拟系统X中的每个虚拟机设置对应的优先级别,一共包括7个级别,其中,级别7到级别1的优先级为由低到高;并为每个虚拟机设置对应的启动完成指示信息。然后,虚拟系统信息库记录虚拟系统X的配置信息。Taking the virtual system X as an example, the virtual system manager sets a corresponding priority level for each virtual machine in the virtual system X, including 7 levels in total, wherein the priority levels from level 7 to level 1 are from low to high; And set corresponding startup completion indication information for each virtual machine. Then, the virtual system repository records the configuration information of the virtual system X.

步骤302,虚拟系统管理器接收到资源管理平台发送的启动虚拟系统X的请求。Step 302, the virtual system manager receives a request to start the virtual system X sent by the resource management platform.

步骤303,虚拟系统管理器转发启动虚拟系统X的请求给虚拟系统启动控制器。In step 303, the virtual system manager forwards the request to start the virtual system X to the virtual system startup controller.

步骤304,虚拟系统启动控制器从虚拟系统信息库中获取预置的虚拟系统X的配置信息。In step 304, the virtual system startup controller obtains the preset configuration information of the virtual system X from the virtual system information base.

步骤305,虚拟系统启动控制器根据虚拟系统X的配置信息,最先启动最高优先级别下的一个或多个虚拟机,承接步骤301的例子,这里启动优先级别为1的一个或多个虚拟机,最高优先级别下的虚拟机启动完成后(即接收到优先级别为1的一个或多个虚拟机的启动完成指示后),进入步骤306。Step 305, the virtual system startup controller first starts one or more virtual machines with the highest priority level according to the configuration information of the virtual system X, following the example of step 301, here one or more virtual machines with a priority level of 1 are started , after the startup of the virtual machine with the highest priority level is completed (that is, after the startup completion indication of one or more virtual machines with priority level 1 is received), go to step 306 .

具体的,同一个优先级别下的一个或多个虚拟机的启动将通过后续的图4来说明。Specifically, the startup of one or more virtual machines under the same priority level will be illustrated through the subsequent FIG. 4 .

步骤306,虚拟系统启动控制器启动次高优先级别(优先级别为2)下的一个或多个虚拟机,完成后,进入步骤307。In step 306, the virtual system startup controller starts one or more virtual machines under the next highest priority level (priority level is 2), and after completion, enters step 307.

步骤307,虚拟系统启动控制器依次启动其他较低优先级别虚拟机,完成后,进入步骤308。In step 307, the virtual system startup controller sequentially starts other virtual machines with lower priority levels, and after completion, proceeds to step 308.

步骤308,虚拟系统启动控制器启动最低优先级别(优先级别为7)下的一个或多个虚拟机。Step 308, the virtual system startup controller starts one or more virtual machines under the lowest priority level (the priority level is 7).

步骤309,虚拟系统启动控制器完成虚拟系统X内所有级别的虚拟机的启动后,向虚拟系统管理器返回启动虚拟系统X完成消息。Step 309 , after the virtual system startup controller completes the startup of all levels of virtual machines in the virtual system X, it returns a start virtual system X completion message to the virtual system manager.

步骤310,虚拟系统管理器向资源管理平台返回启动虚拟系统X完成消息。In step 310, the virtual system manager returns a start virtual system X completion message to the resource management platform.

图4所示为本发明实施例提供的虚拟系统内同一优先级别的多个虚拟机的启动流程图。假设虚拟系统X包括7个虚拟机(编号为11到17),其中优先级别为1(最高)的虚拟机有4个:11,12,15和17,并且虚拟机12对应的启动完成指示信息为需要等待启动完成指示,其他虚拟机为不需要等待启动完成指示;优先级别为2的虚拟机有2个:13和16;优先级别为3(最低)的虚拟机有1个:14,那么如图4所示,虚拟系统X的启动流程包括:FIG. 4 is a flow chart of starting multiple virtual machines of the same priority level in a virtual system provided by an embodiment of the present invention. Assume that the virtual system X includes 7 virtual machines (numbered 11 to 17), among which there are 4 virtual machines with priority level 1 (highest): 11, 12, 15 and 17, and the startup completion indication information corresponding tovirtual machine 12 There are 2 virtual machines with priority level 2: 13 and 16; there is 1 virtual machine with priority level 3 (lowest): 14, then As shown in Figure 4, the startup process of virtual system X includes:

步骤401,虚拟系统启动器接收到虚拟系统管理器器转发的启动虚拟系统X请求,然后从虚拟系统信息库获取虚拟系统X的配置信息,其中,包含三个列表,这三个列表按照对应的优先级别又高到低排序,依次为优先级别为1的列表、优先级别为2的列表和优先级别为3的列表;进一步地,优先级别为1的列表中,4个虚拟机按照编号进行排序,依次为:11,12,15和17;优先级别为2的列表中,2个虚拟机按照编号进行排序,依次为:13和16。Step 401, the virtual system launcher receives the request to start the virtual system X forwarded by the virtual system manager, and then obtains the configuration information of the virtual system X from the virtual system information base, which contains three lists, and the three lists are in accordance with the corresponding The priority levels are sorted from high to low, followed by the list with priority level 1, the list with priority level 2, and the list with priority level 3; further, in the list with priority level 1, the 4 virtual machines are sorted by number , in sequence: 11, 12, 15, and 17; in the list with priority level 2, the two virtual machines are sorted by number, in sequence: 13 and 16.

步骤402~403,虚拟系统启动控制器根据虚拟系统X的配置信息,先启动最高优先级别、即优先级别为1的4个虚拟机:按照虚拟机在优先级别为1的列表中的排序、依次启动这4个虚拟机:先启动虚拟机11,发现其对应的启动完成指示信息为不需要等待启动完成指示,不等待虚拟机11的启动完成指示、继续启动虚拟机12,发现其对应的启动完成指示信息为需要等待启动完成指示,那么,虚拟系统启动控制器等待虚拟机12的启动完成指示。Steps 402-403, the virtual system startup controller first starts the four virtual machines with the highest priority level, that is, the priority level 1 according to the configuration information of the virtual system X: according to the order of the virtual machines in the list with the priority level 1, in order Start these 4 virtual machines: startvirtual machine 11 first, find that its corresponding startup completion indication information does not need to wait for the startup completion indication, do not wait for the startup completion indication ofvirtual machine 11, continue to startvirtual machine 12, and find its corresponding startup completion indication The completion indication information is that it is necessary to wait for the boot completion indication, so the virtual system startup controller waits for the boot completion indication of thevirtual machine 12 .

步骤404,虚拟系统启动控制器接收到虚拟机12的启动完成指示,进入步骤405。In step 404, the virtual system startup controller receives the startup completion indication of thevirtual machine 12, and proceeds to step 405.

步骤405~406,虚拟系统启动控制器继续依次启动优先级别为1的后续的虚拟机,先启动虚拟机15,发现其对应的启动完成指示信息为不需要等待启动完成指示,不等待虚拟机15的启动完成指示、再继续启动虚拟机17。In steps 405-406, the virtual system startup controller continues to start the subsequent virtual machines with a priority level of 1 in turn, and starts thevirtual machine 15 first, and finds that the corresponding startup completion indication information does not need to wait for the startup completion instruction, and does not wait for thevirtual machine 15 The startup completion indication of thevirtual machine 17 continues to be started.

步骤407~409,虚拟系统启动控制器接收到虚拟机11、虚拟机15和17的启动完成指示后(这些虚拟机的启动完成指示可能不是同时到达),即接收到了优先级别为1的所有虚拟机的启动完成指示,进入步骤410。Steps 407-409, after the virtual system startup controller receives the startup completion instructions ofvirtual machine 11,virtual machine 15, and 17 (the startup completion instructions of these virtual machines may not arrive at the same time), that is, it has received all the virtual machines with a priority of 1. If the startup of the machine is completed, enter step 410.

步骤410,虚拟系统启动控制器启动优先级别为2的虚拟机13和16,启动方式同优先级别为1的虚拟机的启动方式;接收到虚拟机13和16的启动完成指示后,进入步骤411。Step 410, the virtual system startup controller starts thevirtual machines 13 and 16 with a priority level of 2, and the startup method is the same as that of the virtual machines with a priority level of 1; after receiving the startup completion indication of thevirtual machines 13 and 16, proceed to step 411 .

步骤411,虚拟系统启动控制器启动优先级别为3的虚拟机14,启动方式同优先级别为1的虚拟机的启动方式,接收到虚拟机14的启动完成指示后,进入步骤411。Step 411 , the virtual system startup controller starts thevirtual machine 14 with priority level 3 in the same way as the virtual machine with priority level 1 , and enters step 411 after receiving thevirtual machine 14 startup completion instruction.

步骤412,完成虚拟系统X内所有级别的虚拟机的启动,然后虚拟系统启动控制器向虚拟系统管理器返回启动虚拟系统X完成消息。Step 412, complete the startup of all levels of virtual machines in the virtual system X, and then the virtual system startup controller returns a startup virtual system X completion message to the virtual system manager.

基于上述的实施例,本发明还提出了一种虚拟系统自动化部署的方法,如图5所示,包括:Based on the above-mentioned embodiments, the present invention also proposes a method for automatic deployment of a virtual system, as shown in FIG. 5 , including:

步骤1,预置待启动虚拟系统的配置信息、并保存;配置信息包括虚拟系统中每个虚拟机对应的优先级别;Step 1, preset and save the configuration information of the virtual system to be started; the configuration information includes the priority level corresponding to each virtual machine in the virtual system;

步骤2,根据配置信息,按照优先级别依次启动虚拟机。Step 2, according to the configuration information, start the virtual machines in order according to the priority.

其中,保存的配置信息的形式为:Among them, the saved configuration information is in the form of:

将预置的配置信息中、优先级别相同的虚拟机存入对应的列表,生成一个或多个列表;并在列表中对优先级别相同的虚拟机进行排序。Store the virtual machines with the same priority in the preset configuration information into corresponding lists to generate one or more lists; and sort the virtual machines with the same priority in the list.

进一步地,按照优先级别依次启动虚拟机,为:按照优先级别从高到低的顺序依次启动对应列表中的虚拟机,在接收到当前优先级别对应列表中所有虚拟机的启动完成指示后,启动下一个优先级别对应列表中的虚拟机。Further, starting the virtual machines in order according to the priority levels is: starting the virtual machines in the corresponding list in order according to the priority level from high to low, and after receiving the startup completion indication of all the virtual machines in the corresponding list of the current priority level, start The next priority level corresponds to the virtual machine in the list.

当前优先级别对应的列表中包含多个虚拟机时、启动当前优先级别对应列表中的虚拟机为:按照当前优先级别对应的列表中虚拟机的排序、依次启动该列表中的多个虚拟机。When the list corresponding to the current priority level contains multiple virtual machines, starting the virtual machines in the list corresponding to the current priority level is: starting the multiple virtual machines in the list in sequence according to the order of the virtual machines in the list corresponding to the current priority level.

上述配置信息还包括虚拟系统中每个虚拟机对应的启动完成指示信息;启动完成指示信息为不需要等待启动完成指示或需要等待启动完成指示。The above configuration information also includes start-up completion indication information corresponding to each virtual machine in the virtual system; the start-up completion indication information is no need to wait for start-up completion indication or needs to wait for start-up completion indication.

进一步地,按照当前优先级别对应的列表中虚拟机的排序、依次启动该列表中的多个虚拟机为:Further, according to the sorting of the virtual machines in the list corresponding to the current priority level, the multiple virtual machines in the list are started sequentially as follows:

启动的当前虚拟机对应的启动完成指示信息为需要等待启动完成指示时,等待当前虚拟机启动完成,当接收到当前虚拟机的启动完成指示后,启动下一个虚拟机;或者,The start-up completion indication information corresponding to the current virtual machine started is that when it is necessary to wait for the start-up completion indication, wait for the start-up completion of the current virtual machine, and start the next virtual machine after receiving the start-up completion indication of the current virtual machine; or,

启动的当前虚拟机对应的启动完成指示信息为不需要等待启动完成指示时,不等待当前虚拟机启动完成,直接启动下一个虚拟机。When the start-up completion indication information corresponding to the current virtual machine started is that there is no need to wait for the start-up completion indication, the next virtual machine is directly started without waiting for the start-up of the current virtual machine to be completed.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.

Claims (12)

Translated fromChinese
1.一种虚拟系统自动化部署的方法,其特征在于,该方法包括:1. A method for automatic deployment of a virtual system, characterized in that the method comprises:预置待启动虚拟系统的配置信息、并保存;所述虚拟系统是包含一组虚拟机的集合,所述配置信息包括所述虚拟系统中每个虚拟机对应的优先级别;Presetting and saving the configuration information of the virtual system to be started; the virtual system is a collection of a group of virtual machines, and the configuration information includes the priority level corresponding to each virtual machine in the virtual system;根据所述配置信息,按照优先级别依次启动所述虚拟机。According to the configuration information, the virtual machines are started sequentially according to the priority levels.2.根据权利要求1所述虚拟系统自动化部署的方法,其特征在于,保存的所述配置信息的形式为:2. The method for automatic deployment of a virtual system according to claim 1, wherein the stored configuration information is in the form of:将所述预置的配置信息中、优先级别相同的虚拟机存入对应的列表,生成一个或多个列表;并在所述列表中对所述优先级别相同的虚拟机进行排序。Storing virtual machines with the same priority in the preset configuration information into a corresponding list to generate one or more lists; and sorting the virtual machines with the same priority in the list.3.根据权利要求2所述虚拟系统自动化部署的方法,其特征在于,所述按照优先级别依次启动所述虚拟机,为:3. The method for automatic deployment of a virtual system according to claim 2, wherein the starting of the virtual machines in sequence according to priority levels is:按照优先级别从高到低的顺序依次启动对应列表中的虚拟机,在接收到当前优先级别对应列表中所有虚拟机的启动完成指示后,启动下一个优先级别对应列表中的虚拟机。Start the virtual machines in the corresponding list in order of priority from high to low, and start the virtual machines in the next priority corresponding list after receiving the startup completion instructions of all the virtual machines in the current priority corresponding list.4.根据权利要求3所述虚拟系统自动化部署的方法,其特征在于,当前优先级别对应的列表中包含多个虚拟机时、启动当前优先级别对应列表中的虚拟机为:按照当前优先级别对应的列表中虚拟机的排序、依次启动所述多个虚拟机。4. The method for automatic deployment of a virtual system according to claim 3, wherein when the list corresponding to the current priority level contains multiple virtual machines, starting the virtual machines in the list corresponding to the current priority level is: corresponding to the current priority level sort the virtual machines in the list, and start the multiple virtual machines in sequence.5.根据权利要求1所述虚拟系统自动化部署的方法,其特征在于,所述配置信息还包括所述虚拟系统中每个虚拟机对应的启动完成指示信息;所述启动完成指示信息为不需要等待启动完成指示或需要等待启动完成指示。5. The method for automatic deployment of a virtual system according to claim 1, wherein the configuration information further includes startup completion indication information corresponding to each virtual machine in the virtual system; the startup completion indication information is not required Wait for a boot complete indication or need to wait for a boot complete indication.6.根据权利要求4或5所述虚拟系统自动化部署的方法,其特征在于,按照当前优先级别对应的列表中虚拟机的排序、依次启动所述多个虚拟机为:6. The method for automatic deployment of a virtual system according to claim 4 or 5, wherein, according to the sorting of the virtual machines in the list corresponding to the current priority level, starting the plurality of virtual machines in sequence is as follows:启动的当前虚拟机对应的启动完成指示信息为需要等待启动完成指示时,等待当前虚拟机启动完成,当接收到当前虚拟机的启动完成指示后,启动下一个虚拟机;或者,The start-up completion indication information corresponding to the current virtual machine started is that when it is necessary to wait for the start-up completion indication, wait for the start-up completion of the current virtual machine, and start the next virtual machine after receiving the start-up completion indication of the current virtual machine; or,启动的当前虚拟机对应的启动完成指示信息为不需要等待启动完成指示时,不等待当前虚拟机启动完成,直接启动下一个虚拟机。When the start-up completion indication information corresponding to the current virtual machine started is that there is no need to wait for the start-up completion indication, the next virtual machine is directly started without waiting for the start-up of the current virtual machine to be completed.7.一种虚拟系统自动化部署的系统,其特征在于,该系统包括:7. A system for automatic deployment of virtual systems, characterized in that the system includes:虚拟系统管理器,用于预置待启动虚拟系统的配置信息;所述虚拟系统是包含一组虚拟机的集合,所述配置信息包括所述虚拟系统中每个虚拟机对应的优先级别;A virtual system manager, configured to preset configuration information of a virtual system to be started; the virtual system is a collection of a group of virtual machines, and the configuration information includes a priority level corresponding to each virtual machine in the virtual system;虚拟系统信息库,用于保存所述配置信息;a virtual system repository, configured to save the configuration information;虚拟系统启动控制器,用于根据所述配置信息,按照优先级别依次启动所述虚拟机。The virtual system startup controller is configured to start the virtual machines sequentially according to the priority levels according to the configuration information.8.根据权利要求7所述虚拟系统自动化部署的系统,其特征在于,所述虚拟系统信息库,还用于将所述预置的配置信息中、优先级别相同的虚拟机存入对应的列表,生成一个或多个列表;并在所述列表中对所述优先级别相同的虚拟机进行排序。8. The system for automatic deployment of virtual systems according to claim 7, wherein the virtual system information library is further used to store virtual machines with the same priority in the preset configuration information into a corresponding list , generating one or more lists; and sorting the virtual machines with the same priority in the lists.9.根据权利要求8所述虚拟系统自动化部署的系统,其特征在于,所述虚拟系统启动控制器,还用于按照优先级别从高到低的顺序依次启动对应列表中的虚拟机,在接收到当前优先级别对应列表中所有虚拟机的启动完成指示后,启动下一个优先级别对应列表中的虚拟机。9. The system for automatic deployment of virtual systems according to claim 8, wherein the virtual system startup controller is further configured to start the virtual machines in the corresponding list sequentially in order of priority from high to low, and receive After the startup completion indication of all the virtual machines in the list corresponding to the current priority level is reached, the virtual machines in the list corresponding to the next priority level are started.10.根据权利要求9所述虚拟系统自动化部署的系统,其特征在于,所述虚拟系统启动控制器,还用于在当前优先级别对应的列表中包含多个虚拟机时,按照当前优先级别对应的列表中虚拟机的排序、依次启动所述多个虚拟机。10. The system for automatic deployment of a virtual system according to claim 9, wherein the virtual system startup controller is further configured to, when the list corresponding to the current priority level contains a plurality of virtual machines, corresponding to the virtual machine according to the current priority level sort the virtual machines in the list, and start the multiple virtual machines in sequence.11.根据权利要求7所述虚拟系统自动化部署的系统,其特征在于,所述配置信息还包括所述虚拟系统中每个虚拟机对应的启动完成指示信息;所述启动完成指示信息为不需要等待启动完成指示或需要等待启动完成指示。11. The system for automatic deployment of a virtual system according to claim 7, wherein the configuration information further includes startup completion indication information corresponding to each virtual machine in the virtual system; the startup completion indication information is not required Wait for a boot complete indication or need to wait for a boot complete indication.12.根据权利要求10或11所述虚拟系统自动化部署的系统,其特征在于,12. The system for automatic deployment of virtual systems according to claim 10 or 11, characterized in that,按照当前优先级别对应的列表中虚拟机的排序、依次启动所述多个虚拟机时,所述虚拟系统启动控制器,还用于在启动的当前虚拟机对应的启动完成指示信息为需要等待启动完成指示时,等待当前虚拟机启动完成,当接收到当前虚拟机的启动完成指示后,启动下一个虚拟机;或者,启动的当前虚拟机对应的启动完成指示信息为不需要等待启动完成指示时,不等待当前虚拟机启动完成,直接启动下一个虚拟机。When starting the multiple virtual machines sequentially according to the sorting of the virtual machines in the list corresponding to the current priority level, the virtual system startup controller is also used to indicate that the startup completion indication information corresponding to the current virtual machine that is started needs to wait for startup When the instruction is completed, wait for the current virtual machine to complete the startup, and start the next virtual machine after receiving the startup completion instruction of the current virtual machine; or, when the startup completion instruction information corresponding to the current virtual machine started is no need to wait for the startup completion instruction , start the next virtual machine directly without waiting for the startup of the current virtual machine to complete.
CN201210049280.6A2012-02-292012-02-29A kind of method and system of virtual system automatically disposeExpired - Fee RelatedCN103294494B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201210049280.6ACN103294494B (en)2012-02-292012-02-29A kind of method and system of virtual system automatically dispose

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201210049280.6ACN103294494B (en)2012-02-292012-02-29A kind of method and system of virtual system automatically dispose

Publications (2)

Publication NumberPublication Date
CN103294494Atrue CN103294494A (en)2013-09-11
CN103294494B CN103294494B (en)2018-07-03

Family

ID=49095433

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201210049280.6AExpired - Fee RelatedCN103294494B (en)2012-02-292012-02-29A kind of method and system of virtual system automatically dispose

Country Status (1)

CountryLink
CN (1)CN103294494B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104407912A (en)*2014-12-252015-03-11无锡清华信息科学与技术国家实验室物联网技术中心Virtual machine configuration method and device
CN105740067A (en)*2016-01-262016-07-06中标软件有限公司Cloud computing based virtual machine batch starting method and control system
EP3048531A1 (en)*2015-01-162016-07-27Storagecraft Technology CorporationVirtualizing multiple networked machines using a predetermined network recovery policy
CN106209445A (en)*2016-07-052016-12-07天津卓朗科技发展有限公司A kind of Visualized data centre by network design
CN108228310A (en)*2016-12-222018-06-29中国移动通信集团上海有限公司The balanced dispositions method and device of virtual network function
CN108228413A (en)*2016-12-222018-06-29中国移动通信集团上海有限公司Fictitious host computer distributing equilibrium appraisal procedure and device
US10671421B2 (en)2016-02-252020-06-02Huawei Technologies Co., Ltd.Virtual machine start method and apparatus
CN117850970A (en)*2023-12-142024-04-09天翼云科技有限公司 A virtual machine startup control method based on Boolean network model

Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP1622014A2 (en)*2004-06-302006-02-01Microsoft CorporationSystems and methods for inializing multiple virtual processors within a single virtual machine
CN101167054A (en)*2005-05-272008-04-23国际商业机器公司Methods and apparatus for selective workload off-loading across multiple data centers
JP2009037271A (en)*2007-07-312009-02-19Hitachi Ltd Method of stopping virtual computer system and computer apparatus
CN101408853A (en)*2008-10-272009-04-15中国科学院计算技术研究所Apparatus and method for scheduling virtual machine
CN101499021A (en)*2008-01-312009-08-05国际商业机器公司Method and apparatus for dynamically distributing resources on a plurality of virtual machines
CN101561768A (en)*2008-04-182009-10-21北京闻言科技有限公司Universal multitask scheduling method
CN101883380A (en)*2009-05-042010-11-10中兴通讯股份有限公司Method and device for selecting terminal during congestion processing
US20110154331A1 (en)*2009-12-182011-06-23International Business Machines CorporationCloning virtual machines in a virtual computer environment
CN102214139A (en)*2011-06-012011-10-12北京航空航天大学Automatic test performance control and debugging method facing distributed system
CN102298547A (en)*2011-09-202011-12-28杭州华三通信技术有限公司Data backup method and device
CN102355369A (en)*2011-09-272012-02-15华为技术有限公司Virtual clustered system as well as processing method and processing device thereof

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP1622014A2 (en)*2004-06-302006-02-01Microsoft CorporationSystems and methods for inializing multiple virtual processors within a single virtual machine
CN101167054A (en)*2005-05-272008-04-23国际商业机器公司Methods and apparatus for selective workload off-loading across multiple data centers
JP2009037271A (en)*2007-07-312009-02-19Hitachi Ltd Method of stopping virtual computer system and computer apparatus
CN101499021A (en)*2008-01-312009-08-05国际商业机器公司Method and apparatus for dynamically distributing resources on a plurality of virtual machines
CN101561768A (en)*2008-04-182009-10-21北京闻言科技有限公司Universal multitask scheduling method
CN101408853A (en)*2008-10-272009-04-15中国科学院计算技术研究所Apparatus and method for scheduling virtual machine
CN101883380A (en)*2009-05-042010-11-10中兴通讯股份有限公司Method and device for selecting terminal during congestion processing
US20110154331A1 (en)*2009-12-182011-06-23International Business Machines CorporationCloning virtual machines in a virtual computer environment
CN102214139A (en)*2011-06-012011-10-12北京航空航天大学Automatic test performance control and debugging method facing distributed system
CN102298547A (en)*2011-09-202011-12-28杭州华三通信技术有限公司Data backup method and device
CN102355369A (en)*2011-09-272012-02-15华为技术有限公司Virtual clustered system as well as processing method and processing device thereof

Cited By (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104407912A (en)*2014-12-252015-03-11无锡清华信息科学与技术国家实验室物联网技术中心Virtual machine configuration method and device
CN104407912B (en)*2014-12-252018-08-17无锡清华信息科学与技术国家实验室物联网技术中心A kind of virtual machine configuration method and device
EP3048531A1 (en)*2015-01-162016-07-27Storagecraft Technology CorporationVirtualizing multiple networked machines using a predetermined network recovery policy
CN105740067A (en)*2016-01-262016-07-06中标软件有限公司Cloud computing based virtual machine batch starting method and control system
US10671421B2 (en)2016-02-252020-06-02Huawei Technologies Co., Ltd.Virtual machine start method and apparatus
CN106209445A (en)*2016-07-052016-12-07天津卓朗科技发展有限公司A kind of Visualized data centre by network design
CN106209445B (en)*2016-07-052019-08-06天津卓朗科技发展有限公司A kind of Visualized data centre disposed by network
CN108228310A (en)*2016-12-222018-06-29中国移动通信集团上海有限公司The balanced dispositions method and device of virtual network function
CN108228413A (en)*2016-12-222018-06-29中国移动通信集团上海有限公司Fictitious host computer distributing equilibrium appraisal procedure and device
CN117850970A (en)*2023-12-142024-04-09天翼云科技有限公司 A virtual machine startup control method based on Boolean network model

Also Published As

Publication numberPublication date
CN103294494B (en)2018-07-03

Similar Documents

PublicationPublication DateTitle
CN103294494B (en)A kind of method and system of virtual system automatically dispose
CN108462746B (en)Container deployment method and framework based on openstack
CN103186404B (en) System firmware update method and server system using the method
WO2017152633A1 (en)Port binding implementation method and device
CN113127150B (en)Rapid deployment method and device of cloud primary system, electronic equipment and storage medium
CN109634718A (en)The method and system of cloud platform creation mirror image
EP3119133B1 (en)Roaming network access method and apparatus
CN103064717B (en)A kind of apparatus and method of parallel installation of software for cluster system
JP6359111B2 (en) Method and apparatus for processing data packets based on parallel protocol stack instances
WO2016116013A1 (en)Software upgrade method and system
CN111126604B (en)Model training method, device, server and storage medium
CN106201660A (en)Method for automatically upgrading virtual hardware and software of virtual machine
CN102968323B (en)Terminal and the method that realizes computer system power-on acceleration
CN102096606A (en)Virtual machine migration method, device and system
CN110928860B (en)Data migration method and device
CN104714839A (en)Method and device for controlling life cycle of processes
CN110609710B (en)Android system starting speed control method, intelligent device and storage medium
CN110597829A (en)Method, device and equipment for generating primary key
WO2016078326A1 (en)Method, apparatus and system for displaying names of virtual machine
CN106020971A (en)CPU (Central Processing Unit) scheduling method and device in cloud host system
CN106528551A (en)Memory application method and apparatus
CN104572303A (en)Application resource management and transferring device and method and application resource management system
CN102571965B (en)Method and device for starting service group in high-availability cluster
WO2024183447A1 (en)Resource loading method and apparatus, and device and storage medium
CN107632864B (en)Method for establishing UEFI Boot Order of specific ordering

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20180703


[8]ページ先頭

©2009-2025 Movatter.jp