CN103259813A - Method of automatically expanding virtual machines - Google Patents

Method of automatically expanding virtual machines Download PDF

Info

Publication number
CN103259813A
CN103259813A CN2012100359602A CN201210035960A CN103259813A CN 103259813 A CN103259813 A CN 103259813A CN 2012100359602 A CN2012100359602 A CN 2012100359602A CN 201210035960 A CN201210035960 A CN 201210035960A CN 103259813 A CN103259813 A CN 103259813A
Authority
CN
China
Prior art keywords
network
virtual machine
gathered together
server
resource utilization
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.)
Pending
Application number
CN2012100359602A
Other languages
Chinese (zh)
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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN2012100359602A priority Critical patent/CN103259813A/en
Publication of CN103259813A publication Critical patent/CN103259813A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a method of automatically expanding virtual machines. The method comprises setting information used for generating a first virtual machine, generating the first virtual machine according to the set information and adding the first virtual machine to a network cluster to provide network services. According to the method, when the using rate of resources of the network cluster is higher than a first prearranged critical value, one or more new virtual machines with the set information of the first virtual machine as a template are generated, the one or more virtual machines are started after the new virtual machines are added to the network cluster, and the using rate of resources of the network cluster is reduced by increasing of the number of resources capable of being provided by the network cluster. According to the method, when the using rate of the resources of the network cluster is lower than a second prearranged critical value, starting of using of the one or more virtual machines is stopped, the using rate of the resources of the network cluster is improved by reducing of the number of resources capable of being provided by the network cluster.

Description

Automatically expand the method for virtual machine
Technical field
The present invention relates to a kind of virtual machine control system and method, especially about a kind of method of automatic expansion virtual machine.
Background technology
Virtual machine (Virtual Machine) refer to by software simulation have the complete hardware system function, operate in a complete computer in the complete isolation environment.By at server virtual machine being installed, can simulate one or more virtual server (namely at virtual machine a plurality of operating systems being installed) at this server.Thus, can reduce the purchase cost of server apparatus, simultaneously can also be according to the spike of usefulness from the peak demand, Dynamic Elastic migratory system platform between each server, allow the IT personnel do more effective scheduling of resource, and obtain protection better and that safety is careful.
Generally speaking, under the situation that the resource use amount of server heightens, can have influence on the wherein operation of virtual machine, under the situation of inadequate resource, may cause virtual machine crashes, thereby influence the user to the use of virtual machine.
Summary of the invention
In view of above content, be necessary to provide a kind of method of automatic expansion virtual machine, can be according to the height of resource utilization in the server, increase automatically or delete virtual machine.
The invention provides a kind of method of automatic expansion virtual machine, this method comprises: (A) be provided for producing the information of first virtual machine, comprise media interviews control MAC Address, the IP address of the Microsoft Loopback Adapter that this first virtual machine is set and be this first virtual machine storage allocation, CPU, network and disk resource; (B) produce described first virtual machine according to configuration information, this first virtual machine is joined a network gather together and provide services on the Internet; When (C) resource utilization of gathering together when this network is higher than the first default critical value, configuration information with this first virtual machine is that template produces one or more new virtual machine, and will this new virtual machine join and enable after this network is gathered together, reduce the resource utilization that network is gathered together by increasing the network available stock number of gathering together; And the resource utilization of (D) gathering together when this network is when being lower than the second default critical value, stops to enable described network one or more virtual machine in gathering together, and improves the resource utilization that network is gathered together by reducing the network available stock number of gathering together.
Compared to prior art, the method for automatic expansion virtual machine provided by the invention can increase virtual machine automatically when the resource utilization that network is gathered together is too high, reduces the resource utilization that network is gathered together by increasing amount of network resources; The resource utilization of gathering together at network is crossed and is reduced virtual machine automatically when low, improves the resource utilization that network is gathered together by reducing amount of network resources.
Description of drawings
Fig. 1 is the applied environment figure that the present invention expands the method preferred embodiment of virtual machine automatically.
Fig. 2 is the network environment figure that the present invention expands the method preferred embodiment of virtual machine automatically.
Fig. 3 is the flow chart that the present invention expands the method preferred embodiment of virtual machine automatically.
The main element symbol description
Server 100
Virtual machine monitor 11
Virtual machine 10
Hardware 12
Dynamic Host Configuration Protocol server 1
Network is gathered together 2
Network 20
The webserver 3
Following embodiment will further specify the present invention in conjunction with above-mentioned accompanying drawing.
Embodiment
Consulting shown in Figure 1ly, is the applied environment figure that the present invention expands the method preferred embodiment of virtual machine automatically.This method is applied in the server 100.This server comprises hardware 12, virtual machine monitor (Hypervisor) 11 and one or more (shown in the figure 3) virtual machine (virtual machine, VM) 10 that produced by Hypervisor 11.Hypervisor 11 be a kind of in virtual environment " unit " operating system, be the intermediate software layer between a kind of operating system that operates in server 100 and server 100, can allow the hardware 12 on a plurality of operating systems and the application program share service device 100.Hypervisor 11 can comprise all hardware 12 that CPU, disk and interior existence are interior on the access server 100.When server 100 started and carry out Hypervisor 11, Hypervisor 11 can distribute to an amount of resources such as internal memory, CPU, network and disk of each virtual machine 10, to guarantee the operation of virtual machine 10.
Consulting shown in Figure 2ly, is the network environment figure that the present invention expands the method preferred embodiment of virtual machine automatically.DynamicHost arrange agreement (Dynamic Host Configuration Protocol, DHCP) server 1 by network 20 and network gather together 2, the webserver 3 communicates.Server is gathered together and 2 is also communicated by network 20 with the webserver 3.This webserver 3 can an entity server or be that a network is gathered together.
Described network 20 can be the Internet, local area network (LAN) or other communication network.
Network is gathered together and 2 is comprised one or more server 100 and many virtual machines 10, and these many virtual machines 10 can run on identical server 100, also can run on different server 100 respectively.Gather together for the machine of 2 outsides for network, network is gathered together and 2 is equivalent to a machine.The gather together machine of 2 inside of network for example communicates by network 20 between a station server 100 and another station server 100, virtual machine 10 and another virtual machine 10 or a station server 100 and a virtual machine 10.Gather together every station server 100 in 2 of network comprises as shown in Figure 1 hardware 12 and Hypervisor 11.
Dynamic Host Configuration Protocol server 1 is network gather together every station server 100 and virtual machine 10 distributing IP addresses in 2.Network gather together 2 the resource utilization (utilization rate, memory usage, disk utilization rate and the network usage that comprise CPU) of one or more Hypervisor 11 monitoring networks in 2 of gathering together.Gather together 2 resource utilization when being higher than critical value of setting when network, be installed on gather together 2 Hypervisor 11 of network and produce a virtual machine 10 automatically and increase the networks 2 available stock numbers of gathering together, to reduce gather together 2 resource utilization of network.When network is gathered together 2 resource utilization when being lower than another critical value of setting, be installed on gather together 2 Hypervisor 11 of this network and reduce (for example deletion or stop using) virtual machine 10 automatically and reduce networks 2 available stock numbers of gathering together, to improve gather together 2 resource utilization of this network.
Gather together 2 stock number of network comprises network cpu resource amount, memory source amount, disk resource amount and the amount of network resources that all virtual machines 10 provide in 2 of gathering together, and gather together 2 resource utilization of network comprises network gather together CPU usage, memory usage, disk utilization rate and the network usage of each virtual machines 10 in 2.For example, suppose that network gathers together and 2 three virtual machines 10 are arranged, then the core number sum of the CPU of these three virtual machines 10 is this network 2 spendable cpu resource total amounts of gathering together, the internal memory of these three virtual machines 10/disk size sum is this network 2 spendable internal memory/disk resource total amounts of gathering together, and the network bandwidth sum that these three virtual machines 10 provide is this network 2 spendable Internet resources total amounts of gathering together.Gather together 2 cpu busy percentage, memory usage, disk utilization rate and network usage of network equals network respectively and gathers together the use amount of 2 CPU, internal memory, disk and network divided by network gather together 2 cpu resource total amount, memory source total amount, disk resource total amount and Internet resources total amount.Increase by 10 of virtual machines and increased gather together 2 total resources of network, thereby reduced gather together 2 resource utilization of network.Reduce 10 of virtual machines and reduced gather together 2 total resources of network, thereby improved gather together 2 resource utilization of network.
Consulting shown in Figure 3ly, is the flow chart that the present invention expands the method preferred embodiment of virtual machine automatically.
Step S31, Hypervisor 11 is provided for producing the information of a virtual machine 10 (for the purpose of distinguishing, claim that this virtual machine 10 is first virtual machine 10), comprise that (media access control, MAC) address, Dynamic Host Configuration Protocol server 1 be these first virtual machine, 10 IP address allocated and be resources such as these first virtual machine, 10 storage allocations, CPU, network and disk for the media interviews control of the Microsoft Loopback Adapter that this first virtual machine 10 is set.
Step S32, Hypervisor 11 produces described first virtual machine 10 according to configuration information, this first virtual machine 10 is joined network gather together and 2 provide services on the Internet.In this embodiment, this network is gathered together and 2 is comprised one or more (describing corresponding with Fig. 3) server 100 and one or more virtual machine 10 that produces at this server 100.
Step S33, gather together 2 resource utilization of Hypervisor 11 monitoring networks comprises utilization rate, memory usage, disk utilization rate and the network usage of CPU.
Step S34, Hypervisor 11 judge whether gather together 2 resource utilization of this network is higher than first critical value or is lower than second critical value.In the present embodiment, when gather together 2 resource utilization of this network is between second critical value and first critical value, Hypervisor 11 judges that the 2 network services that provide of gathering together of this network are in stable state.2 resource utilization is higher than first critical value if this network is gathered together, for example the utilization rate of CPU, memory usage, disk utilization rate and network usage surpass the corresponding first default critical value respectively, or a certain utilization rate surpasses this first critical value, then execution in step S35 in CPU, internal memory, disk and the network.2 resource utilization is lower than second critical value if this network is gathered together, for example the utilization rate of CPU, memory usage, disk utilization rate and network usage are lower than the corresponding second default critical value respectively, or a certain utilization rate is lower than this second critical value, then execution in step S36 in CPU, internal memory, disk and the network.
Step S35, Hypervisor 11 is that template produces a new virtual machine 10 with the configuration information of described first virtual machine 10, and will this new virtual machine 10 join described network and gather together and enable this new virtual machine 10 after 2, gather together 2 available stock numbers to reduce gather together 2 resource utilization of network by increasing network.For example, Hypervisor 11 is internal memory, CPU, network and the disk resource of these new virtual machine 10 distribution and these first virtual machine, 10 same percentage.The MAC Address of the Microsoft Loopback Adapter of this new virtual machine 10 is produced automatically by Hypervisor 11, and the IP address is distributed by Dynamic Host Configuration Protocol server 1.Afterwards, flow process enters step S37.
Step S36, Hypervisor 11 stop to enable gather together any virtual machine 10 in 2 of described network, gather together 2 available stock numbers to improve gather together 2 resource utilization of network by reducing network.For example, Hypervisor 11 can be from the network directly virtual machine 10 of deletion of gathering together 2, or this virtual machine 10 is carried out power-off operation.Afterwards, flow process enters step S37.
Step S37, Hypervisor 11 judge whether gather together 2 resource utilization of this network is between second critical value and first critical value.2 resource utilization is between second critical value and first critical value if this network is gathered together, and shows that then the 2 network services that provide of gathering together of this network are in stable state, and flow process finishes.2 resource utilization is not between second critical value and first critical value if this network is gathered together, then flow process is returned step S34, Hypervisor 11 continues to gather together at network increases virtual machine 10 in 2, or continue to gather together at network and stop to enable virtual machine 10 in 2, gathering together up to network 2 provides the stable network service.
It should be noted last that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although with reference to above preferred embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.

