Movatterモバイル変換


[0]ホーム

URL:


CN118860576A - Virtual machine data processing method, device, electronic device and storage medium - Google Patents

Virtual machine data processing method, device, electronic device and storage medium
Download PDF

Info

Publication number
CN118860576A
CN118860576ACN202411346494.9ACN202411346494ACN118860576ACN 118860576 ACN118860576 ACN 118860576ACN 202411346494 ACN202411346494 ACN 202411346494ACN 118860576 ACN118860576 ACN 118860576A
Authority
CN
China
Prior art keywords
virtual machine
target
backup
data
cloud platform
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.)
Granted
Application number
CN202411346494.9A
Other languages
Chinese (zh)
Other versions
CN118860576B (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.)
Wuhan Barda Technology Co ltd
Original Assignee
Wuhan Barda Technology 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 Wuhan Barda Technology Co ltdfiledCriticalWuhan Barda Technology Co ltd
Priority to CN202411346494.9ApriorityCriticalpatent/CN118860576B/en
Publication of CN118860576ApublicationCriticalpatent/CN118860576A/en
Application grantedgrantedCritical
Publication of CN118860576BpublicationCriticalpatent/CN118860576B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种虚拟机数据的处理方法、装置、电子设备及存储介质,应用于服务端,服务端分别与前端和代理端通信连接,该方法包括接收前端发送的云平台的登录信息,将登录信息发送至代理端,使代理端与云平台建立通信连接,并将云平台下的虚拟机信息返回给服务端,服务端将虚拟机信息发送给前端,以使前端对用户进行展示,响应于前端发送的备份请求,确定目标备份策略和目标传输策略并发送至代理端,以使代理端根据目标备份策略和目标传输策略对目标虚拟机进行备份处理。采用本发明能够使得用户可以在任意时间点、设备上,通过云平台对目标虚拟机进行备份处理,不仅简化了备份处理流程,便于非专业人员的使用,还提高了备份处理的备份效率。

The present invention discloses a method, device, electronic device and storage medium for processing virtual machine data, which are applied to a server, and the server is respectively connected to a front end and an agent. The method includes receiving login information of a cloud platform sent by the front end, sending the login information to the agent, so that the agent establishes a communication connection with the cloud platform, and returning the virtual machine information under the cloud platform to the server. The server sends the virtual machine information to the front end so that the front end can display it to the user, and in response to the backup request sent by the front end, determines the target backup strategy and the target transmission strategy and sends them to the agent, so that the agent performs backup processing on the target virtual machine according to the target backup strategy and the target transmission strategy. The present invention enables users to perform backup processing on the target virtual machine through the cloud platform at any time point and device, which not only simplifies the backup processing flow, facilitates the use of non-professionals, but also improves the backup efficiency of the backup processing.

Description

Translated fromChinese
虚拟机数据的处理方法、装置、电子设备及存储介质Virtual machine data processing method, device, electronic device and storage medium

技术领域Technical Field

本发明涉及数据处理技术领域,尤其涉及一种虚拟机数据的处理方法、装置、电子设备及存储介质。The present invention relates to the field of data processing technology, and in particular to a method, device, electronic device and storage medium for processing virtual machine data.

背景技术Background Art

数据备份与恢复是用于防止服务器故障导致数据丢失,并能够在服务器故障时可以还原服务器中丢失的数据,有效保证服务器中数据存储的有效性和安全性。具体的,数据备份与恢复主要是通过预先将服务器中的数据拷贝一份,并存储到其它的存储设备中,并在需要原服务器中的数据时,可以从存储设备中还原出原服务器中的数据,实现在原服务器故障时可以还原出原服务器数据的目的。Data backup and recovery is used to prevent data loss caused by server failures, and to restore lost data in the server when the server fails, effectively ensuring the effectiveness and security of data storage in the server. Specifically, data backup and recovery mainly copies the data in the server in advance and stores it in other storage devices, and when the data in the original server is needed, the data in the original server can be restored from the storage device, achieving the purpose of restoring the original server data when the original server fails.

在虚拟机的应用中,也常常需要进行数据的备份。在相关技术中,通常是利用云平台管理各用户的操作系统中已创建的虚拟机。具体的,用户登录云平台后可通过云平台对操作系统中的各设备资源进行自动化调度管理,以实现对虚拟机的高效备份操作。In the application of virtual machines, data backup is often required. In related technologies, cloud platforms are usually used to manage virtual machines created in the operating systems of various users. Specifically, after the user logs in to the cloud platform, the cloud platform can automatically schedule and manage the various device resources in the operating system to achieve efficient backup operations for the virtual machines.

然而,云平台不仅需要账号密码,还需要密钥的验证才能实现云平台的登录,同时云平台还存在登录设备的限制,无法在任意时间点、任意的设备上进行云平台的登录。同时,在对虚拟机进行备份时,通常需要用户在操作系统上进行备份操作的配置,若用户想要进行查看,则必须先登录系统才能进行查看;并且,现有的虚拟机备份软件,需要由专业的工作人员来进行相关的备份操作,对于非专业的用户来说不友好。However, the cloud platform requires not only an account password, but also key verification to log in to the cloud platform. At the same time, the cloud platform also has login device restrictions, and it is impossible to log in to the cloud platform at any time and on any device. At the same time, when backing up a virtual machine, the user is usually required to configure the backup operation on the operating system. If the user wants to view it, he must log in to the system first; and the existing virtual machine backup software requires professional staff to perform related backup operations, which is not friendly to non-professional users.

因此,如何提供一种配置简洁、操作简单的备份恢复方法,是目前亟待解决的技术问题。Therefore, how to provide a backup and recovery method with simple configuration and easy operation is a technical problem that needs to be solved urgently.

发明内容Summary of the invention

本发明实施例的目的是提供一种虚拟机数据的处理方法、装置、电子设备及存储介质,以解决相关技术中对虚拟机数据进行备份时存在的至少一个技术问题。The purpose of the embodiments of the present invention is to provide a method, device, electronic device and storage medium for processing virtual machine data, so as to solve at least one technical problem existing in the related art when backing up virtual machine data.

第一方面,本发明实施例提供了一种虚拟机数据的处理方法,应用于服务端,所述服务端分别与前端和代理端通信连接,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for processing virtual machine data, which is applied to a server, wherein the server is respectively connected to a front end and an agent, and the method comprises:

接收前端发送的云平台的登录信息,将所述登录信息发送至所述代理端,所述代理端用于对所述登录信息进行加密,以通过加密后的登录信息与所述云平台建立通信连接,并在与所述云平台建立通信连接后将所述云平台下的所有虚拟机的虚拟机信息返回给所述服务端;Receive the login information of the cloud platform sent by the front end, and send the login information to the agent end, the agent end is used to encrypt the login information, so as to establish a communication connection with the cloud platform through the encrypted login information, and return the virtual machine information of all virtual machines under the cloud platform to the server end after establishing the communication connection with the cloud platform;

将所有虚拟机的虚拟机信息发送给所述前端,所述前端用于将所有虚拟机的虚拟机信息对用户进行展示;Sending virtual machine information of all virtual machines to the front end, wherein the front end is used to display the virtual machine information of all virtual machines to the user;

响应于所述前端发送的对目标虚拟机进行备份的备份请求,确定与所述目标虚拟机对应的目标备份策略和目标传输策略;In response to a backup request for backing up a target virtual machine sent by the front end, determining a target backup strategy and a target transmission strategy corresponding to the target virtual machine;

将所述目标备份策略和所述目标传输策略发送至所述代理端,所述代理端还用于根据所述目标备份策略和所述目标传输策略,对所述目标虚拟机的待备份数据进行备份处理。The target backup strategy and the target transmission strategy are sent to the proxy end, and the proxy end is further used to perform backup processing on the to-be-backed-up data of the target virtual machine according to the target backup strategy and the target transmission strategy.

在一些实施例中,所述响应于所述前端发送的对目标虚拟机进行备份的备份请求,确定与所述目标虚拟机对应的目标备份策略和目标传输策略的步骤,包括:In some embodiments, the step of determining a target backup strategy and a target transmission strategy corresponding to the target virtual machine in response to a backup request sent by the front end to back up the target virtual machine includes:

响应于所述前端发送的对目标虚拟机进行备份的备份请求,获取所述目标虚拟机的目标虚拟机信息;In response to a backup request for backing up a target virtual machine sent by the front end, acquiring target virtual machine information of the target virtual machine;

根据所述目标虚拟机信息,确定与所述目标虚拟机对应的目标备份策略;Determining a target backup strategy corresponding to the target virtual machine according to the target virtual machine information;

根据所述目标虚拟机信息,确定与所述目标虚拟机对应的目标传输策略。A target transmission policy corresponding to the target virtual machine is determined according to the target virtual machine information.

在一些实施例中,所述目标虚拟机信息包括标识信息;In some embodiments, the target virtual machine information includes identification information;

所述根据所述目标虚拟机信息,确定与所述目标虚拟机对应的目标备份策略的步骤,包括:The step of determining a target backup policy corresponding to the target virtual machine according to the target virtual machine information includes:

将所述标识信息和备份数据检测请求发送至所述代理端,所述代理端还用于根据所述标识信息和所述备份数据检测请求,检测所述云平台中是否存在与所述标识信息对应的备份数据;The identification information and the backup data detection request are sent to the agent, and the agent is further used to detect whether there is backup data corresponding to the identification information in the cloud platform according to the identification information and the backup data detection request;

在所述云平台中存在所述标识信息对应的备份数据的情况下,将增量备份作为目标备份策略;In the case where backup data corresponding to the identification information exists in the cloud platform, taking incremental backup as the target backup strategy;

在所述云平台中不存在所述标识信息对应的备份数据的情况下,将全量备份作为目标备份策略。In the case that the backup data corresponding to the identification information does not exist in the cloud platform, full backup is used as the target backup strategy.

在一些实施例中,所述目标虚拟机信息包括网络状态信息;In some embodiments, the target virtual machine information includes network status information;

所述根据所述目标虚拟机信息,确定与所述目标虚拟机对应的目标传输策略的步骤,包括:The step of determining a target transmission policy corresponding to the target virtual machine according to the target virtual machine information includes:

根据所述目标虚拟机当前的网络状态信息,确定所述目标虚拟机当前的数据传输等级;Determining a current data transmission level of the target virtual machine according to the current network status information of the target virtual machine;

在所述数据传输等级为第一等级的情况下,确定数据直传的方式作为目标传输策略;When the data transmission level is the first level, determining a direct data transmission method as a target transmission strategy;

在所述数据传输等级为第二等级的情况下,确定先压缩再传输的方式作为目标传输策略,所述第一等级对应的数据传输速率大于所述第二等级对应的数据传输速率。When the data transmission level is the second level, a method of compressing first and then transmitting is determined as the target transmission strategy, and the data transmission rate corresponding to the first level is greater than the data transmission rate corresponding to the second level.

在一些实施例中,所述将所述目标备份策略和所述目标传输策略发送至所述代理端的步骤,包括:In some embodiments, the step of sending the target backup strategy and the target transmission strategy to the agent includes:

将所述目标备份策略、所述目标传输策略以及数据传输速率检测请求发送至所述代理端,所述代理端还用于根据所述数据传输速率检测请求,检测所述云平台中所述目标虚拟机在所述目标备份策略和所述目标传输策略下的数据传输速率;The target backup strategy, the target transmission strategy and the data transmission rate detection request are sent to the proxy end, and the proxy end is further used to detect the data transmission rate of the target virtual machine in the cloud platform under the target backup strategy and the target transmission strategy according to the data transmission rate detection request;

接收所述代理端返回的所述数据传输速率,在所述数据传输速率小于预设阈值的情况下,发送缓存指令至所述代理端,所述代理端还用于根据所述缓存指令,控制所述云平台中的所述目标虚拟机将所述目标虚拟机的磁盘中的待备份数据缓存到所述目标虚拟机的缓存空间中,以在所述缓存空间中根据所述目标备份策略和所述目标传输策略,对所述目标虚拟机的待备份数据进行备份处理。Receive the data transmission rate returned by the proxy end, and when the data transmission rate is less than a preset threshold, send a cache instruction to the proxy end, and the proxy end is also used to control the target virtual machine in the cloud platform to cache the to-be-backed-up data in the disk of the target virtual machine into the cache space of the target virtual machine according to the cache instruction, so as to back up the to-be-backed-up data of the target virtual machine in the cache space according to the target backup strategy and the target transmission strategy.

在一些实施例中,所述方法还包括:In some embodiments, the method further comprises:

接收所述前端发送的对所述目标虚拟机进行恢复的恢复请求;receiving a recovery request for recovering the target virtual machine sent by the front end;

将所述恢复请求发送至所述代理端,所述代理端还用于根据所述恢复请求,控制所述云平台创建新的虚拟机,并将所述目标虚拟机已完成备份的备份数据,恢复到所述新的虚拟机上。The restore request is sent to the agent end, and the agent end is also used to control the cloud platform to create a new virtual machine according to the restore request, and restore the backup data of the target virtual machine that has been backed up to the new virtual machine.

在一些实施例中,所述将所述恢复请求发送至所述代理端,所述代理端还用于根据所述恢复请求,控制所述云平台创建新的虚拟机,并将所述目标虚拟机已完成备份的备份数据,恢复到所述新的虚拟机上的步骤,包括:In some embodiments, the step of sending the restore request to the agent, wherein the agent is further configured to control the cloud platform to create a new virtual machine according to the restore request, and restore the backup data of the target virtual machine that has been backed up to the new virtual machine, includes:

将所述恢复请求和目标恢复策略发送至所述代理端,所述代理端还用于根据所述恢复请求控制所述云平台创建新的虚拟机,并根据所述目标恢复策略控制所述云平台将所述目标虚拟机的备份数据,传输到所述新的虚拟机的缓存池中,同时控制所述云平台将所述缓存池中的备份数据,恢复到所述新的虚拟机上。The recovery request and target recovery strategy are sent to the agent end, and the agent end is also used to control the cloud platform to create a new virtual machine according to the recovery request, and control the cloud platform to transfer the backup data of the target virtual machine to the cache pool of the new virtual machine according to the target recovery strategy, and at the same time control the cloud platform to restore the backup data in the cache pool to the new virtual machine.

第二方面,本发明实施例提供了一种虚拟机数据的处理装置,应用于服务端,所述服务端分别与前端和代理端通信连接,所述装置包括:In a second aspect, an embodiment of the present invention provides a device for processing virtual machine data, which is applied to a server, wherein the server is respectively connected to a front end and an agent, and the device comprises:

第一发送模块,用于接收前端发送的云平台的登录信息,将所述登录信息发送至所述代理端,所述代理端用于对所述登录信息进行加密,以通过加密后的登录信息与所述云平台建立通信连接,并在与所述云平台建立通信连接后将所述云平台下的所有虚拟机的虚拟机信息返回给所述服务端;A first sending module is used to receive the login information of the cloud platform sent by the front end, and send the login information to the agent end, the agent end is used to encrypt the login information, so as to establish a communication connection with the cloud platform through the encrypted login information, and return the virtual machine information of all virtual machines under the cloud platform to the server end after establishing the communication connection with the cloud platform;

第二发送模块,用于将所有虚拟机的虚拟机信息发送给所述前端,所述前端用于将所有虚拟机的虚拟机信息对用户进行展示;A second sending module, used to send virtual machine information of all virtual machines to the front end, and the front end is used to display the virtual machine information of all virtual machines to the user;

确定模块,用于响应于所述前端发送的对目标虚拟机进行备份的备份请求,确定与所述目标虚拟机对应的目标备份策略和目标传输策略;A determination module, configured to determine a target backup strategy and a target transmission strategy corresponding to the target virtual machine in response to a backup request for backing up the target virtual machine sent by the front end;

第三发送模块,用于将所述目标备份策略和所述目标传输策略发送至所述代理端,所述代理端还用于根据所述目标备份策略和所述目标传输策略,对所述目标虚拟机的待备份数据进行备份处理。The third sending module is used to send the target backup strategy and the target transmission strategy to the proxy end, and the proxy end is also used to back up the to-be-backed-up data of the target virtual machine according to the target backup strategy and the target transmission strategy.

第三方面,本发明实施例提供了一种电子设备,电子设备包括处理器、存储器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任一项所述的虚拟机数据的处理方法中的步骤。In a third aspect, an embodiment of the present invention provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in any one of the above-mentioned methods for processing virtual machine data when executing the computer program.

第四方面,本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述任一项所述的虚拟机数据的处理方法中的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the method for processing virtual machine data described in any one of the above items are implemented.

本发明实施例提供了一种虚拟机数据的处理方法、装置、电子设备及存储介质,该方法通过将前端发送的登录信息发送至代理端,使代理端能够与云平台建立通信连接,并将云平台下的虚拟机信息返回给服务端,从而服务端可以将虚拟机信息发送给前端,以使前端对用户进行展示,然后响应于前端发送的备份请求,确定目标备份策略和目标传输策略并发送至代理端,以使代理端能够根据目标备份策略和目标传输策略,快速对目标虚拟机进行备份处理,如此,用户可以在任意时间点、设备上,通过云平台对目标虚拟机进行备份处理,不仅简化了备份处理流程,便于非专业人员的使用,还提高了备份处理的备份效率。The embodiment of the present invention provides a method, device, electronic device and storage medium for processing virtual machine data. The method sends login information sent by a front end to an agent end, so that the agent end can establish a communication connection with a cloud platform, and returns the virtual machine information under the cloud platform to a server end, so that the server end can send the virtual machine information to the front end so that the front end can display it to the user, and then respond to the backup request sent by the front end, determine the target backup strategy and the target transmission strategy and send them to the agent end, so that the agent end can quickly back up the target virtual machine according to the target backup strategy and the target transmission strategy. In this way, the user can back up the target virtual machine through the cloud platform at any time point and on any device, which not only simplifies the backup processing flow and facilitates the use of non-professionals, but also improves the backup efficiency of the backup processing.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是本发明实施例提供的虚拟机数据的处理方法的一种流程示意图;FIG1 is a flow chart of a method for processing virtual machine data provided by an embodiment of the present invention;

