WO2021135995A1 - 虚拟机组件处理方法及装置 - Google Patents

虚拟机组件处理方法及装置 Download PDF

Info

Publication number
WO2021135995A1
WO2021135995A1 PCT/CN2020/137772 CN2020137772W WO2021135995A1 WO 2021135995 A1 WO2021135995 A1 WO 2021135995A1 CN 2020137772 W CN2020137772 W CN 2020137772W WO 2021135995 A1 WO2021135995 A1 WO 2021135995A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual machine
virtual
machine component
file
processing
Prior art date
Application number
PCT/CN2020/137772
Other languages
English (en)
French (fr)
Inventor
缪星星
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to US17/790,198 priority Critical patent/US20230032581A1/en
Priority to EP20909110.7A priority patent/EP4086756A4/en
Publication of WO2021135995A1 publication Critical patent/WO2021135995A1/zh

Links

Images

Classifications

    • 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
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • 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/4557Distribution of virtual machine instances; Migration and load balancing
    • 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/45579I/O management, e.g. providing access to device drivers or storage
    • 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/45595Network integration; Enabling network access in virtual machine instances

Definitions

  • the present disclosure relates to the field of communications, and in particular, to a method and device for processing virtual machine components.
  • the management of the virtual machine needs to be implemented by deploying software in the virtual machine, and the above-mentioned software is called the virtual machine component of the virtualization platform.
  • a virtual CD-ROM drive needs to be mounted on the virtual machine, so that the ISO file stored on the host machine can be read through the CD-ROM drive, and then monitored into the virtual machine to manually install the component package.
  • virtual machine components are also accompanied by upgrade requirements.
  • related technologies can be used to achieve automatic upgrades through existing components in the virtual machine, similar to the above installation process, the virtual machine components must be upgraded to ensure that the virtual machine has been mounted.
  • Virtual CD-ROM can only be of the IDE bus type, and the IDE itself cannot be mounted online due to its own characteristics. Therefore, for the virtual machine without the CD-ROM drive, you need to manually add the CD-ROM drive and mount the ISO file to be upgraded after shutting down. Then do the upgrade operation; in some scenarios, the shutdown processing of the above virtual machine is unacceptable to the user.
  • the above-mentioned virtual machine component upgrade process is overly dependent on the original old version components in the virtual machine, and if the component itself runs abnormally, the upgrade will fail. Therefore, in the related art, the installation, deployment or upgrade operation process of the virtual machine component has the problem of time-consuming and labor-consuming, and there is a certain probability of failure.
  • the related technology also implements the installation or upgrade processing of virtual machine components through the service network inside the virtual machine, that is, the virtual machine component is transferred to the inside of the virtual machine through the service network, and the above-mentioned virtual optical drive-based
  • the process is similar to installation, deployment or upgrade; however, the above process needs to build a network to connect with the virtual machine business network.
  • the ISO file has been deployed to the network. The security cannot be guaranteed during the implementation process and will occupy The user's network bandwidth.
  • the embodiments of the present disclosure provide a method and device for processing virtual machine components, so as to at least solve the problem that virtual machine components cannot achieve efficient and safe installation, deployment or upgrade processing in related technologies.
  • a virtual machine component processing method which is applied to a host agent, and the method includes: sending a virtual machine component processing file to a virtual machine through a virtual serial port, wherein the virtual serial port is used by the virtual machine The management Ha module is established; and processing instruction information is sent to the virtual machine through the virtual serial port to instruct the virtual machine to process the file processed by the virtual machine component.
  • a virtual machine component processing method which is applied to a virtual machine, and the method includes: receiving a virtual machine component processing file sent by a host agent through a virtual serial port, wherein the virtual serial port Established by the virtual machine management Ha module; receiving the processing instruction information sent by the host agent through the virtual serial port, and processing the virtual machine component processing file according to the processing instruction information.
  • a virtual machine component processing device applied to a host agent, the device comprising: a first sending module configured to send a virtual machine component processing file to a virtual machine through a virtual serial port, The virtual serial port is established by the virtual machine management Ha module; the second sending module is configured to send processing instruction information to the virtual machine through the virtual serial port to instruct the virtual machine to process the virtual machine component processing file .
  • a virtual machine component processing device which is applied to a virtual machine, and the device includes: a first receiving module configured to receive a virtual machine component processing file sent by a host agent through a virtual serial port , Wherein the virtual serial port is established by the virtual machine management Ha module; the second receiving module is configured to receive the processing instruction information sent by the host agent through the virtual serial port, and process the virtual machine according to the processing instruction information The component processes files.
  • a computer-readable storage medium wherein a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute any of the foregoing when running. The steps in the method embodiment.
  • an electronic device including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute any one of the foregoing Steps in the method embodiment.
  • Fig. 1 is a flowchart (1) of a method for processing virtual machine components according to an embodiment of the present disclosure
  • Figure 2 is a schematic diagram of the architecture of a management platform provided according to a specific embodiment of the present disclosure
  • Fig. 3 is a working flowchart (1) of a method for processing virtual machine components according to a specific embodiment of the present disclosure
  • Fig. 4 is a working flowchart (2) of a method for processing virtual machine components according to a specific embodiment of the present disclosure
  • Fig. 5 is a working flowchart (2) of a method for processing virtual machine components according to a specific embodiment of the present disclosure
  • Fig. 6 is a working flowchart (2) of a method for processing virtual machine components according to a specific embodiment of the present disclosure
  • Fig. 7 is a flowchart (2) of a method for processing virtual machine components according to an embodiment of the present disclosure
  • Fig. 8 is a structural block diagram (1) of a virtual machine component processing device provided according to an embodiment of the present disclosure
  • Fig. 9 is a structural block diagram (2) of a virtual machine component processing device provided according to an embodiment of the present disclosure.
  • FIG. 1 is a flowchart (1) of a virtual machine component processing method provided according to an embodiment of the present disclosure. As shown in FIG. 1, in this embodiment The virtual machine component processing method includes:
  • S102 Send the virtual machine component processing file to the virtual machine through the virtual serial port, where the virtual serial port is established by a virtual machine management (Hyper agent, Ha) module;
  • Ha virtual machine management
  • S104 Send processing instruction information to the virtual machine through the virtual serial port to instruct the virtual machine to process the file processed by the virtual machine component.
  • the host agent can send the virtual machine component processing file to the virtual machine through the virtual serial port established by the Ha module, and send the processing instruction information to the virtual machine through the virtual serial port, so as to Instruct the virtual machine to process the virtual machine component processing file. Therefore, the method for processing virtual machine components in this embodiment can solve the problem that virtual machine components cannot be efficiently and safely installed, deployed or upgraded in related technologies, so as to achieve efficient and safe installation of virtual machine components in the virtual machine. The effect of the upgrade process.
  • the virtual machine component processing method in this embodiment on the one hand, it is not limited to whether there is a virtual CD-ROM drive in the virtual machine. Therefore, the virtual machine can be completed when the virtual CD-ROM drive is not mounted on the virtual machine.
  • the installation or upgrade of the components further improves the processing efficiency of the virtual machine components while avoiding the need to shut down the virtual machine caused by remounting the virtual CD-ROM drive; on the other hand, the processing method of the virtual machine components in this embodiment is The process of upgrading the virtual machine is not limited by the operating state of the virtual machine component. Therefore, the upgrading of the virtual machine component can still be completed in the case of abnormal operation of the virtual machine component. Therefore, the method for processing virtual machine components in this embodiment can effectively improve the efficiency in the processing of virtual machine components and significantly reduce operating costs.
  • the aforementioned virtual machine component processing file includes at least one of the following:
  • the virtual machine component installation file is used to install and deploy the virtual machine component in the virtual machine
  • the virtual machine component upgrade file is used to upgrade the virtual machine components in the virtual machine.
  • the processing instruction information is used to instruct to run the virtual machine component installation file in the virtual machine to install and deploy the virtual machine in the virtual machine Component
  • the processing instruction information is used to instruct to run the virtual machine component upgrade file in the virtual machine to upgrade the virtual machine component in the virtual machine.
  • the method before sending the virtual machine component processing file to the virtual machine through the virtual serial port, the method further includes:
  • the above request information further includes restart instruction information; wherein, the restart instruction information is used to instruct the virtual machine to restart the virtual machine system after processing the file by the virtual machine component.
  • the virtual machine component processing method in this embodiment further includes:
  • the method before sending the virtual machine component processing file to the virtual machine through the virtual serial port, the method further includes:
  • the following operations are performed: sending the virtual machine component processing file to the virtual machine through the virtual serial port, and sending processing instruction information to the virtual machine through the virtual serial port.
  • the virtual CD-ROM drive can be used to mount the virtual machine component to process files, and the virtual machine can also be processed. Processing of components.
  • the method before the virtual serial port sends the virtual machine component processing file to the virtual machine, the method further includes:
  • the virtual machine component processing file is sent to the virtual CD-ROM drive through the HA module, and the processing instruction information is sent to the virtual machine through the virtual serial port.
  • FIG. 2 is a schematic diagram of the architecture of a management platform provided according to a specific embodiment of the present disclosure.
  • host1 to hostn are hosts 1 to n.
  • the management platform shown in Figure 2 can include VM1 to VMn, namely Virtual machines 1 to n; the host is also provided with host agent hmbooster module, Ha module, Na module, etc.; virtual machine is also provided with virtual machine agent vmbooster module, vmmonitor module, qga (Qemu Guest Agent) module, virtio driver, etc. .
  • the host and the virtual machine communicate with each other and run management through the above-mentioned modules.
  • the processing of the virtual machine components in the following specific embodiments are all implemented based on the management platform shown in FIG. 2.
  • FIG. 3 is a working flowchart (1) of the virtual machine component processing method provided according to the specific embodiment of the present disclosure. As shown in FIG. The specific steps of the installation operation of the machine components are as follows:
  • the host agent finds the corresponding software package according to the requested component version number, and copies it to a specific directory inside the virtual machine through the virtual machine serial port.
  • FIG. 4 is a working flowchart (2) of a virtual machine component processing method provided according to a specific embodiment of the present disclosure. As shown in FIG. The specific steps of the upgrade operation of the machine components are as follows:
  • the host agent After receiving the request for upgrading the virtual machine component, the host agent finds the corresponding software package according to the requested component version number, and copies it to a specific directory inside the virtual machine through the virtual machine serial port.
  • This specific embodiment is an upgrade operation of virtual machine components.
  • the processing methods are distinguished according to the space occupied by the virtual machine components to process files, that is, the file size, so as to process files for virtual machine components of different file sizes.
  • FIG. 5 is a working flowchart (3) of the virtual machine component processing method provided according to a specific embodiment of the present disclosure. As shown in FIG. 5, the upgrade operation of the virtual machine component in this specific embodiment The specific steps are as follows:
  • the management system After receiving the request for upgrading the virtual machine components, the management system first finds the corresponding upgrade package, then determines whether the size exceeds the threshold, and then determines whether the virtual machine has a CD-ROM drive and the running status of the old version of the virtual machine agent. If the size of the packet exceeds the threshold and the original virtual machine agent status is normal, the original upgrade method is used and enters S6, otherwise, it enters S2.
  • S2 The host agent finds the corresponding software package according to the requested component version number, and copies it to a specific directory inside the virtual machine through the virtual machine serial port.
  • the Ha module adds the virtual machine component to be upgraded to the virtual machine optical drive.
  • the host agent notifies the virtual machine agent to perform the upgrade operation, and notifies the host agent after the upgrade is completed.
  • This specific embodiment is an upgrade operation of virtual machine components.
  • the upgrade operation of virtual machine components described in the above specific embodiment 3 is further optimized.
  • the Ha module and/or the virtual CD-ROM drive Directly implement the upgrade operation of the virtual machine component;
  • FIG. 6 is a work flow chart (4) of the virtual machine component processing method provided according to a specific embodiment of the present disclosure. As shown in FIG. 6, the virtual machine component in this specific embodiment The specific steps of the upgrade operation are as follows:
  • the Ha module adds the virtual machine component to be upgraded to the virtual machine optical drive.
  • S3 The host agent finds the corresponding software package according to the requested component version number, and copies it to a specific directory inside the virtual machine through the virtual machine serial port.
  • the host agent sends a command to upgrade the virtual machine component through the serial port.
  • the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is Better implementation.
  • the technical solution of the present disclosure essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to enable a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present disclosure.
  • FIG. 7 is a flowchart (2) of the virtual machine component processing method provided according to an embodiment of the present disclosure. As shown in FIG. 7, in this embodiment The virtual machine component processing method includes:
  • S202 Receive the virtual machine component processing file sent by the host agent through the virtual serial port, where the virtual serial port is established by the virtual machine management Ha module;
  • S204 Receive the processing instruction information sent by the host agent through the virtual serial port, and process the file processed by the virtual machine component according to the processing instruction information.
  • the aforementioned virtual machine component processing file includes at least one of the following:
  • the virtual machine component installation file is used to install and deploy the virtual machine component in the virtual machine
  • the virtual machine component upgrade file is used to upgrade the virtual machine components in the virtual machine.
  • processing the virtual machine component processing file according to the processing instruction information includes:
  • processing the virtual machine component processing file according to the processing instruction information includes:
  • the method before receiving the virtual machine component sent by the host agent through the virtual serial port to process the file, the method further includes:
  • the space occupied by the virtual machine component to process the file is less than or equal to the preset threshold, perform the following operations: receive the virtual machine component processing file sent by the host agent through the virtual serial port, and receive the processing instruction sent by the host agent through the virtual serial port Information to process the file according to the processing instruction information to process the virtual machine component.
  • the virtual machine component processing method in this embodiment further includes:
  • the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is Better implementation.
  • the technical solution of the present disclosure essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to enable a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present disclosure.
  • Fig. 8 is a structural block diagram (1) of a virtual machine component processing apparatus according to an embodiment of the present disclosure. As shown in Fig. 8, the virtual machine component processing apparatus in this embodiment includes:
  • the first sending module 302 is configured to send the virtual machine component processing file to the virtual machine through the virtual serial port, where the virtual serial port is established by the virtual machine management Ha module;
  • the second sending module 304 is configured to send processing instruction information to the virtual machine through the virtual serial port, so as to instruct the virtual machine to process the file by the virtual machine component.
  • the aforementioned virtual machine component processing file includes at least one of the following:
  • the virtual machine component installation file is used to install and deploy the virtual machine component in the virtual machine
  • the virtual machine component upgrade file is used to upgrade the virtual machine components in the virtual machine.
  • the processing instruction information is used to instruct to run the virtual machine component installation file in the virtual machine to install and deploy the virtual machine in the virtual machine Component
  • the processing instruction information is used to instruct to run the virtual machine component upgrade file in the virtual machine to upgrade the virtual machine component in the virtual machine.
  • the method before sending the virtual machine component processing file to the virtual machine through the virtual serial port, the method further includes:
  • the above-mentioned request information further includes restart instruction information; wherein, the restart instruction information is used to instruct the virtual machine to restart the virtual machine system after processing the file by the virtual machine component.
  • the virtual machine component processing apparatus in this embodiment is further used for:
  • the method before sending the virtual machine component processing file to the virtual machine through the virtual serial port, the method further includes:
  • the following operations are performed: sending the virtual machine component processing file to the virtual machine through the virtual serial port, and sending processing instruction information to the virtual machine through the virtual serial port.
  • the method before the virtual serial port sends the virtual machine component processing file to the virtual machine, the method further includes:
  • the virtual machine component processing file is sent to the virtual CD-ROM drive through the HA module, and the processing instruction information is sent to the virtual machine through the virtual serial port.
  • each of the above modules can be implemented by software or hardware.
  • it can be implemented in the following way, but not limited to this: the above modules are all located in the same processor; or, the above modules can be combined in any combination.
  • the forms are located in different processors.
  • Fig. 9 is a structural block diagram (2) of a virtual machine component processing apparatus according to an embodiment of the present disclosure. As shown in Fig. 9, the virtual machine component processing apparatus in this embodiment includes:
  • the first receiving module 402 is configured to receive the virtual machine component processing file sent by the host agent through the virtual serial port, where the virtual serial port is established by the virtual machine management Ha module;
  • the second receiving module 404 is configured to receive the processing instruction information sent by the host agent through the virtual serial port, and process the file processed by the virtual machine component according to the processing instruction information.
  • the aforementioned virtual machine component processing file includes at least one of the following:
  • the virtual machine component installation file is used to install and deploy the virtual machine component in the virtual machine
  • the virtual machine component upgrade file is used to upgrade the virtual machine components in the virtual machine.
  • processing the virtual machine component processing file according to the processing instruction information includes:
  • processing the virtual machine component processing file according to the processing instruction information includes:
  • the method before receiving the virtual machine component sent by the host agent through the virtual serial port to process the file, the method further includes:
  • the space occupied by the virtual machine component to process the file is less than or equal to the preset threshold, perform the following operations: receive the virtual machine component processing file sent by the host agent through the virtual serial port, and receive the processing instruction sent by the host agent through the virtual serial port Information to process the file according to the processing instruction information to process the virtual machine component.
  • the virtual machine component processing apparatus in this embodiment is further configured as:
  • the embodiment of the present disclosure also provides a computer-readable storage medium, and a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute any of the above method embodiments when running. step.
  • the foregoing computer-readable storage medium may be configured to store a computer program for executing the method steps recorded in the foregoing embodiment:
  • the foregoing computer-readable storage medium may include, but is not limited to: U disk, Read-Only Memory (Read-Only Memory, ROM for short), Random Access Memory (Random Access Memory, for short) It is a variety of media that can store computer programs such as RAM), mobile hard disks, magnetic disks or optical disks.
  • An embodiment of the present disclosure also provides an electronic device, including a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any of the foregoing method embodiments.
  • the aforementioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the aforementioned processor, and the input-output device is connected to the aforementioned processor.
  • the foregoing processor may be configured to execute the method steps recorded in the foregoing embodiment through a computer program.
  • modules or steps of the present disclosure can be implemented by a general computing device, and they can be concentrated on a single computing device or distributed in a network composed of multiple computing devices.
  • they can be implemented with program codes executable by a computing device, so that they can be stored in a storage device for execution by the computing device, and in some cases, can be executed in a different order than here.

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

