[go: up one dir, main page]

CN106874062B - Virtual machine updating method and device - Google Patents

Virtual machine updating method and device Download PDF

Info

Publication number
CN106874062B
CN106874062B CN201510916247.2A CN201510916247A CN106874062B CN 106874062 B CN106874062 B CN 106874062B CN 201510916247 A CN201510916247 A CN 201510916247A CN 106874062 B CN106874062 B CN 106874062B
Authority
CN
China
Prior art keywords
virtual machine
agent
template
computer name
resetting
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.)
Active
Application number
CN201510916247.2A
Other languages
Chinese (zh)
Other versions
CN106874062A (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.)
Sanya Zte Software Co ltd
Original Assignee
Sanya Zte Software 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 Sanya Zte Software Co ltd filed Critical Sanya Zte Software Co ltd
Priority to CN201510916247.2A priority Critical patent/CN106874062B/en
Priority to PCT/CN2016/096404 priority patent/WO2017096951A1/en
Publication of CN106874062A publication Critical patent/CN106874062A/en
Application granted granted Critical
Publication of CN106874062B publication Critical patent/CN106874062B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45529Embedded in an application, e.g. JavaScript in a Web browser
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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
    • 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/45575Starting, stopping, suspending or resuming virtual machine instances

Landscapes

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

Abstract

The invention discloses a virtual machine updating method and a virtual machine updating device, wherein the method comprises the following steps: updating the virtual machine template; recording private information of each virtual machine corresponding to the virtual machine template; replacing the system disk of each virtual machine according to the updated virtual machine template; and setting the corresponding virtual machine according to the recorded private information. According to the scheme of the invention, when the virtual machine used for teaching needs to be updated, a user only needs to set a new template and replace the system disk of each virtual machine according to the new template, so that the user data in the virtual machine is not changed.

Description