图2是本发明实施例提供的确定目标备份策略和目标传输策略的一种流程示意图;2 is a schematic diagram of a process for determining a target backup strategy and a target transmission strategy provided by an embodiment of the present invention;

图3是本发明实施例提供的虚拟机数据的处理方法的另一种流程示意图;3 is another schematic flow chart of a method for processing virtual machine data provided by an embodiment of the present invention;

图4是本发明实施例提供的虚拟机数据的处理方法的第三种流程示意图;4 is a schematic diagram of a third flow chart of a method for processing virtual machine data provided by an embodiment of the present invention;

图5是本发明实施例提供的虚拟机数据的处理装置的一种结构示意图;5 is a schematic diagram of a structure of a device for processing virtual machine data provided by an embodiment of the present invention;

图6是本发明实施例提供的电子设备的一种结构示意图;FIG6 is a schematic diagram of a structure of an electronic device provided by an embodiment of the present invention;

图7是本发明实施例提供的电子设备的另一种结构示意图。FIG. 7 is another schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.

具体实施方式DETAILED DESCRIPTION

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

应当理解的是,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and/or in parallel. In addition, the method embodiments may include additional steps and/or omit the steps shown. The scope of the present disclosure is not limited in this respect.

本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

在相关技术中,通常是利用云平台管理各用户的操作系统中已创建的虚拟机。具体的,用户登录云平台后可通过云平台对操作系统中的各设备资源进行自动化调度管理,以实现对虚拟机的高效备份操作。In the related art, a cloud platform is usually used to manage virtual machines created in the operating system of each user. Specifically, after the user logs in to the cloud platform, the cloud platform can automatically schedule and manage the various device resources in the operating system to achieve efficient backup operations on the virtual machines.

然而,云平台不仅需要账号密码,还需要密钥的验证才能实现云平台的登录,同时云平台还存在登录设备的限制,无法在任意时间点、任意的设备上进行云平台的登录。同时,在对虚拟机进行备份时,通常需要用户在操作系统上进行备份操作的配置,若用户想要进行查看,则必须先登录系统才能进行查看;并且,现有的虚拟机备份软件,需要由专业的工作人员来进行相关的备份操作,对于非专业的用户来说不友好。However, the cloud platform requires not only an account password, but also key verification to log in to the cloud platform. At the same time, the cloud platform also has login device restrictions, and it is impossible to log in to the cloud platform at any time and on any device. At the same time, when backing up a virtual machine, the user is usually required to configure the backup operation on the operating system. If the user wants to view it, he must log in to the system first; and the existing virtual machine backup software requires professional staff to perform related backup operations, which is not friendly to non-professional users.

因此,如何提供一种配置简洁、操作简单的备份恢复方法,是目前亟待解决的技术问题。Therefore, how to provide a backup and recovery method with simple configuration and easy operation is a technical problem that needs to be solved urgently.

为了解决相关技术中存在的技术问题,本发明实施例提供了一种虚拟机数据的处理方法,应用于服务端,所述服务端分别与前端和代理端通信连接。具体的,请参见图1,图1是本发明实施例提供的虚拟机数据的处理方法的一种流程示意图,该方法包括步骤101至步骤104;In order to solve the technical problems existing in the related art, an embodiment of the present invention provides a method for processing virtual machine data, which is applied to a server, and the server is respectively connected to a front end and an agent. Specifically, please refer to FIG. 1, which is a flow chart of a method for processing virtual machine data provided by an embodiment of the present invention, and the method includes steps 101 to 104;

步骤101,接收前端发送的云平台的登录信息,将所述登录信息发送至所述代理端,所述代理端用于对所述登录信息进行加密,以通过加密后的登录信息与所述云平台建立通信连接,并在与所述云平台建立通信连接后将所述云平台下的所有虚拟机的虚拟机信息返回给所述服务端。Step 101, receiving the login information of the cloud platform sent by the front end, and sending the login information to the agent end, the agent end is used to encrypt the login information to establish a communication connection with the cloud platform through the encrypted login information, and after establishing a communication connection with the cloud platform, the agent end returns the virtual machine information of all virtual machines under the cloud platform to the server end.

在本实施例中,本实施例提供的前端可以为PC端或web程序,且该前端可以是任意的PC端或web程序,也就是说,用户可以在任意的时间或地点上,通过前端与服务端建立通信连接,即可完成本实施例提供的虚拟机数据的处理方法中的方法步骤,从而极大程度上提高用户进行虚拟机数据备份的备份效率。In this embodiment, the front end provided in this embodiment can be a PC or a web program, and the front end can be any PC or web program. That is to say, the user can establish a communication connection with the server through the front end at any time or place to complete the method steps in the virtual machine data processing method provided in this embodiment, thereby greatly improving the backup efficiency of the user's virtual machine data backup.

其中,通过本实施例提供的前端,可以方便客户的查看与管理,且配置过程简单明了,不需要具备太多的相关知识,从而简化了虚拟机数据的备份方法,便于非专业人员的使用,有效提高虚拟机数据的备份效率。Among them, the front end provided by this embodiment can facilitate customers' viewing and management, and the configuration process is simple and clear, and does not require too much relevant knowledge, thereby simplifying the virtual machine data backup method, facilitating the use of non-professionals, and effectively improving the virtual machine data backup efficiency.

具体的,本实施例的服务端与前端建立通信连接的方式,可以是无线网连接、有线连接以及蓝牙连接等方式,具体的连接方式可以根据实际的应用场景按需选择,在此不作具体的限。Specifically, the communication connection between the server and the front end of this embodiment can be established by wireless network connection, wired connection, Bluetooth connection, etc. The specific connection method can be selected as needed according to the actual application scenario and is not specifically limited here.

在本实施例中,本实施例提供的代理端可以设有USB密钥,从而在接收到服务端发送的登录信息,也即账号密码后,即可通过USB密钥对账号密码进行加密,然后通过云平台API与云平台建立通信连接,从而可以对云平台中的虚拟机进行扫描,以将云平台中的所有虚拟机的虚拟机信息扫描出来,并返回给服务端。其中,本实施例可以通过云平台API实现控制云平台的目的,从而可以通过该云平台API控制云平台进行虚拟机配置的查看和存储、虚拟机的备份恢复过程中的各种操作。In this embodiment, the agent provided in this embodiment may be provided with a USB key, so that after receiving the login information sent by the server, that is, the account password, the USB key can be used to encrypt the account password, and then a communication connection can be established with the cloud platform through the cloud platform API, so that the virtual machines in the cloud platform can be scanned to scan out the virtual machine information of all virtual machines in the cloud platform and return it to the server. Among them, this embodiment can achieve the purpose of controlling the cloud platform through the cloud platform API, so that the cloud platform can be controlled through the cloud platform API to view and store the virtual machine configuration, and various operations in the backup and recovery process of the virtual machine.

步骤102,将所有虚拟机的虚拟机信息发送给所述前端,所述前端用于将所有虚拟机的虚拟机信息对用户进行展示。Step 102: sending virtual machine information of all virtual machines to the front end, and the front end is used to display the virtual machine information of all virtual machines to the user.

在本实施例中,在接收到代理端返回的虚拟机信息后,即可将所有虚拟机的虚拟机信息发送给所述前端,以供前端将所有虚拟机的虚拟机信息对用户进行展示,从而便于用户在前端中查看并选择需要进行备份的目标虚拟机,避免用户进行云平台的登录操作、密码验证操作以及虚拟机信息查询操作,提高虚拟机进行备份的备份效率。In this embodiment, after receiving the virtual machine information returned by the agent, the virtual machine information of all virtual machines can be sent to the front end, so that the front end can display the virtual machine information of all virtual machines to the user, thereby facilitating the user to view and select the target virtual machine to be backed up in the front end, avoiding the user from performing cloud platform login operations, password verification operations and virtual machine information query operations, thereby improving the backup efficiency of virtual machines.

需要说明的是,本实施例提供的虚拟机信息可以包括虚拟机的设备名称信息、虚拟机的管理记录信息等,只要可以便于用户从多个虚拟机中选择出需要进行备份的虚拟机的信息即可,在此不作具体的限。It should be noted that the virtual machine information provided in this embodiment may include the device name information of the virtual machine, the management record information of the virtual machine, etc., as long as it can facilitate the user to select the information of the virtual machine to be backed up from multiple virtual machines, and no specific limitation is made here.

步骤103,响应于所述前端发送的对目标虚拟机进行备份的备份请求,确定与所述目标虚拟机对应的目标备份策略和目标传输策略。Step 103: In response to the backup request for backing up the target virtual machine sent by the front end, determine a target backup strategy and a target transmission strategy corresponding to the target virtual machine.

在本实施例中,为了提高虚拟机数据的备份速率,本实施例可以在接收到前端发送的对目标虚拟机进行备份的备份请求时,可以根据虚拟机的虚拟机信息,为不同的虚拟机匹配可以提高对应虚拟机备份效率的备份策略。具体的,请参见图2,图2是本发明实施例提供的确定目标备份策略和目标传输策略的一种流程示意图,如图2所示,包括步骤201至步骤203;In this embodiment, in order to improve the backup rate of virtual machine data, this embodiment can match different virtual machines with a backup strategy that can improve the backup efficiency of the corresponding virtual machine according to the virtual machine information of the virtual machine when receiving a backup request for backing up the target virtual machine sent by the front end. Specifically, please refer to Figure 2, which is a flow chart of determining a target backup strategy and a target transmission strategy provided by an embodiment of the present invention, as shown in Figure 2, including steps 201 to 203;

步骤201,响应于所述前端发送的对目标虚拟机进行备份的备份请求,获取所述目标虚拟机的目标虚拟机信息。Step 201: In response to a backup request for backing up a target virtual machine sent by the front end, target virtual machine information of the target virtual machine is obtained.

在本实施例中,为了可以为不同的虚拟机选择相匹配的、可以提高虚拟机备份效率的备份策略,本实施例可以在接收到前端发送的对目标虚拟机进行备份的备份请求时,获取目标虚拟机的目标虚拟机信息,以便于后续为目标虚拟机选择相匹配的目标备份策略。In this embodiment, in order to select matching backup strategies for different virtual machines that can improve the backup efficiency of virtual machines, this embodiment can obtain the target virtual machine information of the target virtual machine when receiving a backup request for backing up the target virtual machine sent by the front end, so as to facilitate the subsequent selection of a matching target backup strategy for the target virtual machine.

步骤202,根据所述目标虚拟机信息,确定与所述目标虚拟机对应的目标备份策略。Step 202: Determine a target backup policy corresponding to the target virtual machine according to the target virtual machine information.

在本实施例中,本实施例提供的所述目标虚拟机信息可以包括标识信息,则本实施例提供的所述根据所述目标虚拟机信息,确定与所述目标虚拟机对应的目标备份策略的步骤,可以为:将所述标识信息和备份数据检测请求发送至所述代理端,所述代理端还用于根据所述标识信息和所述备份数据检测请求,检测所述云平台中是否存在与所述标识信息对应的备份数据;在所述云平台中存在所述标识信息对应的备份数据的情况下,将增量备份作为目标备份策略;在所述云平台中不存在所述标识信息对应的备份数据的情况下,将全量备份作为目标备份策略。In this embodiment, the target virtual machine information provided in this embodiment may include identification information, then the step of determining the target backup strategy corresponding to the target virtual machine based on the target virtual machine information provided in this embodiment may be: sending the identification information and the backup data detection request to the agent end, the agent end is also used to detect whether there is backup data corresponding to the identification information in the cloud platform based on the identification information and the backup data detection request; in the case that the backup data corresponding to the identification information exists in the cloud platform, incremental backup is used as the target backup strategy; in the case that the backup data corresponding to the identification information does not exist in the cloud platform, full backup is used as the target backup strategy.

其中,本实施例提供的标识信息为虚拟机的唯一标识信息,用于区别不同的虚拟机。当检测到云平台中存在有所述标识信息对应的备份数据,也即存在有所述目标虚拟机曾经进行备份操作时的备份数据时,可以确定目标虚拟机已经进行过至少一次备份操作,从而可以确定所述目标虚拟机的前一次备份操作为全量备份操作或增量备份操作。然而,无论目标虚拟机的前一次备份操作为全量备份操作还是增量备份操作,本次对目标虚拟机进行的备份操作都可以是全量备份操作或增量备份操作,具体的备份操作方式可以由用户进行选择。Among them, the identification information provided in this embodiment is the unique identification information of the virtual machine, which is used to distinguish different virtual machines. When it is detected that there is backup data corresponding to the identification information in the cloud platform, that is, there is backup data when the target virtual machine has been backed up, it can be determined that the target virtual machine has been backed up at least once, so that it can be determined that the previous backup operation of the target virtual machine was a full backup operation or an incremental backup operation. However, regardless of whether the previous backup operation of the target virtual machine was a full backup operation or an incremental backup operation, the backup operation performed on the target virtual machine this time can be a full backup operation or an incremental backup operation, and the specific backup operation mode can be selected by the user.

而为了提高虚拟机数据的备份效率,本实施例可以对云平台中存在有备份数据的目标虚拟机进行增量备份操作,以减少需要进行数据传输的数据量,从而提高目标虚拟机的备份效率。In order to improve the backup efficiency of virtual machine data, this embodiment can perform incremental backup operations on the target virtual machine with backup data in the cloud platform to reduce the amount of data that needs to be transmitted, thereby improving the backup efficiency of the target virtual machine.

具体的,本实施例对目标虚拟机进行的增量备份操作可以为:先确定云平台中存储的与目标虚拟机对应的所有的备份数据,然后与目标虚拟机的磁盘中的数据进行比对,以确定出云平台中不存在的数据,将这些数据作为待备份数据,并将对该待备份数据的备份操作确定为增量备份,从而能够避免传输云平台中已存在的数据,提高数据传输的效率。Specifically, the incremental backup operation performed on the target virtual machine in this embodiment can be: first determine all the backup data corresponding to the target virtual machine stored in the cloud platform, and then compare them with the data in the disk of the target virtual machine to determine the data that does not exist in the cloud platform, and use these data as the data to be backed up, and determine the backup operation of the data to be backed up as an incremental backup, thereby avoiding the transmission of data already existing in the cloud platform and improving the efficiency of data transmission.

而当检测到云平台中不存在有所述标识信息对应的备份数据,也即不存在有所述目标虚拟机对应的备份数据时,可以确定目标虚拟机并未进行过备份操作,此时即可将全量备份作为目标备份策略。When it is detected that there is no backup data corresponding to the identification information in the cloud platform, that is, there is no backup data corresponding to the target virtual machine, it can be determined that the target virtual machine has not been backed up. At this time, full backup can be used as the target backup strategy.

步骤203,根据所述目标虚拟机信息,确定与所述目标虚拟机对应的目标传输策略。Step 203: Determine a target transmission policy corresponding to the target virtual machine according to the target virtual machine information.

在本实施例中,本实施例提供的所述目标虚拟机信息可以包括网络状态信息,则本实施例提供的所述根据所述目标虚拟机信息,确定与所述目标虚拟机对应的目标传输策略的步骤,可以为:根据所述目标虚拟机当前的网络状态信息,确定所述目标虚拟机当前的数据传输等级;在所述数据传输等级为第一等级的情况下,确定数据直传的方式作为目标传输策略;在所述数据传输等级为第二等级的情况下,确定先压缩再传输的方式作为目标传输策略,所述第一等级对应的数据传输速率大于所述第二等级对应的数据传输速率。In this embodiment, the target virtual machine information provided in this embodiment may include network status information, then the step of determining the target transmission strategy corresponding to the target virtual machine based on the target virtual machine information provided in this embodiment may be: determining the current data transmission level of the target virtual machine based on the current network status information of the target virtual machine; when the data transmission level is the first level, determining the direct data transmission method as the target transmission strategy; when the data transmission level is the second level, determining the compression before transmission method as the target transmission strategy, and the data transmission rate corresponding to the first level is greater than the data transmission rate corresponding to the second level.

其中,本实施例提供的网络状态信息可以包括网络状态良好的状态和网络状态差的状态,因此本实施例可以将目标虚拟机的当前网络状态信息为网络状态良好时的数据传输等级确定为第一等级,将目标虚拟机的当前网络状态为网络状态差时的数据传输等级确定为第二等级。Among them, the network status information provided by this embodiment may include a state of good network status and a state of poor network status. Therefore, this embodiment can determine the data transmission level when the current network status information of the target virtual machine is a good network status as the first level, and determine the data transmission level when the current network status information of the target virtual machine is a poor network status as the second level.

具体的,当所述目标虚拟机当前的网络状态信息为网络状态良好时,可以确定目标虚拟机通过网络进行数据传输的速率是稳定的,能够有效保证数据传输的稳定性,避免网络状态差导致数据传输出现断断续续的现象,因此,可以采用数据直传的方式作为目标传输策略,对待备份数据进行传输。Specifically, when the current network status information of the target virtual machine indicates that the network status is good, it can be determined that the rate at which the target virtual machine transmits data through the network is stable, which can effectively ensure the stability of data transmission and avoid intermittent data transmission due to poor network status. Therefore, direct data transmission can be used as the target transmission strategy to transmit backup data.

当所述目标虚拟机当前的网络状态信息为网络状态差时,可以确定目标虚拟机通过网络进行数据传输的速率是不稳定的,也即存在网速时快时慢的现象,影响对待备份数据的备份效率,因此,可以采用先压缩再传输的方式作为目标传输策略,具体的方式可以为:先对待备份数据进行压缩处理,然后再通过网络将压缩后的待备份数据进行传输,如此,能够减少进行网络传输的数据量,从而在网络状态差的情况下,有效提高数据传输的效率。When the current network status information of the target virtual machine is a poor network status, it can be determined that the rate at which the target virtual machine transmits data through the network is unstable, that is, there is a phenomenon that the network speed is sometimes fast and sometimes slow, which affects the backup efficiency of the data to be backed up. Therefore, the method of compressing first and then transmitting can be adopted as the target transmission strategy. The specific method can be: first compress the data to be backed up, and then transmit the compressed data to be backed up through the network. In this way, the amount of data transmitted over the network can be reduced, thereby effectively improving the efficiency of data transmission when the network status is poor.