一种虚拟机组件处理方法及装置,其中,虚拟机组件处理方法包括:通过虚拟串口发送虚拟机组件处理文件至虚拟机,其中,所述虚拟串口由虚拟机管理Ha模块建立(S102);通过所述虚拟串口发送处理指示信息至所述虚拟机,以指示所述虚拟机处理所述虚拟机组件处理文件(S104)。

Description

虚拟机组件处理方法及装置 技术领域
本公开涉及通信领域,具体而言,涉及一种虚拟机组件处理方法及装置。
背景技术
在虚拟化平台中,对虚拟机的管理需要通过在虚拟机中部署软件来实现,上述软件被称为虚拟化平台的虚拟机组件。相关技术中,虚拟机组件在安装时需要在虚拟机上挂载虚拟光驱,以通过光驱读取保存在宿主机上的ISO文件,然后监控至虚拟机内部,手动安装组件包。
同时,虚拟机组件也伴随着升级的需求,虽然相关技术中可以通过虚拟机中已有的组件来实现自动化升级,但是类似于上述安装流程,虚拟机组件升级时需要保证虚拟机已经挂载了虚拟光驱。目前,虚拟光驱只能为IDE总线类型,IDE本身特性所限无法实现在线挂载,因此对于未挂载光驱的虚拟机,需在关机之后手动添加光驱并挂载待升级的ISO文件,待开机之后再做升级操作;在部分场景下,上述虚拟机的关机处理是用户无法接受的。并且,上述虚拟机组件升级流程过度依赖虚拟机中原有的老版本组件,如果组件本身运行异常,则升级就会失败。因此,相关技术中对虚拟机组件的安装部署或升级操作流程均存在耗时耗力的问题,且有一定的失败概率。
此外,相关技术中还有是通过虚拟机内部的业务网络来实现虚拟机组件的安装或升级处理的方式,即将虚拟机组件通过业务网来传递至虚拟机内部,并采用和上述基于虚拟光驱的流程类似的方式进行安装部署或升级;然而,上述流程需要再搭建一个网络跟虚拟机业务网进行打通,已将ISO文件部署到该网络中,其在实现过程中安全性无法保证,并且会占用用户的网络带宽。
针对上述相关技术中,虚拟机组件无法实现高效安全的安装部署或升级处理的问题,相关技术中尚未提出有效的解决方案。
发明内容
本公开实施例提供一种虚拟机组件处理方法及装置,以至少解决相关技术中虚拟机组件无法实现高效安全的安装部署或升级处理的问题。
根据本公开的一个实施例,提供了一种虚拟机组件处理方法,应用于主机代理,所述方法包括:通过虚拟串口发送虚拟机组件处理文件至虚拟机,其中,所述虚拟串口由虚拟机管理Ha模块建立;通过所述虚拟串口发送处理指示信息至所述虚拟机,以指示所述虚拟机处理所述虚拟机组件处理文件。
根据本公开的另一个实施例,还提供了一种虚拟机组件处理方法,应用于虚拟机,所述方法包括:接收主机代理通过虚拟串口发送的虚拟机组件处理文件,其中,所述虚拟串口由虚拟机管理Ha模块建立;接收所述主机代理通过所述虚拟串口发送的处理指示信息,并根据所述处理指示信息处理所述虚拟机组件处理文件。
根据本公开的另一个实施例,还提供了一种虚拟机组件处理装置,应用于主机代理,所述装置包括:第一发送模块,设置为通过虚拟串口发送虚拟机组件处理文件至虚拟机,其中,所述虚拟串口由虚拟机管理Ha模块建立;第二发送模块,设置为通过所述虚拟串口发送处理指示信息至所述虚拟机,以指示所述虚拟机处理所述虚拟机组件处理文件。
根据本公开的另一个实施例,还提供了一种虚拟机组件处理装置,应用于虚拟机,所述装置包括:第一接收模块,设置为接收主机代理通过虚拟串口发送的虚拟机组件处理文件,其中,所述虚拟串口由虚拟机管理Ha模块建立;第二接收模块,设置为接收所述主机代理通过所述虚拟串口发送的处理指示信息,并根据所述处理指示信息处理所述虚拟机组件处理文件。
根据本公开的另一个实施例,还提供了一种计算机可读的存储介质, 所述计算机可读的存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。
根据本公开的另一个实施例,还提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。
附图说明
此处所说明的附图用来提供对本公开的进一步理解,构成本申请的一部分,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:
图1是根据本公开实施例提供的虚拟机组件处理方法的流程图(一);
图2是根据本公开具体实施例提供的管理平台的构架示意图;
图3是根据本公开具体实施例提供的虚拟机组件处理方法的工作流程图(一);
图4是根据本公开具体实施例提供的虚拟机组件处理方法的工作流程图(二);
图5是根据本公开具体实施例提供的虚拟机组件处理方法的工作流程图(二);
图6是根据本公开具体实施例提供的虚拟机组件处理方法的工作流程图(二);
图7是根据本公开实施例提供的虚拟机组件处理方法的流程图(二);
图8是根据本公开实施例提供的虚拟机组件处理装置的结构框图(一);
图9是根据本公开实施例提供的虚拟机组件处理装置的结构框图(二)。
具体实施方式
下文中将参考附图并结合实施例来详细说明本公开。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
实施例1
本实施例提供了一种虚拟机组件处理方法,应用于主机代理,图1是根据本公开实施例提供的虚拟机组件处理方法的流程图(一),如图1所示,本实施例中的虚拟机组件处理方法包括:
S102,通过虚拟串口发送虚拟机组件处理文件至虚拟机,其中,虚拟串口由虚拟机管理(Hyper agent,Ha)模块建立;
S104,通过虚拟串口发送处理指示信息至虚拟机,以指示虚拟机处理虚拟机组件处理文件。
通过本实施例中的虚拟机组件处理方法,由于主机代理可通过Ha模块建立的虚拟串口发送虚拟机组件处理文件至虚拟机,并通过所述虚拟串口发送处理指示信息至所述虚拟机,以指示所述虚拟机处理所述虚拟机组件处理文件。因此,本实施例中的虚拟机组件处理方法可以解决相关技术中虚拟机组件无法实现高效安全的安装部署或升级处理的问题,以达到在虚拟机中对虚拟机组件进行高效且安全的安装及升级处理的效果。
具体而言,本实施例中的虚拟机组件处理方法在实施过程中,一方面不受限于虚拟机中是否存在虚拟光驱,故可在虚拟机未挂载虚拟光驱的的情形下完成虚拟机组件的安装或升级,进而在提高了虚拟机组件的处理效率的同时,避免了由于重新挂载虚拟光驱而导致的虚拟机关机需求;另一方面,本实施例中的虚拟机组件处理方法在对虚拟机升级过程中亦不会受限于虚拟机组件的运行状态,故可在虚拟机组件运行异常的情形下,仍完成对虚拟机组件的升级。因此,本实施例中的虚拟机组件处理方法可以有效提高虚拟机组件处理过程中的效率,并显著减少运行成本。
在一可选实施例中,上述虚拟机组件处理文件包括以下至少之一:
虚拟机组件安装文件,用于在虚拟机中安装部署虚拟机组件;
虚拟机组件升级文件,用于对虚拟机中的虚拟机组件进行升级。
在一可选实施例中,在虚拟机组件处理文件为虚拟机组件安装文件的情形下,处理指示信息用于指示在虚拟机中运行虚拟机组件安装文件,以在虚拟机中安装部署虚拟机组件;
在虚拟机组件处理文件为虚拟机组件升级文件的情形下,处理指示信息用于指示在虚拟机中运行虚拟机组件升级文件,以对虚拟机中的虚拟机组件进行升级。
在一可选实施例中,上述通过虚拟串口发送虚拟机组件处理文件至虚拟机之前,还包括:
获取用户发送的处理请求,其中,处理请求中包含虚拟机组件标识信息,虚拟机组件标识信息用于标识虚拟机组件。
在一可选实施例中,上述请求信息中还包含重启指示信息;其中,重启指示信息用于指示虚拟机在完成处理虚拟机组件处理文件后进行重启虚拟机系统。
在一可选实施例中,本实施例中的虚拟机组件处理方法还包括:
检测虚拟机系统是否启动正常,以及,检测虚拟机代理是否运行正常。
在一可选实施例中,上述通过虚拟串口发送虚拟机组件处理文件至虚拟机之前,还包括:
确定虚拟机组件处理文件的占用空间;
其中,在虚拟机组件处理文件的占用空间小于或等于预设阈值的情形下,执行以下操作:通过虚拟串口发送虚拟机组件处理文件至虚拟机,并通过虚拟串口发送处理指示信息至虚拟机。
需要进一步说明的是,在上述虚拟机组件处理文件的占用空间大于预设阈值,并且虚拟机中存在虚拟光驱的情形下,则可采用虚拟光驱挂载虚 拟机组件处理文件,亦完成对虚拟机组件的处理。
在一可选实施例中,上述虚拟串口发送虚拟机组件处理文件至虚拟机之前,还包括:
检测虚拟机中是否存在虚拟光驱;
其中,在虚拟机中不存在虚拟光驱的情形下,执行以下操作:通过虚拟串口发送虚拟机组件处理文件至虚拟机,并通过虚拟串口发送处理指示信息至虚拟机;或者,
在虚拟机中存在虚拟光驱的情形下,执行以下操作:通过HA模块将虚拟机组件处理文件发送至虚拟光驱,并通过虚拟串口发送处理指示信息至虚拟机。
为进一步说明本实施例中的虚拟机组件处理方法,以下通过具体实施例的方式以对于本实施例中的虚拟机组件处理方法的工作方式进行说明。图2是根据本公开具体实施例提供的管理平台的构架示意图,如图2所示的管理平台中,host1至hostn即为主机1至n,以host1为例,其可包括VM1至VMn,即虚拟机1至n;主机中还设置有主机代理hmbooster模块、Ha模块、Na模块等;虚拟机中还设置有虚机代理vmbooster模块,vmmonitor模块、qga(Qemu Guest Agent)模块、virtio驱动等等。主机与虚拟机之间通过上述模块进行相互间的通信以及运行管理。以下具体实施例中的虚拟机组件的处理均基于图2所示的管理平台实现。
具体实施例1
本具体实施例为对虚拟机组件的安装操作,图3是根据本公开具体实施例提供的虚拟机组件处理方法的工作流程图(一),如图3所示,本具体实施例中对虚拟机组件的安装操作的具体步骤如下:
S1,启动虚拟机,确保虚拟机操作系统已经运行正常。
S2,请求安装虚机组件,主机代理根据请求的组件版本号找到对应的软件包,通过虚拟机串口拷贝至虚机内部特定的目录。
S3,拷贝完成之后,主机代理模块通过串口发送安装虚机组件的命令。
S4,根据请求中是否允许重启虚拟机,以及虚拟机系统GuestOS的类型,来判断是否需要重启,如果不需要重启则直接结束流程。
S5,如果重启,主机代理需要不断检测GuestOS是否启动正常,以及虚机代理是否运行正常。
具体实施例2
本具体实施例为对虚拟机组件的升级操作,图4是根据本公开具体实施例提供的虚拟机组件处理方法的工作流程图(二),如图4所示,本具体实施例中对虚拟机组件的升级操作的具体步骤如下:
S1,接受到虚机组件升级的请求之后,主机代理根据请求的组件版本号找到对应的软件包,通过虚拟机串口拷贝至虚机内部特定的目录。
S2,拷贝完成之后,主机代理通过串口发送升级虚机组件的命令。
S3,根据请求中是否允许重启虚拟机,以及GuestOS的类型,来判断是否需要重启,如果不需要重启则直接结束流程。
S4,如果重启,主机代理需要不断检测GuestOS是否启动正常,以及虚机代理是否运行正常。检测正常之后结束升级流程。
具体实施例3
本具体实施例为对虚拟机组件的升级操作,本具体实施例中,根据虚拟机组件处理文件的占用空间,即文件大小对处理方式进行了区分,以对不同文件大小的虚拟机组件处理文件采用对应的优选方式进行升级;图5是根据本公开具体实施例提供的虚拟机组件处理方法的工作流程图(三),如图5所示,本具体实施例中对虚拟机组件的升级操作的具体步骤如下:
S1,接受到虚拟机组件升级的请求之后,管理系统要先找到对应升级包,然后判断其大小是否超过阈值,接着判断虚机是否带有光驱以及老版本虚机代理的运行状态。如果包的大小超过阈值并且原虚机代理状态正常,则走原有的升级方式,进入S6,否则进入S2。
S2,主机代理根据请求的组件版本号找到对应的软件包,通过虚拟机串口拷贝至虚机内部特定的目录。
S3,拷贝完成之后,主机代理通过串口发送升级虚机组件的命令。
S4,根据请求中是否允许重启虚拟机,以及GuestOS的类型,来判断是否需要重启,如果不需要重启则直接结束流程。
S5,如果重启,主机代理需要不断检测GuestOS是否启动正常,以及虚机代理是否运行正常;检测正常之后结束升级流程。
S6,Ha模块将待升级的虚机组件添加至虚机光驱中。
S7,主机代理通知虚机代理执行升级操作,升级完成之后告知主机代理。
S8,根据请求中是否允许重启虚拟机,以及GuestOS的类型,来判断是否需要重启,如果不需要重启则直接结束流程。
S9,如果重启,主机代理需要不断检测GuestOS是否启动正常,以及虚机代理是否运行正常。检测正常之后结束升级流程。
具体实施例4
本具体实施例为对虚拟机组件的升级操作,本具体实施例中对于上述具体实施例3中记载的虚拟机组件的升级操作进行了进一步优化,具体而言,根据Ha模块和/或虚拟光驱直接实现对虚拟机组件的升级操作;图6是根据本公开具体实施例提供的虚拟机组件处理方法的工作流程图(四),如图6所示,本具体实施例中对虚拟机组件的升级操作的具体步骤如下:
S1,接受到虚拟机组件升级的请求之后,直接判断虚机是否带有虚拟光驱;如果有光驱则进入S2,否则进入S3。
S2,Ha模块将待升级的虚机组件添加至虚机光驱中。
S3,主机代理根据请求的组件版本号找到对应的软件包,通过虚拟机串口拷贝至虚机内部特定的目录。
S4,主机代理通过串口发送升级虚机组件的命令。
S5,根据请求中是否允许重启虚拟机,以及GuestOS的类型,来判断是否需要重启,如果不需要重启则直接结束流程。
S6,如果重启,主机代理需要不断检测GuestOS是否启动正常,以及虚机代理是否运行正常。检测正常之后结束升级流程。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例所述的方法。
实施例2
本实施例提供了一种虚拟机组件处理方法,应用于虚拟机,图7是根据本公开实施例提供的虚拟机组件处理方法的流程图(二),如图7所示,本实施例中的虚拟机组件处理方法包括:
S202,接收主机代理通过虚拟串口发送的虚拟机组件处理文件,其中,虚拟串口由虚拟机管理Ha模块建立;
S204,接收主机代理通过虚拟串口发送的处理指示信息,并根据处理指示信息处理虚拟机组件处理文件。
需要进一步说明的是,本实施例中的虚拟机组件处理方法的其余可选实施例以及技术效果均与实施例1中记载的虚拟机组件处理方法相对应,故在此不再赘述。
在一可选实施例中,上述虚拟机组件处理文件包括以下至少之一:
虚拟机组件安装文件,用于在虚拟机中安装部署虚拟机组件;
虚拟机组件升级文件,用于对虚拟机中的虚拟机组件进行升级。
在一可选实施例中,在虚拟机组件处理文件为虚拟机组件安装文件的情形下,根据处理指示信息处理虚拟机组件处理文件,包括:
运行虚拟机组件安装文件,以安装部署虚拟机组件;
在虚拟机组件处理文件为虚拟机组件升级文件的情形下,根据处理指示信息处理虚拟机组件处理文件,包括:
运行虚拟机组件升级文件,以对虚拟机组件进行升级。
在一可选实施例中,上述接收主机代理通过虚拟串口发送的虚拟机组件处理文件之前,还包括:
确定虚拟机组件处理文件的占用空间;
其中,在虚拟机组件处理文件的占用空间小于或等于预设阈值的情形下,执行以下操作:接收主机代理通过虚拟串口发送的虚拟机组件处理文件,并接收主机代理通过虚拟串口发送的处理指示信息,以根据处理指示信息处理虚拟机组件处理文件。
在一可选实施例中,本实施例中的虚拟机组件处理方法还包括:
在虚拟机中不存在虚拟光驱的情形下,执行以下操作:接收主机代理通过虚拟串口发送的虚拟机组件处理文件,并接收主机代理通过虚拟串口发送的处理指示信息,以根据处理指示信息处理虚拟机组件处理文件;或者,
在虚拟机中存在虚拟光驱的情形下,执行以下操作:通过虚拟光驱接收HA模块发送的虚拟机组件处理文件,并接收主机代理通过虚拟串口发送的处理指示信息,以根据处理指示信息处理虚拟机组件处理文件。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如 ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例所述的方法。
实施例3
本实施例提供了一种虚拟机组件处理装置,应用于主机代理,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。图8是根据本公开实施例提供的虚拟机组件处理装置的结构框图(一),如图8所示,本实施例中的虚拟机组件处理装置包括:
第一发送模块302,设置为通过虚拟串口发送虚拟机组件处理文件至虚拟机,其中,虚拟串口由虚拟机管理Ha模块建立;
第二发送模块304,设置为通过虚拟串口发送处理指示信息至虚拟机,以指示虚拟机处理虚拟机组件处理文件。
需要进一步说明的是,本实施例中的虚拟机组件处理装置的其余可选实施例以及技术效果均与实施例1中记载的虚拟机组件处理方法相对应,故在此不再赘述。
在一可选实施例中,上述虚拟机组件处理文件包括以下至少之一:
虚拟机组件安装文件,用于在虚拟机中安装部署虚拟机组件;
虚拟机组件升级文件,用于对虚拟机中的虚拟机组件进行升级。
在一可选实施例中,在虚拟机组件处理文件为虚拟机组件安装文件的情形下,处理指示信息用于指示在虚拟机中运行虚拟机组件安装文件,以在虚拟机中安装部署虚拟机组件;
在虚拟机组件处理文件为虚拟机组件升级文件的情形下,处理指示信息用于指示在虚拟机中运行虚拟机组件升级文件,以对虚拟机中的虚拟机 组件进行升级。
在一可选实施例中,上述通过虚拟串口发送虚拟机组件处理文件至虚拟机之前,还包括:
获取用户发送的处理请求,其中,处理请求中包含虚拟机组件标识信息,虚拟机组件标识信息用于标识虚拟机组件。
在一可选实施例中,上述请求信息中还包含重启指示信息;其中,重启指示信息用于指示虚拟机在完成处理虚拟机组件处理文件后进行重启虚拟机系统。
在一可选实施例中,本实施例中的虚拟机组件处理装置还用于:
检测虚拟机系统是否启动正常,以及,检测虚拟机代理是否运行正常。
在一可选实施例中,上述通过虚拟串口发送虚拟机组件处理文件至虚拟机之前,还包括:
确定虚拟机组件处理文件的占用空间;
其中,在虚拟机组件处理文件的占用空间小于或等于预设阈值的情形下,执行以下操作:通过虚拟串口发送虚拟机组件处理文件至虚拟机,并通过虚拟串口发送处理指示信息至虚拟机。
在一可选实施例中,上述虚拟串口发送虚拟机组件处理文件至虚拟机之前,还包括:
检测虚拟机中是否存在虚拟光驱;
其中,在虚拟机中不存在虚拟光驱的情形下,执行以下操作:通过虚拟串口发送虚拟机组件处理文件至虚拟机,并通过虚拟串口发送处理指示信息至虚拟机;或者,
在虚拟机中存在虚拟光驱的情形下,执行以下操作:通过HA模块将虚拟机组件处理文件发送至虚拟光驱,并通过虚拟串口发送处理指示信息至虚拟机。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于 后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。
实施例4
本实施例提供了一种虚拟机组件处理装置,应用于虚拟机,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。图9是根据本公开实施例提供的虚拟机组件处理装置的结构框图(二),如图9所示,本实施例中的虚拟机组件处理装置包括:
第一接收模块402,设置为接收主机代理通过虚拟串口发送的虚拟机组件处理文件,其中,虚拟串口由虚拟机管理Ha模块建立;
第二接收模块404,设置为接收主机代理通过虚拟串口发送的处理指示信息,并根据处理指示信息处理虚拟机组件处理文件。
需要进一步说明的是,本实施例中的虚拟机组件处理装置的其余可选实施例以及技术效果均与实施例2中记载的虚拟机组件处理方法相对应,故在此不再赘述。
在一可选实施例中,上述虚拟机组件处理文件包括以下至少之一:
虚拟机组件安装文件,用于在虚拟机中安装部署虚拟机组件;
虚拟机组件升级文件,用于对虚拟机中的虚拟机组件进行升级。
在一可选实施例中,在虚拟机组件处理文件为虚拟机组件安装文件的情形下,根据处理指示信息处理虚拟机组件处理文件,包括:
运行虚拟机组件安装文件,以安装部署虚拟机组件;
在虚拟机组件处理文件为虚拟机组件升级文件的情形下,根据处理指示信息处理虚拟机组件处理文件,包括:
运行虚拟机组件升级文件,以对虚拟机组件进行升级。
在一可选实施例中,上述接收主机代理通过虚拟串口发送的虚拟机组件处理文件之前,还包括:
确定虚拟机组件处理文件的占用空间;
其中,在虚拟机组件处理文件的占用空间小于或等于预设阈值的情形下,执行以下操作:接收主机代理通过虚拟串口发送的虚拟机组件处理文件,并接收主机代理通过虚拟串口发送的处理指示信息,以根据处理指示信息处理虚拟机组件处理文件。
在一可选实施例中,本实施例中的虚拟机组件处理装置还设置为:
在虚拟机中不存在虚拟光驱的情形下,执行以下操作:接收主机代理通过虚拟串口发送的虚拟机组件处理文件,并接收主机代理通过虚拟串口发送的处理指示信息,以根据处理指示信息处理虚拟机组件处理文件;或者,
在虚拟机中存在虚拟光驱的情形下,执行以下操作:通过虚拟光驱接收HA模块发送的虚拟机组件处理文件,并接收主机代理通过虚拟串口发送的处理指示信息,以根据处理指示信息处理虚拟机组件处理文件。
实施例5
本公开的实施例还提供了一种计算机可读的存储介质,该计算机可读的存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。
可选地,在本实施例中,上述计算机可读的存储介质可以被设置为存储用于执行上述实施例中记载的方法步骤的计算机程序:
可选地,在本实施例中,上述计算机可读的存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。
实施例6
本公开的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。
可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行上述实施例中记载的方法步骤。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。
以上所述仅为本公开的优选实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。

Claims (17)

  1. 一种虚拟机组件处理方法,应用于主机代理,所述方法包括:
    通过虚拟串口发送虚拟机组件处理文件至虚拟机,其中,所述虚拟串口由虚拟机管理Ha模块建立;
    通过所述虚拟串口发送处理指示信息至所述虚拟机,以指示所述虚拟机处理所述虚拟机组件处理文件。
  2. 根据权利要求1所述的方法,其中,所述虚拟机组件处理文件包括以下至少之一:
    虚拟机组件安装文件,用于在所述虚拟机中安装部署所述虚拟机组件;
    虚拟机组件升级文件,用于对所述虚拟机中的所述虚拟机组件进行升级。
  3. 根据权利要求2所述的方法,其中,在所述虚拟机组件处理文件为所述虚拟机组件安装文件的情形下,所述处理指示信息用于指示在所述虚拟机中运行所述虚拟机组件安装文件,以在所述虚拟机中安装部署所述虚拟机组件;
    在所述虚拟机组件处理文件为所述虚拟机组件升级文件的情形下,所述处理指示信息用于指示在所述虚拟机中运行所述虚拟机组件升级文件,以对所述虚拟机中的所述虚拟机组件进行升级。
  4. 根据权利要求1至3任一项中所述的方法,其中,所述通过虚拟串口发送虚拟机组件处理文件至虚拟机之前,还包括:
    获取用户发送的处理请求,其中,所述处理请求中包含虚拟机组件标识信息,所述虚拟机组件标识信息用于标识所述虚拟机组件。
  5. 根据权利要求4所述的方法,其中,所述请求信息中还包含重启指示信息;其中,所述重启指示信息用于指示所述虚拟机在完成处理所述虚拟机组件处理文件后进行重启虚拟机系统。
  6. 根据权利要求5所述的方法,其中,所述方法还包括:
    检测所述虚拟机系统是否启动正常,以及,检测虚拟机代理是否运行正常。
  7. 根据权利要求1至3任一项中所述的方法,其中,所述通过虚拟串口发送虚拟机组件处理文件至虚拟机之前,还包括:
    确定所述虚拟机组件处理文件的占用空间;
    其中,在所述虚拟机组件处理文件的所述占用空间小于或等于预设阈值的情形下,执行以下操作:通过所述虚拟串口发送虚拟机组件处理文件至虚拟机,并通过所述虚拟串口发送所述处理指示信息至所述虚拟机。
  8. 根据权利要求1至3任一项中所述的方法,其中,所述通过虚拟串口发送虚拟机组件处理文件至虚拟机之前,还包括:
    检测所述虚拟机中是否存在虚拟光驱;
    其中,在所述虚拟机中不存在所述虚拟光驱的情形下,执行以下操作:通过所述虚拟串口发送虚拟机组件处理文件至虚拟机,并通过所述虚拟串口发送所述处理指示信息至所述虚拟机;或者,
    在所述虚拟机中存在所述虚拟光驱的情形下,执行以下操作:通过所述HA模块将所述虚拟机组件处理文件发送至所述虚拟光驱,并通过所述虚拟串口发送所述处理指示信息至所述虚拟机。
  9. 一种虚拟机组件处理方法,应用于虚拟机,所述方法包括:
    接收主机代理通过虚拟串口发送的虚拟机组件处理文件,其中,所述虚拟串口由虚拟机管理Ha模块建立;
    接收所述主机代理通过所述虚拟串口发送的处理指示信息,并根据所述处理指示信息处理所述虚拟机组件处理文件。
  10. 根据权利要求9所述的方法,其中,所述虚拟机组件处理文件包括以下至少之一:
    虚拟机组件安装文件,用于在所述虚拟机中安装部署所述虚拟机组件;
    虚拟机组件升级文件,用于对所述虚拟机中的所述虚拟机组件进行升级。
  11. 根据权利要求10所述的方法,其中,在所述虚拟机组件处理文件为所述虚拟机组件安装文件的情形下,所述根据所述处理指示信息处理所述虚拟机组件处理文件,包括:
    运行所述虚拟机组件安装文件,以安装部署所述虚拟机组件;
    在所述虚拟机组件处理文件为所述虚拟机组件升级文件的情形下,所述根据所述处理指示信息处理所述虚拟机组件处理文件,包括:
    运行所述虚拟机组件升级文件,以对所述虚拟机组件进行升级。
  12. 根据权利要求9至12任一项中所述的方法,其中,所述接收主机代理通过虚拟串口发送的虚拟机组件处理文件之前,还包括:
    确定所述虚拟机组件处理文件的占用空间;
    其中,在所述虚拟机组件处理文件的所述占用空间小于或等于预设阈值的情形下,执行以下操作:接收所述主机代理通过所述虚拟串 口发送的所述虚拟机组件处理文件,并接收所述主机代理通过所述虚拟串口发送的所述处理指示信息,以根据所述处理指示信息处理所述虚拟机组件处理文件。
  13. 根据权利要求9至11任一项中所述的方法,其中,所述方法还包括:
    在所述虚拟机中不存在所述虚拟光驱的情形下,执行以下操作:接收所述主机代理通过所述虚拟串口发送的所述虚拟机组件处理文件,并接收所述主机代理通过所述虚拟串口发送的所述处理指示信息,以根据所述处理指示信息处理所述虚拟机组件处理文件;或者,
    在所述虚拟机中存在所述虚拟光驱的情形下,执行以下操作:通过虚拟光驱接收所述HA模块发送的所述虚拟机组件处理文件,并接收所述主机代理通过所述虚拟串口发送的所述处理指示信息,以根据所述处理指示信息处理所述虚拟机组件处理文件。
  14. 一种虚拟机组件处理装置,应用于主机代理,所述装置包括:
    第一发送模块,设置为通过虚拟串口发送虚拟机组件处理文件至虚拟机,其中,所述虚拟串口由虚拟机管理Ha模块建立;
    第二发送模块,设置为通过所述虚拟串口发送处理指示信息至所述虚拟机,以指示所述虚拟机处理所述虚拟机组件处理文件。
  15. 一种虚拟机组件处理装置,应用于虚拟机,所述装置包括:
    第一接收模块,设置为接收主机代理通过虚拟串口发送的虚拟机组件处理文件,其中,所述虚拟串口由虚拟机管理Ha模块建立;
    第二接收模块,设置为接收所述主机代理通过所述虚拟串口发送的处理指示信息,并根据所述处理指示信息处理所述虚拟机组件处理 文件。
  16. 一种计算机可读的存储介质,所述计算机可读的存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至8,权利要求9至13任一项中所述的方法。
  17. 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至8,权利要求9至13任一项中所述的方法。
PCT/CN2020/137772 2019-12-31 2020-12-18 虚拟机组件处理方法及装置 WO2021135995A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US17/790,198 US20230032581A1 (en) 2019-12-31 2020-12-18 Method and Apparatus for Processing Virtual Machine Component
EP20909110.7A EP4086756A4 (en) 2019-12-31 2020-12-18 METHOD AND DEVICE FOR PROCESSING A VIRTUAL MACHINE COMPONENT

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911419726.8A CN113127026A (zh) 2019-12-31 2019-12-31 虚拟机组件处理方法及装置
CN201911419726.8 2019-12-31

Publications (1)

Publication Number Publication Date
WO2021135995A1 true WO2021135995A1 (zh) 2021-07-08

Family

ID=76687347

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/137772 WO2021135995A1 (zh) 2019-12-31 2020-12-18 虚拟机组件处理方法及装置

Country Status (4)

Country Link
US (1) US20230032581A1 (zh)
EP (1) EP4086756A4 (zh)
CN (1) CN113127026A (zh)
WO (1) WO2021135995A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200374294A1 (en) * 2012-07-19 2020-11-26 Tecore, Inc. Systems and Methods for Communication Control in a Restricted Environment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110029968A1 (en) * 2009-08-03 2011-02-03 James Sanders Streaming An Application Install Package Into A Virtual Environment
CN103618724A (zh) * 2013-12-03 2014-03-05 中标软件有限公司 终端机与虚拟机之间的通信方法与通信系统
CN103677858A (zh) * 2012-08-30 2014-03-26 中兴通讯股份有限公司 一种云环境中虚拟机软件管理的方法、系统及设备
CN104102527A (zh) * 2014-07-10 2014-10-15 国云科技股份有限公司 一种虚拟机软件更新方法
US20190317783A1 (en) * 2015-08-06 2019-10-17 Telefonaktiebolaget Lm Ericsson (Publ) Methods, apparatus, and systems for providing access to serial ports of virtual machines in self-deployed virtual applications

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707971A (zh) * 2012-04-26 2012-10-03 广东电子工业研究院有限公司 一种在虚拟机中自动获取和安装软件的方法
US10466991B1 (en) * 2017-03-03 2019-11-05 Amazon Technologies, Inc. Computing instance software package installation

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110029968A1 (en) * 2009-08-03 2011-02-03 James Sanders Streaming An Application Install Package Into A Virtual Environment
CN103677858A (zh) * 2012-08-30 2014-03-26 中兴通讯股份有限公司 一种云环境中虚拟机软件管理的方法、系统及设备
CN103618724A (zh) * 2013-12-03 2014-03-05 中标软件有限公司 终端机与虚拟机之间的通信方法与通信系统
CN104102527A (zh) * 2014-07-10 2014-10-15 国云科技股份有限公司 一种虚拟机软件更新方法
US20190317783A1 (en) * 2015-08-06 2019-10-17 Telefonaktiebolaget Lm Ericsson (Publ) Methods, apparatus, and systems for providing access to serial ports of virtual machines in self-deployed virtual applications

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4086756A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200374294A1 (en) * 2012-07-19 2020-11-26 Tecore, Inc. Systems and Methods for Communication Control in a Restricted Environment
US11509663B2 (en) * 2012-07-19 2022-11-22 Tecore, Inc. Systems and methods for communication control in a restricted environment

Also Published As

Publication number Publication date
EP4086756A4 (en) 2023-06-07
US20230032581A1 (en) 2023-02-02
CN113127026A (zh) 2021-07-16
EP4086756A1 (en) 2022-11-09

Similar Documents

Publication Publication Date Title
JP4426736B2 (ja) プログラム修正方法およびプログラム
US10303459B2 (en) Electronic system with update control mechanism and method of operation thereof
CN102238093B (zh) 防止业务中断的方法和装置
CN114651229A (zh) 基板管理控制器固件更新
CN111522569B (zh) 基于Hypervisor的嵌入式多系统升级方法及计算机可读存储介质
CN101482823A (zh) 一种单板应用版本的实现方法及系统
WO2011095074A1 (zh) 一种终端设备系统升级方法及终端设备
US20230333935A1 (en) Quick start method
CN111090546B (zh) 一种操作系统重启方法、装置、设备及可读存储介质
WO2021135995A1 (zh) 虚拟机组件处理方法及装置
CN113626059B (zh) 系统升级方法、摄像机及计算机可读存储介质
CN111475172A (zh) 一种裸机部署方法及装置
CN113032183A (zh) 系统管理方法、装置、计算机设备和存储介质
CN106933604B (zh) 一种系统升级方法及装置
CN116880877A (zh) 虚拟机增强工具升级方法、装置、计算机设备和存储介质
CN105743696A (zh) 一种云计算平台管理方法
CN116382753A (zh) 一种基于网络的设备固件高可靠性远程升级方法
CN110716723A (zh) 一种固件升级方法及系统
CN114546455A (zh) 一种双分区的mcu软件升级方法及装置
WO2021057880A1 (zh) 物联网设备的程序升级方法、装置及物联网设备
CN114217905A (zh) 虚拟机高可用恢复处理方法及系统
CN113190244A (zh) 无线模组升级的方法、装置、计算机设备和存储介质
CN103473081A (zh) 终端进行系统升级后生效的方法及该终端
TWI554876B (zh) 節點置換處理方法與使用其之伺服器系統
TWI843165B (zh) 用於應用保護的系統及非暫態機器可讀介質

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20909110

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2020909110

Country of ref document: EP

Effective date: 20220801