Virtual machine updating method and device
Technical Field
The present invention relates to the field of virtualization technologies, and in particular, to a method and an apparatus for updating a virtual machine.
Background
Cloud computing refers to a novel computing mode for sharing IT resources in a virtualization mode based on networks such as the Internet. The core idea is to realize resource integration and configuration optimization by uniformly managing and scheduling resources such as calculation, storage, network, software and the like through a network.
Cloud computing environments can be divided into desktop cloud computing environments and server cloud computing environments, wherein desktop cloud computing focuses on achieving virtualization of a physical desktop in a cloud computing environment to achieve security and flexibility of desktop use. Users can access their personal desktop systems in a desktop cloud computing environment at any time, anywhere, and through any device. Desktop cloud computing has many application scenarios, and in one of the application scenarios, a user establishes a plurality of identical virtual machines based on a unified virtual machine template so as to be used by the user. For example, in a school teaching scene, the virtual machine deployment flow is as follows: teachers make a uniform virtual machine template, then use the template to create a corresponding desktop virtual machine, and students use the same desktop virtual machine to perform classroom experiments.
In some application scenarios, the virtual machine needs to be updated frequently, for example, in the course of usage of a power classroom and a teaching computer in a college, due to the spread of class time of students, different desktop templates and application software are often required to be used in a specific period of time for providing the students with class use. For example, there are physical courses in the morning and computer courses in the afternoon, and different desktop templates and software need to be provided for different courses in the morning and afternoon in the same virtual machine. Thus, the virtual machine needs to be updated before each different session.
When a virtual machine template is updated, all virtual machines established according to the virtual machine template need to be updated in batch, and the current updating has two schemes, namely, software or other applications are manually updated on all the virtual machines; the other method is to delete all the virtual machines, then only update the template, and re-create a classroom virtual machine through the latest template, and then modify the computer name, modify the IP address, add the domain and other operations in batch.
However, in both of these methods, for example, the virtual machines used in the electronic classroom of colleges and universities and the teaching computer are required to be updated, when the teacher needs to update the virtual machines used in teaching, if the teacher needs to update the corresponding software or other applications on each virtual machine in the first method, the teacher needs to re-create a new virtual machine template, and then re-create all the virtual machines using the virtual machine template, and delete all the old virtual machines in the second method. Deleting all virtual machines and recreating all virtual machines also requires a great deal of time and effort, which is a cumbersome process that increases the workload of teachers, relative to the time consumed for updating the corresponding software and applications on each virtual machine, respectively.
Therefore, the two updating methods in the prior art are complicated in flow, and the workload of manual operation is increased.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method and an apparatus for updating a virtual machine, which can improve the efficiency of updating the virtual machine.
In order to achieve the above object, the present invention provides a virtual machine updating method, where the virtual machine updating method includes:
updating the virtual machine template;
recording private information of each virtual machine corresponding to the virtual machine template;
replacing the system disk of each virtual machine according to the updated virtual machine template;
and setting the corresponding virtual machine according to the recorded private information.
Preferably, the updating the virtual machine template includes:
converting the virtual machine template into a virtual machine;
updating software or applications in the virtual machine;
and converting the updated virtual machine into a virtual machine template, thereby obtaining the updated virtual machine template.
Preferably, before the recording the private information of each virtual machine corresponding to the virtual machine template, the virtual machine updating method further includes:
and judging whether the chain type resetting operation of the virtual machine can be carried out or not, and if so, executing the step of recording the private information of each virtual machine corresponding to the virtual machine template.
Preferably, the recording of the private information of each virtual machine corresponding to the virtual machine template includes at least one of the following operations:
operation 1-1, recording IP address information corresponding to each virtual machine;
operation 1-2, recording computer name information corresponding to each virtual machine;
the setting of the corresponding virtual machine according to the recorded private information includes at least one of the following operations:
operation 2-1, respectively setting IP addresses corresponding to the virtual machines according to the recorded IP address information;
and 2-2, recording computer name information corresponding to each virtual machine, and respectively setting the computer names corresponding to the virtual machines.
Preferably, after the corresponding virtual machine is set according to the recorded private information, the virtual machine updating method further includes:
checking whether the updated virtual machine is added with a domain;
under the condition that the virtual machine is not added with the domain, executing domain adding operation on the virtual machine;
and under the condition that the virtual machine is added with the domain, executing a domain quitting operation on the virtual machine, and after the domain quitting is completed, executing a domain adding operation on the virtual machine.
Preferably, the respectively setting the IP addresses corresponding to the virtual machines includes:
initiating an IP resetting request to the message queue through WEB;
forwarding the corresponding reset IP request to the host agent through the message queue;
forwarding the corresponding IP resetting request to the virtual machine agent through the host machine agent;
after receiving the corresponding IP resetting request, the virtual machine agent sets the IP address of the virtual machine according to the recorded IP address information;
sending corresponding reset IP response information to the host agent through the virtual machine agent;
forwarding corresponding reset IP response information to the message queue through the host agent;
forwarding corresponding reset IP response information to WEB through a message queue;
the setting of the computer names corresponding to the virtual machines respectively includes:
initiating a request for resetting the computer name to a message queue through WEB;
forwarding a corresponding computer name resetting request to a host agent through a message queue;
forwarding a corresponding computer name resetting request to the virtual machine agent through the host machine agent;
after receiving the corresponding request for resetting the computer name, the virtual machine agent sets the computer name of the virtual machine according to the recorded computer name address information;
sending corresponding computer name resetting response information to the host agent through the virtual machine agent;
forwarding corresponding computer name resetting response information to the message queue through the host agent;
and forwarding the corresponding computer name resetting response information to the WEB through the message queue.
In order to achieve the above object, the present invention further provides a virtual machine updating apparatus, including:
the template updating unit is used for updating the virtual machine template;
the private information storage unit is used for recording the private information of each virtual machine corresponding to the virtual machine template;
the updating unit is used for replacing the system disk of each virtual machine according to the updated virtual machine template;
and the private information setting unit is used for setting the corresponding virtual machine according to the recorded private information.
Preferably, the template updating unit includes:
the first conversion module is used for converting the virtual machine template into a virtual machine;
the application updating module is used for updating software or application in the virtual machine;
and the second conversion module is used for converting the updated virtual machine into a virtual machine template so as to obtain the updated virtual machine template.
Preferably, the virtual machine updating apparatus further includes:
and the starting checking unit is used for checking whether the chain resetting operation of the virtual machine can be carried out, and if so, executing the step of recording the private information of each virtual machine corresponding to the virtual machine template.
Preferably, the private information holding unit includes at least one of the following modules:
the first storage module is used for recording IP address information corresponding to each virtual machine;
the second storage module is used for recording the computer name information corresponding to each virtual machine;
the private information setting unit includes at least one of the following modules:
the first setting module is used for respectively setting the IP addresses corresponding to the virtual machines according to the recorded IP address information;
and the second setting module is used for recording the computer name information corresponding to each virtual machine and respectively setting the computer name corresponding to each virtual machine.
Preferably, the virtual machine updating apparatus further includes: the domain adding unit is used for checking whether the updated virtual machine is added with the domain; under the condition that the virtual machine is not added with the domain, executing domain adding operation on the virtual machine; and under the condition that the virtual machine is added with the domain, executing a domain quitting operation on the virtual machine, and after the domain quitting is completed, executing a domain adding operation on the virtual machine.
Preferably, the first setting module is specifically configured to:
initiating an IP resetting request to the message queue through WEB;
forwarding the corresponding reset IP request to the host agent through the message queue;
forwarding the corresponding IP resetting request to the virtual machine agent through the host machine agent;
after receiving the corresponding IP resetting request, the virtual machine agent sets the IP address of the virtual machine according to the recorded IP address information;
sending corresponding reset IP response information to the host agent through the virtual machine agent;
forwarding corresponding reset IP response information to the message queue through the host agent;
forwarding corresponding reset IP response information to WEB through a message queue;
the second setting module is specifically configured to:
initiating a request for resetting the computer name to a message queue through WEB;
forwarding a corresponding computer name resetting request to a host agent through a message queue;
forwarding a corresponding computer name resetting request to the virtual machine agent through the host machine agent;
after receiving the corresponding request for resetting the computer name, the virtual machine agent sets the computer name of the virtual machine according to the recorded computer name address information;
sending corresponding computer name resetting response information to the host agent through the virtual machine agent;
forwarding corresponding computer name resetting response information to the message queue through the host agent;
and forwarding the corresponding computer name resetting response information to the WEB through the message queue.
Compared with the prior art, the technical scheme provided by the invention comprises the following steps: updating the virtual machine template; recording private information of each virtual machine corresponding to the virtual machine template; replacing the system disk of each virtual machine according to the updated virtual machine template; and setting the corresponding virtual machine according to the recorded private information. According to the scheme of the invention, when the virtual machine used for teaching needs to be updated, a user only needs to set a new template and replace the system disk of each virtual machine according to the new template, so that the user data in the virtual machine is not changed.
Drawings
The accompanying drawings in the embodiments of the present invention are described below, and the drawings in the embodiments are provided for further understanding of the present invention, and together with the description serve to explain the present invention without limiting the scope of the present invention.
Fig. 1 is a flowchart of a virtual machine update method according to an embodiment of the present invention;
fig. 2A is a schematic flow chart illustrating setting of an IP address corresponding to each virtual machine in the embodiment of the present invention;
fig. 2B is a schematic flowchart of setting a computer name corresponding to each virtual machine in the embodiment of the present invention;
fig. 3 and fig. 4 are schematic structural diagrams of a virtual machine updating apparatus according to an embodiment of the present invention.
Detailed Description
The following further description of the present invention, in order to facilitate understanding of those skilled in the art, is provided in conjunction with the accompanying drawings and is not intended to limit the scope of the present invention. In the present application, the embodiments and various aspects of the embodiments may be combined with each other without conflict.
Referring to fig. 1, the present invention provides a virtual machine update method, where the method includes:
step 110, updating the virtual machine template;
step 150, recording private information of each virtual machine corresponding to the virtual machine template;
and 160, replacing the system disk of each virtual machine according to the updated virtual machine template.
In step 160, since the update process is only to replace the system disk of each virtual machine, the user data in the virtual machine is not changed, and compared with the process of deleting and rebuilding the virtual machine in the prior art, in the virtual machine update method according to the embodiment of the present invention, the user data in the virtual machine is saved. In the process of deleting and rebuilding a virtual machine in the prior art, a system disk of the virtual machine needs to be deleted, and then the system disk is rebuilt.
And 170, setting the corresponding virtual machine according to the recorded private information.
In this embodiment of the present invention, the updating the virtual machine template includes:
step 1101, converting the virtual machine template into a virtual machine;
step 1102, updating software or application in the virtual machine;
step 1103, converting the updated virtual machine into a virtual machine template, thereby obtaining an updated virtual machine template.
In this embodiment of the present invention, before step 150, the virtual machine updating method further includes:
in step 130, it is checked whether a chain reset operation of the virtual machine is possible, and if the chain reset operation of the virtual machine is possible, step 150 is performed.
If the chain reset operation of the virtual machine cannot be performed, step 132 is executed: and displaying a prompt message for reminding that the virtual machine updating process cannot be executed. The reason why the virtual machine cannot be executed may be that the virtual machine is executing other updating or upgrading operations, has not been executed yet, and the like.
After step 110 and before step 130, the virtual machine updating method further includes:
and step 120, starting a virtual machine updating process according to the reset request of the user.
After the step 120, the whole virtual machine updating process is automatically executed, manual operation by a user is not needed, the updating process is quicker, a large amount of labor and time are saved, and the user experience is improved.
Preferably, after step 130, in the case that it is determined that the chain reset operation of the virtual machine is possible, before step 150, the virtual machine update method further includes:
step 140, perform template merge operation.
The template merging operation refers to merging leaf nodes generated in the process of creating, backing up and restoring each virtual machine under the template in order to improve the efficiency of template resetting. For example, a virtual machine may be composed of nodes in multilevel relationships such as a1- - > a1-1- - > a1-1-1 (here, the end of the virtualization layer, a1 and a1-1 are in parent-child relationship, and generally, a1-1-1 is a pulled leaf node), and these nodes are merged and merged into a whole node a.
In this embodiment of the present invention, the recording of the private information of each virtual machine corresponding to the virtual machine template includes at least one of the following operations:
operation 1-1, recording IP address information corresponding to each virtual machine;
operation 1-2, recording computer name information corresponding to each virtual machine;
the setting of the corresponding virtual machine according to the recorded private information includes at least one of the following operations:
operation 2-1, respectively setting IP addresses corresponding to the virtual machines according to the recorded IP address information;
and 2-2, recording computer name information corresponding to each virtual machine, and respectively setting the computer names corresponding to the virtual machines.
Wherein, the operation 2-1 is corresponding to the operation 1-1, and when recording the private information of each virtual machine corresponding to the virtual machine template comprises the operation 1-1, the setting of the corresponding virtual machine according to the recorded private information comprises the operation 2-1; similarly, operation 2-2 corresponds to operation 1-2, and when recording the private information of each virtual machine corresponding to the virtual machine template includes operation 1-2, the setting of the corresponding virtual machine according to the recorded private information includes operation 2-2.
In this embodiment of the present invention, after step 170, the virtual machine updating method further includes:
step 180, checking whether the updated virtual machine is added with a domain;
step 181, executing a domain adding operation on the virtual machine under the condition that the virtual machine is not added with the domain;
step 182, when the virtual machine has been added with the domain, executing a domain quitting operation on the virtual machine, and after the domain quitting is completed, executing step 181.
The following describes a setting process of an IP address and a computer name corresponding to a virtual machine, where the setting of the IP address and the computer name relates to an interaction process between a WEB (management platform), a message queue, a host agent, and a virtual machine agent. The system comprises a control console, a message queue, a host agent, a virtual machine agent and a host agent, wherein the WEB is arranged at a position, used for receiving and caching various request messages, in the control console, of the control console, the host agent is arranged on a physical machine and used for managing a virtual machine running on the physical machine, the virtual machine agent is arranged in the virtual machine, and the virtual machine agent realizes information interaction between the virtual machine and the physical machine through communication with the host agent.
In the embodiment of the invention, the setting of the IP address and the computer name corresponding to the virtual machine is realized through the interactive process among the WEB, the message queue, the host agent and the virtual machine agent, the IP address and the computer name corresponding to the virtual machine are remotely set, the IP address and the computer name corresponding to each virtual machine are not required to be logged in each virtual machine to be set, the WEB is used for uniformly setting each virtual machine, the labor and the time are saved, and the user experience is improved.
Referring to fig. 2A, in operation 2-1 of the virtual machine update method provided by the present invention, the respectively setting the IP addresses corresponding to the virtual machines includes:
step 210, the WEB initiates a reset IP request to the message queue;
step 220, the message queue forwards the corresponding reset IP request to the host agent;
step 230, the host agent forwards the corresponding reset IP request to the virtual machine agent;
step 240, after receiving the corresponding IP resetting request, the virtual machine agent sets the IP address of the virtual machine according to the recorded IP address information;
step 250, the virtual machine agent sends corresponding reset IP response information to the host agent;
step 260, the host agent forwards the corresponding reset IP response information to the message queue;
step 270, the message queue forwards the corresponding reset IP response information to the WEB;
referring to fig. 2B, in operation 2-2 of the virtual machine update method provided by the present invention, the respectively setting the computer names corresponding to the virtual machines includes:
step 310, WEB sends the request of resetting computer name to message queue;
step 320, the message queue forwards the corresponding request for resetting the computer name to the host agent;
step 330, the host agent forwards a corresponding computer name resetting request to the virtual machine agent;
step 340, after receiving the corresponding request for resetting the computer name, the virtual machine agent sets the computer name of the virtual machine according to the recorded computer name address information;
step 350, the virtual machine agent sends corresponding computer name resetting response information to the host machine agent;
step 360, the host agent forwards corresponding computer name resetting response information to the message queue;
step 370, the message queue forwards the corresponding reset computer name response information to the WEB.
Based on the same or similar concept as the foregoing embodiment, an embodiment of the present invention further provides a virtual machine updating apparatus, and referring to fig. 3, the virtual machine updating apparatus provided by the present invention includes:
the template updating unit 10 is used for updating the virtual machine template;
a private information storage unit 50, configured to record private information of each virtual machine corresponding to the virtual machine template;
an updating unit 60, configured to replace a system disk of each virtual machine according to the updated virtual machine template;
and a private information setting unit 70 configured to set the corresponding virtual machine according to the recorded private information.
Referring to fig. 4, in the virtual machine updating apparatus shown in fig. 3, another virtual machine updating apparatus proposed by the present invention is a virtual machine updating apparatus, in which a template updating unit 10 includes:
the first conversion module 11 is used for converting the virtual machine template into a virtual machine;
an application update module 12, configured to update software or an application in the virtual machine;
and a second conversion module 13, configured to convert the updated virtual machine into a virtual machine template, so as to obtain an updated virtual machine template.
In this embodiment of the present invention, the virtual machine updating apparatus further includes:
and a starting checking unit 30, configured to check whether a chain reset operation of the virtual machine is possible, and if so, perform the step of recording private information of each virtual machine corresponding to the virtual machine template.
In this embodiment of the present invention, the virtual machine updating apparatus further includes:
an update request receiving unit 20, configured to notify the start checking unit 30 to start the virtual machine update process according to a reset request of a user.
And a template merging unit 40 for performing a template merging operation.
In this embodiment of the present invention, the private information storage unit 50 includes at least one of the following modules:
a first storage module 51, configured to record IP address information corresponding to each virtual machine;
a second storage module 52, configured to record computer name information corresponding to each virtual machine;
the private information setting unit 70 includes at least one of the following modules:
a first setting module 71, configured to set, according to the recorded IP address information, IP addresses corresponding to the virtual machines respectively;
the second setting module 72 is configured to record computer name information corresponding to each virtual machine, and set the computer name corresponding to each virtual machine.
In this embodiment of the present invention, the virtual machine updating apparatus further includes: a domain adding unit 80, configured to check whether the updated virtual machine has been domain added; under the condition that the virtual machine is not added with the domain, executing domain adding operation on the virtual machine; and under the condition that the virtual machine is added with the domain, executing a domain quitting operation on the virtual machine, and after the domain quitting is completed, executing a domain adding operation on the virtual machine.
In this embodiment of the present invention, the first setting module 71 is specifically configured to:
initiating an IP resetting request to the message queue through WEB;
forwarding the corresponding reset IP request to the host agent through the message queue;
forwarding the corresponding IP resetting request to the virtual machine agent through the host machine agent;
after receiving the corresponding IP resetting request, the virtual machine agent sets the IP address of the virtual machine according to the recorded IP address information;
sending corresponding reset IP response information to the host agent through the virtual machine agent;
forwarding corresponding reset IP response information to the message queue through the host agent;
forwarding corresponding reset IP response information to WEB through a message queue;
the second setting module 72 is specifically configured to:
initiating a request for resetting the computer name to a message queue through WEB;
forwarding a corresponding computer name resetting request to a host agent through a message queue;
forwarding a corresponding computer name resetting request to the virtual machine agent through the host machine agent;
after receiving the corresponding request for resetting the computer name, the virtual machine agent sets the computer name of the virtual machine according to the recorded computer name address information;
sending corresponding computer name resetting response information to the host agent through the virtual machine agent;
forwarding corresponding computer name resetting response information to the message queue through the host agent;
and forwarding the corresponding computer name resetting response information to the WEB through the message queue.
It should be noted that the above-mentioned embodiments are only for facilitating the understanding of those skilled in the art, and are not intended to limit the scope of the present invention, and any obvious substitutions, modifications, etc. made by those skilled in the art without departing from the inventive concept of the present invention are within the scope of the present invention.

Claims (12)

1. A virtual machine updating method, characterized in that the virtual machine updating method comprises:
updating the virtual machine template;
recording private information of each virtual machine corresponding to the virtual machine template;
replacing the system disk of each virtual machine according to the updated virtual machine template;
and setting the corresponding virtual machine according to the recorded private information.
2. The virtual machine updating method according to claim 1, wherein the updating the virtual machine template comprises:
converting the virtual machine template into a virtual machine;
updating software or applications in the virtual machine;
and converting the updated virtual machine into a virtual machine template, thereby obtaining the updated virtual machine template.
3. The virtual machine updating method according to claim 1, wherein before the recording of the private information of each virtual machine corresponding to the virtual machine template, the virtual machine updating method further comprises:
and judging whether the chain type resetting operation of the virtual machine can be carried out or not, and if so, executing the step of recording the private information of each virtual machine corresponding to the virtual machine template.
4. The virtual machine updating method according to claim 1, wherein the recording of the private information of each virtual machine corresponding to the virtual machine template includes at least one of:
operation 1-1, recording IP address information corresponding to each virtual machine;
operation 1-2, recording computer name information corresponding to each virtual machine;
the setting of the corresponding virtual machine according to the recorded private information includes at least one of the following operations:
operation 2-1, respectively setting IP addresses corresponding to the virtual machines according to the recorded IP address information;
and 2-2, recording computer name information corresponding to each virtual machine, and respectively setting the computer names corresponding to the virtual machines.
5. The virtual machine update method according to claim 1, wherein after the setting of the corresponding virtual machine according to the recorded private information, the virtual machine update method further comprises:
checking whether the updated virtual machine is added with a domain;
under the condition that the virtual machine is not added with the domain, executing domain adding operation on the virtual machine;
and under the condition that the virtual machine is added with the domain, executing a domain quitting operation on the virtual machine, and after the domain quitting is completed, executing a domain adding operation on the virtual machine.
6. The virtual machine update method according to claim 4,
the respectively setting the IP addresses corresponding to the virtual machines includes:
initiating an IP resetting request to the message queue through WEB;
forwarding the corresponding reset IP request to the host agent through the message queue;
forwarding the corresponding IP resetting request to the virtual machine agent through the host machine agent;
after receiving the corresponding IP resetting request, the virtual machine agent sets the IP address of the virtual machine according to the recorded IP address information;
sending corresponding reset IP response information to the host agent through the virtual machine agent;
forwarding corresponding reset IP response information to the message queue through the host agent;
forwarding corresponding reset IP response information to WEB through a message queue;
the setting of the computer names corresponding to the virtual machines respectively includes:
initiating a request for resetting the computer name to a message queue through WEB;
forwarding a corresponding computer name resetting request to a host agent through a message queue;
forwarding a corresponding computer name resetting request to the virtual machine agent through the host machine agent;
after receiving the corresponding request for resetting the computer name, the virtual machine agent sets the computer name of the virtual machine according to the recorded computer name address information;
sending corresponding computer name resetting response information to the host agent through the virtual machine agent;
forwarding corresponding computer name resetting response information to the message queue through the host agent;
and forwarding the corresponding computer name resetting response information to the WEB through the message queue.
7. A virtual machine update apparatus, wherein the virtual machine update apparatus comprises:
the template updating unit is used for updating the virtual machine template;
the private information storage unit is used for recording the private information of each virtual machine corresponding to the virtual machine template;
the updating unit is used for replacing the system disk of each virtual machine according to the updated virtual machine template;
and the private information setting unit is used for setting the corresponding virtual machine according to the recorded private information.
8. The virtual machine updating apparatus according to claim 7, wherein the template updating unit includes:
the first conversion module is used for converting the virtual machine template into a virtual machine;
the application updating module is used for updating software or application in the virtual machine;
and the second conversion module is used for converting the updated virtual machine into a virtual machine template so as to obtain the updated virtual machine template.
9. The virtual machine updating apparatus according to claim 7, wherein the virtual machine updating apparatus further comprises:
and the starting checking unit is used for checking whether the chain resetting operation of the virtual machine can be carried out, and if so, executing the step of recording the private information of each virtual machine corresponding to the virtual machine template.
10. The virtual machine updating apparatus according to claim 7, wherein the private information holding unit includes at least one of:
the first storage module is used for recording IP address information corresponding to each virtual machine;
the second storage module is used for recording the computer name information corresponding to each virtual machine;
the private information setting unit includes at least one of the following modules:
the first setting module is used for respectively setting the IP addresses corresponding to the virtual machines according to the recorded IP address information;
and the second setting module is used for recording the computer name information corresponding to each virtual machine and respectively setting the computer name corresponding to each virtual machine.
11. The virtual machine updating apparatus according to claim 7, wherein the virtual machine updating apparatus further comprises: the domain adding unit is used for checking whether the updated virtual machine is added with the domain; under the condition that the virtual machine is not added with the domain, executing domain adding operation on the virtual machine; and under the condition that the virtual machine is added with the domain, executing a domain quitting operation on the virtual machine, and after the domain quitting is completed, executing a domain adding operation on the virtual machine.
12. The virtual machine update apparatus according to claim 10,
the first setting module is specifically configured to:
initiating an IP resetting request to the message queue through WEB;
forwarding the corresponding reset IP request to the host agent through the message queue;
forwarding the corresponding IP resetting request to the virtual machine agent through the host machine agent;
after receiving the corresponding IP resetting request, the virtual machine agent sets the IP address of the virtual machine according to the recorded IP address information;
sending corresponding reset IP response information to the host agent through the virtual machine agent;
forwarding corresponding reset IP response information to the message queue through the host agent;
forwarding corresponding reset IP response information to WEB through a message queue;
the second setting module is specifically configured to:
initiating a request for resetting the computer name to a message queue through WEB;
forwarding a corresponding computer name resetting request to a host agent through a message queue;
forwarding a corresponding computer name resetting request to the virtual machine agent through the host machine agent;
after receiving the corresponding request for resetting the computer name, the virtual machine agent sets the computer name of the virtual machine according to the recorded computer name address information;
sending corresponding computer name resetting response information to the host agent through the virtual machine agent;
forwarding corresponding computer name resetting response information to the message queue through the host agent;
and forwarding the corresponding computer name resetting response information to the WEB through the message queue.
CN201510916247.2A 2015-12-11 2015-12-11 Virtual machine updating method and device Active CN106874062B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510916247.2A CN106874062B (en) 2015-12-11 2015-12-11 Virtual machine updating method and device
PCT/CN2016/096404 WO2017096951A1 (en) 2015-12-11 2016-08-23 Virtual machine update method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510916247.2A CN106874062B (en) 2015-12-11 2015-12-11 Virtual machine updating method and device

Publications (2)

Publication Number Publication Date
CN106874062A CN106874062A (en) 2017-06-20
CN106874062B true CN106874062B (en) 2021-10-12

Family

ID=59012650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510916247.2A Active CN106874062B (en) 2015-12-11 2015-12-11 Virtual machine updating method and device

Country Status (2)

Country Link
CN (1) CN106874062B (en)
WO (1) WO2017096951A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110874232B (en) * 2018-09-04 2023-12-29 中兴通讯股份有限公司 Virtual machine component upgrading method, equipment and computer readable storage medium
CN111414232B (en) * 2020-03-19 2024-01-19 建信金融科技有限责任公司 Virtual machine template data processing method and device
CN112363671B (en) * 2020-10-23 2022-07-05 中国电子科技网络信息安全有限公司 A virtual machine template image storage method based on cloud platform of fusion architecture
CN114595028A (en) * 2022-01-28 2022-06-07 新华三云计算技术有限公司 Cloud desktop system disk updating method and device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216777A (en) * 2008-01-11 2008-07-09 华中科技大学 A Rapid Deployment System in Multi-Virtual Machine Environment
CN104461693A (en) * 2014-12-11 2015-03-25 中标软件有限公司 Virtual machine updating method and virtual machine updating system under desktop cloud computing environment
CN105045663A (en) * 2015-08-24 2015-11-11 湖南昇云科技有限公司 Method and system for rapidly deploying virtual machine

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073536A (en) * 2011-01-11 2011-05-25 济南银泉科技有限公司 Method for editing template into warehouse by cloud platform and generating virtual machines in bulk
CN102917017A (en) * 2012-09-08 2013-02-06 佳都新太科技股份有限公司 Universal automatic IP (Internet Protocol) allocation method when cloning virtual machines
CN104156256A (en) * 2014-08-22 2014-11-19 成都致云科技有限公司 Efficient and flexible cloud mainframe magnetic disk cloning method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216777A (en) * 2008-01-11 2008-07-09 华中科技大学 A Rapid Deployment System in Multi-Virtual Machine Environment
CN104461693A (en) * 2014-12-11 2015-03-25 中标软件有限公司 Virtual machine updating method and virtual machine updating system under desktop cloud computing environment
CN105045663A (en) * 2015-08-24 2015-11-11 湖南昇云科技有限公司 Method and system for rapidly deploying virtual machine

Also Published As

Publication number Publication date
CN106874062A (en) 2017-06-20
WO2017096951A1 (en) 2017-06-15

Similar Documents

Publication Publication Date Title
JP7092736B2 (en) Dynamic routing using container orchestration services
CN106843828B (en) Interface display and loading method and device
Doelitzscher et al. Private cloud for collaboration and e-Learning services: from IaaS to SaaS
US20180285053A1 (en) Screenshot method and apparatus
CN107431630B (en) Highly scalable, fault-tolerant remote access architecture and methods of connecting to it
JP5992511B2 (en) Cloud service reconnection automation
CN106874062B (en) Virtual machine updating method and device
CN106548670A (en) Online teaching platform and online teaching method
CN103780700A (en) Application system and method for achieving compatibility and sharing among multi-source heterogeneous systems
CN113568970B (en) Application business data management method, device, equipment and storage medium
CN111277432A (en) Configuration information updating method and device, electronic equipment and storage medium
CN112437004A (en) Information processing method, information processing device, electronic equipment and storage medium
US20090106260A1 (en) Method and System for Transferring Files
CN105023207A (en) Teacher layout family operation system and method
CN108804202A (en) A kind of enterprise-level container mirror image management method and system
WO2008016483A1 (en) Provision and management of conference websites
CN113760461B (en) Version upgrading method and computer readable storage medium
CN104580303A (en) Virtual resource operating system, operator management platform and application service sharing method
US11290318B2 (en) Disaster recovery of cloud resources
CN106875765B (en) Electronic classroom implementation method and device based on VDI
US10827079B1 (en) Methods and systems for reducing data traffic flow between a network and an online charging system
EP3203375A1 (en) Method, apparatus and system for deepening mirror image
Mateo Sanguino et al. Exploring strengths and weaknesses: A case study after developing a remote network lab
CN112346979B (en) Software performance testing method, system and readable storage medium
CN111414232B (en) Virtual machine template data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant