CN102810067A - Virtual machine template updating system and method - Google Patents

Virtual machine template updating system and method Download PDF

Info

Publication number
CN102810067A
CN102810067A CN2011101478055A CN201110147805A CN102810067A CN 102810067 A CN102810067 A CN 102810067A CN 2011101478055 A CN2011101478055 A CN 2011101478055A CN 201110147805 A CN201110147805 A CN 201110147805A CN 102810067 A CN102810067 A CN 102810067A
Authority
CN
China
Prior art keywords
virtual machine
machine template
template
server
module
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
CN2011101478055A
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 CN2011101478055A priority Critical patent/CN102810067A/en
Publication of CN102810067A publication Critical patent/CN102810067A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a virtual machine template updating method which comprises the following steps: allocating IP (internet protocol) addresses to all the servers in the data center through the DHCP (dynamic host configuration protocol) service in a monitoring server so as to establish communication connection with all the servers; setting a first virtual machine template into the power off state, and making the deployment of the virtual machine on each server point to the first virtual machine template; setting a second virtual machine template into the power on state, and starting the automatic updating function; when the updating of the second virtual machine template finishes, setting the second virtual machine template into the power off state, and making the deployment of the virtual machines point to the second virtual machine template; duplicating the second virtual machine template, and replacing the first virtual machine template by the duplicated second virtual machine template so that the first virtual machine template and the second virtual machine template are same to each other. The invention also provides a virtual machine template updating system. Due to the adoption of the virtual machine template updating system and method, the interruption of service during the updating of the system of the single virtual machine can be avoided, and the stability of the data center is improved.

Description

Virtual machine template update system and method
Technical field
The present invention relates to a kind of virtual machine control system and method, especially about a kind of virtual machine template update system and method.
Background technology
Virtual machine (Virtual Machine) be meant through software simulation, that have the complete hardware system function, operate in a complete computer in the complete isolation environment.Through on the server of data center, virtual machine being installed, can on this server, simulate one or more virtual server (a plurality of operating systems promptly are installed) on virtual machine.Thus; Can reduce the purchase cost of the server apparatus of data center; Can also leave the peak demand according to the spike of usefulness simultaneously; Dynamic Elastic migratory system platform between the knife plate of each server or blade server lets the IT personnel do more effective scheduling of resource, and obtains protection better and that safety is careful.
With resources centralized management, and use virtual machine to provide services on the Internet to be present trend, also to be an important task and manage a large amount of fictitious host computers.The life cycle of virtual machine; Newly-increased-configuration-deployment-issue-use-termination-recovery; Because present operating system can need frequent renewal or repair leak, if before being distributed to the user; Can solve the known problem of operating system earlier, the user can save many extra system attended operations so.
The flow process of disposing virtual machine usually is: set up virtual machine template (Virtual Machine Template) in advance; When disposing virtual machine in need server, VM Template is pointed in the deployment of virtual machine on each server dispose in data center.
Yet above-mentioned way has several shortcomings:
The first, VM Template is in off-mode usually when disposing, and only can do once and set up VM Template, carries out system update so will upgrade after VM Template can only manually start shooting, or rebuilds a new VM Template.
If the second VM Template is set to open state to carry out system update, may causes data exception owing to carry out VM Template deployment, and then can't dispose virtual machine at open state.
Three, because the system update of VM Template adding up property usually, the external member that the time need upgrade more for a long time is many more, and it is too high to rebuild a new VM Template time cost.
Summary of the invention
In view of above content; Be necessary to provide a kind of virtual machine template update system, can carry out system update in turn, avoid because single virtual machine template causes service disruption when carrying out system update through two virtual machine template; Make things convenient for the user, improved the stability of data center.
In view of above content; Also be necessary to provide a kind of virtual machine template update method, can carry out system update in turn, avoid because single virtual machine template causes service disruption when carrying out system update through two virtual machine template; Make things convenient for the user, improved the stability of data center.
A kind of virtual machine template update system, this system comprises: distribution module is used for giving each server in the data center through the DHCP service assignment IP address of monitoring server, to establish a communications link with each server; Module is set, is used for first virtual machine template and is set to off-mode, and first virtual machine template is pointed in the deployment of virtual machine on each server; The said module that is provided with also is used for second virtual machine template and is set to open state and opens automatically updating function; Judge module is used to judge whether second virtual machine template upgrades completion; The said module that is provided with also is used for when second virtual machine template is upgraded completion, and second virtual machine template is set to off-mode, and second virtual machine template is pointed in the deployment of virtual machine; The replacement module is used to duplicate second virtual machine template, and replaces first virtual machine template with second virtual machine template of duplicating, and makes the virtual machine template of winning identical with second virtual machine template.
A kind of virtual machine template update method, this method comprises: give each server in the data center through the DHCP service assignment IP address in the monitoring server, to establish a communications link with each server; First virtual machine template is set to off-mode, and first virtual machine template is pointed in the deployment of virtual machine on each server; Second virtual machine template is set to open state and opens automatically updating function; Judge whether second virtual machine template upgrades completion; When second virtual machine template was upgraded completion, second virtual machine template was set to off-mode, and second virtual machine template is pointed in the deployment of virtual machine; Duplicate second virtual machine template, and replace first virtual machine template, make the virtual machine template of winning identical with second virtual machine template with second virtual machine template of duplicating.
Compared to prior art; Virtual machine template update system provided by the invention and method can be carried out system update in turn through two virtual machine template, avoid because single virtual machine template causes service disruption when carrying out system update; Make things convenient for the user, improved the stability of data center.
Description of drawings
Fig. 1 is the applied environment figure of virtual machine template update system of the present invention preferred embodiment.
Fig. 2 is the structural representation of monitoring server preferred embodiment of the present invention.
Fig. 3 is the process flow diagram of virtual machine template update method of the present invention preferred embodiment.
The main element symbol description
Client 10
Monitoring server 20
Database 30
Network 40
Data center 50
Server 500
The virtual machine template update system 200
Distribution module 210
Module is set 220
Judge module 230
The replacement module 240
Storer 250
Processor 260
Following embodiment will combine above-mentioned accompanying drawing to further specify the present invention.
Embodiment
Consulting shown in Figure 1ly, is the applied environment figure of virtual machine template update system 200 preferred embodiments of the present invention.This virtual machine template update system 200 is applied in the monitoring server 20.This monitoring server 20 and data center (Data Center) 50 communicate through network 40 and are connected.
Said network 40 can be internet, LAN or other communication network.
Said data center 50 comprises a plurality of servers 500 (among the figure be example with four), and said server 500 is a blade server.In the present embodiment, said server 500 is called the Host main frame, on each Host main frame one or more virtual machines is installed.
Two virtual machine template (Virtual Machine Template is installed in the said monitoring server 20; VMT); Be respectively first virtual machine template and second virtual machine template, through said virtual machine template can be very easily with deploying virtual machine to server 500, said virtual machine template is the image file of operating system; For example, the image file of the Windows of Microsoft.This monitoring server 20 is also referred to as Virtual Center.This monitoring server 20 also is equipped with DynamicHost agreement (Dynamic Host Configuration Protocol is set; DHCP) service; Through DHCP service can distribution network between interconnection agreement (Internet Protocol; IP) each server 500 in the data center 50 is given in address, and monitoring server 20 can be communicated with each server 500 of data center 50.This monitoring server 20 can be personal computer, the webserver, can also be any computing machine that other is suitable for.In addition, this monitoring server 20 can also be placed on data center 50 inside, and the user only needs to operate the monitoring that just can realize virtual machine template in the server 500 through client 10.
Said monitoring server 20 connects through a database and is connected with database 30.Wherein, said database connect can be an open type data storehouse connect (Open Database Connectivity, ODBC), or the Java database connect (Java Database Connectivity, JDBC).Said database 30 is used to store the data that send from each server 500 of data center 50, and these data comprise the IP address of each server 500 of data center 50.
What this need explain be, database 30 can be independent of monitoring server 20, also can be positioned at monitoring server 20.For example, said database 30 can be stored in the hard disk or flash disk of monitoring server 20.Consider that from the angle of security of system the database 30 in the present embodiment is independent of monitoring server 20.
In addition, client 10 is used to provide an interactive interface to the user, is convenient to that the user operates and the various data in the operating process are stored in the monitoring server 20.This client 10 can be personal computer, notebook computer and other equipment or system that can be connected with monitoring server 20 arbitrarily.
Consulting shown in Figure 2ly, is the structural representation of monitoring server 20 preferred embodiments of the present invention.This monitoring server 20 also comprises storer 250 and processor 260 except comprising virtual machine template update system 200.This virtual machine template update system 200 comprises distribution module 210, module 220 is set, judge module 230 and replacement module 240.The sequencing code storage of module 210 to 240 is in storer 250, and processor 260 is realized the above-mentioned functions that virtual machine template update system 200 provides through carrying out these sequencing codes.
Distribution module 210 is used for giving each server 500 in the data center 50 through the DHCP service assignment IP address of monitoring server 20, to establish a communications link with each server 500.Particularly, as shown in Figure 1, there are four servers 500 in data center 50, and distribution module 210 is served to each server 500 through DHCP and distributed an IP address separately.
Module 220 is set is used for first virtual machine template and is set to off-mode, and first virtual machine template is pointed in the deployment of virtual machine on each server.Particularly, when first virtual machine template was pointed in the deployment of virtual machine on each server 500, monitoring server 20 can be deployed to first virtual machine template on each server 500, generates virtual machine thereby make on each server 500.Need explain be that said setting all is that monitoring server 20 is accomplished automatically, does not need extra manual operation.
The said module 220 that is provided with also is used for second virtual machine template and is set to open state and opens automatically updating function.Because virtual machine template is the image file of an operating system, comprises automatically updating function in the operating system, for example, the Windows of Microsoft comprises automatically updating function, and the user only need open this function and get final product.
Judge module 230 is used to judge whether second virtual machine template upgrades completion.Because virtual machine template is the image file of an operating system; After operating system update is accomplished; Usually operating system can be restarted automatically; In this preferred embodiment, said judge module is to judge through judging whether this second virtual machine template restarts whether second virtual machine template upgrades completion.
If second virtual machine template is restarted, then judged result is that this second virtual machine template is upgraded completion.If second virtual machine template is not restarted, then judged result is that this second virtual machine template is upgraded also not completion, and carries out determining step always, accomplishes for upgrading up to judged result.
The said module 220 that is provided with also is used for when second virtual machine template is upgraded completion, and second virtual machine template is set to off-mode, and second virtual machine template is pointed in the deployment of virtual machine.Particularly, when second virtual machine template was pointed in the deployment of virtual machine on each server 500, monitoring server 20 can be deployed to second virtual machine template on each server 500, thereby made the virtual machine on each server 500 obtain upgrading.
Replacement module 240 is used to duplicate second virtual machine template, and replaces first virtual machine template with second virtual machine template of duplicating.The virtual machine read-write can not take place because of the renewal of virtual machine template and interrupt, thereby not influence the use of user to virtual machine when disposing in the virtual machine that guarantees that first virtual machine template and second virtual machine template are identical and can guarantee server 500.
As shown in Figure 3, be the process flow diagram of virtual machine template update method of the present invention preferred embodiment.
Step S 10, and distribution module 210 is given each server 500 in the data center 50 through the DHCP service assignment IP address in the monitoring server 20, to establish a communications link with each server 500.Particularly, as shown in Figure 1, there are four servers 500 in data center 50, and distribution module 210 is served to each server 500 through DHCP and distributed an IP address separately.
Step S20 is provided with module 220 first virtual machine template and is set to off-mode, and first virtual machine template is pointed in the deployment of virtual machine on each server.Particularly, when first virtual machine template was pointed in the deployment of virtual machine on each server 500, monitoring server 20 can be deployed to first virtual machine template on each server 500, generates virtual machine thereby make on each server 500.Need explain be that said setting all is that monitoring server 20 is accomplished automatically, does not need extra manual operation.
Step S30 is provided with module 220 second virtual machine template and is set to open state and opens automatically updating function.Because virtual machine template is the image file of an operating system, comprises automatically updating function in the operating system, for example, the Windows of Microsoft comprises automatically updating function, and the user only need open this function and get final product.
Step S40, judge module 230 judge whether second virtual machine template upgrades completion.Because virtual machine template is the image file of an operating system; After operating system update is accomplished; Usually operating system can be restarted automatically; In this preferred embodiment, said judge module is to judge through judging whether this second virtual machine template restarts whether second virtual machine template upgrades completion.
If second virtual machine template is restarted, then judged result is that this second virtual machine template is upgraded completion, and flow process gets into step S50.
If second virtual machine template is not restarted, then judged result is that this second virtual machine template is upgraded also not completion, continues execution in step S40, accomplishes for upgrading up to judged result.
Step S50 is provided with module 220 second virtual machine template and is set to off-mode, and second virtual machine template is pointed in the deployment of virtual machine.Particularly, when second virtual machine template was pointed in the deployment of virtual machine on each server 500, monitoring server 20 can be deployed to second virtual machine template on each server 500, thereby made the virtual machine on each server 500 obtain upgrading.
Step S60, replacement module 240 is duplicated second virtual machine template, and replaces first virtual machine template with second virtual machine template of duplicating, and makes the virtual machine template of winning identical with second virtual machine template.The virtual machine read-write can not take place because of the renewal of virtual machine template and interrupt, thereby not influence the use of user to virtual machine when disposing in the virtual machine that guarantees that first virtual machine template and second virtual machine template are identical and can guarantee server 500.
It should be noted last that; Above embodiment is only unrestricted in order to technical scheme of the present invention to be described; Although the present invention is specified with reference to above preferred embodiment; Those of ordinary skill in the art should be appreciated that and can make amendment or be equal to replacement technical scheme of the present invention, and do not break away from the spirit and the scope of technical scheme of the present invention.

Claims (6)

1. a virtual machine template update system is characterized in that, this system comprises:
Distribution module is used for giving each server in the data center through the DHCP service assignment IP address of monitoring server, to establish a communications link with each server;
Module is set, is used for first virtual machine template and is set to off-mode, and first virtual machine template is pointed in the deployment of virtual machine on each server;
The said module that is provided with also is used for second virtual machine template and is set to open state and opens automatically updating function;
Judge module is used to judge whether second virtual machine template upgrades completion;
The said module that is provided with also is used for when second virtual machine template is upgraded completion, and second virtual machine template is set to off-mode, and second virtual machine template is pointed in the deployment of virtual machine; And
The replacement module is used to duplicate second virtual machine template, and replaces first virtual machine template with second virtual machine template of duplicating, and makes the virtual machine template of winning identical with second virtual machine template.
2. virtual machine template update system as claimed in claim 1 is characterized in that, said first virtual machine template and second virtual machine template are the image file of the operating system of monitoring server.
3. virtual machine template update system as claimed in claim 1 is characterized in that, saidly judges whether second virtual machine template is upgraded to accomplish and realizes through judging whether this second virtual machine template restarts.
4. a virtual machine template update method is characterized in that, this method comprises:
Give each server in the data center through the DHCP service assignment IP address in the monitoring server, to establish a communications link with each server;
First virtual machine template is set to off-mode, and first virtual machine template is pointed in the deployment of virtual machine on each server;
Second virtual machine template is set to open state and opens automatically updating function;
Judge whether second virtual machine template upgrades completion;
When second virtual machine template was upgraded completion, second virtual machine template was set to off-mode, and second virtual machine template is pointed in the deployment of virtual machine; And
Duplicate second virtual machine template, and replace first virtual machine template, make the virtual machine template of winning identical with second virtual machine template with second virtual machine template of duplicating.
5. virtual machine template update method as claimed in claim 4 is characterized in that, said first virtual machine template and second virtual machine template are the image file of the operating system of monitoring server.
6. virtual machine template update method as claimed in claim 4 is characterized in that, saidly judges whether second virtual machine template is upgraded to accomplish and realizes through judging whether this second virtual machine template restarts.
CN2011101478055A 2011-06-02 2011-06-02 Virtual machine template updating system and method Pending CN102810067A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101478055A CN102810067A (en) 2011-06-02 2011-06-02 Virtual machine template updating system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101478055A CN102810067A (en) 2011-06-02 2011-06-02 Virtual machine template updating system and method

Publications (1)

Publication Number Publication Date
CN102810067A true CN102810067A (en) 2012-12-05

Family

ID=47233776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101478055A Pending CN102810067A (en) 2011-06-02 2011-06-02 Virtual machine template updating system and method

Country Status (1)

Country Link
CN (1) CN102810067A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426205A (en) * 2015-11-03 2016-03-23 上海斐讯数据通信技术有限公司 Upgrading method and device of cloud platform template
CN105426213A (en) * 2015-12-04 2016-03-23 深圳市深信服电子科技有限公司 Software update method and system
CN108021408A (en) * 2016-11-01 2018-05-11 阿里巴巴集团控股有限公司 Upgrade method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101695077A (en) * 2009-09-30 2010-04-14 曙光信息产业(北京)有限公司 Method, system and equipment for deployment of operating system of virtual machine
CN101727331A (en) * 2008-10-24 2010-06-09 国际商业机器公司 Method and equipment for upgrading client operating system of active virtual machine
US20110078681A1 (en) * 2009-09-30 2011-03-31 International Business Machines Corporation Method and system for running virtual machine image

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727331A (en) * 2008-10-24 2010-06-09 国际商业机器公司 Method and equipment for upgrading client operating system of active virtual machine
CN101695077A (en) * 2009-09-30 2010-04-14 曙光信息产业(北京)有限公司 Method, system and equipment for deployment of operating system of virtual machine
US20110078681A1 (en) * 2009-09-30 2011-03-31 International Business Machines Corporation Method and system for running virtual machine image

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426205A (en) * 2015-11-03 2016-03-23 上海斐讯数据通信技术有限公司 Upgrading method and device of cloud platform template
CN105426213A (en) * 2015-12-04 2016-03-23 深圳市深信服电子科技有限公司 Software update method and system
CN105426213B (en) * 2015-12-04 2019-05-21 深信服科技股份有限公司 Oftware updating method and system
CN108021408A (en) * 2016-11-01 2018-05-11 阿里巴巴集团控股有限公司 Upgrade method and device

Similar Documents

Publication Publication Date Title
CN107566165B (en) Method and system for discovering and deploying available resources of power cloud data center
US7716373B2 (en) Method, apparatus, and computer product for updating software
CN102609281B (en) Distributed software patch update method and system
CN110719209B (en) Cluster network configuration method, system, equipment and readable storage medium
CN106878334A (en) The automatically dispose system and method for cloud
CN108089913B (en) Virtual machine deployment method of super-fusion system
US11210132B2 (en) Virtual machine migration in virtualization environment having different virtualization systems
EP3700140A1 (en) Deploying, testing, monitoring, scaling, and healing virtual network functions in a software-defined network
JP2013218687A (en) Server monitoring system and method
JP2012252704A (en) Update system of virtual machine template and method thereof
CN104360878A (en) Method and device for deploying application software
CN104951694A (en) Isolation method and apparatus for management virtual machine
CN106126273A (en) A kind of method of upgrading BIOS
CN102833083A (en) Data center power supply device control system and method
CN104754032A (en) Method and device for deploying OpenStack
CN102654836A (en) Virtual machine mounting system and method
WO2017124799A1 (en) Firmware management method and device
CN102811141A (en) Method and system for monitoring running of virtual machines
CN114996006A (en) Server arrangement configuration execution method, device, equipment and medium
CN104967532B (en) TOC technologies operational system and application process
CN103164277A (en) Dynamic resource planning distribution system and method
CN103902310B (en) Scheduling system and method for starting of virtual machines
CN102810067A (en) Virtual machine template updating system and method
CN107733717B (en) Network configuration method for mobile operation and maintenance of cloud platform
CN111953809B (en) Method, device, equipment and system for managing resource address

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: 20121205