WO2022127583A1 - 虚拟机控制方法、云管理设备及存储介质 - Google Patents

虚拟机控制方法、云管理设备及存储介质 Download PDF

Info

Publication number
WO2022127583A1
WO2022127583A1 PCT/CN2021/134443 CN2021134443W WO2022127583A1 WO 2022127583 A1 WO2022127583 A1 WO 2022127583A1 CN 2021134443 W CN2021134443 W CN 2021134443W WO 2022127583 A1 WO2022127583 A1 WO 2022127583A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual machine
application
user
data file
target virtual
Prior art date
Application number
PCT/CN2021/134443
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 中兴通讯股份有限公司
Publication of WO2022127583A1 publication Critical patent/WO2022127583A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • 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/45575Starting, stopping, suspending or resuming virtual machine instances
    • 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 technical field of cloud computing, and in particular, to a virtual machine control method, a cloud management device and a storage medium.
  • Virtual Machine (VM) technology allows multiple operating systems to run on the same physical machine and provides reliable isolation, which greatly improves the reusability of physical resources.
  • multiple cloud virtual machines can be virtualized on a cloud server through the virtual machine technology, and users can log in to the cloud virtual machines through a user terminal to use cloud applications and so on.
  • the cloud virtual machine may also be referred to as a cloud desktop, a cloud computer, and so on.
  • the present disclosure provides a virtual machine control method, a cloud management device, and a storage medium, so as to improve the convenience of a user logging in to a virtual machine to use a cloud application.
  • the present disclosure provides a virtual machine control method.
  • the method includes: when an application login request sent by a user terminal is received, mounting a user application data file corresponding to the application login request to a target virtual machine, so that the The target virtual machine can process the data in the user application data file when running the target application corresponding to the application login request.
  • the present disclosure provides a cloud management device, including a processor and a memory; a memory for storing a computer program; a processor for executing the computer program and implementing the virtual machine according to the first aspect when executing the computer program Control Method.
  • the present disclosure provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the virtual machine control method according to the first aspect.
  • FIG. 1 is a schematic diagram of an exemplary application scenario of the present disclosure
  • FIG. 2 is a schematic structural diagram of the virtual machine in FIG. 1;
  • FIG. 3 is a schematic flowchart of a virtual machine control method provided by the present disclosure
  • FIG. 6 is an example diagram of an application configuration file in the present disclosure.
  • FIG. 7 is another schematic flowchart of the virtual machine control method in the present disclosure.
  • FIG. 8 is a schematic diagram of an application scenario of the present disclosure.
  • FIG. 9 is a schematic diagram of a user using application A under the application scenario shown in FIG. 8;
  • FIG. 10 is a schematic diagram of a user using application C under the application scenario shown in FIG. 8;
  • FIG. 11 is a schematic block diagram of a structure of a cloud management device provided by the present disclosure.
  • FIG. 1 On the right side of the middle is a cloud server.
  • a cloud server can run multiple virtual machines. Of course, there can be multiple cloud servers, and each cloud server can run multiple virtual machines.
  • an application program related to cloud services may be installed on the user terminal, and the user may log in to the virtual machine by logging into the service account on the application program.
  • the device sends a virtual machine login request, and the cloud management device determines the target virtual machine, so as to establish a connection between the user terminal and the target virtual machine, successfully log in to the target virtual machine, and then use cloud applications and so on.
  • the virtual machine may include a system master disk and a differential disk, wherein the system master disk mainly stores data created by the cloud server and readable by all virtual machines, for example, can store System files (such as Windows system files), application system files (such as WeChat, the main program file of King of Glory), etc. It is understandable that the data stored in the system mother disk will not be deleted when the virtual machine is turned off or the user exits the virtual machine.
  • each virtual machine can use the differential disk independently, and the differential disk mainly stores user data generated after the user logs in to the virtual machine.
  • the differential disk can store application accounts (such as WeChat, King of Glory accounts), user configuration data (such as Application personalization data, game save data), etc.
  • application accounts such as WeChat, King of Glory accounts
  • user configuration data such as Application personalization data, game save data
  • the data stored in the differential disk will be cleared when the virtual machine is shut down or the user exits the virtual machine.
  • the present disclosure provides a virtual machine control method for a cloud management device, so as to improve the convenience of a user logging in to a virtual machine to use a cloud application sex.
  • a virtual machine control method provided by the present disclosure includes but is not limited to step S10 .
  • Step S10 when receiving the application login request sent by the user terminal, mount the user application data file corresponding to the application login request to the target virtual machine, so that the target virtual machine can process the user when running the target application corresponding to the application login request. Data in the application data file.
  • the user terminal when the user terminal needs to log in to the virtual machine and use a certain cloud application (that is, the target application), the user terminal can use human-computer interaction for the user to select the target application, and send the application login to the cloud management device. request, it can be understood that the application login request corresponds to the target application.
  • the cloud management device receives the application login request, on the one hand, it can allocate a certain virtual machine (that is, the target virtual machine) to the user terminal, and on the other hand, it can attach the user application data file corresponding to the application login request.
  • the user application data file corresponds to the target application
  • the user application data file refers to the user data file related to the target application, which may include user information, user configuration data, etc., for example, may include User's account password, user personalization data, etc.
  • the cloud management device can return the IP address of the target virtual machine to the user terminal. So that the user terminal sends a connection request to the target virtual machine and establishes a connection, or the cloud management device sends an instruction to the target virtual machine, instructing the target virtual machine to actively connect to the user terminal.
  • the present disclosure only needs to mount the user application data file. Since the data volume of the user application data file is much smaller than the data volume of the differential disk, the login time is effectively shortened. Convenience and enhanced user experience.
  • the target application can be started and run under the user's operation or automatically started and run by the target virtual machine, so that the user can use the target application, because the target virtual machine has been mounted with the corresponding User application data file, so the target virtual machine can process the data in the user application data file, such as reading and writing data in the user application data file, so it can be understood that the user data about the target application already exists in the target virtual machine at this time , so the user does not need to re-input user information or import user configuration data, etc., thereby improving convenience and enhancing user experience.
  • the target virtual machine can read the account password in the user application data file and log in automatically, and can also read the game save data in the user application data file and so on.
  • the user terminal can be currently used by Zhang San, and the target application can be a game application.
  • the user terminal sends an application login request to the cloud management device (That is, the game application login request), in this way, the cloud management device can allocate the target virtual machine for Zhang San, and at the same time, mount the user application data file (ie, the game application data file about Zhang San) to the target virtual machine.
  • the target virtual machine can process the data in the user application data file when running the game application, for example, read the game application account password, read the game storage data, etc., thus improving the convenience.
  • the application login request may carry service account information, wherein the service account information may be used to indicate whether the user has opened a business related to cloud services.
  • the user application data corresponding to the application login request is Before the file is mounted to the target virtual machine, it may include but is not limited to the following contents: verifying whether the service account information is legal, if it is legal, take the virtual machine in the idle state as the target virtual machine, and set the target virtual machine to the working state.
  • verifying whether the business account information is legal may include, but is not limited to: verifying whether the business account information is correct, such as whether the account password is correct; verifying whether the user corresponding to the business account has permission to use the target application, and so on.
  • verifying whether the business account information is legal may include, but is not limited to: verifying whether the business account information is correct, such as whether the account password is correct; verifying whether the user corresponding to the business account has permission to use the target application, and so on.
  • the verification is valid, one of the virtual machines currently in the idle state on
  • step S10 “mounting the user application data file corresponding to the application login request to the target virtual machine” in step S10 includes but is not limited to the following: according to the user application identifier carried in the application login request and a preset mapping The user application data file corresponding to the user application identifier is obtained, and the user application data file is mounted to the target virtual machine, wherein the mapping relationship is the corresponding relationship between the user application identifier and the storage location of the user application data file.
  • the user terminal can carry the user application identifier in the application login request, so that the cloud management device can know which user needs to use which cloud application according to the user application identifier.
  • the application identifier can be used to represent the user identity and the application name.
  • the cloud management device can determine the storage location of the corresponding user application data file according to the aforementioned user application identifier, and then obtain the user application data according to the storage location. document.
  • the application login request sent by the user terminal carries a user application identifier, and the user application identifier can be used to represent user A and application A.
  • the cloud management device can According to the mapping relationship shown, it is determined that the storage location of the corresponding user application data file is A, and then the corresponding user application data file is obtained and mounted to the target virtual machine.
  • the aforementioned "obtaining the user application data file corresponding to the user application identifier" may include, but is not limited to, the following content: acquiring the user application data file corresponding to the user application identifier from a shared storage device.
  • the shared storage device is mainly used to store each user data file of each application, that is, a plurality of different user application data files are stored in the shared storage device.
  • the shared storage device may be the cloud management device itself. storage, or other network storage devices (such as databases) and so on. It can be understood that the present disclosure stores the user application data file in the shared storage device, so the user data will not be cleared when the virtual machine is shut down or the user exits the virtual machine, thereby enabling the target virtual machine to process the user application data file when running the target application. data in , improving convenience.
  • the method may also include, but is not limited to, the following content: when an abnormality of the user application data file stored in the shared storage device is detected, clearing the data in the abnormal user application data file, it can be seen from the foregoing that the shared storage device There are multiple user application data files stored in the cloud management device, so the cloud management device can detect each user application data file in real time or periodically. In the future, the abnormal data will cause the user to be unable to use the corresponding cloud application normally, so the abnormal user application data file can be requested.
  • the target virtual machine is pre-mounted with an application configuration file, wherein the application configuration file is used to: when the target virtual machine starts the target application, instruct the target virtual machine to point the user data storage location of the target application to the target virtual machine User application data files mounted on the .
  • an application may include multiple files, and one or more target files among the multiple files may be used to store user data.
  • the aforementioned one or more target files are the user data storage locations of the application. Therefore, an application configuration file can be generated for each application and its corresponding user data storage location in advance, and the application configuration file can be pre-mounted to the target virtual machine, for example, when the target virtual machine is started, so that when the target virtual machine is started When the virtual machine starts the target application, the user data storage location of the target application can be pointed to the user application data file mounted on the target virtual machine according to the application configuration file, so that the target virtual machine can process the user application data when running the target application. Data in the file, improving convenience.
  • the application configuration file may be as shown in FIG. 6 , if the target application is application A, when the target virtual machine starts application A, the user data storage location of application A is “/data” according to the application configuration file. /appdata" points to the user application data file currently mounted on the target virtual machine, so that the target virtual machine can process the files in the user application data file when running application A, for example, can read the user account password.
  • the method may further include, but is not limited to, step S20.
  • Step S20 when receiving the application exit request sent by the user terminal, unload the user application data file mounted on the target virtual machine.
  • the user terminal may disconnect the connection with the target virtual machine under the operation of the user and send an application exit request to the cloud management device.
  • the cloud management device can know that the user no longer needs to use the target application according to the aforementioned application exit request, and therefore can uninstall the user application data file mounted on the target virtual machine.
  • the target virtual machine since the target virtual machine can process the data in the user application data file, such as reading and writing, when the user is using the target application, in order to update the user data, the cloud management device may also mount the target virtual machine currently on the target virtual machine.
  • the uploaded user application data files are synchronized for data synchronization, for example, to a shared storage device.
  • the cloud management device may further set the target virtual machine from a working state to an idle state to wait for re-assignment by the cloud management device.
  • the present disclosure can be applied to the application scenario shown in FIG. 8 .
  • there are three virtual machines on the cloud server wherein virtual machine 1 and virtual machine 2 can be in an idle state, and virtual machine 3 can be in an idle state.
  • Working state; an application program related to cloud services is installed on the user terminal, and when the user opens the application program, there may be three application icons of application A, B, and C.
  • FIG. 9 when the user wants to log in to the virtual machine to use application A, the user can click on application A, so that the user terminal sends the application A login request carrying the user's application identifier and service account information to the cloud management device In this way, the cloud management device can first verify whether the service account information is legal.
  • the present disclosure greatly shortens the user's login time and improves the convenience; at the same time, the virtual machine 1 is pre-mounted with a preset application configuration file, and the virtual machine 1 starts the cloud application A.
  • the user data storage location of cloud application A can be pointed to the user application data file currently mounted on virtual machine 1 .
  • the virtual machine 1 can process the data in the user's application data file when running the cloud application A, so that when the user uses the application A, the virtual machine 1 can read the account password in the user's application data file and log in automatically. Read the game save data in the user application data file, etc., to improve the convenience.
  • the user terminal can send an application exit request to the cloud management device according to the user operation, and the cloud management device can uninstall the user application data file currently mounted on the virtual machine 1 and synchronize the data to the shared storage device, in addition, virtual machine 1 can also be placed in an idle state.
  • the user still needs to use the application C it can be as shown in FIG. 10 , the implementation details are similar to the above, and will not be repeated here.
  • the present disclosure also provides a cloud management device, as shown in FIG. 11 , including a processor and a memory, where the memory is used to store a computer program; the processor is used to execute the computer program and implement any one of the methods provided by the present disclosure when executing the computer program. Item virtual machine control method.
  • the processor may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated circuits) Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor can be a microprocessor or the processor can also be any conventional processor or the like.
  • the present disclosure also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, enables the processor to implement any one of the virtual machine control methods provided in the present disclosure.
  • the present disclosure provides a virtual machine control method, cloud management device and storage medium.
  • the method includes: when an application login request sent by a user terminal is received, mounting a user application data file corresponding to the application login request to a target virtual machine , so that the target virtual machine can process the data in the user application data file when running the target application corresponding to the application login request.
  • the present disclosure only needs to mount the user application data file. Since the data volume of the user application data file is far smaller than the data volume of the differential disk, the login time is effectively shortened and the convenience is improved;
  • the virtual machine can process the data in the user application data file when running the target application, that is, the target virtual machine can read and write user data, thus improving the convenience for the user to use the target application.
  • computer-readable storage medium includes volatile and non-volatile and non-volatile storage media implemented in any method or technology for storage of information, such as computer-readable instructions, data structures, program modules or other data. Volatile, removable and non-removable media.
  • Computer-readable storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, magnetic disk storage or other magnetic storage devices, Or any other medium that can be used to store the desired information and that can be accessed by a computer.
  • communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and can include any information delivery media, as is well known to those of ordinary skill in the art .
  • the computer-readable storage medium may be an internal storage unit of the cloud management device of the foregoing embodiment, such as a hard disk or a memory of the cloud management device.
  • the computer-readable storage medium can also be an external storage device of the cloud management device, such as a plug-in hard disk equipped on the cloud management device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, flash memory Card (Flash Card), etc.

Abstract

本公开提供的一种虚拟机控制方法、云管理设备及存储介质,该方法包括:当接收到用户终端发送的应用登录请求时,将对应应用登录请求的用户应用数据文件挂载至目标虚拟机,以使目标虚拟机在运行对应应用登陆请求的目标应用时能够处理用户应用数据文件中的数据。

Description

虚拟机控制方法、云管理设备及存储介质
相关申请的交叉引用
本公开要求享有2020年12月17日提交的名称为“虚拟机控制方法、云管理设备及存储介质”的中国专利申请CN202011504168.8的优先权,其全部内容通过引用并入本公开中。
技术领域
本公开涉及云计算技术领域,尤其涉及一种虚拟机控制方法、云管理设备及存储介质。
背景技术
虚拟机(Virtual Machine,VM)技术让多个操作系统可以运行在同一个物理机上并提供可靠的隔离,大大提高了物理资源的复用性。例如,通过虚拟机技术可以在云服务器上虚拟出多台云虚拟机,用户可以通过用户终端登录至云虚拟机,从而使用云应用等等。需要说明的是,云虚拟机也可称为云桌面、云电脑等等。
但在相关技术中,用户登录至云虚拟机使用云应用的过程中存在操作不便的问题,例如,登录云虚拟机的登录时长过长,或者,登录至云虚拟机之后使用云应用时,需要重新输入用户信息(比如云应用的账号密码)或者需要重新导入用户配置数据(比如游戏存档数据、应用个性化设置数据)等等,影响用户体验。
发明内容
基于此,本公开提供了一种虚拟机控制方法、云管理设备及存储介质,以提高用户登录至虚拟机使用云应用的便利性。
第一方面,本公开提供了一种虚拟机控制方法,该方法包括:当接收到用户终端发送的应用登录请求时,将对应应用登录请求的用户应用数据文件挂载至目标虚拟机,以使目标虚拟机在运行对应应用登陆请求的目标应用时能够处理用户应用数据文件中的数据。
第二方面,本公开提供了一种云管理设备,包括处理器与存储器;存储器,用于存储计算机程序;处理器,用于执行计算机程序并在执行计算机程序时实现如第一方面的虚拟机控制方法。
第三方面,本公开提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时使处理器实现如第一方面的虚拟机控制方法。
附图说明
图1为本公开的示例性的应用场景示意图;
图2为图1中的虚拟机的一种结构示意性图;
图3为本公开提供的虚拟机控制方法的一种流程示意图;
图4为本公开中映射关系的一种示例图;
图5为本公开中映射关系的另一种示例图;
图6为本公开中应用配置文件的一种示例图;
图7为本公开中虚拟机控制方法的另一种流程示意图;
图8为本公开的一种应用场景示意图;
图9为在图8所示的应用场景下用户使用应用A的一种示意图;
图10为在图8所示的应用场景下用户使用应用C的一种示意图;
图11为本公开提供的云管理设备的一种结构示意性框图。
具体实施方式
下面将结合本公开中的附图,对本公开中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。
下面结合附图,对本公开的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。
本公开可以应用于如图1所示的示例性场景,在该场景中,图1中左侧是用户终端,用户终端的设备形式可以是计算机101a、移动终端102b、机顶盒103c等等;图1中右侧是云 服务器,云服务器上可以运行有多个虚拟机,当然可以有多个云服务器并且每一个云服务器上都可以运行多个虚拟机。在一些实施方式中,用户终端上可以安装有关于云服务的应用程序,用户可以在该应用程序上通过登录业务账号的方式登录至虚拟机,具体的,用户终端根据用户的登录操作向云管理设备发送虚拟机登录请求,由云管理设备确定目标虚拟机,从而使用户终端与目标虚拟机之间建立连接,成功登录目标虚拟机,进而使用云应用等等。在一些实施方式中,如图2所示,虚拟机可以包括系统母盘和差分盘,其中,系统母盘主要存储由云服务器创建的并可供所有虚拟机读取的数据,例如,可以存储系统文件(比如Windows系统文件)、应用程序系统文件(比如微信、王者荣耀主程序文件)等等,可以理解,系统母盘内存储的数据并不会由于虚拟机关闭或者用户退出虚拟机而被清除;相反,各虚拟机可以自身单独使用差分盘,差分盘内主要存储用户登录虚拟机后产生的用户数据,例如,可以存储应用程序账号(比如微信、王者荣耀账号)、用户配置数据(比如应用个性化设置数据、游戏存档数据)等等,但是,差分盘内存储的数据会由于虚拟机关闭或者用户退出虚拟机而被清除。
在相关技术中,在用户登录至虚拟机使用云应用的过程中,发明人发现,由于云管理设备需要将差分盘挂载至目标虚拟机,而通常需要较长的时间才能完成挂载,例如需要30-60秒,如此会造成登录时长过长;另外,在虚拟机关闭或者用户退出虚拟机时差分盘内存储的数据会被清除,因此用户在每次登录至虚拟机之后使用云应用时,都需要重新输入用户信息或者重新导入用户配置数据等等。因此,用户登录至云虚拟机使用云应用的过程中存在操作不便的问题,因此,本公开提供一种虚拟机控制方法,用于云管理设备,以提高用户登录至虚拟机使用云应用的便利性。
基于前述论述,本公开提供的一种虚拟机控制方法,如图3所示,该方法包括但不限于步骤S10。
步骤S10,当接收到用户终端发送的应用登录请求时,将对应应用登录请求的用户应用数据文件挂载至目标虚拟机,以使目标虚拟机在运行对应应用登陆请求的目标应用时能够处理用户应用数据文件中的数据。
在一些实施方式中,当用户终端需要登录至虚拟机并使用某一个云应用(即目标应用)时,用户终端可以以人机交互的方式供用户选择目标应用,并向云管理设备发送应用登陆请求,可以理解,应用登陆请求与目标应用相对应。如此,云管理设备在接收到该应用登陆请求时,一方面,可以为该用户终端分配某一虚拟机(即目标虚拟机),另一方面,可以将对应应用登陆请求的用户应用数据文件挂载至目标虚拟机,可以理解,用户应用数据文件与目 标应用相对应,其中,用户应用数据文件指的是关于目标应用的用户数据文件,可以包括用户信息、用户配置数据等等,例如可以包括用户的账号密码、用户个性化设置数据等等。可以理解,在挂载完成之后用户终端与目标虚拟机之间可以通过建立连接的方式,使用户成功登录至目标虚拟机,例如,云管理设备可以将目标虚拟机的IP地址返回给用户终端,以使用户终端向目标虚拟机发送连接请求并建立连接,或者,云管理设备向目标虚拟机发送指令,指示目标虚拟机主动连接用户终端。与相关技术相比,本公开仅需挂载用户应用数据文件,由于用户应用数据文件的数据体积远远小于差分盘的数据体积,因此有效缩短了登录时长,例如登录时长仅需200ms,提高了便利性,增强了用户体验。
在用户登录至目标虚拟机之后,目标应用可以在用户的操作下启动并运行或者由目标虚拟机自动启动并运行,从而使得用户能够使用目标应用,由于此时目标虚拟机已挂载有相应的用户应用数据文件,因此目标虚拟机可以处理用户应用数据文件中的数据,例如对用户应用数据文件中的数据进行读写,因此可以理解,此时目标虚拟机中已存在关于目标应用的用户数据,因此用户不需要重新输入用户信息或者导入用户配置数据等等,从而提高了便利性,增强了用户体验。在一示例性实施例中,在用户使用目标应用时,目标虚拟机可以读取用户应用数据文件中的账号密码并自动登录,还可以读取用户应用数据文件中的游戏存档数据等等。
在一示例性实施例中,用户终端当前可以为张三所用,目标应用可以为游戏应用,基于此,当张三需要登录虚拟机使用游戏应用时,用户终端向云管理设备发送应用登录请求(即游戏应用登录请求),如此,云管理设备可以为张三分配目标虚拟机,同时,将用户应用数据文件(即关于张三的游戏应用数据文件)挂载至目标虚拟机。此后,目标虚拟机在运行游戏应用时能够处理用户应用数据文件中的数据,例如,读取游戏应用账号密码、读取游戏存储数据等等,如此提高了便利性。
在一些实施例中,应用登录请求中可以携带有业务账号信息,其中,业务账号信息可以用于表征用户是否有开通关于云服务方面的业务,基于此,在将对应应用登录请求的用户应用数据文件挂载至目标虚拟机之前,可以包括但不限于如下内容:校验业务账号信息是否合法,若合法,将处于空闲状态的虚拟机作为目标虚拟机,并将目标虚拟机置为工作状态。其中,校验业务账号信息是否合法可以包括但不限于:校验业务账号信息是否正确,例如账号密码是否正确;检验业务账号对应的用户是否有使用目标应用的权限等等。另外,若校验合法,可以在云服务器上当前处于空闲状态的虚拟机中选择一个作为目标虚拟机,当然还需改变目标虚拟机的状态,将其置为工作状态。
在一些实施例中,步骤S10中的“将对应应用登录请求的用户应用数据文件挂载至目标虚拟机”包括但不限于如下内容:根据应用登录请求中携带的用户应用标识以及预设的映射关系,获取对应用户应用标识的用户应用数据文件,并将用户应用数据文件挂载至目标虚拟机,其中,映射关系为用户应用标识与用户应用数据文件存储位置之间的对应关系。
当用户需要登录虚拟机使用云应用时,用户终端可以在应用登录请求中携带用户应用标识,从而使得云管理设备能够根据用户应用标识得知哪一个用户需要使用哪一个云应用,可以理解,用户应用标识可以用于表征用户身份以及应用名称,如此,通过预设的映射关系,云管理设备可以根据前述用户应用标识确定相应的用户应用数据文件的存储位置,进而根据该存储位置获取用户应用数据文件。在一示例性实施例中,用户终端发送的应用登录请求中携带有用户应用标识,该用户应用标识可以用于表征用户A以及应用A,如此,云管理设备可以根据如图4或图5所示的映射关系,确定相应的用户应用数据文件的存储位置为A,进而获取到相应的用户应用数据文件并挂载至目标虚拟机。
在一些实施方式中,前述“获取对应用户应用标识的用户应用数据文件”可以包括但不限于如下内容:从共享存储设备中获取对应用户应用标识的用户应用数据文件。
其中,共享存储设备主要用于存储各个应用的各个用户数据文件,即共享存储设备中存储有多个不相同的用户应用数据文件,在一些实施方式中,共享存储设备可以是云管理设备的自身存储器,或者,还可以是其他网络存储设备(例如数据库)等等。可以理解,本公开将用户应用数据文件存储在共享存储设备,因此在虚拟机关闭或者用户退出虚拟机时用户数据不会被清除,进而使得目标虚拟机在运行目标应用时能够处理用户应用数据文件中的数据,提高了便利性。在一些实施方式中,该方法还可以包括但不限于如下内容:当检测到共享存储设备中存储的用户应用数据文件异常时,清除异常的用户应用数据文件中的数据,由前述可知共享存储设备中存储有多个用户应用数据文件,因此云管理设备可以实时或定期检测各个用户应用数据文件,在检测到存在异常的用户应用数据文件(例如由数据损坏引起的异常等等)时,为了防止日后该异常数据导致用户无法正常使用相应的云应用,因此可以将异常的用户应用数据文件中的数据请求。
在一些实施例中,目标虚拟机预先挂载有应用配置文件,其中,应用配置文件用于:在目标虚拟机启动目标应用时,指示目标虚拟机将目标应用的用户数据存储位置指向目标虚拟机上挂载的用户应用数据文件。
通常情况下,应用可以包括多个文件,而多个文件中的一个或多个目标文件可以用于存储用户数据,可以理解,前述一个或多个目标文件即为该应用的用户数据存储位置,因此, 可以预先将各个应用与其相应的用户数据存储位置生成一个应用配置文件,并且,将该应用配置文件预先挂载至目标虚拟机,例如,在目标虚拟机启动时挂载,如此,在目标虚拟机启动目标应用时,可以根据该应用配置文件,将目标应用的用户数据存储位置指向目标虚拟机上挂载的用户应用数据文件,从而使得目标虚拟机在运行目标应用时能够处理用户应用数据文件中的数据,提高了便利性。在一示例性实施例中,应用配置文件可以如图6所示,若目标应用为应用A,则目标虚拟机在启动应用A时,根据应用配置文件将应用A的用户数据存储位置“/data/appdata”指向目标虚拟机当前挂载的用户应用数据文件,如此,目标虚拟机在运行应用A时能够处理用户应用数据文件中的文件,例如能够读取用户账号密码。
在一些实施例中,如图7所示,该方法还可以包括但不限于步骤S20。
步骤S20,当接收到用户终端发送的应用退出请求时,卸载目标虚拟机挂载的用户应用数据文件。
在一些实施方式中,当用户使用完目标应用后,用户终端可以在用户的操作下断开与目标虚拟机的连接并向云管理设备发送应用退出请求。如此,云管理设备可以根据前述应用退出请求得知该用户已不再需要使用目标应用,因此,可以卸载目标虚拟机上挂载的用户应用数据文件。在一些实施方式中,由于用户在使用目标应用的过程中,目标虚拟机可以处理用户应用数据文件中的数据,例如读写,因此为了更新用户数据,云管理设备还可以将目标虚拟机当前挂载的用户应用数据文件进行数据同步,例如同步至共享存储设备。在一些实施方式中,云管理设备还可以将目标虚拟机由工作状态置为空闲状态,以等待云管理设备的再次分配。
基于上述论述,本公开可以应用于如图8所示的应用场景,在该场景中,云服务器上有三个虚拟机,其中,虚拟机1和虚拟机2可以处于空闲状态,虚拟机3可以处于工作状态;用户终端上安装有关于云服务的应用程序,且当用户打开该应用程序时可以有应用A,B,C三个应用图标。基于此,如图9所示,当用户想登录至虚拟机使用应用A时,用户可以点击应用A,以使用户终端向云管理设备发送携带有用户应用标识和业务账号信息的应用A登录请求,如此云管理设备可以先校验业务账号信息是否合法,若合法,则可以分配虚拟机1作为目标虚拟机并将虚拟机1置为工作状态,并且可以根据用户应用标识和预设的映射关系,从共享存储设备中获取相应的用户应用数据文件(即应用A的用户数据文件),再将该数据文件挂载至虚拟机1,从而使得用户终端和虚拟机1之间可以建立连接,用户成功登录至虚拟机1,可以理解本公开大大缩短了用户的登录时长,提高了便利性;同时,虚拟机1上预先挂载有预设的应用配置文件,虚拟机1在启动云应用A时可以将云应用A的用户数据存储 位置指向虚拟机1当前挂载的用户应用数据文件。如此,虚拟机1在运行云应用A时可以处理用户应用数据文件中的数据,从而使得用户在使用应用A时,虚拟机1可以读取用户应用数据文件中的账号密码并自动登录,还可以读取用户应用数据文件中的游戏存档数据等等,提高了便利性。此后,若用户不需要再使用应用A时,用户终端可以根据用户操作向云管理设备发送应用退出请求,云管理设备可以卸载虚拟机1当前挂载的用户应用数据文件并将数据同步至共享存储设备,另外,还可以将虚拟机1置为空闲状态。在此之后,若用户还需使用应用C,则可以如图10所示,实施细节与前述类似,此处不再赘述。
本公开还提供一种云管理设备,如图11所示,包括处理器与存储器,该存储器用于存储计算机程序;该处理器用于执行计算机程序并在执行计算机程序时实现本公开提供的任一项虚拟机控制方法。
应当理解的是,处理器可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
本公开还提供一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时,使处理器实现本公开提供的任一项虚拟机控制方法。
本公开提供了一种虚拟机控制方法、云管理设备及存储介质,该方法包括:当接收到用户终端发送的应用登录请求时,将对应应用登录请求的用户应用数据文件挂载至目标虚拟机,以使目标虚拟机在运行对应应用登陆请求的目标应用时能够处理用户应用数据文件中的数据。与相关技术相比,本公开仅需挂载用户应用数据文件,由于用户应用数据文件的数据体积远远小于差分盘的数据体积,因此有效缩短了登录时长,提高了便利性;另外,由于目标虚拟机在运行目标应用时能够处理用户应用数据文件中的数据,即目标虚拟机可以读写用户数据,因此提高了用户使用目标应用时的便利性。
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在 计算机可读存储介质上,计算机可读存储介质可以包括计算机可读存储介质(或非暂时性介质)和通信介质(或暂时性介质)。
如本领域普通技术人员公知的,术语计算机可读存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机可读存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。
在一示例性实施例中,计算机可读存储介质可以是前述实施例的云管理设备的内部存储单元,例如云管理设备的硬盘或内存。计算机可读存储介质也可以是云管理设备的外部存储设备,例如云管理设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。
以上所述,仅为本公开的实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以权利要求的保护范围为准。

Claims (10)

  1. 一种虚拟机控制方法,所述方法包括:
    当接收到用户终端发送的应用登录请求时,将对应所述应用登录请求的用户应用数据文件挂载至目标虚拟机,以使所述目标虚拟机在运行对应所述应用登陆请求的目标应用时能够处理所述用户应用数据文件中的数据。
  2. 根据权利要求1所述的方法,其中,所述将对应所述应用登录请求的用户应用数据文件挂载至目标虚拟机,包括:
    根据所述应用登录请求中携带的用户应用标识以及预设的映射关系,获取对应所述用户应用标识的用户应用数据文件,并将所述用户应用数据文件挂载至所述目标虚拟机,其中,所述映射关系为用户应用标识与用户应用数据文件存储位置之间的对应关系。
  3. 根据权利要求2所述的方法,其中,所述获取对应所述用户应用标识的用户应用数据文件,包括:
    从共享存储设备中获取对应所述用户应用标识的用户应用数据文件。
  4. 根据权利要求3所述的方法,其中,所述方法进一步包括:
    当检测到所述共享存储设备中存储的用户应用数据文件异常时,清除异常的用户应用数据文件中的数据。
  5. 根据权利要求1所述的方法,其中,所述目标虚拟机预先挂载有应用配置文件,所述应用配置文件用于:在所述目标虚拟机启动所述目标应用时,根据所述应用配置文件将所述目标应用的用户数据存储位置指向所述目标虚拟机上挂载的用户应用数据文件。
  6. 根据权利要求1所述的方法,其中,所述方法进一步包括:
    当接收到所述用户终端发送的应用退出请求时,卸载所述目标虚拟机上挂载的用户应用数据文件。
  7. 根据权利要求6所述的方法,其中,在接收到所述用户终端发送的应用退出请求之后,进一步包括:
    将所述目标虚拟机挂载的用户应用数据文件同步至共享存储设备,和/或,将所述目标虚拟机置为空闲状态。
  8. 根据权利要求1-7任一项所述的方法,其中,所述应用登录请求中携带有业务账号信息;
    在将对应所述应用登录请求的用户应用数据文件挂载至目标虚拟机之前,包括:
    校验所述业务账号信息是否合法,若合法,将处于空闲状态的虚拟机作为所述目标虚拟机,并将所述目标虚拟机置为工作状态。
  9. 一种云管理设备,包括处理器与存储器;
    所述存储器,用于存储计算机程序;
    所述处理器,用于执行所述计算机程序并在执行所述计算机程序时实现如权利要求1至8中任一项所述的虚拟机控制方法。
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如权利要求1至8中任一项所述的虚拟机控制方法。
PCT/CN2021/134443 2020-12-17 2021-11-30 虚拟机控制方法、云管理设备及存储介质 WO2022127583A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011504168.8 2020-12-17
CN202011504168.8A CN114647483A (zh) 2020-12-17 2020-12-17 虚拟机控制方法、云管理设备及存储介质

Publications (1)

Publication Number Publication Date
WO2022127583A1 true WO2022127583A1 (zh) 2022-06-23

Family

ID=81990899

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/134443 WO2022127583A1 (zh) 2020-12-17 2021-11-30 虚拟机控制方法、云管理设备及存储介质

Country Status (2)

Country Link
CN (1) CN114647483A (zh)
WO (1) WO2022127583A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116483517A (zh) * 2023-04-27 2023-07-25 安芯网盾(北京)科技有限公司 虚拟机控制方法、装置及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015184179A1 (en) * 2014-05-30 2015-12-03 Vmware, Inc. Customized configuration of cloud-based applications prior to deployment
CN106020795A (zh) * 2016-05-09 2016-10-12 汉柏科技有限公司 Vdi桌面个人数据盘的实现方法及装置
CN109947507A (zh) * 2019-01-24 2019-06-28 江苏中云科技有限公司 一种多服务融合的云桌面系统
CN111744174A (zh) * 2020-01-08 2020-10-09 厦门雅基软件有限公司 云游戏的账号管理方法、账号登录方法、装置及电子设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015184179A1 (en) * 2014-05-30 2015-12-03 Vmware, Inc. Customized configuration of cloud-based applications prior to deployment
CN106020795A (zh) * 2016-05-09 2016-10-12 汉柏科技有限公司 Vdi桌面个人数据盘的实现方法及装置
CN109947507A (zh) * 2019-01-24 2019-06-28 江苏中云科技有限公司 一种多服务融合的云桌面系统
CN111744174A (zh) * 2020-01-08 2020-10-09 厦门雅基软件有限公司 云游戏的账号管理方法、账号登录方法、装置及电子设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116483517A (zh) * 2023-04-27 2023-07-25 安芯网盾(北京)科技有限公司 虚拟机控制方法、装置及系统
CN116483517B (zh) * 2023-04-27 2024-01-26 安芯网盾(北京)科技有限公司 虚拟机控制方法、装置及系统

Also Published As

Publication number Publication date
CN114647483A (zh) 2022-06-21

Similar Documents

Publication Publication Date Title
US20220091889A1 (en) Remote Management of Distributed Datacenters
US11243792B2 (en) Image file conversion method and apparatus
US10013274B2 (en) Migrating virtual machines to perform boot processes
US10977226B2 (en) Self-service configuration for data environment
US9882825B2 (en) Method and system for securely transmitting volumes into cloud
US10958633B2 (en) Method and system for securely transmitting volumes into cloud
US10484341B1 (en) Distributed ledger for multi-cloud operational state
US10673835B2 (en) Implementing single sign-on in a transaction processing system
CN110908753B (zh) 一种智能融合的云桌面服务器、客户端及系统
CN109450976B (zh) 一种业务系统的访问的方法及装置
US9544296B2 (en) Transferring web-application prerequisite files while authentication interface occludes web-application interface
US11444785B2 (en) Establishment of trusted communication with container-based services
US20210026937A1 (en) Session based elastic layering
WO2022127583A1 (zh) 虚拟机控制方法、云管理设备及存储介质
WO2018001023A1 (zh) 一种云终端登录虚拟桌面方法及装置
US10985998B1 (en) Domain controller configurability for directories
US9230121B1 (en) Techniques for persistently toggling a FIPS-140 cryptographic mode of a clustered storage system
CN114443166B (zh) 一种共享文件处理方法、装置及介质
CN107659621B (zh) 一种raid控制卡配置方法及装置
US11630591B1 (en) System and method to manage storage system for startup
US20050132237A1 (en) Method, apparatus and program storage device for providing a remote power reset at a remote server through a network connection
WO2020001617A1 (zh) 获取验证信息的方法和数据中心
US10747567B2 (en) Cluster check services for computing clusters
CN112445571A (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: 21905512

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 241023)