步骤104,将所述目标备份策略和所述目标传输策略发送至所述代理端,所述代理端还用于根据所述目标备份策略和所述目标传输策略,对所述目标虚拟机的待备份数据进行备份处理。Step 104: Send the target backup policy and the target transmission policy to the proxy end, and the proxy end is further used to perform backup processing on the to-be-backed-up data of the target virtual machine according to the target backup policy and the target transmission policy.

其中,本实施例可以采用Ceph存储技术进行基于快照实现备份恢复处理。具体的,本实施例可以利用Ceph的RBD块存储的导入导出功能,将快照进行快速地导出备份,实现高效的备份处理。而为了确定各虚拟机中所包含块存储的块设备,本实施例提供的虚拟机信息可以包含有虚拟机对应的块设备名称,便于在备份处理时,可以根据虚拟机信息中的块设备名称,精准地找到对应的块设备进行备份处理。Among them, this embodiment can use Ceph storage technology to implement backup and recovery processing based on snapshots. Specifically, this embodiment can use the import and export function of Ceph's RBD block storage to quickly export and backup snapshots to achieve efficient backup processing. In order to determine the block devices of the block storage contained in each virtual machine, the virtual machine information provided by this embodiment can include the block device name corresponding to the virtual machine, so that during the backup processing, the corresponding block device can be accurately found according to the block device name in the virtual machine information for backup processing.

在本实施例中,本实施例提供的代理端可以包括第一代理端和第二代理端,第一代理端主要用于对所述登录信息进行加密,以通过加密后的登录信息与所述云平台建立通信连接,并可以管理云平台中的各个功能以及查看、获取云平台中各虚拟机的虚拟机信息,并且还可以将服务端发送的目标备份策略和目标传输策略发送至第二代理端;第二代理端主要用于根据目标备份策略和目标传输策略,对目标虚拟机进行备份处理。In this embodiment, the agent provided in this embodiment may include a first agent and a second agent. The first agent is mainly used to encrypt the login information to establish a communication connection with the cloud platform through the encrypted login information, and can manage various functions in the cloud platform and view and obtain virtual machine information of each virtual machine in the cloud platform, and can also send the target backup strategy and target transmission strategy sent by the server to the second agent; the second agent is mainly used to back up the target virtual machine according to the target backup strategy and the target transmission strategy.

需要说明的是,由于本实施例主要是利用Ceph的RBD块存储的导入导出功能,将快照进行快速地导出备份,实现高效的备份处理,因此本实施例提供的第二代理端可以使用rbd diff命令进行块设备的数据备份,并将进度实时发送给服务端,以供服务端将进度实时发送给前端,使得用户可以在前端的页面中进行查看备份处理的进度。It should be noted that, since this embodiment mainly utilizes the import and export function of Ceph's RBD block storage to quickly export and back up snapshots and achieve efficient backup processing, the second proxy provided in this embodiment can use the rbd diff command to back up block device data and send the progress to the server in real time, so that the server can send the progress to the front end in real time, so that the user can view the progress of the backup processing on the front-end page.

作为可选的实施例中,为了进一步的提高对目标虚拟机进行备份操作的备份效率,请参见图3,图3是本发明实施例提供的虚拟机数据的处理方法的另一种流程示意图,如图3所示,本实施例提供的虚拟机数据的处理方法,还包括步骤301至步骤302;As an optional embodiment, in order to further improve the backup efficiency of the backup operation on the target virtual machine, please refer to FIG. 3, which is another flow chart of the method for processing virtual machine data provided by an embodiment of the present invention. As shown in FIG. 3, the method for processing virtual machine data provided by this embodiment further includes steps 301 to 302;

步骤301,将所述目标备份策略、所述目标传输策略以及数据传输速率检测请求发送至所述代理端,所述代理端还用于根据所述数据传输速率检测请求,检测所述云平台中所述目标虚拟机在所述目标备份策略和所述目标传输策略下的数据传输速率。Step 301, the target backup strategy, the target transmission strategy and the data transmission rate detection request are sent to the agent end, and the agent end is also used to detect the data transmission rate of the target virtual machine in the cloud platform under the target backup strategy and the target transmission strategy according to the data transmission rate detection request.

步骤302,接收所述代理端返回的所述数据传输速率,在所述数据传输速率小于预设阈值的情况下,发送缓存指令至所述代理端,所述代理端还用于根据所述缓存指令,控制所述云平台中的所述目标虚拟机将所述目标虚拟机的磁盘中的待备份数据缓存到所述目标虚拟机的缓存空间中,以在所述缓存空间中根据所述目标备份策略和所述目标传输策略,对所述目标虚拟机的待备份数据进行备份处理。Step 302, receiving the data transmission rate returned by the proxy end, and sending a cache instruction to the proxy end when the data transmission rate is less than a preset threshold value. The proxy end is also used to control the target virtual machine in the cloud platform to cache the to-be-backed-up data in the disk of the target virtual machine into the cache space of the target virtual machine according to the cache instruction, so as to back up the to-be-backed-up data of the target virtual machine in the cache space according to the target backup strategy and the target transmission strategy.

其中,本实施例提供的预设阈值可以为用户期望的数据传输速率,例如目标虚拟机的正常传输速率,或正常传输速率的90%等数值,具体可以根据不同的应用需求自行设置,在此不作具体的限。Among them, the preset threshold provided in this embodiment can be the data transmission rate expected by the user, such as the normal transmission rate of the target virtual machine, or 90% of the normal transmission rate, etc., which can be set according to different application requirements and is not specifically limited here.

当检测到目标虚拟机在目标备份策略和目标传输策略下的数据传输速率小于预设阈值时,表面当前目标虚拟机的数据传输速率无法达到正常的传输速率,则可以先将所述目标虚拟机的磁盘中的待备份数据缓存到所述目标虚拟机的缓存空间中,以通过缓存空间可以高速存取数据的特性,实现后续的数据传输的目的,从而提高待备份数据的传输速率。When it is detected that the data transmission rate of the target virtual machine under the target backup strategy and the target transmission strategy is less than a preset threshold, it means that the data transmission rate of the current target virtual machine cannot reach the normal transmission rate. In this case, the data to be backed up in the disk of the target virtual machine can be cached into the cache space of the target virtual machine first, so as to achieve the purpose of subsequent data transmission by utilizing the characteristic of the cache space that can access data at high speed, thereby improving the transmission rate of the data to be backed up.

可选的,本实施例可以通过第二代理端同时执行将待备份数据存储到缓存空间中的操作,以及对缓存空间中的待备份数据的备份操作,从而实现在备份操作的过程中可以在将待备份数据存储到缓存空间后,不用等待数据的完全写入,而是另起其他线程进行从缓冲空间中读取数据执行备份处理的操作,更进一步的提高了对目标虚拟机的备份效率。Optionally, this embodiment can simultaneously execute the operation of storing the data to be backed up in the cache space and the backup operation of the data to be backed up in the cache space through the second proxy end, so that during the backup operation, after the data to be backed up is stored in the cache space, there is no need to wait for the data to be completely written, but other threads can be started to read the data from the buffer space to perform the backup processing operation, thereby further improving the backup efficiency of the target virtual machine.

在另一些实施例中,本实施例还可以对目标虚拟机进行恢复操作,具体的,请参见图4,图4是本发明实施例提供的虚拟机数据的处理方法的第三种流程示意图,如图4所示,本实施例提供的虚拟机数据的处理方法还可以包括:步骤401至步骤402;In other embodiments, the present embodiment may also perform a recovery operation on the target virtual machine. Specifically, please refer to FIG. 4 , which is a third flow chart of the method for processing virtual machine data provided by the embodiment of the present invention. As shown in FIG. 4 , the method for processing virtual machine data provided by the present embodiment may further include: step 401 to step 402;

步骤401,接收所述前端发送的对所述目标虚拟机进行恢复的恢复请求。Step 401: receiving a recovery request for recovering the target virtual machine sent by the front end.

步骤402,将所述恢复请求发送至所述代理端,所述代理端还用于根据所述恢复请求,控制所述云平台创建新的虚拟机,并将所述目标虚拟机已完成备份的备份数据,恢复到所述新的虚拟机上。Step 402, sending the recovery request to the agent, the agent is also used to control the cloud platform to create a new virtual machine according to the recovery request, and restore the backup data of the target virtual machine that has been backed up to the new virtual machine.

具体的,为了提高对目标虚拟机进行恢复操作的恢复效率,本实施例提供的所述将所述恢复请求发送至所述代理端,所述代理端还用于根据所述恢复请求,控制所述云平台创建新的虚拟机,并将所述目标虚拟机已完成备份的备份数据,恢复到所述新的虚拟机上的步骤,可以为:将所述恢复请求和目标恢复策略发送至所述代理端,所述代理端还用于根据所述恢复请求控制所述云平台创建新的虚拟机,并根据所述目标恢复策略控制所述云平台将所述目标虚拟机的备份数据,传输到所述新的虚拟机的缓存池中,同时控制所述云平台将所述缓存池中的备份数据,恢复到所述新的虚拟机上。Specifically, in order to improve the recovery efficiency of the recovery operation on the target virtual machine, the step of sending the recovery request to the agent provided in this embodiment, wherein the agent is also used to control the cloud platform to create a new virtual machine according to the recovery request, and restore the backup data of the target virtual machine that has been backed up to the new virtual machine, can be: sending the recovery request and the target recovery strategy to the agent, wherein the agent is also used to control the cloud platform to create a new virtual machine according to the recovery request, and control the cloud platform to transfer the backup data of the target virtual machine to the cache pool of the new virtual machine according to the target recovery strategy, and at the same time control the cloud platform to restore the backup data in the cache pool to the new virtual machine.

