Search

CN-121996265-A - System for upgrading application program of virtual machine, system deployment method and upgrading method

CN121996265ACN 121996265 ACN121996265 ACN 121996265ACN-121996265-A

Abstract

The embodiment of the disclosure provides a virtual machine application program upgrading system, a system deployment method and an upgrading method. The system comprises an upgrade server, a virtualization management platform and virtual machines, wherein the upgrade server is independently deployed by the virtualization management platform according to the size of the virtual machines to be upgraded by adopting a cluster deployment or non-cluster deployment mode, and is used for providing upgrade services for the virtual machines under at least one virtualization management platform, the virtualization management platform is used for managing the upgrade server through network communication, and the virtual machines are provided with client programs for upgrading, and the client programs and the upgrade server realize the upgrade of application programs of the virtual machines through network communication. According to the embodiment, the upgrade server can adapt to scenes of different virtual machine scales, upgrade of the virtual machine application program of the cross-virtualization platform is achieved, resources are saved, equipment maintenance is facilitated, and a solution for upgrading the virtual machine application program can be provided under the condition that a virtual machine CD-ROM cannot be used.

Inventors

  • LI WEICHEN

Assignees

  • 中兴通讯股份有限公司

Dates

Publication Date
20260508
Application Date
20241105

Claims (19)

  1. 1. An upgrade system of a virtual machine application program comprises an upgrade server, a virtualization management platform and a virtual machine; The upgrade server is independently deployed by the virtualization management platform according to the size of the scale of the virtual machine to be upgraded by adopting a cluster deployment or non-cluster deployment mode, and is used for providing upgrade service for the virtual machine under at least one virtualization management platform; the virtualization management platform is used for managing the upgrading server through network communication; and the virtual machine is provided with a client program for upgrading, and the client program is communicated with the upgrading server through a network to realize the upgrading of the application program of the virtual machine.
  2. 2. The upgrade system of virtual machine application program of claim 1, wherein, in the case that the deployment is a non-clustered deployment, the upgrade server comprises a version server and a download server; the upgrade server providing upgrade services to the virtual machine, comprising: the version server provides a service for inquiring the version information and the downloading path of the application program and stores the upgrading progress of each application program version package; the download server provides a download application version package service.
  3. 3. The upgrade system of the virtual machine application program according to claim 1, wherein in the case that the deployment mode is cluster deployment, the upgrade server comprises a load balancer, a plurality of version servers and a plurality of download servers, wherein the plurality of version servers and the plurality of download servers are connected with corresponding virtualization management platforms and virtual machine networks; the upgrade server providing upgrade services to the virtual machine, comprising: the version server provides a service for inquiring the version information and the downloading path of the application program and stores the upgrading progress of each application program version package; The download server provides a download application version package service; and the load balancer shunts the query requests and/or the download requests sent by the virtualized management platform and the cluster of the virtual machine, so that the load balancing of the version server and the download server is realized.
  4. 4. The upgrade system of virtual machine application program of claim 1, wherein said upgrade server is deployed from a virtualization management platform selected from said at least one virtualization management platform, wherein the virtualization management platform deploying said upgrade server is a master virtualization management platform.
  5. 5. The upgrade system of virtual machine applications according to claim 4, wherein a non-primary virtualization management platform of the at least one virtualization management platform selectively interfaces with the existing upgrade servers at respective interfaces of the non-primary virtualization management platform to upgrade virtual machines respectively managed by the non-primary virtualization management platform based on the interfaced upgrade servers.
  6. 6. The upgrade system of virtual machine applications according to claim 1, wherein said virtualization management platform is further configured to: configuring the scale of the upgrade server according to the scale of the virtual machine, and/or, Different upgrade strategies are set for different virtual machine application programs, and the upgrade strategies are issued to corresponding virtual machines.
  7. 7. The upgrade system of virtual machine applications of claim 6, wherein the upgrade policy comprises a timed poll period, a poll interval, and an upgrade mode; the timing polling time period is a time period for the virtual machine to poll the upgrade server for version information and download an application program version package; the polling time interval is a time interval between polling queries by the virtual machine to the upgrade server; the upgrade mode comprises immediate upgrade, idle upgrade and manual upgrade.
  8. 8. A deployment method of an upgrade system of a virtual machine application program, based on the upgrade system of a virtual machine application program of any one of claims 1-7, the method comprising: Deploying a set of upgrading servers by the selected main virtualization management platform according to the scale of the virtual machine to be upgraded by adopting a cluster deployment or non-cluster deployment mode; After the main virtualization management platform finishes deploying the upgrade server, an application program version package of the virtual machine uploaded to the main virtualization management platform is obtained, and the application program version package, version information of the application program version package and a downloading path are synchronized to the upgrade server; A client program for upgrade is pre-installed inside the virtual machine.
  9. 9. The deployment method of the upgrade system of the virtual machine application program according to claim 8, wherein the deploying, by the selected main virtualization management platform, a set of upgrade servers in a deployment manner of cluster deployment or non-cluster deployment according to the size of the virtual machine to be upgraded comprises: Under the condition that the upgrade server is required to provide upgrade service for virtual machines under one or more virtualization management platforms, selecting one virtualization management platform from the one or more virtualization management platforms according to a preset selection rule as a main virtualization management platform, and deploying the upgrade server on a physical or virtual server by the main virtualization management platform; And the non-main virtualization management platforms in the one or more virtualization management platforms select to dock the existing upgrading servers at respective interfaces of the non-main virtualization management platforms so as to upgrade the virtual machines respectively managed by the non-main virtualization management platforms based on the docked upgrading servers.
  10. 10. The deployment method of the upgrade system of the virtual machine application program according to claim 9, wherein the deploying, by the selected primary virtualization management platform, a set of upgrade servers in a deployment manner of cluster deployment or non-cluster deployment according to the size of the virtual machine to be upgraded comprises: Under the condition that the number of all the virtual machines is larger than or equal to a preset number threshold, cluster deployment is carried out on the upgrading servers; and under the condition that the number of all the virtual machines is smaller than a preset number threshold, performing non-cluster deployment on the upgrading server.
  11. 11. The deployment method of the upgrade system of the virtual machine application program according to claim 10, wherein said cluster deploying the upgrade server comprises: Setting a plurality of version servers and a plurality of download servers, and respectively connecting the version servers and the download servers with corresponding virtualization management platforms and virtual machines in a network manner; setting each version server to provide service for inquiring version information and downloading paths of the application programs, and storing upgrading progress of each application program version package; and setting a load balancer which is respectively connected with each version server and each download server, wherein the load balancer is set to shunt the query requests and/or the download requests sent by the virtualized management platform and the cluster of the virtual machine, so as to realize the load balancing of the version servers and the download servers.
  12. 12. The deployment method of the upgrade system of virtual machine application program according to claim 10, wherein said non-clustered deployment of said upgrade server comprises: setting a version server and a download server, respectively connecting the version server and the download server with the virtualization management platform and a virtual machine under the virtualization management platform in a network manner, setting the version server to provide service for inquiring version information and download paths of application programs, storing upgrading progress of each application program version package, and setting the download server to provide service for downloading application program version packages.
  13. 13. A method for upgrading a virtual machine application program, based on the upgrade system of the virtual machine application program according to any one of claims 1 to 7, the method comprising: a client application program in the virtual machine obtains the latest version information of an application program version package of the virtual machine from a version server in an upgrading server; Downloading the latest version from a download server in the upgrade server to the virtual machine according to a download path of the latest version in the version server when the latest version information indicates that the latest version of the application version package in the version server is higher than the version of the application version package in the virtual machine; And under the condition that the instruction of confirming the upgrade is received, upgrading the application program of the virtual machine according to the upgrade strategy and the latest version issued by the virtualization management platform corresponding to the virtual machine.
  14. 14. The method of upgrading a virtual machine application according to claim 13, wherein the method further comprises: after the application program of the virtual machine is successfully upgraded, the version number of the application program version package in the virtual machine is updated, the original version package of the application program of the virtual machine in the virtual machine is deleted, the storage space is released, and the upgrading result is reported to the version server.
  15. 15. The method of upgrading a virtual machine application according to claim 14, wherein the method further comprises: And the version server gathers the upgrade results reported by all the virtual machines and displays the upgrade states of all the virtual machine application programs and the upgrade progress of all the virtual machines.
  16. 16. An electronic device comprising an upgrade system for a virtual machine application program as claimed in any one of claims 1-7.
  17. 17. An electronic device, comprising: One or more processors; A memory having one or more programs stored thereon, which when executed by the one or more processors, cause the one or more processors to implement the deployment method of any of claims 8-12, and/or the upgrade method of any of claims 13-15; One or more input/output I/O interfaces coupled between the processor and the memory configured to enable information interaction of the processor with the memory.
  18. 18. A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the deployment method of any of claims 8-12 and/or the upgrade method of any of claims 13-15.
  19. 19. A computer program product comprising a computer program which, when executed by a processor, implements the deployment method of any of claims 8-12 and/or the upgrade method of any of claims 13-15.

Description

System for upgrading application program of virtual machine, system deployment method and upgrading method Technical Field The embodiment of the disclosure relates to the field of virtual machine application programs, in particular to a virtual machine application program upgrading system, a system deployment method and an upgrading method. Background Cloud desktop (also referred to as desktop virtualization) is a cloud computing technology that allows users to access virtual machines on remote servers over a network. At present, many enterprises rely on a WEB (page) server to build a management platform as a virtualization management platform for managing virtual machines. Management platform in order to better manage virtual machines, applications need to be deployed inside the virtual machines. When the enterprise scale is large, the upgrade maintenance work of the virtual machine application program is important. The related art virtual machine application upgrade technique generally includes two kinds: The first mode is that the virtual machine application program version package is uploaded to a virtualization management platform, the virtualization management platform mounts the virtual machine application program version package on an optical drive of a virtual machine to be upgraded, and finally the upgrading program of the virtual machine application program finishes upgrading the virtual machine application program based on the version package mounted on the optical drive. The disadvantage of this solution is that in some scenarios where the optical drive is not available (e.g. enterprises disable the virtual machine optical drive due to security considerations), the virtual machine application will not be upgraded. And secondly, independently deploying a shared storage space on the virtualized management platform server, downloading a version package from the shared storage space by the virtual machine, and automatically upgrading the application program of the virtual machine. The scheme has the defects that only the application program upgrading can be carried out on the virtual machines managed under a single virtualization platform, a plurality of shared storage spaces are required to be deployed for a plurality of virtualization platforms, and the resource waste phenomenon exists. Disclosure of Invention The embodiment of the disclosure provides a virtual machine application program upgrading system, a system deployment method and an upgrading method. In a first aspect, an embodiment of the present disclosure provides an upgrade system for a virtual machine application program, including an upgrade server, a virtualization management platform, and a virtual machine; The upgrade server is independently deployed by the virtualization management platform according to the size of the scale of the virtual machine to be upgraded by adopting a cluster deployment or non-cluster deployment mode, and is used for providing upgrade service for the virtual machine under at least one virtualization management platform; the virtualization management platform is used for managing the upgrading server through network communication; and the virtual machine is provided with a client program for upgrading, and the client program is communicated with the upgrading server through a network to realize the upgrading of the application program of the virtual machine. In a second aspect, an embodiment of the present disclosure further provides a deployment method of an upgrade system of a virtual machine application program, where the method includes: Deploying a set of upgrading servers by the selected main virtualization management platform according to the scale of the virtual machine to be upgraded by adopting a cluster deployment or non-cluster deployment mode; After the main virtualization management platform finishes deploying the upgrade server, an application program version package of the virtual machine uploaded to the main virtualization management platform is obtained, and the application program version package, version information of the application program version package and a downloading path are synchronized to the upgrade server; A client program for upgrade is pre-installed inside the virtual machine. In a third aspect, an embodiment of the present disclosure further provides a method for upgrading a virtual machine application, where the method includes: a client application program in the virtual machine obtains the latest version information of an application program version package of the virtual machine from a version server in an upgrading server; Downloading the latest version from a download server in the upgrade server to the virtual machine according to a download path of the latest version in the version server when the latest version information indicates that the latest version of the application version package in the version server is higher than the version of the application ver