Claims (6)

1. method that automatically expands virtual machine is characterized in that this method comprises:
Be provided for producing the information of first virtual machine, comprise media interviews control MAC Address, the IP address of the Microsoft Loopback Adapter that this first virtual machine is set and be this first virtual machine storage allocation, CPU, network and disk resource;
Produce described first virtual machine according to configuration information, this first virtual machine is joined a network gather together and provide services on the Internet;
When the resource utilization of gathering together when this network is higher than the first default critical value, configuration information with this first virtual machine is that template produces one or more new virtual machine, and will this new virtual machine join and enable after this network is gathered together, so that the stock number that network is gathered together and provided to be provided, reduce the resource utilization that network is gathered together; And
When the resource utilization of gathering together when this network is lower than the second default critical value, stop to enable described network one or more virtual machine in gathering together, so that the stock number that network is gathered together and provided to be provided, improve the resource utilization that network is gathered together.
2. the method for automatic expansion virtual machine as claimed in claim 1 is characterized in that, this network is gathered together and comprised one or more server and many virtual machines, and these many virtual machines can run on identical server, also can run on different servers respectively.
3. the method for automatic expansion virtual machine as claimed in claim 2, it is characterized in that, the stock number that this network is gathered together comprise network gather together in all virtual machines the cpu resource amount, memory source amount, disk resource amount and the amount of network resources that provide, the resource utilization that network is gathered together comprise network gather together in CPU usage, memory usage, disk utilization rate and the network usage of each virtual machine.
4. the method for automatic expansion virtual machine as claimed in claim 1 is characterized in that, stops to enable described network one or more virtual machine in gathering together and comprises: from this network is gathered together the deletion virtual machine and this network gathered together in virtual machine carry out power-off operation.
5. the method for automatic expansion virtual machine as claimed in claim 1, it is characterized in that, be that template produces one or more new virtual machine and comprises with the configuration information of this first virtual machine: for this one or more new virtual machine distributes internal memory, CPU, network and disk resource with this first virtual machine same percentage.
6. the method for automatic expansion virtual machine as claimed in claim 1 is characterized in that, the IP address of virtual machine arranges the protocol DHCP server-assignment by DynamicHost, and the virtual machine monitor of installing on the server during MAC Address is gathered together by network produces.
CN2012100359602A 2012-02-17 2012-02-17 Method of automatically expanding virtual machines Pending CN103259813A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012100359602A CN103259813A (en) 2012-02-17 2012-02-17 Method of automatically expanding virtual machines

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012100359602A CN103259813A (en) 2012-02-17 2012-02-17 Method of automatically expanding virtual machines

Publications (1)

Publication Number Publication Date
CN103259813A true CN103259813A (en) 2013-08-21

Family

ID=48963510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012100359602A Pending CN103259813A (en) 2012-02-17 2012-02-17 Method of automatically expanding virtual machines

Country Status (1)

Country Link
CN (1) CN103259813A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810038A (en) * 2014-01-24 2014-05-21 杭州华三通信技术有限公司 Method and device for transferring virtual machine storage files in HA cluster
CN106571943A (en) * 2015-10-10 2017-04-19 北京国双科技有限公司 Distributed-type configuration cluster capacity-expanding method and device
CN107153570A (en) * 2017-04-11 2017-09-12 华为技术有限公司 The number controlling method and device of a kind of virtual machine
CN107341060A (en) * 2017-07-17 2017-11-10 郑州云海信息技术有限公司 A kind of virutal machine memory distribution method and device
CN112486682A (en) * 2020-11-27 2021-03-12 德萱(天津)科技发展有限公司 Server resource configuration processing method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101211272A (en) * 2006-12-29 2008-07-02 英特尔公司 Dynamic virtual machine generation
US7536525B2 (en) * 2004-11-09 2009-05-19 Dell Products L.P. Virtual machine hot cloning including freezing and unfreezing memory in a distributed network
CN101504620A (en) * 2009-03-03 2009-08-12 华为技术有限公司 Load balancing method, apparatus and system of virtual cluster system
CN101695077A (en) * 2009-09-30 2010-04-14 曙光信息产业(北京)有限公司 Method, system and equipment for deployment of operating system of virtual machine
CN101937360A (en) * 2010-09-01 2011-01-05 浪潮(北京)电子信息产业有限公司 Method and device for creating virtual machines
CN102214117A (en) * 2010-04-07 2011-10-12 中兴通讯股份有限公司 Virtual machine management method, system and server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7536525B2 (en) * 2004-11-09 2009-05-19 Dell Products L.P. Virtual machine hot cloning including freezing and unfreezing memory in a distributed network
CN101211272A (en) * 2006-12-29 2008-07-02 英特尔公司 Dynamic virtual machine generation
CN101504620A (en) * 2009-03-03 2009-08-12 华为技术有限公司 Load balancing method, apparatus and system of virtual cluster system
CN101695077A (en) * 2009-09-30 2010-04-14 曙光信息产业(北京)有限公司 Method, system and equipment for deployment of operating system of virtual machine
CN102214117A (en) * 2010-04-07 2011-10-12 中兴通讯股份有限公司 Virtual machine management method, system and server
CN101937360A (en) * 2010-09-01 2011-01-05 浪潮(北京)电子信息产业有限公司 Method and device for creating virtual machines

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810038A (en) * 2014-01-24 2014-05-21 杭州华三通信技术有限公司 Method and device for transferring virtual machine storage files in HA cluster
CN103810038B (en) * 2014-01-24 2018-04-06 新华三技术有限公司 Virtual machine storage file moving method and its device in a kind of HA clusters
CN106571943A (en) * 2015-10-10 2017-04-19 北京国双科技有限公司 Distributed-type configuration cluster capacity-expanding method and device
CN107153570A (en) * 2017-04-11 2017-09-12 华为技术有限公司 The number controlling method and device of a kind of virtual machine
CN107153570B (en) * 2017-04-11 2020-08-25 华为技术有限公司 Method and device for controlling number of virtual machines
CN107341060A (en) * 2017-07-17 2017-11-10 郑州云海信息技术有限公司 A kind of virutal machine memory distribution method and device
CN107341060B (en) * 2017-07-17 2021-02-05 苏州浪潮智能科技有限公司 Virtual machine memory allocation method and device
CN112486682A (en) * 2020-11-27 2021-03-12 德萱(天津)科技发展有限公司 Server resource configuration processing method and system

Similar Documents

Publication Publication Date Title
JP2013168140A (en) Method for deploying virtual machines
CN103078965B (en) The IP address management method of virtual machine
CN105939290B (en) A kind of method and device for distributing resource
CN103703724B (en) Resource payment method
US7523178B2 (en) Tolerating failure of traffic management systems
CN108924268B (en) Container cloud service system and pod creation method and device
TW201335849A (en) Method for increasing virtual machines
KR20170056350A (en) NFV(Network Function Virtualization) resource requirement verifier
WO2013104217A1 (en) Cloud infrastructure based management system and method for performing maintenance and deployment for application system
TW201250464A (en) System and method for monitoring virtual machines
CN102497409B (en) A kind of method of cloud computing system resource management
CN103259813A (en) Method of automatically expanding virtual machines
CN102811141A (en) Method and system for monitoring running of virtual machines
CN103905232A (en) Virtual-machine management system and method
CN110633130B (en) Virtual memory management method and device based on memory hot plug technology
CN103368785A (en) Server operation monitoring system and method
CN103516547A (en) Network parameter distribution method and device
WO2016095524A1 (en) Resource allocation method and apparatus
WO2013082742A1 (en) Resource scheduling method, device and system
CN103377406A (en) System and method for managing test files
TW201439911A (en) System and method for installing virtual machines
CN103401954B (en) The implementation method of virtual DHCP
CN103618634A (en) Method for automatically finding nodes in cluster
CN103164277A (en) Dynamic resource planning distribution system and method
CN103902310B (en) Scheduling system and method for starting of virtual machines

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130821