在本实施例中,本实施例提供的通过缓存池进行读写操作,与上述实施例提供的通过缓存空间进行读写操作是相同的缓存策略,主要是为了可以同时开启多个线程,同时在缓存池中进行数据的写入和读取操作,便于提高数据的传输效率。In this embodiment, the read and write operations provided by this embodiment are performed through the cache pool, which is the same cache strategy as the read and write operations provided by the cache space provided in the above embodiment. It is mainly for the purpose of starting multiple threads at the same time and performing data writing and reading operations in the cache pool at the same time, so as to improve data transmission efficiency.

作为可选的实施例,本实施例也可以在缓存池中对写入的数据进行压缩处理,然后将压缩后的数据写入到新的虚拟机中,从而能够进一步的提高数据恢复的恢复效率,具体的代理软件同时进行数据写入操作、压缩操作以及读取操作的方式,请参照上述备份过程对应的实施例,在此不再赘述。As an optional embodiment, this embodiment can also compress the written data in the cache pool, and then write the compressed data to the new virtual machine, so as to further improve the recovery efficiency of data recovery. For the specific way in which the agent software simultaneously performs data writing operations, compression operations and reading operations, please refer to the embodiment corresponding to the above-mentioned backup process, which will not be repeated here.

综上,本发明实施例提供了一种虚拟机数据的处理方法,该方法包括接收前端发送的云平台的登录信息,将登录信息发送至代理端,使代理端与云平台建立通信连接,并将云平台下的虚拟机信息返回给服务端,服务端将虚拟机信息发送给前端,以使前端对用户进行展示,响应于前端发送的备份请求,确定目标备份策略和目标传输策略并发送至代理端,以使代理端根据目标备份策略和目标传输策略对目标虚拟机进行备份处理。采用本发明能够使得用户可以在任意时间点、设备上,通过云平台对目标虚拟机进行备份处理,不仅简化了备份处理流程,便于非专业人员的使用,还提高了备份处理的备份效率。In summary, an embodiment of the present invention provides a method for processing virtual machine data, the method comprising receiving login information of a cloud platform sent by a front end, sending the login information to an agent end, enabling the agent end to establish a communication connection with the cloud platform, and returning virtual machine information under the cloud platform to a server end, wherein the server end sends the virtual machine information to the front end so that the front end can display it to the user, and in response to a backup request sent by the front end, determines a target backup strategy and a target transmission strategy and sends them to the agent end so that the agent end can perform backup processing on the target virtual machine according to the target backup strategy and the target transmission strategy. The present invention enables users to perform backup processing on the target virtual machine through a cloud platform at any time point and on any device, which not only simplifies the backup processing flow and facilitates the use of non-professionals, but also improves the backup efficiency of the backup processing.

根据上述实施例所描述的方法,本实施例将从虚拟机数据的处理装置的角度进一步进行描述,该虚拟机数据的处理装置具体可以作为独立的实体来实现,也可以集成在电子设备,比如终端中来实现,该终端可以包括手机、平板电脑等。According to the method described in the above embodiment, this embodiment will be further described from the perspective of a processing device for virtual machine data. The processing device for virtual machine data can be implemented as an independent entity or integrated in an electronic device, such as a terminal. The terminal may include a mobile phone, a tablet computer, etc.

为了解决相同的技术问题,本实施例还提供了一种虚拟机数据的处理装置,应用于服务端,所述服务端分别与前端和代理端通信连接,具体的,请参见图5,图5是本发明实施例提供的虚拟机数据的处理装置的一种结构示意图,如图5所示,本发明实施例提供的虚拟机数据的处理装置500,包括:第一发送模块501、第二发送模块502、确定模块503以及第三发送模块504;In order to solve the same technical problem, the present embodiment further provides a virtual machine data processing device, which is applied to a server end, and the server end is respectively connected to the front end and the proxy end in communication. Specifically, please refer to FIG. 5 , which is a structural schematic diagram of a virtual machine data processing device provided by an embodiment of the present invention. As shown in FIG. 5 , a virtual machine data processing device 500 provided by an embodiment of the present invention includes: a first sending module 501, a second sending module 502, a determining module 503, and a third sending module 504;

其中,第一发送模块501,用于接收前端发送的云平台的登录信息,将所述登录信息发送至所述代理端,所述代理端用于对所述登录信息进行加密,以通过加密后的登录信息与所述云平台建立通信连接,并在与所述云平台建立通信连接后将所述云平台下的所有虚拟机的虚拟机信息返回给所述服务端。Among them, the first sending module 501 is used to receive the login information of the cloud platform sent by the front end, and send the login information to the agent end. The agent end is used to encrypt the login information so as to establish a communication connection with the cloud platform through the encrypted login information, and return the virtual machine information of all virtual machines under the cloud platform to the server end after establishing a communication connection with the cloud platform.

第二发送模块502,用于将所有虚拟机的虚拟机信息发送给所述前端,所述前端用于将所有虚拟机的虚拟机信息对用户进行展示。The second sending module 502 is used to send the virtual machine information of all virtual machines to the front end, and the front end is used to display the virtual machine information of all virtual machines to the user.

确定模块503,用于响应于所述前端发送的对目标虚拟机进行备份的备份请求,确定与所述目标虚拟机对应的目标备份策略和目标传输策略。The determination module 503 is configured to determine a target backup strategy and a target transmission strategy corresponding to the target virtual machine in response to a backup request for backing up the target virtual machine sent by the front end.

在本实施例中,本实施例提供的确定模块503具体用于:响应于所述前端发送的对目标虚拟机进行备份的备份请求,获取所述目标虚拟机的目标虚拟机信息;根据所述目标虚拟机信息,确定与所述目标虚拟机对应的目标备份策略;根据所述目标虚拟机信息,确定与所述目标虚拟机对应的目标传输策略。In this embodiment, the determination module 503 provided in this embodiment is specifically used to: in response to a backup request for backing up the target virtual machine sent by the front end, obtain the target virtual machine information of the target virtual machine; determine the target backup policy corresponding to the target virtual machine based on the target virtual machine information; determine the target transmission policy corresponding to the target virtual machine based on the target virtual machine information.

在一些实施例中,本实施例提供的所述目标虚拟机信息包括标识信息,本实施例提供的确定模块503具体还用于:将所述标识信息和备份数据检测请求发送至所述代理端,所述代理端还用于根据所述标识信息和所述备份数据检测请求,检测所述云平台中是否存在与所述标识信息对应的备份数据;在所述云平台中存在所述标识信息对应的备份数据的情况下,将增量备份作为目标备份策略;在所述云平台中不存在所述标识信息对应的备份数据的情况下,将全量备份作为目标备份策略。In some embodiments, the target virtual machine information provided in this embodiment includes identification information, and the determination module 503 provided in this embodiment is specifically used to: send the identification information and the backup data detection request to the agent end, and the agent end is also used to detect whether there is backup data corresponding to the identification information in the cloud platform based on the identification information and the backup data detection request; in the case that the backup data corresponding to the identification information exists in the cloud platform, incremental backup is used as the target backup strategy; in the case that the backup data corresponding to the identification information does not exist in the cloud platform, full backup is used as the target backup strategy.

在另一些实施例中,本实施例提供的所述目标虚拟机信息包括网络状态信息,本实施例提供的确定模块503具体还用于:根据所述目标虚拟机当前的网络状态信息,确定所述目标虚拟机当前的数据传输等级;在所述数据传输等级为第一等级的情况下,确定数据直传的方式作为目标传输策略;在所述数据传输等级为第二等级的情况下,确定先压缩再传输的方式作为目标传输策略,所述第一等级对应的数据传输速率大于所述第二等级对应的数据传输速率。In other embodiments, the target virtual machine information provided in this embodiment includes network status information, and the determination module 503 provided in this embodiment is also specifically used to: determine the current data transmission level of the target virtual machine based on the current network status information of the target virtual machine; when the data transmission level is the first level, determine the direct data transmission method as the target transmission strategy; when the data transmission level is the second level, determine the compression before transmission method as the target transmission strategy, and the data transmission rate corresponding to the first level is greater than the data transmission rate corresponding to the second level.

第三发送模块504,用于将所述目标备份策略和所述目标传输策略发送至所述代理端,所述代理端还用于根据所述目标备份策略和所述目标传输策略,对所述目标虚拟机的待备份数据进行备份处理。The third sending module 504 is used to send the target backup strategy and the target transmission strategy to the proxy end, and the proxy end is further used to perform backup processing on the to-be-backed-up data of the target virtual machine according to the target backup strategy and the target transmission strategy.

在本实施例中,本实施例提供的第三发送模块504具体用于:将所述目标备份策略、所述目标传输策略以及数据传输速率检测请求发送至所述代理端,所述代理端还用于根据所述数据传输速率检测请求,检测所述云平台中所述目标虚拟机在所述目标备份策略和所述目标传输策略下的数据传输速率;接收所述代理端返回的所述数据传输速率,在所述数据传输速率小于预设阈值的情况下,发送缓存指令至所述代理端,所述代理端还用于根据所述缓存指令,控制所述云平台中的所述目标虚拟机将所述目标虚拟机的磁盘中的待备份数据缓存到所述目标虚拟机的缓存空间中,以在所述缓存空间中根据所述目标备份策略和所述目标传输策略,对所述目标虚拟机的待备份数据进行备份处理。In this embodiment, the third sending module 504 provided in this embodiment is specifically used to: send the target backup strategy, the target transmission strategy and the data transmission rate detection request to the agent end, and the agent end is also used to detect the data transmission rate of the target virtual machine in the cloud platform under the target backup strategy and the target transmission strategy according to the data transmission rate detection request; receive the data transmission rate returned by the agent end, and when the data transmission rate is less than a preset threshold, send a cache instruction to the agent end, and the agent end is also used to control the target virtual machine in the cloud platform to cache the data to be backed up in the disk of the target virtual machine into the cache space of the target virtual machine according to the cache instruction, so as to back up the data to be backed up of the target virtual machine in the cache space according to the target backup strategy and the target transmission strategy.

作为可选的实施例,本实施例提供的虚拟机数据的处理装置,还可以包括:接收模块、第四发送模块;As an optional embodiment, the virtual machine data processing device provided in this embodiment may further include: a receiving module, a fourth sending module;

其中,接收模块,用于接收所述前端发送的对所述目标虚拟机进行恢复的恢复请求;Wherein, the receiving module is used to receive a recovery request sent by the front end to recover the target virtual machine;

第四发送模块,用于将所述恢复请求发送至所述代理端,所述代理端还用于根据所述恢复请求,控制所述云平台创建新的虚拟机,并将所述目标虚拟机已完成备份的备份数据,恢复到所述新的虚拟机上。The fourth sending module is used to send the recovery request to the agent end, and the agent end is also used to control the cloud platform to create a new virtual machine according to the recovery request, and restore the backup data of the target virtual machine that has been backed up to the new virtual machine.

在本实施例中,本实施例提供的第四发送模块,具体用于:将所述恢复请求和目标恢复策略发送至所述代理端,所述代理端还用于根据所述恢复请求控制所述云平台创建新的虚拟机,并根据所述目标恢复策略控制所述云平台将所述目标虚拟机的备份数据,传输到所述新的虚拟机的缓存池中,同时控制所述云平台将所述缓存池中的备份数据,恢复到所述新的虚拟机上。In this embodiment, the fourth sending module provided in this embodiment is specifically used to: send the recovery request and the target recovery strategy to the agent end, and the agent end is also used to control the cloud platform to create a new virtual machine according to the recovery request, and control the cloud platform to transfer the backup data of the target virtual machine to the cache pool of the new virtual machine according to the target recovery strategy, and at the same time control the cloud platform to restore the backup data in the cache pool to the new virtual machine.

具体实施时,以上各个模块和/或单元可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块和/或单元的具体实施可参见前面的方法实施例,具体可以达到的有益效果也请参看前面的方法实施例中的有益效果,在此不再赘述。During specific implementation, the above modules and/or units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above modules and/or units can refer to the previous method embodiments. The specific beneficial effects that can be achieved can also refer to the beneficial effects in the previous method embodiments, which will not be repeated here.

另外,请参见图6,图6是本发明实施例提供的电子设备的一种结构示意图,该电子设备可以是移动终端如智能手机、平板电脑等设备。如图6所示,电子设备600包括处理器601、存储器602。其中,处理器601与存储器602电性连接。In addition, please refer to FIG6, which is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, and the electronic device may be a mobile terminal such as a smart phone, a tablet computer, etc. As shown in FIG6, the electronic device 600 includes a processor 601 and a memory 602. The processor 601 is electrically connected to the memory 602.

处理器601是电子设备600的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器602内的应用程序,以及调用存储在存储器602内的数据,执行电子设备600的各种功能和处理数据,从而对电子设备600进行整体监测。The processor 601 is the control center of the electronic device 600. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device 600 and processes data by running or loading applications stored in the memory 602 and calling data stored in the memory 602, thereby monitoring the electronic device 600 as a whole.

在本实施例中,电子设备600中的处理器601会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器602中,并由处理器601来运行存储在存储器602中的应用程序,从而实现上述实施例提供的虚拟机数据的处理方法中的任一步骤。In this embodiment, the processor 601 in the electronic device 600 will load the instructions corresponding to the processes of one or more applications into the memory 602 according to the following steps, and the processor 601 will run the application stored in the memory 602, thereby implementing any step in the virtual machine data processing method provided in the above embodiment.

该电子设备600可以实现本发明实施例所提供的虚拟机数据的处理方法任一实施例中的步骤,因此,可以实现本发明实施例所提供的任一虚拟机数据的处理方法所能实现的有益效果,详见前面的实施例,在此不再赘述。The electronic device 600 can implement the steps in any embodiment of the method for processing virtual machine data provided in the embodiments of the present invention, and therefore can achieve the beneficial effects that can be achieved by any method for processing virtual machine data provided in the embodiments of the present invention. For details, please refer to the previous embodiments and will not be repeated here.

请参见图7,图7是本发明实施例提供的电子设备的另一种结构示意图,如图7所示,图7示出了本发明实施例提供的电子设备的具体结构框图,该电子设备可以用于实施上述实施例中提供的虚拟机数据的处理方法。该电子设备700可以为移动终端如智能手机或笔记本电脑等设备。Please refer to Figure 7, which is another schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. As shown in Figure 7, Figure 7 shows a specific structural block diagram of an electronic device provided by an embodiment of the present invention, and the electronic device can be used to implement the method for processing virtual machine data provided in the above embodiment. The electronic device 700 can be a mobile terminal such as a smart phone or a laptop computer.

RF电路710用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。RF电路710可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。RF电路710可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于全球移动通信系统(Global System for Mobile Communication, GSM)、增强型移动通信技术(EnhancedData GSM Environment, EDGE),宽带码分多址技术(Wideband Code Division MultipleAccess, WCDMA),码分多址技术(Code Division Access, CDMA)、时分多址技术(TimeDivision Multiple Access, TDMA),无线保真技术(Wireless Fidelity, Wi-Fi)(如美国电气和电子工程师协会标准 IEEE 802.11a, IEEE 802.11b, IEEE802.11g 和/或 IEEE802.11n)、网络电话(Voice over Internet Protocol, VoIP)、全球微波互联接入(Worldwide Interoperability for Microwave Access, Wi-Max)、其他用于邮件、即时通讯及短消息的协议,以及任何其他合适的通讯协议,甚至可包括那些当前仍未被开发出来的协议。The RF circuit 710 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The RF circuit 710 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, user identity module (SIM) cards, memories, etc. The RF circuit 710 can communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices through wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The wireless networks described above may use a variety of communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (such as Institute of Electrical and Electronics Engineers standards IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE802.11n), Voice over Internet Protocol (VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for email, instant messaging and short messaging, and any other suitable communication protocols, even those that have not yet been developed.

存储器720可用于存储软件程序以及模块,如上述实施例中虚拟机数据的处理方法对应的程序指令/模块,处理器780通过运行存储在存储器720内的软件程序以及模块,从而执行各种功能应用以及对虚拟机数据的处理。The memory 720 can be used to store software programs and modules, such as program instructions/modules corresponding to the method for processing virtual machine data in the above-mentioned embodiment. The processor 780 executes various functional applications and processes virtual machine data by running the software programs and modules stored in the memory 720.

存储器720可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器720可进一步包括相对于处理器780远程设置的存储器,这些远程存储器可以通过网络连接至电子设备700。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 720 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 720 may further include a memory remotely arranged relative to the processor 780, and these remote memories may be connected to the electronic device 700 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

输入单元730可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,输入单元730可包括触敏表面731以及其他输入设备732。触敏表面731,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面731上或在触敏表面731附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面731可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器780,并能接收处理器780发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面731。除了触敏表面731,输入单元730还可以包括其他输入设备732。具体地,其他输入设备732可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 730 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 730 may include a touch-sensitive surface 731 and other input devices 732. The touch-sensitive surface 731, also known as a touch display screen or touch pad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 731), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 731 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 780, and can receive and execute commands sent by the processor 780. In addition, the touch-sensitive surface 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 731, the input unit 730 may further include other input devices 732. Specifically, the other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.

显示单元740可用于显示由用户输入的信息或提供给用户的信息以及电子设备700的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元740可包括显示面板741,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板741。进一步的,触敏表面731可覆盖显示面板741,当触敏表面731检测到在其上或附近的触摸操作后,传送给处理器780以确定触摸事件的类型,随后处理器780根据触摸事件的类型在显示面板741上提供相应的视觉输出。虽然在图中,触敏表面731与显示面板741是作为两个独立的部件来实现输入和输出功能,但是在某些实施例中,可以将触敏表面731与显示面板741集成而实现输入和输出功能。The display unit 740 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device 700, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 740 may include a display panel 741, and optionally, the display panel 741 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 731 may cover the display panel 741, and when the touch-sensitive surface 731 detects a touch operation on or near it, it is transmitted to the processor 780 to determine the type of the touch event, and then the processor 780 provides corresponding visual output on the display panel 741 according to the type of the touch event. Although in the figure, the touch-sensitive surface 731 and the display panel 741 are implemented as two independent components to implement input and output functions, in some embodiments, the touch-sensitive surface 731 and the display panel 741 can be integrated to implement input and output functions.

电子设备700还可包括至少一种传感器750,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板741的亮度,接近传感器可在翻盖合上或者关闭时产生中断。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于电子设备700还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The electronic device 700 may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may generate an interrupt when the flip cover is closed or closed. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the electronic device 700, they will not be repeated here.

音频电路760、扬声器761,传声器762可提供用户与电子设备700之间的音频接口。音频电路760可将接收到的音频数据转换后的电信号,传输到扬声器761,由扬声器761转换为声音信号输出;另一方面,传声器762将收集的声音信号转换为电信号,由音频电路760接收后转换为音频数据,再将音频数据输出处理器780处理后,经RF电路710以发送给比如另一终端,或者将音频数据输出至存储器720以便进一步处理。音频电路760还可能包括耳塞插孔,以提供外设耳机与电子设备700的通信。The audio circuit 760, the speaker 761, and the microphone 762 can provide an audio interface between the user and the electronic device 700. The audio circuit 760 can transmit the electrical signal converted from the received audio data to the speaker 761, which is converted into a sound signal for output; on the other hand, the microphone 762 converts the collected sound signal into an electrical signal, which is received by the audio circuit 760 and converted into audio data, and then the audio data is output to the processor 780 for processing, and then sent to another terminal through the RF circuit 710, or the audio data is output to the memory 720 for further processing. The audio circuit 760 may also include an earplug jack to provide communication between an external headset and the electronic device 700.

电子设备700通过传输模块770(例如Wi-Fi模块)可以帮助用户接收请求、发送信息等,它为用户提供了无线的宽带互联网访问。虽然图中示出了传输模块770,但是可以理解的是,其并不属于电子设备700的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。The electronic device 700 can help the user receive requests, send information, etc. through the transmission module 770 (such as a Wi-Fi module), which provides the user with wireless broadband Internet access. Although the transmission module 770 is shown in the figure, it can be understood that it is not a necessary component of the electronic device 700 and can be omitted as needed without changing the essence of the invention.

处理器780是电子设备700的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器720内的软件程序和/或模块,以及调用存储在存储器720内的数据,执行电子设备700的各种功能和处理数据,从而对电子设备进行整体监测。可选的,处理器780可包括一个或多个处理核心;在一些实施例中,处理器780可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解地,上述调制解调处理器也可以不集成到处理器780中。The processor 780 is the control center of the electronic device 700. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 720, and calling data stored in the memory 720, it executes various functions of the electronic device 700 and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 780 may include one or more processing cores; in some embodiments, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 780.

电子设备700还包括给各个部件供电的电源790(比如电池),在一些实施例中,电源可以通过电源管理系统与处理器780逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源790还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The electronic device 700 also includes a power supply 790 (such as a battery) for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 780 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 790 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

尽管未示出,电子设备700还包括摄像头(如前置摄像头、后置摄像头)、蓝牙模块等,在此不再赘述。具体在本实施例中,电子设备的显示单元是触摸屏显示器,移动终端还包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行一个或者一个以上程序实现上述实施例提供的虚拟机数据的处理方法中的任一步骤。Although not shown, the electronic device 700 also includes a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit of the electronic device is a touch screen display, and the mobile terminal also includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and are configured to be executed by one or more processors to implement any step in the method for processing virtual machine data provided in the above embodiment.

具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个模块的具体实施可参见前面的方法实施例,在此不再赘述。In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above modules can be found in the previous method embodiments, which will not be repeated here.

本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。为此,本发明实施例提供一种存储介质,其中存储有多条指令,该指令能够被处理器执行时实现上述实施例所提供的虚拟机数据的处理方法中的任一步骤。Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions, and the instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a storage medium, which stores multiple instructions, and when the instructions are executed by the processor, any step in the method for processing virtual machine data provided in the above embodiments can be implemented.

其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

由于该存储介质中所存储的指令,可以执行本发明实施例所提供的虚拟机数据的处理方法任一实施例中的步骤,因此,可以实现本发明实施例所提供的任一虚拟机数据的处理方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Since the instructions stored in the storage medium can execute the steps in any embodiment of the method for processing virtual machine data provided in the embodiments of the present invention, the beneficial effects that can be achieved by any method for processing virtual machine data provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

以上对本申请实施例所提供的一种虚拟机数据的处理方法、装置、电子设备及存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。并且,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。The above is a detailed introduction to a method, device, electronic device and storage medium for processing virtual machine data provided by the embodiments of the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application. In addition, for those of ordinary skill in the art, without departing from the principles of the present invention, several improvements and modifications can be made, and these improvements and modifications are also regarded as the protection scope of the present invention.

Claims (10)

CN202411346494.9A2024-09-262024-09-26Virtual machine data processing method and device, electronic equipment and storage mediumActiveCN118860576B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202411346494.9ACN118860576B (en)2024-09-262024-09-26Virtual machine data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202411346494.9ACN118860576B (en)2024-09-262024-09-26Virtual machine data processing method and device, electronic equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN118860576Atrue CN118860576A (en)2024-10-29
CN118860576B CN118860576B (en)2025-02-11

Family

ID=93181325

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202411346494.9AActiveCN118860576B (en)2024-09-262024-09-26Virtual machine data processing method and device, electronic equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN118860576B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20130315066A1 (en)*2012-05-252013-11-28Samsung Electronics Co. Ltd.Method and apparatus for controlling congestion in wireless communication system
CN104580496A (en)*2015-01-222015-04-29深圳先进技术研究院Virtual machine visit system and server based on temporary agent
CN104717261A (en)*2013-12-172015-06-17华为技术有限公司Login method and desktop management device
US20160330177A1 (en)*2015-05-102016-11-10Citrix Systems, Inc.Password Encryption for Hybrid Cloud Services
CN107026860A (en)*2017-04-012017-08-08成都虫洞奇迹科技有限公司Login authentication method, apparatus and system
CN112948177A (en)*2021-02-232021-06-11北京金山云网络技术有限公司Disaster recovery backup method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20130315066A1 (en)*2012-05-252013-11-28Samsung Electronics Co. Ltd.Method and apparatus for controlling congestion in wireless communication system
CN104717261A (en)*2013-12-172015-06-17华为技术有限公司Login method and desktop management device
CN104580496A (en)*2015-01-222015-04-29深圳先进技术研究院Virtual machine visit system and server based on temporary agent
US20160330177A1 (en)*2015-05-102016-11-10Citrix Systems, Inc.Password Encryption for Hybrid Cloud Services
CN107026860A (en)*2017-04-012017-08-08成都虫洞奇迹科技有限公司Login authentication method, apparatus and system
CN112948177A (en)*2021-02-232021-06-11北京金山云网络技术有限公司Disaster recovery backup method and device, electronic equipment and storage medium

Also Published As

Publication numberPublication date
CN118860576B (en)2025-02-11

Similar Documents

PublicationPublication DateTitle
US11057376B2 (en)Method, apparatus, and system for controlling intelligent device, and storage medium
US20160314219A1 (en)Method and apparatus for invoking application programming interface
CN106649735B (en)Method and device for recording log data
CN106484562A (en) A data transmission processing method and terminal equipment
CN110413497B (en) Abnormal monitoring method, device, terminal equipment and computer-readable storage medium
CN106649010A (en)Terminal device testing method and terminal device
WO2018049971A1 (en)Hotspot network switching method and terminals
CN111078523B (en)Log acquisition method and device, storage medium and electronic equipment
CN106534324A (en)Data sharing method and cloud server
WO2016192511A1 (en)Method and apparatus for remotely deleting information
CN108270757B (en)User account switching method, device, client and system
WO2018049970A1 (en)Hotspot network switching method and terminal
WO2021114357A1 (en)Application program optimization method, apparatus, storage medium, and electronic device
CN106714279A (en) A hotspot network switching method and terminal equipment
CN106648976A (en) A data backup method and device
CN110032416A (en)A kind of terminal remote control method and terminal
CN106708555A (en)Method and device for loading plug-ins
CN108777627A (en)A kind of method of supplying power to and device
CN108322905A (en)A kind of method for reading data and mobile terminal
WO2018049968A1 (en)Hotspot establishment method and terminals
CN112199050A (en)Storage method, device, storage medium and terminal equipment
WO2024159968A1 (en)Data storage verification method and apparatus, electronic device, and storage medium
CN112437421A (en)Bluetooth control method, device, storage medium and mobile terminal
CN117555649A (en) Network service processing methods, devices, equipment and storage media
CN118860576B (en)Virtual machine data processing method and device, electronic equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp