Movatterモバイル変換


[0]ホーム

URL:


WO2024131554A1 - Operating system virtual machine configuration method and apparatus, device, and storage medium - Google Patents

Operating system virtual machine configuration method and apparatus, device, and storage medium
Download PDF

Info

Publication number
WO2024131554A1
WO2024131554A1PCT/CN2023/137121CN2023137121WWO2024131554A1WO 2024131554 A1WO2024131554 A1WO 2024131554A1CN 2023137121 WCN2023137121 WCN 2023137121WWO 2024131554 A1WO2024131554 A1WO 2024131554A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual machine
hardware
target
resource
operating environment
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.)
Ceased
Application number
PCT/CN2023/137121
Other languages
French (fr)
Chinese (zh)
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.)
Kyland Technology Co Ltd
Original Assignee
Kyland 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 Kyland Technology Co LtdfiledCriticalKyland Technology Co Ltd
Publication of WO2024131554A1publicationCriticalpatent/WO2024131554A1/en
Anticipated expirationlegal-statusCritical
Ceasedlegal-statusCriticalCurrent

Links

Classifications

Definitions

Landscapes

Abstract

Disclosed in the embodiments of the present invention are an operating system virtual machine configuration method and apparatus, a device, and a storage medium. The method comprises: acquiring configurable virtual machines and configurable hardware resources for the virtual machines, and displaying the virtual machines and the hardware resources on a resource display interface; acquiring a target virtual machine and target hardware selected on the resource display interface and, on a virtual machine configuration interface, correspondingly displaying the target virtual machine and the target hardware, and displaying a configurable operating environment of the virtual machine; on the virtual machine configuration interface, configuring the target virtual machine, the target hardware and the corresponding operating environment in association with each other so as to obtain a virtual machine configuration diagram; and, according to the virtual machine configuration diagram, configuring an operating system virtual machine. The method can visually configure the operating system virtual machines, reduce the configuration difficulty of the virtual machines, and improve the configuration efficiency.

Description

Translated fromChinese
一种操作系统虚拟机的配置方法、装置、设备及存储介质A configuration method, device, equipment and storage medium for an operating system virtual machine技术领域Technical Field

本发明涉及工业控制技术领域,尤其涉及一种操作系统虚拟机的配置方法、装置、设备及存储介质。The present invention relates to the field of industrial control technology, and in particular to a configuration method, device, equipment and storage medium for an operating system virtual machine.

背景技术Background technique

操作系统虚拟机在使用中是需要进行配置的。其可配置参数较多,例如可以包括设备名、处理器、内存、硬盘、操作环境等。每一项都需要进行参数配置,且各项通常还包括子参数。The operating system virtual machine needs to be configured during use. There are many configurable parameters, such as device name, processor, memory, hard disk, operating environment, etc. Each item needs to be configured, and each item usually includes sub-parameters.

现有技术中,通常采用配置软件,通过列表方式逐项填写配置参数,致使虚拟机配置不直观、易漏项出错、繁琐复杂、且过于专业。因此,亟待提出一种操作系统虚拟机的配置方法以解决上述配置问题。In the prior art, configuration software is usually used to fill in configuration parameters item by item in a list manner, which makes the virtual machine configuration not intuitive, prone to omissions and errors, cumbersome and complex, and too professional. Therefore, it is urgent to propose a configuration method for an operating system virtual machine to solve the above configuration problems.

发明内容Summary of the invention

本发明提供了一种操作系统虚拟机的配置方法、装置、设备及存储介质,以降低虚拟机配置难度,提高配置效率。The present invention provides a configuration method, device, equipment and storage medium for an operating system virtual machine, so as to reduce the difficulty of virtual machine configuration and improve configuration efficiency.

根据本发明的一方面,提供了一种操作系统虚拟机的配置方法,该方法包括:According to one aspect of the present invention, a method for configuring an operating system virtual machine is provided, the method comprising:

获取可配置的虚拟机,以及各虚拟机可配置的硬件资源,并将各虚拟机以及各硬件资源在资源展示界面中进行展示;Acquire configurable virtual machines and configurable hardware resources of each virtual machine, and display each virtual machine and each hardware resource in a resource display interface;

获取在所述资源展示界面中选中的目标虚拟机以及目标硬件,在虚拟机配置界面中,相应的展示所述目标虚拟机以及目标硬件,并展示虚拟机的可配置操作环境;Acquire the target virtual machine and target hardware selected in the resource display interface, and display the target virtual machine and target hardware accordingly in the virtual machine configuration interface, and display the configurable operating environment of the virtual machine;

在虚拟机配置界面中,将所述目标虚拟机、所述目标硬件、以及对应的操作环境进行关联配置,得到虚拟机配置图;并根据所述虚拟机配置图进行操作系统虚拟机配置。In the virtual machine configuration interface, the target virtual machine, the target hardware, and the corresponding operating environment are associated and configured to obtain a virtual machine configuration diagram; and the operating system virtual machine configuration is performed according to the virtual machine configuration diagram.

根据本发明的另一方面,提供了一种操作系统虚拟机的配置装置,该装置包括:According to another aspect of the present invention, a configuration device for an operating system virtual machine is provided, the device comprising:

资源展示模块,用于获取可配置的虚拟机,以及各虚拟机可配置的硬件资源,并将各虚拟机以及各硬件资源在资源展示界面中进行展示;The resource display module is used to obtain configurable virtual machines and configurable hardware resources of each virtual machine, and display each virtual machine and each hardware resource in the resource display interface;

虚拟机配置展示模块,用于获取在所述资源展示界面中选中的目标虚拟机以及目标硬件,在虚拟机配置界面中,相应的展示所述目标虚拟机以及目标硬件,并展示虚拟机的可配置操作环境;A virtual machine configuration display module, used to obtain the target virtual machine and target hardware selected in the resource display interface, and display the target virtual machine and target hardware accordingly in the virtual machine configuration interface, and display the configurable operating environment of the virtual machine;

虚拟机配置模块,用于在虚拟机配置界面中,将所述目标虚拟机、所述目标硬件、以及对应的操作环境进行关联配置,得到虚拟机配置图;并根据所述虚拟机配置图进行操作系统虚拟机配置。The virtual machine configuration module is used to associate and configure the target virtual machine, the target hardware, and the corresponding operating environment in the virtual machine configuration interface to obtain a virtual machine configuration diagram; and perform operating system virtual machine configuration according to the virtual machine configuration diagram.

根据本发明的另一方面,提供了一种电子设备,所述电子设备包括:According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

至少一个处理器;以及at least one processor; and

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行本发明任一实施例所述的操作系统虚拟机的配置方法。The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for configuring an operating system virtual machine described in any embodiment of the present invention.

根据本发明的另一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现本发明任一实施例所述的操作系统虚拟机的配置方法。According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for configuring an operating system virtual machine described in any embodiment of the present invention when executed.

本发明实施例的技术方案,通过获取可配置的虚拟机,以及各虚拟机可配置的硬件资源,并将各虚拟机以及各硬件资源在资源展示界面中进行展示;获取在资源展示界面中选中的目标虚拟机以及目标硬件,在虚拟机配置界面中,相应的展示目标虚拟机以及目标硬件,并展示虚拟机的可配置操作环境;在虚拟机配置界面中,将目标虚拟机、目标硬件、以及对应的操作环境进行关联配置,得到虚拟机配置图;并根据虚拟机配置图进行操作系统虚拟机配置,解决了操作系统虚拟机的配置问题,通过设置资源展示界面可以清晰明了地展示虚拟机配置时的可用资源;通过虚拟机配置界面可以可视化地实现操作系统虚拟机配置,降低虚拟机配置难度,提高配置效率。The technical solution of the embodiment of the present invention obtains configurable virtual machines and configurable hardware resources of each virtual machine, and displays each virtual machine and each hardware resource in a resource display interface; obtains the target virtual machine and target hardware selected in the resource display interface, and displays the target virtual machine and target hardware accordingly in the virtual machine configuration interface, and displays the configurable operating environment of the virtual machine; in the virtual machine configuration interface, associates and configures the target virtual machine, target hardware, and the corresponding operating environment to obtain a virtual machine configuration diagram; and configures the operating system virtual machine according to the virtual machine configuration diagram, thereby solving the configuration problem of the operating system virtual machine. By setting the resource display interface, the available resources during the virtual machine configuration can be clearly displayed; the operating system virtual machine configuration can be visually implemented through the virtual machine configuration interface, thereby reducing the difficulty of virtual machine configuration and improving configuration efficiency.

应当理解,本部分所描述的内容并非旨在标识本发明的实施例的关键或重要特征,也不用于限制本发明的范围。本发明的其它特征将通过以下的说明书而变得容易理解。It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

图1a是根据本发明实施例一提供的一种操作系统虚拟机的配置方法的流程图;FIG. 1a is a flow chart of a method for configuring an operating system virtual machine provided according to Embodiment 1 of the present invention;

图1b是根据本发明实施例一提供的一种硬件资源展示子界面的结构示意图;FIG1b is a schematic diagram of the structure of a hardware resource display sub-interface provided according to Embodiment 1 of the present invention;

图1c是根据本发明实施例一提供的一种虚拟机配置界面的结构示意图;FIG1c is a schematic diagram of the structure of a virtual machine configuration interface provided according to Embodiment 1 of the present invention;

图1d是根据本发明实施例一提供的一种虚拟机配置图的示意图;FIG. 1d is a schematic diagram of a virtual machine configuration diagram provided according to Embodiment 1 of the present invention;

图2是根据本发明实施例二提供的一种操作系统虚拟机的配置方法的流程图;2 is a flow chart of a method for configuring an operating system virtual machine according to a second embodiment of the present invention;

图3是根据本发明实施例三提供的一种操作系统虚拟机的配置装置的结构示意图;3 is a schematic diagram of the structure of a configuration device for an operating system virtual machine provided according to Embodiment 3 of the present invention;

图4是实现本发明实施例的操作系统虚拟机的配置方法的电子设备的结构示意图。FIG. 4 is a schematic diagram of the structure of an electronic device that implements the method for configuring an operating system virtual machine according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "third" and "third" in the specification and claims of the present invention and the above drawings are "Two" and the like are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that the numbers used in this way are interchangeable where appropriate, so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units that are not explicitly listed or inherent to these processes, methods, products, or apparatuses.

实施例一Embodiment 1

图1a是根据本发明实施例一提供的一种操作系统虚拟机的配置方法的流程图,本实施例可适用于虚拟机配置的情况,该方法可以由操作系统虚拟机的配置装置来执行,该操作系统虚拟机的配置装置可以采用硬件和/或软件的形式实现,该操作系统虚拟机的配置装置可配置于电子设备如计算机中。如图1a所示,该方法包括:FIG1a is a flow chart of a method for configuring an operating system virtual machine according to Embodiment 1 of the present invention. This embodiment is applicable to the case of virtual machine configuration. The method can be executed by a configuration device for an operating system virtual machine. The configuration device for an operating system virtual machine can be implemented in the form of hardware and/or software. The configuration device for an operating system virtual machine can be configured in an electronic device such as a computer. As shown in FIG1a , the method includes:

步骤110、获取可配置的虚拟机,以及各虚拟机可配置的硬件资源,并将各虚拟机以及各硬件资源在资源展示界面中进行展示。Step 110: Acquire configurable virtual machines and configurable hardware resources of each virtual machine, and display each virtual machine and each hardware resource in a resource display interface.

其中,虚拟机可以是通过软件模拟的具有完整硬件系统功能的、运行在一个完全隔离环境中的完整计算机系统。例如,虚拟机可以包括:Windows、Ubuntu(Linux操作系统)、根代理服务(Root Agent,RA以及VM(虚拟机)服务器等。硬件资源可以包括虚拟机的必分项、I/O外设、以及独立硬件等。其中,必分项可以包括CPU(处理器)、内存及硬盘;I/O外设可以包括网络、串口等通讯接口;独立硬件可以包括显卡、USB(串行总线标准的硬件)、PCI(局部总线标准的硬件)及SMBUS(系统管理总线的硬件)等。硬件资源可以通过连接至高效的档案处理系统(Log-structured file system,lfs)的管理口,输入IP地址以及用户名密码方式获取。Among them, the virtual machine can be a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment. For example, the virtual machine can include: Windows, Ubuntu (Linux operating system), root agent service (Root Agent, RA and VM (virtual machine) server, etc. Hardware resources can include the necessary items of the virtual machine, I/O peripherals, and independent hardware, etc. Among them, the necessary items can include CPU (processor), memory and hard disk; I/O peripherals can include network, serial port and other communication interfaces; independent hardware can include graphics card, USB (serial bus standard hardware), PCI (local bus standard hardware) and SMBUS (system management bus hardware). Hardware resources can be obtained by connecting to the management port of the efficient file processing system (Log-structured file system, lfs) and entering the IP address and username and password.

在资源展示界面中可以将虚拟机以及硬件资源分开展示,即通过虚拟机展示列表展示虚拟机,通过硬件资源展示子界面展示硬件资源;或者,也可以将虚拟机与硬件资源展示在同一资源展示界面中。在展示硬件资源时,可以展示硬件资源的具体种类、对应的数量信息、以及容量信息等。In the resource display interface, virtual machines and hardware resources can be displayed separately, that is, virtual machines can be displayed through the virtual machine display list, and hardware resources can be displayed through the hardware resource display sub-interface; or virtual machines and hardware resources can be displayed in the same resource display interface. When displaying hardware resources, the specific types of hardware resources, corresponding quantity information, and capacity information can be displayed.

具体的,在本发明实施例的一个可选实施方式中,获取可配置的虚拟机,以及各虚拟机可配置的硬件资源,并将各虚拟机以及各硬件资源在资源展示界面中进行展示,包括:获取可配置的虚拟机,各虚拟机可配置的CPU、内存、硬盘、I/O外设、以及独立硬件;根据虚拟机的种类、CPU的核数、内存的容量、硬盘的容量、I/O外设的种类和数量、以及独立硬件的种类和数量,构建生成资源展示界面;将各虚拟机以及各硬件资源在资源展示界面中进行展示。Specifically, in an optional implementation of an embodiment of the present invention, configurable virtual machines and configurable hardware resources of each virtual machine are obtained, and each virtual machine and each hardware resource are displayed in a resource display interface, including: obtaining configurable virtual machines, each virtual machine's configurable CPU, memory, hard disk, I/O peripherals, and independent hardware; constructing a resource display interface according to the type of virtual machine, the number of CPU cores, the capacity of the memory, the capacity of the hard disk, the type and quantity of I/O peripherals, and the type and quantity of independent hardware; and displaying each virtual machine and each hardware resource in the resource display interface.

示例性的,图1b是根据本发明实施例一提供的一种硬件资源展示子界面的结构示意图。如图1b所示,可以将CPU、内存、硬盘、I/O外设、以及独立硬件按顺序排列放置。例如,将CPU放置在最下方,CPU上方可以放置内存,内存上方可以放置硬盘,硬盘上方可以放置I/O外设,I/O外设上方可以放置独立硬件。Exemplarily, FIG1b is a schematic diagram of the structure of a hardware resource display sub-interface provided according to Embodiment 1 of the present invention. As shown in FIG1b, the CPU, memory, hard disk, I/O peripherals, and independent hardware may be arranged and placed in sequence. For example, the CPU may be placed at the bottom, the memory may be placed above the CPU, the hard disk may be placed above the memory, the I/O peripherals may be placed above the hard disk, and the independent hardware may be placed above the I/O peripherals.

如图1b所示,在展示硬件资源时,可以展示硬件资源的具体种类、对应的数量信息、以及容量信息等。例如,在界面中可以直接将CPU的每个核都展示出来。具体的,展示方式可以是将CPU各个核占满横排并平均分配。图1b中以8个核为例,实际中CPU有可能是两核、10核或者其他数量的核。内存的展示可以是将内存的容量以具体数值布满横排。图1b中以系统内存为32G为例。硬盘的展示可以是将硬盘的容量以具体数值布满横排。图1b中以一个硬盘为例,在实际中可以存在多个硬盘。如果硬盘为多个,可以在图1b所示硬盘的上方或下方再增加一个硬盘,并通过符号进行区分。As shown in Figure 1b, when displaying hardware resources, the specific type of hardware resources, the corresponding quantity information, and the capacity information can be displayed. For example, each core of the CPU can be directly displayed in the interface. Specifically, the display method can be to fill the horizontal row of each core of the CPU and distribute them evenly. Figure 1b takes 8 cores as an example. In practice, the CPU may have two cores, ten cores, or any other number of cores. The memory may be displayed by filling the memory capacity with specific values in horizontal rows. FIG1b takes the system memory as 32G as an example. The hard disk may be displayed by filling the hard disk capacity with specific values in horizontal rows. FIG1b takes one hard disk as an example, but in practice there may be multiple hard disks. If there are multiple hard disks, another hard disk may be added above or below the hard disk shown in FIG1b, and they may be distinguished by symbols.

如图1b所示,I/O外设可以直接展现在硬件资源展示子界面的第二部分。图1b中,I/O外设,包括4个网卡和4个串行接口;当然网口和串口数量不局限于此数量。As shown in Figure 1b, the I/O peripherals can be directly displayed in the second part of the hardware resource display sub-interface. In Figure 1b, the I/O peripherals include 4 network cards and 4 serial ports; of course, the number of network ports and serial ports is not limited to this number.

如图1b所示,独立硬件可以直接展示在硬件资源展示子界面的第三部分。图1b中显卡有一个。实际中可以是多个,但一般显卡只能有一个工作,可以直接把不工作的显卡屏蔽掉。USB中有USB设备和控制器,如果控制器通过透传分配至虚拟机,插在控制器上的USB设备便不能单独分配至虚拟机,只能随着控制器一同分配到虚拟机中;如果分配USB设备至虚拟机,那它所连接的控制器便不能分配至虚拟机,且一旦更换USB设备,USB设备便不可用。图1b中PCI只列举了声卡,当然也会有其他的PCI设备。独立硬件只能透传给某个虚拟机,而不能同时给多个虚拟机使用。As shown in Figure 1b, independent hardware can be directly displayed in the third part of the hardware resource display sub-interface. There is one graphics card in Figure 1b. In practice, there can be multiple, but generally only one graphics card can work, and the graphics card that does not work can be directly blocked. There are USB devices and controllers in USB. If the controller is assigned to the virtual machine through transparent transmission, the USB device plugged into the controller cannot be assigned to the virtual machine alone, but can only be assigned to the virtual machine together with the controller; if the USB device is assigned to the virtual machine, the controller it is connected to cannot be assigned to the virtual machine, and once the USB device is replaced, the USB device will be unavailable. In Figure 1b, PCI only lists the sound card, of course there will be other PCI devices. Independent hardware can only be transparently transmitted to a virtual machine, and cannot be used by multiple virtual machines at the same time.

虚拟机的展示可以是在图1b中增加一行或者一列,构成资源展示界面;或者,虚拟机的展示可以是重新生成一个虚拟机展示列表,即虚拟机的展示位置可以不受硬件资源展示子界面位置的限制。虚拟机展示列表以及硬件资源展示子界面,可以共同构成资源展示界面。The display of the virtual machine may be to add a row or a column in FIG. 1b to form a resource display interface; or the display of the virtual machine may be to regenerate a virtual machine display list, that is, the display position of the virtual machine may not be restricted by the position of the hardware resource display sub-interface. The virtual machine display list and the hardware resource display sub-interface may together form a resource display interface.

通过上述方式展示虚拟机以及硬件资源,可以使用户可视化的直观了解可以分配的资源以及相关的信息,降低为虚拟机分配硬件资源的专业性以及复杂度。By displaying virtual machines and hardware resources in the above manner, users can visually and intuitively understand the resources that can be allocated and related information, thereby reducing the professionalism and complexity of allocating hardware resources to virtual machines.

步骤120、获取在资源展示界面中选中的目标虚拟机以及目标硬件,在虚拟机配置界面中,相应的展示目标虚拟机以及目标硬件,并展示虚拟机的可配置操作环境。Step 120: Acquire the target virtual machine and target hardware selected in the resource display interface, and display the target virtual machine and target hardware accordingly in the virtual machine configuration interface, and display the configurable operating environment of the virtual machine.

其中,图1c是根据本发明实施例一提供的一种虚拟机配置界面的结构示意图。如图1c所示,在虚拟机配置界面的初始化界面中,可以展示虚拟机的可配置操作环境。在本发明实施例的一个可选实施方式中,可配置操作环境,包括:非实时环境、实时环境、以及Intewell(一种操作系统)环境。FIG. 1c is a schematic diagram of a structure of a virtual machine configuration interface provided according to Embodiment 1 of the present invention. As shown in FIG. 1c, in the initialization interface of the virtual machine configuration interface, a configurable operating environment of the virtual machine may be displayed. In an optional implementation of the embodiment of the present invention, the configurable operating environment includes: a non-real-time environment, a real-time environment, and an Intewell (an operating system) environment.

用户在进行虚拟机配置时,可以在资源展示界面选择目标虚拟机以及目标硬件。具体的,资源展示界面中的虚拟机和硬件资源可以通过拖拽或者连线等操作选中,并展示在虚拟机配置界面。When configuring a virtual machine, the user can select a target virtual machine and target hardware in the resource display interface. Specifically, the virtual machine and hardware resources in the resource display interface can be selected by dragging or connecting, and displayed in the virtual machine configuration interface.

如图1c所示,在虚拟机配置界面中,虚拟机和硬件资源可以被具体展示在不同的操作环境区域中。进一步的,具体的一个硬件资源可以同时分配在不同操作环境中。如内存可以一部分分配在非实时环境、一部分分配在实时环境,还有一部分分配在Intewell环境;或者,也可以预留一部分不进行分配。As shown in Figure 1c, in the virtual machine configuration interface, virtual machines and hardware resources can be specifically displayed in different operating environment areas. Furthermore, a specific hardware resource can be allocated in different operating environments at the same time. For example, part of the memory can be allocated in a non-real-time environment, part in a real-time environment, and part in an Intel environment; or, part can be reserved and not allocated.

如图1c所示,可以在非实时环境区域展示串口4、显卡1、USB控制器1和USB控制器2;并在非实时系统展示22G内存和CPU的1-3核。如图1c所示,可以在实时环境区域展示串口1-3、网卡2-4;并在实时环境区域展示4G内存以及CPU的4-8核。如图1c所示,可以在Intewell环境区域展示6G内存和网卡1。网卡1可以以虚拟网卡的形式共享给实时系统和非实时系统同时使用。As shown in Figure 1c, serial port 4, graphics card 1, USB controller 1, and USB controller 2 can be displayed in the non-real-time environment area; and 22G memory and CPU cores 1-3 can be displayed in the non-real-time system. As shown in Figure 1c, serial ports 1-3, network cards 2-4 can be displayed in the real-time environment area; and 4G memory and CPU cores 4-8 can be displayed in the real-time environment area. As shown in Figure 1c, 6G memory and network card 1 can be displayed in the Intel environment area. Network card 1 can be shared as a virtual network card for use by the real-time system and the non-real-time system at the same time.

在具体应用中,可以在资源展示界面中区分出已在虚拟机配置界面中展示的硬件资源。例如,在资源展示界面中,可以将已在虚拟机配置界面中展示的硬件资源的图标变更颜色、或者图标框变更线条等。更进一步的,在资源展示界面中可以区分出在虚拟机配置界面中不同操作环境区域中展示的硬件资源。例如,在资源展示界面中,在相同操作环境区域中展示的硬件资源的图标颜色以及图标框线可以相同;在不同操作环境区域中展示的硬件资源的图标颜色以及图标框线可以不同。In specific applications, the hardware displayed in the virtual machine configuration interface can be distinguished in the resource display interface Resources. For example, in the resource display interface, the color of the icon of the hardware resource displayed in the virtual machine configuration interface can be changed, or the icon frame can be changed. Furthermore, in the resource display interface, the hardware resources displayed in different operating environment areas in the virtual machine configuration interface can be distinguished. For example, in the resource display interface, the icon color and icon frame of the hardware resources displayed in the same operating environment area can be the same; the icon color and icon frame of the hardware resources displayed in different operating environment areas can be different.

步骤130、在虚拟机配置界面中,将目标虚拟机、目标硬件、以及对应的操作环境进行关联配置,得到虚拟机配置图;并根据虚拟机配置图进行操作系统虚拟机配置。Step 130: In the virtual machine configuration interface, the target virtual machine, the target hardware, and the corresponding operating environment are associated and configured to obtain a virtual machine configuration diagram; and the operating system virtual machine is configured according to the virtual machine configuration diagram.

其中,图1d是根据本发明实施例一提供的一种虚拟机配置图的示意图。具体的,在虚拟机配置界面的各操作环境区域展示的虚拟机和硬件资源,可以直接分配至该操作环境中。与虚拟机处于相同操作环境区域中的硬件资源可以根据实际需求分配至虚拟机。例如,可以根据指令,在虚拟机与硬件资源之间构建连接线,将相同操作环境区域中的硬件资源全部或者部分分配至虚拟机,构成如图1d所示的虚拟机配置图。Among them, Figure 1d is a schematic diagram of a virtual machine configuration diagram provided according to Embodiment 1 of the present invention. Specifically, the virtual machines and hardware resources displayed in each operating environment area of the virtual machine configuration interface can be directly allocated to the operating environment. Hardware resources in the same operating environment area as the virtual machine can be allocated to the virtual machine according to actual needs. For example, according to instructions, a connection line can be constructed between the virtual machine and the hardware resources, and all or part of the hardware resources in the same operating environment area can be allocated to the virtual machine, forming a virtual machine configuration diagram as shown in Figure 1d.

在图1d中,分配至虚拟机的硬件资源可以显示具体分配的资源大小。并且可以通过颜色框或者图标框线区分不同的硬件资源。其中,分配的方式可以有多种,例如,透传、虚拟化、VNC(远程控制)等。在虚拟机配置图中,不同的分配方式可以通过不同的颜色或者线型进行区分。例如,透传可以为实线;其他分配方式为虚线。In FIG. 1d , the hardware resources allocated to the virtual machine can display the specific allocated resource size. Different hardware resources can be distinguished by color boxes or icon boxes. There can be multiple allocation methods, such as transparent transmission, virtualization, VNC (remote control), etc. In the virtual machine configuration diagram, different allocation methods can be distinguished by different colors or line types. For example, transparent transmission can be a solid line; other allocation methods are dotted lines.

在本实施例中,根据虚拟机配置图进行操作系统虚拟机配置,可以是后台根据如图1d所示的虚拟机配置图中的分配参数进行具体的虚拟机配置。对于用户而言,无需处理该复杂过程,仅需通过资源展示界面以及虚拟机配置界面,生成虚拟机配置图,可以使用户可视化地对虚拟机进行配置,极大地降低了虚拟机的配置复杂度以及专业性。In this embodiment, the operating system virtual machine configuration is performed according to the virtual machine configuration diagram, and the background can perform specific virtual machine configuration according to the allocation parameters in the virtual machine configuration diagram as shown in Figure 1d. For the user, there is no need to deal with this complex process, and only the virtual machine configuration diagram is generated through the resource display interface and the virtual machine configuration interface, so that the user can visually configure the virtual machine, which greatly reduces the complexity and professionalism of the virtual machine configuration.

本实施例的技术方案,通过获取可配置的虚拟机,以及各虚拟机可配置的硬件资源,并将各虚拟机以及各硬件资源在资源展示界面中进行展示;在虚拟机配置界面中,展示虚拟机的可配置操作环境,以及在资源展示界面选中的目标虚拟机以及目标硬件;在虚拟机配置界面中,将目标虚拟机、目标硬件、以及对应的操作环境进行关联配置,得到虚拟机配置图;并根据虚拟机配置图进行操作系统虚拟机配置,解决了操作系统虚拟机的配置问题,通过设置资源展示界面可以清晰明了地展示虚拟机配置时的可用资源;通过在资源展示界面中选中可配置的资源并展示至虚拟机配置界面,可以可视化地实现操作系统虚拟机配置;通过上述可视化的配置,可以将现有技术中繁多的参数设置改进为资源的可视化操作,将虚拟机的配置可视化、生动化,从而降低虚拟机配置难度,提高配置效率。The technical solution of this embodiment obtains configurable virtual machines and configurable hardware resources of each virtual machine, and displays each virtual machine and each hardware resource in a resource display interface; in the virtual machine configuration interface, displays the configurable operating environment of the virtual machine, as well as the target virtual machine and target hardware selected in the resource display interface; in the virtual machine configuration interface, associates and configures the target virtual machine, target hardware, and the corresponding operating environment to obtain a virtual machine configuration diagram; and configures the operating system virtual machine according to the virtual machine configuration diagram, thereby solving the configuration problem of the operating system virtual machine, and the available resources during the virtual machine configuration can be clearly displayed by setting the resource display interface; by selecting configurable resources in the resource display interface and displaying them to the virtual machine configuration interface, the operating system virtual machine configuration can be visually implemented; through the above-mentioned visual configuration, the numerous parameter settings in the prior art can be improved into visual operations of resources, and the configuration of the virtual machine can be visualized and vivid, thereby reducing the difficulty of virtual machine configuration and improving configuration efficiency.

实施例二Embodiment 2

图2是根据本发明实施例二提供的一种操作系统虚拟机的配置方法的流程图,本实施例是对上述技术方案的进一步细化,本实施例中的技术方案可以与上述一个或者多个实施例中的各个可选方案结合。如图2所示,该方法包括:FIG2 is a flow chart of a configuration method for an operating system virtual machine provided according to Embodiment 2 of the present invention. This embodiment is a further refinement of the above technical solution. The technical solution in this embodiment can be combined with each optional solution in one or more of the above embodiments. As shown in FIG2, the method includes:

步骤210、获取可配置的虚拟机,以及各虚拟机可配置的硬件资源,并将各虚拟机以及各硬件资源在资源展示界面中进行展示。Step 210: Acquire configurable virtual machines and configurable hardware resources of each virtual machine, and display each virtual machine and each hardware resource in a resource display interface.

在本发明实施例的一个可选实施方式中,获取可配置的虚拟机,以及各虚拟机可配置的硬件资源,并将各虚拟机以及各硬件资源在资源展示界面中进行展示,包括:获取可配置的虚拟机,各虚拟机可配置的CPU、内存、硬盘、I/O外设、以及独立硬件;根据虚拟机的种类、CPU的核数、内存的容量、硬盘的容量、I/O外设的种类和数量、以及独立硬件的种类和数量,构建生成资源展示界面;将各虚拟机以及各硬件资源在资源展示界面中进行展示。In an optional implementation of the embodiment of the present invention, a configurable virtual machine is obtained, and each virtual machine can The hardware resources configured are displayed on the resource display interface, including: obtaining configurable virtual machines, configurable CPUs, memories, hard disks, I/O peripherals, and independent hardware of each virtual machine; constructing a resource display interface according to the type of virtual machine, the number of CPU cores, the capacity of memory, the capacity of hard disk, the type and quantity of I/O peripherals, and the type and quantity of independent hardware; and displaying each virtual machine and each hardware resource on the resource display interface.

步骤220、在虚拟机配置界面中,展示虚拟机的可配置操作环境。Step 220: In the virtual machine configuration interface, the configurable operating environment of the virtual machine is displayed.

在本发明实施例的一个可选实施方式中,可配置操作环境,包括:非实时环境、实时环境、以及Intewell环境。In an optional implementation of the embodiment of the present invention, the configurable operating environment includes: a non-real-time environment, a real-time environment, and an Intewell environment.

步骤230、在各操作环境对应的区域中,获取在资源展示界面选中的目标硬件,确定并展示目标硬件对应的硬件分配信息。Step 230: In the area corresponding to each operating environment, the target hardware selected in the resource display interface is obtained, and the hardware allocation information corresponding to the target hardware is determined and displayed.

其中,用户可以在资源展示界面中选择目标硬件通过拖拽或者连线等方式,在虚拟机配置界面的操作环境对应的区域中展示目标硬件。目标硬件在操作环境区域展示时,在虚拟机配置界面中可以提示用户设置目标硬件对应的硬件分配信息。硬件分配信息为目标硬件分配至各操作环境中的信息。例如,CPU、内存以及硬盘等在操作环境中具体分配的资源大小。在虚拟机配置界面中,可以具体展示分配至各个操作环境的资源以及资源大小,可以便于用户直观了解硬件资源在操作环境中的分配情况。Among them, the user can select the target hardware in the resource display interface and display the target hardware in the area corresponding to the operating environment of the virtual machine configuration interface by dragging or connecting. When the target hardware is displayed in the operating environment area, the user can be prompted to set the hardware allocation information corresponding to the target hardware in the virtual machine configuration interface. The hardware allocation information is the information allocated to the target hardware in each operating environment. For example, the specific resource size of the CPU, memory, and hard disk in the operating environment. In the virtual machine configuration interface, the resources allocated to each operating environment and the resource size can be specifically displayed, which can facilitate users to intuitively understand the allocation of hardware resources in the operating environment.

在上述实施方式的基础上,可选的,在在各操作环境对应的区域中,获取在资源展示界面选中的目标硬件,确定并展示目标硬件对应的硬件分配信息时,还包括:获取在各操作环境对应区域中的目标硬件以及对应的硬件分配信息;根据各操作环境对应区域中目标硬件对应的硬件分配信息,在资源展示界面中调整目标硬件的已分配资源的展示方式。On the basis of the above implementation, optionally, in the area corresponding to each operating environment, obtaining the target hardware selected in the resource display interface, determining and displaying the hardware allocation information corresponding to the target hardware, it also includes: obtaining the target hardware and the corresponding hardware allocation information in the area corresponding to each operating environment; and adjusting the display method of the allocated resources of the target hardware in the resource display interface according to the hardware allocation information corresponding to the target hardware in the area corresponding to each operating environment.

其中,调整目标硬件的已分配资源的展示方式可以是在资源展示界面中将已分配的硬件资源与未分配的硬件资源进行区分显示。例如,在资源展示界面中,可以将已在各操作环境对应的区域中展示的硬件资源的图标变更颜色、或者图标框变更线条等。具体的,在不同操作环境对应区域中展示的硬件资源的展示方式可以相同或者不同。The display method of the allocated resources of the adjusted target hardware may be to distinguish the allocated hardware resources from the unallocated hardware resources in the resource display interface. For example, in the resource display interface, the color of the icons of the hardware resources displayed in the areas corresponding to each operating environment may be changed, or the lines of the icon frames may be changed. Specifically, the display methods of the hardware resources displayed in the areas corresponding to different operating environments may be the same or different.

步骤240、在各操作环境对应的区域中,获取在资源展示界面选中的目标虚拟机,确定并展示目标虚拟机对应的虚拟机分配信息。Step 240: In the area corresponding to each operating environment, the target virtual machine selected in the resource display interface is obtained, and the virtual machine allocation information corresponding to the target virtual machine is determined and displayed.

用户可以在资源展示界面中选择目标虚拟机通过拖拽、连线或者复制粘贴等方式,在虚拟机配置界面的操作环境对应的区域中展示目标虚拟机。目标虚拟机在操作环境区域展示时,在虚拟机配置界面中可以提示用户设置目标虚拟机对应的虚拟机分配信息。虚拟机分配信息为目标虚拟机所处操作环境中已存在硬件,分配至目标虚拟机的信息。与目标虚拟机所处相同操作环境区域中的CPU、内存以及硬盘等具体分配至目标虚拟机的资源大小。在虚拟机配置界面中,可以具体展示分配至各个虚拟机的资源以及资源大小,可以便于用户直观了解虚拟机所具有的硬件资源情况。The user can select the target virtual machine in the resource display interface and display the target virtual machine in the area corresponding to the operating environment of the virtual machine configuration interface by dragging, connecting, or copying and pasting. When the target virtual machine is displayed in the operating environment area, the user can be prompted to set the virtual machine allocation information corresponding to the target virtual machine in the virtual machine configuration interface. The virtual machine allocation information is the information allocated to the target virtual machine based on the existing hardware in the operating environment where the target virtual machine is located. The size of resources such as CPU, memory, and hard disk in the same operating environment area as the target virtual machine is specifically allocated to the target virtual machine. In the virtual machine configuration interface, the resources allocated to each virtual machine and the resource size can be specifically displayed, which can help users intuitively understand the hardware resources of the virtual machine.

在虚拟机配置界面中,可以通过新建或者复制粘贴等方式新增虚拟机。复制粘贴虚拟机方式,可以同步粘贴虚拟机对应的硬件资源,并提示用户对硬件资源进行修改,以使前后两个虚拟机所具有的资源不冲突。In the virtual machine configuration interface, you can create a new virtual machine or copy and paste it. Copying and pasting the virtual machine method can synchronously paste the hardware resources corresponding to the virtual machine and prompt the user to modify the hardware resources so that the resources of the previous and next virtual machines do not conflict.

步骤250、根据目标硬件对应的硬件分配信息,将目标硬件配置在所处区域对应的操作环境中。Step 250: According to the hardware allocation information corresponding to the target hardware, the target hardware is configured in the operating environment corresponding to the region.

其中,目标硬件在操作环境中的分配可以如图1c所示,可以将串口4、显卡1、USB控制器1、USB控制器2、22G内存和CPU的1-3核分配至非实时环境。如图1c所示,可以将串口1-3、网卡2-4、4G内存以及CPU的4-8核分配至实时环境。如图1c所示,可以将6G内存和网卡1分配至Intewell环境。网卡1可以以虚拟网卡的形式共享给实时系统和非实时系统同时使用。Among them, the distribution of the target hardware in the operating environment can be shown in Figure 1c, and serial port 4, graphics card 1, USB controller 1, USB controller 2, 22G memory and CPU cores 1-3 can be allocated to the non-real-time environment. As shown in Figure 1c, serial ports 1-3, network cards 2-4, 4G memory and CPU cores 4-8 can be allocated to the real-time environment. As shown in Figure 1c, 6G memory and network card 1 can be allocated to the Intewell environment. Network card 1 can be shared as a virtual network card for real-time and non-real-time systems to use simultaneously.

步骤260、将目标虚拟机配置在所处区域对应的操作环境中,并根据虚拟机对应的虚拟机分配信息,建立目标虚拟机与目标硬件之间的连接关系,得到虚拟机配置图。Step 260: configure the target virtual machine in the operating environment corresponding to the region, and establish a connection relationship between the target virtual machine and the target hardware according to the virtual machine allocation information corresponding to the virtual machine to obtain a virtual machine configuration diagram.

其中,如图1d所示,可以将Windows10以及Ubuntu分配至非实时环境,将RA和VM分配至实时环境。其中,实时环境中可以存在9个VM。如图1d所示,可以根据虚拟机分配信息,在虚拟机以及硬件资源之间建立连接线,表明硬件资源在虚拟机的分配情况。As shown in FIG1d, Windows 10 and Ubuntu can be allocated to the non-real-time environment, and RA and VM can be allocated to the real-time environment. There can be 9 VMs in the real-time environment. As shown in FIG1d, a connection line can be established between the virtual machine and the hardware resources according to the virtual machine allocation information, indicating the allocation of hardware resources in the virtual machine.

例如,如图1d所示,可以将CPU的1-2核分配至Windows10,CPU的3核分配至Ubuntu,CPU的4核分配至RA和VM9,CPU的5核分配至VM8和VM7,CPU的6核分配至VM6和VM5,CPU的7核分配至VM4和VM3,CPU的8核分配至VM2和VM1。14G内存分配给Windows10,8G内存分配给Ubuntu,VM1至VM9以及RA各分配400M内存。500G硬盘分配给Windows10,400G内存分配给Ubuntu,VM1至VM9以及RA各分配500M硬盘。可以通过纵向线在CPU、内存以及硬盘的图标中切分,展示具体分配至各虚拟机的情况。如图1d所示,该纵向线与各虚拟机之间的分割线可以是对齐的。For example, as shown in Figure 1d, CPU cores 1-2 can be allocated to Windows 10, CPU cores 3 to Ubuntu, CPU cores 4 to RA and VM9, CPU cores 5 to VM8 and VM7, CPU cores 6 to VM6 and VM5, CPU cores 7 to VM4 and VM3, and CPU cores 8 to VM2 and VM1. 14G memory is allocated to Windows 10, 8G memory is allocated to Ubuntu, and VM1 to VM9 and RA are each allocated 400M memory. 500G hard disk is allocated to Windows 10, 400G memory is allocated to Ubuntu, and VM1 to VM9 and RA are each allocated 500M hard disk. The icons of CPU, memory, and hard disk can be divided by vertical lines to show the specific allocation to each virtual machine. As shown in Figure 1d, the vertical line can be aligned with the dividing line between each virtual machine.

如图1d所示,可以将显卡1、串口4、USB控制器1透传给Windows10,USB控制器2透传给Ubuntu;显卡1虚拟化给Ubuntu,Intewell操作环境非实时虚拟化给Windows10和Ubuntu。实时环境中网卡一般支持分配给7个虚拟机共用。例如,网卡2透传给VM1至VM7,网卡3透传给VM1至VM4、VM 8及VM9,网卡4透传给VM5至VM9。串口1透传给VM9,串口2透传给VM6,串口3透传给VM3。Intewell操作环境实时虚拟化给VM1至VM9及RA。As shown in Figure 1d, the graphics card 1, serial port 4, and USB controller 1 can be transparently transmitted to Windows 10, and the USB controller 2 can be transparently transmitted to Ubuntu; the graphics card 1 is virtualized to Ubuntu, and the Intewell operating environment is non-real-time virtualized to Windows 10 and Ubuntu. In the real-time environment, the network card generally supports being allocated to 7 virtual machines for sharing. For example, the network card 2 is transparently transmitted to VM1 to VM7, the network card 3 is transparently transmitted to VM1 to VM4, VM 8 and VM9, and the network card 4 is transparently transmitted to VM5 to VM9. The serial port 1 is transparently transmitted to VM9, the serial port 2 is transparently transmitted to VM6, and the serial port 3 is transparently transmitted to VM3. The Intewell operating environment is virtualized in real time to VM1 to VM9 and RA.

如图1d所示,目标虚拟机与目标硬件之间的连接关系可以通过不同线型表示不同分配含义。在本发明实施例的一个可选实施方式中,根据虚拟机对应的虚拟机分配信息,建立目标虚拟机与目标硬件之间的连接关系,包括:根据虚拟机分配信息中的硬件分配方式,确定虚拟机与目标硬件之间连接线的第一形状信息;根据虚拟机分配信息中的硬件种类,确定虚拟机与目标硬件之间连接线的第二形状信息;根据第一形状信息以及第二形状信息,建立目标虚拟机与目标硬件之间的连接关系。As shown in Figure 1d, the connection relationship between the target virtual machine and the target hardware can represent different allocation meanings through different line types. In an optional implementation of the embodiment of the present invention, the connection relationship between the target virtual machine and the target hardware is established according to the virtual machine allocation information corresponding to the virtual machine, including: determining the first shape information of the connection line between the virtual machine and the target hardware according to the hardware allocation method in the virtual machine allocation information; determining the second shape information of the connection line between the virtual machine and the target hardware according to the hardware type in the virtual machine allocation information; and establishing the connection relationship between the target virtual machine and the target hardware according to the first shape information and the second shape information.

其中,第一形状信息可以是线型,如实线或虚线等。示例性的,实线可以代表透传。虚线可以代表透传以外的分配方式,如虚拟化。第二形状信息可以是颜色。示例性的,网卡2可以采用黑色线,网卡3可以采用绿色线,网卡4可以采用黄色线。通过不同颜色以及线型建立目标虚拟机与目标硬件之间的连接关系,可以使用户清晰地知晓虚拟机以及硬件资源之间的分配关系。The first shape information may be a line type, such as a solid line or a dotted line. For example, a solid line may represent transparent transmission. A dotted line may represent an allocation method other than transparent transmission, such as virtualization. The second shape information may be a color. For example, a black line may be used for network card 2, a green line may be used for network card 3, and a yellow line may be used for network card 4. By establishing a connection relationship between a target virtual machine and target hardware through different colors and line types, a user can clearly know the allocation relationship between virtual machines and hardware resources.

步骤270、根据虚拟机配置图进行操作系统虚拟机配置。Step 270: configure the operating system virtual machine according to the virtual machine configuration diagram.

本发明实施例的技术方案,通过获取可配置的虚拟机,以及各虚拟机可配置的硬件资源,并将各虚拟机以及各硬件资源在资源展示界面中进行展示;在虚拟机配置界面中,展示虚拟机的可配置操作环境;在各操作环境对应的区域中,获取在资源展示界面选中的目标硬件,确定并展示目标硬件对应的硬件分配信息;在各操作环境对应的区域中,获取在资源展示界面选中的目标虚拟机,确定并展示目标虚拟机对应的虚拟机分配信息;根据目标硬件对应的硬件分配信息,将目标硬件配置在所处区域对应的操作环境中;将目标虚拟机配置在所处区域对应的操作环境中,并根据虚拟机对应的虚拟机分配信息,建立目标虚拟机与目标硬件之间的连接关系,得到虚拟机配置图;根据虚拟机配置图进行操作系统虚拟机配置,解决了操作系统虚拟机的配置问题,通过设置资源展示界面可以清晰明了地展示虚拟机配置时的可用资源;通过在资源展示界面中选中可配置的资源并展示至虚拟机配置界面,可以可视化地实现操作系统虚拟机配置;通过上述可视化的配置,可以将现有技术中繁多的参数设置改进为资源的可视化操作,将虚拟机的配置可视化、生动化,从而降低虚拟机配置难度,提高配置效率。此外,在虚拟机配置界面中,可以具体展示分配至各个虚拟机的资源以及资源大小,可以便于用户直观了解虚拟机所具有的硬件资源情况;通过不同颜色以及线型建立目标虚拟机与目标硬件之间的连接关系,可以使用户清晰地知晓虚拟机以及硬件资源之间的分配关系。The technical solution of the embodiment of the present invention obtains configurable virtual machines and configurable hardware resources of each virtual machine, and displays each virtual machine and each hardware resource in a resource display interface; In the surface, the configurable operating environment of the virtual machine is displayed; in the area corresponding to each operating environment, the target hardware selected in the resource display interface is obtained, and the hardware allocation information corresponding to the target hardware is determined and displayed; in the area corresponding to each operating environment, the target virtual machine selected in the resource display interface is obtained, and the virtual machine allocation information corresponding to the target virtual machine is determined and displayed; according to the hardware allocation information corresponding to the target hardware, the target hardware is configured in the operating environment corresponding to the area; the target virtual machine is configured in the operating environment corresponding to the area, and according to the virtual machine allocation information corresponding to the virtual machine, a connection relationship between the target virtual machine and the target hardware is established to obtain a virtual machine configuration diagram; the operating system virtual machine is configured according to the virtual machine configuration diagram, which solves the configuration problem of the operating system virtual machine, and the available resources when the virtual machine is configured can be clearly displayed by setting the resource display interface; the operating system virtual machine configuration can be visually realized by selecting configurable resources in the resource display interface and displaying them to the virtual machine configuration interface; through the above-mentioned visual configuration, the numerous parameter settings in the existing technology can be improved into visual operations of resources, and the configuration of the virtual machine can be visualized and vivid, thereby reducing the difficulty of virtual machine configuration and improving configuration efficiency. In addition, in the virtual machine configuration interface, the resources allocated to each virtual machine and the resource size can be specifically displayed, which can help users intuitively understand the hardware resources of the virtual machine; by establishing a connection relationship between the target virtual machine and the target hardware through different colors and line types, users can clearly know the allocation relationship between the virtual machine and the hardware resources.

本发明实施例的技术方案中,所涉及资源信息的获取,存储和应用等,均符合相关法律法规的规定,且不违背公序良俗。In the technical solution of the embodiment of the present invention, the acquisition, storage and application of the resource information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

实施例三Embodiment 3

图3是根据本发明实施例三提供的一种操作系统虚拟机的配置装置的结构示意图。如图3所示,该装置包括:资源展示模块310,虚拟机配置展示模块320和虚拟机配置模块330。其中:FIG3 is a schematic diagram of the structure of a configuration device for an operating system virtual machine provided according to Embodiment 3 of the present invention. As shown in FIG3 , the device includes: a resource display module 310, a virtual machine configuration display module 320 and a virtual machine configuration module 330. Among them:

资源展示模块310,用于获取可配置的虚拟机,以及各虚拟机可配置的硬件资源,并将各虚拟机以及各硬件资源在资源展示界面中进行展示;The resource display module 310 is used to obtain configurable virtual machines and configurable hardware resources of each virtual machine, and display each virtual machine and each hardware resource in a resource display interface;

虚拟机配置展示模块320,用于获取在资源展示界面中选中的目标虚拟机以及目标硬件,在虚拟机配置界面中,相应的展示目标虚拟机以及目标硬件,并展示虚拟机的可配置操作环境;The virtual machine configuration display module 320 is used to obtain the target virtual machine and target hardware selected in the resource display interface, and display the target virtual machine and target hardware in the virtual machine configuration interface accordingly, and display the configurable operating environment of the virtual machine;

虚拟机配置模块330,用于在虚拟机配置界面中,将目标虚拟机、目标硬件、以及对应的操作环境进行关联配置,得到虚拟机配置图;并根据虚拟机配置图进行操作系统虚拟机配置。The virtual machine configuration module 330 is used to associate and configure the target virtual machine, target hardware, and the corresponding operating environment in the virtual machine configuration interface to obtain a virtual machine configuration diagram; and perform operating system virtual machine configuration according to the virtual machine configuration diagram.

可选的,资源展示模块310,包括:Optionally, the resource display module 310 includes:

资源获取单元,用于获取可配置的虚拟机,各虚拟机可配置的CPU、内存、硬盘、I/O外设、以及独立硬件;A resource acquisition unit, used to acquire configurable virtual machines, each virtual machine's configurable CPU, memory, hard disk, I/O peripherals, and independent hardware;

资源展示界面构建单元,用于根据虚拟机的种类、CPU的核数、内存的容量、硬盘的容量、I/O外设的种类和数量、以及独立硬件的种类和数量,构建生成资源展示界面;A resource display interface construction unit is used to construct and generate a resource display interface according to the type of virtual machine, the number of CPU cores, the capacity of memory, the capacity of hard disk, the type and quantity of I/O peripherals, and the type and quantity of independent hardware;

资源展示单元,用于将各虚拟机以及各硬件资源在资源展示界面中进行展示。The resource display unit is used to display each virtual machine and each hardware resource in the resource display interface.

可选的,虚拟机配置展示模块320,包括:Optionally, the virtual machine configuration display module 320 includes:

操作环境展示单元,用于在虚拟机配置界面中,展示虚拟机的可配置操作环境;An operating environment display unit, used to display the configurable operating environment of the virtual machine in the virtual machine configuration interface;

硬件展示单元,用于在各操作环境对应的区域中,获取在资源展示界面选中的目标硬件,确定并展示目标硬件对应的硬件分配信息;The hardware display unit is used to obtain the target hardware selected in the resource display interface in the area corresponding to each operating environment, and determine and display the hardware allocation information corresponding to the target hardware;

虚拟机展示单元,用于在各操作环境对应的区域中,获取在资源展示界面选中的目标虚拟机,确定并展示目标虚拟机对应的虚拟机分配信息;A virtual machine display unit, used to obtain the target virtual machine selected in the resource display interface in the area corresponding to each operating environment, and determine and display the virtual machine allocation information corresponding to the target virtual machine;

其中,硬件分配信息为目标硬件分配至各操作环境中的信息;虚拟机分配信息为目标虚拟机所处操作环境中已存在硬件,分配至目标虚拟机的信息。The hardware allocation information is information about the target hardware being allocated to each operating environment; and the virtual machine allocation information is information about the existing hardware in the operating environment where the target virtual machine is located being allocated to the target virtual machine.

可选的,虚拟机配置模块330,包括:Optionally, the virtual machine configuration module 330 includes:

硬件配置单元,用于根据目标硬件对应的硬件分配信息,将目标硬件配置在所处区域对应的操作环境中;A hardware configuration unit, configured to configure the target hardware in an operating environment corresponding to the region according to hardware allocation information corresponding to the target hardware;

虚拟机配置图建立单元,用于将目标虚拟机配置在所处区域对应的操作环境中,并根据虚拟机对应的虚拟机分配信息,建立目标虚拟机与目标硬件之间的连接关系,得到虚拟机配置图。The virtual machine configuration diagram establishing unit is used to configure the target virtual machine in the operating environment corresponding to the area where it is located, and establish a connection relationship between the target virtual machine and the target hardware according to the virtual machine allocation information corresponding to the virtual machine to obtain the virtual machine configuration diagram.

可选的,虚拟机配置图建立单元,包括:Optionally, the virtual machine configuration diagram establishing unit includes:

第一形状信息确定子单元,用于根据虚拟机分配信息中的硬件分配方式,确定虚拟机与目标硬件之间连接线的第一形状信息;A first shape information determining subunit, configured to determine first shape information of a connection line between the virtual machine and the target hardware according to a hardware allocation mode in the virtual machine allocation information;

第二形状信息确定子单元,用于根据虚拟机分配信息中的硬件种类,确定虚拟机与目标硬件之间连接线的第二形状信息;A second shape information determination subunit, configured to determine second shape information of a connection line between the virtual machine and the target hardware according to the hardware type in the virtual machine allocation information;

连接关系建立子单元,用于根据第一形状信息以及第二形状信息,建立目标虚拟机与目标硬件之间的连接关系。The connection relationship establishing subunit is used to establish a connection relationship between the target virtual machine and the target hardware according to the first shape information and the second shape information.

可选的,该装置,还包括:Optionally, the device further includes:

区域资源获取模块,用于在在各操作环境对应的区域中,获取在资源展示界面选中的目标硬件,确定并展示目标硬件对应的硬件分配信息时,获取在各操作环境对应的区域中的目标硬件以及对应的硬件分配信息;A regional resource acquisition module is used to acquire the target hardware selected in the resource display interface in the region corresponding to each operating environment, and when determining and displaying the hardware allocation information corresponding to the target hardware, acquire the target hardware and the corresponding hardware allocation information in the region corresponding to each operating environment;

展示方式调整模块,用于根据各操作环境对应区域中所述目标硬件对应的硬件分配信息,在所述资源展示界面中调整所述目标硬件的已分配资源的展示方式。The display mode adjustment module is used to adjust the display mode of the allocated resources of the target hardware in the resource display interface according to the hardware allocation information corresponding to the target hardware in the corresponding area of each operating environment.

可选的,可配置操作环境,包括:非实时环境、实时环境、以及Intewell环境。Optionally, the operating environment can be configured, including: non-real-time environment, real-time environment, and Intewell environment.

本发明实施例所提供的操作系统虚拟机的配置装置可执行本发明任意实施例所提供的操作系统虚拟机的配置方法,具备执行方法相应的功能模块和有益效果。The operating system virtual machine configuration device provided in the embodiment of the present invention can execute the operating system virtual machine configuration method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

实施例四Embodiment 4

图4示出了可以用来实施本发明的实施例的电子设备10的结构示意图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备(如头盔、眼镜、手表等)和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本发明的实现。FIG4 shows a block diagram of an electronic device 10 that can be used to implement an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and/or required herein.

如图4所示,电子设备10包括至少一个处理器11,以及与至少一个处理器11通信连接的存储器,如只读存储器(ROM)12、随机访问存储器(RAM)13等,其中,存储器存储有可被至少一个处理器执行的计算机程序,处理器11可以根据存储在只读存储器(ROM)12中的计算机程序或者从存储单元18加载到随机访问存储器(RAM)13中的计算机程序,来执行各种适当的动作和处理。在RAM 13中,还可存储电子设备10操作所需的各种程序和数据。处理器11、ROM 12以及RAM 13通过总线14彼此相连。输入/输出(I/O)接口15也连接至总线14。As shown in FIG. 4 , the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11 in communication, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc. In the memory, a computer program that can be executed by at least one processor is stored, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, ROM 12 and RAM 13 are connected to each other through a bus 14. An input/output (I/O) interface 15 is also connected to the bus 14.

电子设备10中的多个部件连接至I/O接口15,包括:输入单元16,例如键盘、鼠标等;输出单元17,例如各种类型的显示器、扬声器等;存储单元18,例如磁盘、光盘等;以及通信单元19,例如网卡、调制解调器、无线通信收发机等。通信单元19允许电子设备10通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.

处理器11可以是各种具有处理和计算能力的通用和/或专用处理组件。处理器11的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的处理器、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。处理器11执行上文所描述的各个方法和处理,例如操作系统虚拟机的配置方法。The processor 11 may be a variety of general and/or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a configuration method for an operating system virtual machine.

在一些实施例中,操作系统虚拟机的配置方法可被实现为计算机程序,其被有形地包含于计算机可读存储介质,例如存储单元18。在一些实施例中,计算机程序的部分或者全部可以经由ROM 12和/或通信单元19而被载入和/或安装到电子设备10上。当计算机程序加载到RAM 13并由处理器11执行时,可以执行上文描述的操作系统虚拟机的配置方法的一个或多个步骤。备选地,在其他实施例中,处理器11可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行操作系统虚拟机的配置方法。In some embodiments, the configuration method of the operating system virtual machine may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed on the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the configuration method of the operating system virtual machine described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the configuration method of the operating system virtual machine by any other appropriate means (e.g., by means of firmware).

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and/or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

用于实施本发明的方法的计算机程序可以采用一个或多个编程语言的任何组合来编写。这些计算机程序可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器,使得计算机程序当由处理器执行时使流程图和/或框图中所规定的功能/操作被实施。计算机程序可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions/operations specified in the flow chart and/or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

在本发明的上下文中,计算机可读存储介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的计算机程序。计算机可读存储介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。备选地,计算机可读存储介质可以是机器可读信号介质。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present invention, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. Computer readable storage media may include but are not limited to electronic, magnetic, optical, electromagnetic, or other media. , infrared, or semiconductor systems, devices or apparatuses, or any suitable combination of the above. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of machine readable storage media may include electrical connections based on one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROMs), optical storage devices, magnetic storage devices, or any suitable combination of the above.

为了提供与用户的交互,可以在电子设备上实施此处描述的系统和技术,该电子设备具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给电子设备。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)、区块链网络和互联网。The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

计算系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务中,存在的管理难度大,业务扩展性弱的缺陷。A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发明中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本发明的技术方案所期望的结果,本文在此不进行限制。It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

上述具体实施方式,并不构成对本发明保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本发明的精神和原则之内所作的修改、等同替换和改进等,均应包含在本发明保护范围之内。The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

Translated fromChinese
一种操作系统虚拟机的配置方法,其特征在于,该方法,包括:A method for configuring an operating system virtual machine, characterized in that the method comprises:获取可配置的虚拟机,以及各虚拟机可配置的硬件资源,并将各虚拟机以及各硬件资源在资源展示界面中进行展示;Acquire configurable virtual machines and configurable hardware resources of each virtual machine, and display each virtual machine and each hardware resource in a resource display interface;获取在所述资源展示界面中选中的目标虚拟机以及目标硬件,在虚拟机配置界面中,相应的展示所述目标虚拟机以及目标硬件,并展示虚拟机的可配置操作环境;Acquire the target virtual machine and target hardware selected in the resource display interface, and display the target virtual machine and target hardware accordingly in the virtual machine configuration interface, and display the configurable operating environment of the virtual machine;在虚拟机配置界面中,将所述目标虚拟机、所述目标硬件、以及对应的操作环境进行关联配置,得到虚拟机配置图;并根据所述虚拟机配置图进行操作系统虚拟机配置。In the virtual machine configuration interface, the target virtual machine, the target hardware, and the corresponding operating environment are associated and configured to obtain a virtual machine configuration diagram; and the operating system virtual machine configuration is performed according to the virtual machine configuration diagram.根据权利要求1所述的方法,其特征在于,获取可配置的虚拟机,以及各虚拟机可配置的硬件资源,并将各虚拟机以及各硬件资源在资源展示界面中进行展示,包括:The method according to claim 1 is characterized in that obtaining configurable virtual machines and configurable hardware resources of each virtual machine, and displaying each virtual machine and each hardware resource in a resource display interface comprises:获取可配置的虚拟机,各虚拟机可配置的CPU、内存、硬盘、I/O外设、以及独立硬件;Get configurable virtual machines, each virtual machine's configurable CPU, memory, hard disk, I/O peripherals, and independent hardware;根据虚拟机的种类、CPU的核数、内存的容量、硬盘的容量、I/O外设的种类和数量、以及独立硬件的种类和数量,构建生成资源展示界面;Build a resource display interface based on the type of virtual machine, number of CPU cores, memory capacity, hard disk capacity, type and number of I/O peripherals, and type and number of independent hardware;将各虚拟机以及各硬件资源在资源展示界面中进行展示。Each virtual machine and each hardware resource is displayed in the resource display interface.根据权利要求1所述的方法,其特征在于,获取在所述资源展示界面中选中的目标虚拟机以及目标硬件,在虚拟机配置界面中,相应的展示所述目标虚拟机以及目标硬件,并展示虚拟机的可配置操作环境,包括:The method according to claim 1 is characterized in that obtaining the target virtual machine and target hardware selected in the resource display interface, and correspondingly displaying the target virtual machine and target hardware in the virtual machine configuration interface, and displaying the configurable operating environment of the virtual machine, comprises:在虚拟机配置界面中,展示虚拟机的可配置操作环境;In the virtual machine configuration interface, the configurable operating environment of the virtual machine is displayed;在各操作环境对应的区域中,获取在所述资源展示界面选中的目标硬件,确定并展示所述目标硬件对应的硬件分配信息;In the area corresponding to each operating environment, the target hardware selected in the resource display interface is obtained, and the hardware allocation information corresponding to the target hardware is determined and displayed;在各操作环境对应的区域中,获取在所述资源展示界面选中的目标虚拟机,确定并展示所述目标虚拟机对应的虚拟机分配信息;In the area corresponding to each operating environment, obtaining the target virtual machine selected in the resource display interface, and determining and displaying the virtual machine allocation information corresponding to the target virtual machine;其中,所述硬件分配信息为所述目标硬件分配至各操作环境中的信息;所述虚拟机分配信息为所述目标虚拟机所处操作环境中已存在硬件,分配至目标虚拟机的信息。The hardware allocation information is information about the target hardware being allocated to each operating environment; and the virtual machine allocation information is information about the existing hardware in the operating environment where the target virtual machine is located being allocated to the target virtual machine.根据权利要求3所述的方法,其特征在于,在虚拟机配置界面中,将所述目标虚拟机、所述目标硬件、以及对应的操作环境进行关联配置,得到虚拟机配置图,包括:The method according to claim 3 is characterized in that, in a virtual machine configuration interface, the target virtual machine, the target hardware, and the corresponding operating environment are associated and configured to obtain a virtual machine configuration diagram, comprising:根据所述目标硬件对应的所述硬件分配信息,将所述目标硬件配置在所处区域对应的操作环境中;According to the hardware allocation information corresponding to the target hardware, the target hardware is configured in an operating environment corresponding to the region;将所述目标虚拟机配置在所处区域对应的操作环境中,并根据所述虚拟机对应的虚拟机分配信息,建立所述目标虚拟机与所述目标硬件之间的连接关系,得到虚拟机配置图。The target virtual machine is configured in an operating environment corresponding to the region, and a connection relationship between the target virtual machine and the target hardware is established according to virtual machine allocation information corresponding to the virtual machine to obtain a virtual machine configuration diagram.根据权利要求4所述的方法,其特征在于,根据所述虚拟机对应的虚拟机分配信息,建立所述目标虚拟机与所述目标硬件之间的连接关系,包括:The method according to claim 4, characterized in that establishing a connection relationship between the target virtual machine and the target hardware according to the virtual machine allocation information corresponding to the virtual machine comprises:根据所述虚拟机分配信息中的硬件分配方式,确定所述虚拟机与所述目标硬件之间连接线的第一形状信息;Determine the hardware allocation mode between the virtual machine and the target hardware according to the hardware allocation mode in the virtual machine allocation information. The first shape information of the connecting line;根据所述虚拟机分配信息中的硬件种类,确定所述虚拟机与所述目标硬件之间连接线的第二形状信息;Determining second shape information of a connection line between the virtual machine and the target hardware according to the hardware type in the virtual machine allocation information;根据所述第一形状信息以及所述第二形状信息,建立所述目标虚拟机与所述目标硬件之间的连接关系。A connection relationship between the target virtual machine and the target hardware is established according to the first shape information and the second shape information.根据权利要求3所述的方法,其特征在于,在在各操作环境对应的区域中,获取在所述资源展示界面选中的目标硬件,确定并展示所述目标硬件对应的硬件分配信息时,还包括:The method according to claim 3 is characterized in that, in the area corresponding to each operating environment, when acquiring the target hardware selected in the resource display interface and determining and displaying the hardware allocation information corresponding to the target hardware, it also includes:获取在各操作环境对应区域中的目标硬件以及对应的硬件分配信息;Obtaining target hardware and corresponding hardware allocation information in corresponding areas of each operating environment;根据各操作环境对应区域中所述目标硬件对应的硬件分配信息,在所述资源展示界面中调整所述目标硬件的已分配资源的展示方式。According to the hardware allocation information corresponding to the target hardware in the area corresponding to each operating environment, the display mode of the allocated resources of the target hardware is adjusted in the resource display interface.一种操作系统虚拟机的配置装置,其特征在于,该装置,包括:A configuration device for an operating system virtual machine, characterized in that the device comprises:资源展示模块,用于获取可配置的虚拟机,以及各虚拟机可配置的硬件资源,并将各虚拟机以及各硬件资源在资源展示界面中进行展示;The resource display module is used to obtain configurable virtual machines and configurable hardware resources of each virtual machine, and display each virtual machine and each hardware resource in the resource display interface;虚拟机配置展示模块,用于获取在所述资源展示界面中选中的目标虚拟机以及目标硬件,在虚拟机配置界面中,相应的展示所述目标虚拟机以及目标硬件,并展示虚拟机的可配置操作环境;A virtual machine configuration display module, used to obtain the target virtual machine and target hardware selected in the resource display interface, and display the target virtual machine and target hardware accordingly in the virtual machine configuration interface, and display the configurable operating environment of the virtual machine;虚拟机配置模块,用于在虚拟机配置界面中,将所述目标虚拟机、所述目标硬件、以及对应的操作环境进行关联配置,得到虚拟机配置图;并根据所述虚拟机配置图进行操作系统虚拟机配置。The virtual machine configuration module is used to associate and configure the target virtual machine, the target hardware, and the corresponding operating environment in the virtual machine configuration interface to obtain a virtual machine configuration diagram; and perform operating system virtual machine configuration according to the virtual machine configuration diagram.根据权利要求7所述的装置,其特征在于,资源展示模块,包括:The device according to claim 7, characterized in that the resource display module comprises:资源获取单元,用于获取可配置的虚拟机,各虚拟机可配置的CPU、内存、硬盘、I/O外设、以及独立硬件;A resource acquisition unit, used to acquire configurable virtual machines, each virtual machine's configurable CPU, memory, hard disk, I/O peripherals, and independent hardware;资源展示界面构建单元,用于根据虚拟机的种类、CPU的核数、内存的容量、硬盘的容量、I/O外设的种类和数量、以及独立硬件的种类和数量,构建生成资源展示界面;A resource display interface construction unit is used to construct and generate a resource display interface according to the type of virtual machine, the number of CPU cores, the capacity of memory, the capacity of hard disk, the type and quantity of I/O peripherals, and the type and quantity of independent hardware;资源展示单元,用于将各虚拟机以及各硬件资源在资源展示界面中进行展示。The resource display unit is used to display each virtual machine and each hardware resource in the resource display interface.一种电子设备,其特征在于,所述电子设备包括:An electronic device, characterized in that the electronic device comprises:至少一个处理器;以及at least one processor; and与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-6中任一项所述的操作系统虚拟机的配置方法。The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for configuring an operating system virtual machine according to any one of claims 1 to 6.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现权利要求1-6中任一项所述的操作系统虚拟机的配置方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the configuration method of an operating system virtual machine according to any one of claims 1 to 6 when executed.
PCT/CN2023/1371212022-12-192023-12-07Operating system virtual machine configuration method and apparatus, device, and storage mediumCeasedWO2024131554A1 (en)

Applications Claiming Priority (2)

Application NumberPriority DateFiling DateTitle
CN202211635165.7ACN116302309A (en)2022-12-192022-12-19 Configuration method, device, equipment and storage medium of operating system virtual machine
CN202211635165.72022-12-19

Publications (1)

Publication NumberPublication Date
WO2024131554A1true WO2024131554A1 (en)2024-06-27

Family

ID=86780295

Family Applications (1)

Application NumberTitlePriority DateFiling Date
PCT/CN2023/137121CeasedWO2024131554A1 (en)2022-12-192023-12-07Operating system virtual machine configuration method and apparatus, device, and storage medium

Country Status (2)

CountryLink
CN (1)CN116302309A (en)
WO (1)WO2024131554A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116302309A (en)*2022-12-192023-06-23北京东土科技股份有限公司 Configuration method, device, equipment and storage medium of operating system virtual machine
CN117009032B (en)*2023-07-042024-12-03中科驭数(北京)科技有限公司Virtualized device configuration method, device, equipment and medium
CN117873735B (en)*2024-03-112024-05-28湖南马栏山视频先进技术研究院有限公司GPU scheduling system under virtualized environment

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20060265711A1 (en)*2005-05-202006-11-23International Business Machines CorporationMethods and apparatus for implementing an integrated user interface for managing multiple virtual machines operative in a computing system
US20070089111A1 (en)*2004-12-172007-04-19Robinson Scott HVirtual environment manager
CN104137074A (en)*2012-02-012014-11-05摩托罗拉移动公司 Optimization of resource usage in multi-environment computing systems
US9183059B1 (en)*2012-06-012015-11-10Wyse Technology L.L.C.VM client administrative interface for virtual machine instantiation allows a user to select from a subset of predetermined available resources assigned to the user
CN116302309A (en)*2022-12-192023-06-23北京东土科技股份有限公司 Configuration method, device, equipment and storage medium of operating system virtual machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20070089111A1 (en)*2004-12-172007-04-19Robinson Scott HVirtual environment manager
US20060265711A1 (en)*2005-05-202006-11-23International Business Machines CorporationMethods and apparatus for implementing an integrated user interface for managing multiple virtual machines operative in a computing system
CN104137074A (en)*2012-02-012014-11-05摩托罗拉移动公司 Optimization of resource usage in multi-environment computing systems
US9183059B1 (en)*2012-06-012015-11-10Wyse Technology L.L.C.VM client administrative interface for virtual machine instantiation allows a user to select from a subset of predetermined available resources assigned to the user
CN116302309A (en)*2022-12-192023-06-23北京东土科技股份有限公司 Configuration method, device, equipment and storage medium of operating system virtual machine

Also Published As

Publication numberPublication date
CN116302309A (en)2023-06-23

Similar Documents

PublicationPublication DateTitle
WO2024131554A1 (en)Operating system virtual machine configuration method and apparatus, device, and storage medium
US10164899B2 (en)Software defined infrastructures that encapsulate physical server resources into logical resource pools
CN104428752B (en) Offload virtual machine flows to physical queues
CN103617070B (en)Virtual machine migration method and device
CN103856547B (en)The mapping method of multi-dummy machine, system and client device
US9331911B2 (en)Resizing resource allocation in a computing environment
CN103164255B (en)Virtual machine network communication implementation method and monitor of virtual machine and physical host
CN106502760B (en) A method and device for visualizing a virtual machine affinity policy
EP3951591B1 (en)Data processing method, apparatus, and device
CN106095563B (en) Flexible physical and virtual function mapping
CN107291880A (en)The creation method and device of a kind of resource graphics
CN109213565B (en)Management method of heterogeneous virtual computing resources, related equipment and storage medium
CN110795205A (en) System and method for providing cloud service based on software container
CN113726881B (en) Communication connection establishment method, related device and computer readable storage medium
US9379940B2 (en)Virtual device profile to configure virtual network interface cards
CN109145545A (en)A kind of processing method and processing device of user's operation
US10795540B2 (en)Visualizing migration of a resource of a distributed computing environment
CN112491794A (en)Port forwarding method, device and related equipment
US11855852B1 (en)Network architecture visualizer and design tool
CN116483262A (en)Disk sharing method and device, electronic equipment and storage medium
CN109739623A (en) A method, apparatus, device and storage medium for virtual machine migration
CN113703676A (en)Method, device, equipment and medium for calling double live volumes
CN114356389A (en) Communication configuration method, device, device and storage medium for device configuration
CN117009032A (en)Virtualized device configuration method, device, equipment and medium
CN105530112A (en) A data exchange method and system

Legal Events

DateCodeTitleDescription
121Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number:23905721

Country of ref document:EP

Kind code of ref document:A1

NENPNon-entry into the national phase

Ref country code:DE


[8]ページ先頭

©2009-2025 Movatter.jp