CN117573296A - Virtual machine equipment straight-through control method, device, equipment and storage medium - Google Patents

Virtual machine equipment straight-through control method, device, equipment and storage medium Download PDF

Info

Publication number
CN117573296A
CN117573296A CN202410066150.6A CN202410066150A CN117573296A CN 117573296 A CN117573296 A CN 117573296A CN 202410066150 A CN202410066150 A CN 202410066150A CN 117573296 A CN117573296 A CN 117573296A
Authority
CN
China
Prior art keywords
information
virtual machine
target host
equipment
binding
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.)
Pending
Application number
CN202410066150.6A
Other languages
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202410066150.6A priority Critical patent/CN117573296A/en
Publication of CN117573296A publication Critical patent/CN117573296A/en
Pending legal-status Critical Current

Links

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
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2308Concurrency control
    • G06F16/2336Pessimistic concurrency control approaches, e.g. locking or multiple versions without time stamps
    • G06F16/2343Locking methods, e.g. distributed locking or locking implementation details
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/85Protecting input, output or interconnection devices interconnection devices, e.g. bus-connected or in-line devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application relates to a method, a device, equipment and a storage medium for directly controlling virtual machine equipment, which can be applied to various scenes such as cloud technology, artificial intelligence, intelligent traffic, auxiliary driving and the like. The method comprises the following steps: responding to a virtual machine through configuration event triggered by aiming at a target host, and determining a virtual machine to be configured and equipment to be configured, wherein the virtual machine to be configured and the equipment to be configured are expected to be configured in a device through manner; acquiring a binding relation network and current operation information of a target host; determining a direct binding state of equipment to be configured based on current operation information; and if the direct binding state is matched with the direct binding relation, carrying out direct configuration on the virtual machine to be configured and the equipment to be configured. The binding relation network of the target host is used for recording the direct binding relation between each bound virtual machine and each bound device in the target host. By adopting the method, the stability of the system can be improved.

Description

Virtual machine equipment straight-through control method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a computer device, a computer readable storage medium, and a computer program product for direct control of a virtual machine device.
Background
With the rapid development of computer technology, cloud technology capable of realizing data and resource sharing has emerged. By adopting the cloud technology, the resource sharing of the host can be realized by creating a plurality of virtual machines in one host and distributing corresponding equipment resources for each virtual machine in a device direct connection mode.
In the traditional virtual machine equipment through control method, equipment through configuration is carried out by a server based on data information actively reported by a host, and under the condition that the server is connected with a large number of hosts, the system performance is possibly reduced due to overlarge scale of the data information, so that the defect of poor system stability exists.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a virtual machine device through control method, apparatus, computer device, computer readable storage medium, and computer program product that can improve system stability.
In a first aspect, the present application provides a method for direct management and control of virtual machine devices. The method comprises the following steps:
responding to a virtual machine through configuration event triggered by aiming at a target host, and determining a virtual machine to be configured and equipment to be configured, wherein the virtual machine to be configured and the equipment to be configured are expected to be configured in a device through manner;
Acquiring a binding relation network and current operation information of the target host; the binding relation network of the target host is used for recording the direct binding relation between each bound virtual machine and each bound device in the target host;
determining a straight-through binding state of the equipment to be configured based on the current operation information;
and if the direct binding state is matched with the direct binding relation, carrying out direct configuration on the virtual machine to be configured and the equipment to be configured.
In a second aspect, the present application provides a direct management and control device for a virtual machine device. The device comprises:
the event driving module is used for responding to a virtual machine through configuration event triggered by a target host machine and determining a virtual machine to be configured and equipment to be configured which are expected to be subjected to equipment through configuration;
the information acquisition module is used for acquiring the binding relation network and the current operation information of the target host; the binding relation network of the target host is used for recording the direct binding relation between each bound virtual machine and each bound device in the target host;
the direct binding state determining module is used for determining the direct binding state of the equipment to be configured based on the current running information;
And the direct configuration module is used for carrying out direct configuration on the virtual machine to be configured and the equipment to be configured if the direct binding state is matched with the direct binding relation.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
responding to a virtual machine through configuration event triggered by aiming at a target host, and determining a virtual machine to be configured and equipment to be configured, wherein the virtual machine to be configured and the equipment to be configured are expected to be configured in a device through manner;
acquiring a binding relation network and current operation information of the target host; the binding relation network of the target host is used for recording the direct binding relation between each bound virtual machine and each bound device in the target host;
determining a straight-through binding state of the equipment to be configured based on the current operation information;
and if the direct binding state is matched with the direct binding relation, carrying out direct configuration on the virtual machine to be configured and the equipment to be configured.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
Responding to a virtual machine through configuration event triggered by aiming at a target host, and determining a virtual machine to be configured and equipment to be configured, wherein the virtual machine to be configured and the equipment to be configured are expected to be configured in a device through manner;
acquiring a binding relation network and current operation information of the target host; the binding relation network of the target host is used for recording the direct binding relation between each bound virtual machine and each bound device in the target host;
determining a straight-through binding state of the equipment to be configured based on the current operation information;
and if the direct binding state is matched with the direct binding relation, carrying out direct configuration on the virtual machine to be configured and the equipment to be configured.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
responding to a virtual machine through configuration event triggered by aiming at a target host, and determining a virtual machine to be configured and equipment to be configured, wherein the virtual machine to be configured and the equipment to be configured are expected to be configured in a device through manner;
acquiring a binding relation network and current operation information of the target host; the binding relation network of the target host is used for recording the direct binding relation between each bound virtual machine and each bound device in the target host;
Determining a straight-through binding state of the equipment to be configured based on the current operation information;
and if the direct binding state is matched with the direct binding relation, carrying out direct configuration on the virtual machine to be configured and the equipment to be configured.
The virtual machine device through control method, the device, the computer readable storage medium and the computer program product, respond to the virtual machine through configuration event triggered by the target host machine, and determine the virtual machine to be configured and the device to be configured, wherein the virtual machine to be configured and the device to be configured are expected to be configured through the device; acquiring a binding relation network and current operation information of a target host; determining a direct binding state of equipment to be configured based on current operation information; and if the direct binding state is matched with the direct binding relation, carrying out direct configuration on the virtual machine to be configured and the equipment to be configured. Because the binding relationship network of the target host is used for recording the direct binding relationship between each bound virtual machine and each bound device in the target host, the direct binding relationship recorded by the binding relationship network of the target host is matched and analyzed with the direct binding state determined based on the current running information of the target host in the direct configuration process of the virtual machine running in the target host, and the direct configuration is carried out under the condition that the direct binding relationship is matched with the direct binding relationship, the direct configuration can be carried out on the basis that the recorded information is matched with the running information, the configuration accuracy is improved, and the stability of the system is improved. And the binding relation network and the current running information of the target host are obtained in an active acquisition mode, so that the targeted acquisition of the data information can be realized, the data volume in the interaction process is reduced, the decline of the system performance under the connection scene of a large number of hosts can be avoided, and the stability of the system is improved.
Drawings
FIG. 1 is a diagram of an application environment for a data processing method in one embodiment;
FIG. 2 is a flow diagram of a data processing method in one embodiment;
FIG. 3 is a schematic diagram of the collection of USB information through event-driven in one embodiment;
FIG. 4 is a schematic diagram of an event driven flow in one embodiment;
FIG. 5 is a schematic diagram of a process for straight-through configuration of multiple devices to be configured in one embodiment;
FIG. 6 is a diagram of a metadata update process in one embodiment;
FIG. 7 is a schematic diagram of a process for obtaining metadata of a target host in one embodiment;
FIG. 8 is a schematic diagram of a response process of a device information query event in one embodiment;
FIG. 9 is a flowchart of a method for direct control of virtual machine devices according to another embodiment;
FIG. 10 is a block diagram of a data processing apparatus in one embodiment;
FIG. 11 is an internal block diagram of a computer device in one embodiment;
fig. 12 is an internal structural view of a computer device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Cloud technology (Cloud technology) refers to a hosting technology for integrating hardware, software, network and other series resources in a wide area network or a local area network to realize calculation, storage, processing and sharing of data. The cloud technology is based on the general names of network technology, information technology, integration technology, management platform technology, application technology and the like applied by the cloud computing business mode, can form a resource pool, and is flexible and convenient as required. Background services of technical networking systems require a lot of computing and storage resources, such as video websites, picture websites and more portals, and cloud technology will become an important support. Along with the high development and application of the internet industry, each article possibly has an own identification mark in the future, and the identification mark needs to be transmitted to a background system for logic processing, data with different levels can be processed separately, and various industry data need strong system rear shield support and can be realized only through a cloud technology.
Cloud computing (clouding) is a computing model that distributes computing tasks across a large pool of computers, enabling various application systems to acquire computing power, storage space, and information services as needed. The network that provides the resources is referred to as the "cloud". Resources in the cloud are infinitely expandable in the sense of users, and can be acquired at any time, used as needed, expanded at any time and paid for use as needed. As a basic capability provider of cloud computing, a cloud computing resource pool, called a cloud platform for short, generally called IaaS (Infrastructure as a Service ) platform, is established, and multiple types of virtual resources are deployed in the resource pool for external clients to select for use. The cloud computing resource pool mainly comprises: computing devices (which are virtualized machines, including operating systems), storage devices, network devices. According to the logic function division, a PaaS (Platform as a Service ) layer can be deployed on the IaS layer, a SaaS (Software as a Service ) layer can be deployed on the PaaS layer, and the SaaS can also be directly deployed on the IaS. PaaS is a platform on which software runs, such as a database, web container, etc. SaaS is a wide variety of business software such as web portals, sms mass senders, etc. Generally, saaS and PaaS are upper layers relative to IaaS.
With the development of the internet, real-time data flow and diversification of connected devices, and the promotion of demands of search services, social networks, mobile commerce, open collaboration and the like, cloud computing is rapidly developed. Unlike the previous parallel distributed computing, the generation of cloud computing will promote the revolutionary transformation of the whole internet mode and enterprise management mode in concept.
Cloud storage (cloud storage) is a new concept that extends and develops in the concept of cloud computing, and a distributed cloud storage system (hereinafter referred to as a storage system for short) refers to a storage system that integrates a large number of storage devices (storage devices are also referred to as storage nodes) of various types in a network to work cooperatively through application software or application interfaces through functions such as cluster application, grid technology, and a distributed storage file system, so as to provide data storage and service access functions for the outside. At present, the storage method of the storage system is as follows: when creating logical volumes, each logical volume is allocated a physical storage space, which may be a disk composition of a certain storage device or of several storage devices. The client stores data on a certain logical volume, that is, the data is stored on a file system, the file system divides the data into a plurality of parts, each part is an object, the object not only contains the data but also contains additional information such as a data Identification (ID) and the like, the file system writes each object into a physical storage space of the logical volume, and the file system records storage position information of each object, so that when the client requests to access the data, the file system can enable the client to access the data according to the storage position information of each object.
The virtual machine equipment through control method provided by the embodiment of the application can be applied to cloud computing environments. As shown in fig. 1, the cloud computing environment may include a server 102, and a plurality of hosts 104 connected to the server 102. Where host 104 is a computer device that hosts and manages virtual machines. In a cloud computing environment, host machine 104 is responsible for creating and maintaining various virtual machines and virtual machine operating systems, and providing device resources for virtual machine use. That is, multiple virtual machines may be running in each host 104, each of which may use the devices in the associated host through the device or otherwise. As shown in fig. 1, the server connects a host 1, a host 2 and a host 3, wherein a virtual machine 11, a virtual machine 12 and a virtual machine 13 are running in the host 1, and the virtual machine 11, the virtual machine 12 and the virtual machine 13 use equipment resources in the host 1; the host machine 2 is provided with a virtual machine 21, a virtual machine 22 and a virtual machine 23, and the virtual machine 21, the virtual machine 22 and the virtual machine 23 jointly use equipment resources in the host machine 2; the host 3 runs therein a virtual machine 31, a virtual machine 32, and a virtual machine 33, and the virtual machine 31, the virtual machine 32, and the virtual machine 33 commonly use device resources in the host 3.
Further, the server 102 may communicate with the host 104 via a network. The server 102 and the host 104 may be directly or indirectly connected through wired or wireless communication, which is not limited herein. The host 104 and the server 102 may each be a server or a terminal. Terminals include, but are not limited to, cell phones, computers, intelligent voice interaction devices, intelligent home appliances, vehicle terminals, and the like. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms.
In the application process, an operation and maintenance person of the cloud computing environment can trigger a virtual machine direct configuration event aiming at a target host machine in the cloud computing environment through the held terminal, so that the server 102 can respond to the virtual machine direct configuration event to conduct virtual machine equipment direct control. During the process of directly controlling the virtual machine equipment, the server 102: responding to a virtual machine through configuration event triggered by aiming at a target host, and determining a virtual machine to be configured and equipment to be configured, wherein the virtual machine to be configured and the equipment to be configured are expected to be configured in a device through manner; acquiring a binding relation network and current operation information of a target host; determining a direct binding state of equipment to be configured based on current operation information; and if the direct binding state is matched with the direct binding relation, carrying out direct configuration on the virtual machine to be configured and the equipment to be configured. The binding relation network of the target host is used for recording the direct binding relation between each bound virtual machine and each bound device in the target host.
In some embodiments, as shown in fig. 2, a virtual machine device through-put control method is provided, which may be performed by a computer device. Taking the application of the method to the server 102 in fig. 1 as an example, the method includes the following steps:
in step S202, in response to the virtual machine pass-through configuration event triggered for the target host, the virtual machine to be configured and the device to be configured that is desired to perform the device pass-through configuration are determined.
The device direct connection technology is a use mode that the configured virtual machine can directly access the device resource of the device by carrying out direct connection configuration on the device on the host machine and the virtual machine running on the host machine. Through the device direct connection configuration, the virtual machine operating system can directly have the access control authority of a certain device, so that the performance of the virtualized device can be greatly improved based on the device direct connection technology, the device direct connection configuration is easy to realize, the operating system is not required to be modified, and the high availability is ensured. Taking a USB device as an example. As shown in FIG. 3, host A may have multiple USB devices included thereon and run multiple virtual machines, which may include, for example, USB-1, USB-2, USB-3, USB-4, USB-5, and USB-6, and which may include, for example, VM-a, VM-b, and VM-c. In this case, the server may bind the virtual machine VM-a and the USB-4 so as to mount the USB-4 on the host a to the virtual machine VM-a in a device-through manner for use by the virtual machine VM-a.
It should be noted that, after the device pass-through configuration is completed, the virtual machine has exclusive use authority for the device bound to the virtual machine, that is, for the same device, only one virtual machine can be allocated to use the device through the pass-through configuration, and other virtual machines cannot use the device. Based on the above, the premise of applying the device pass-through technology is that the host machine has sufficient physical resources, and can be distributed to a plurality of virtual machines for use through the device pass-through technology, or a plurality of virtual devices with performances very close to those of the physical devices can be virtualized through the hardware virtualization technology so as to be used by the plurality of virtual machines. This creates two common pass-through approaches: PCI (Peripheral Component Interconnect), peripheral component interconnect standard) express and SR-IOV (Single Root I/O Virtualization) express. In the PCI direct connection process, the physical PCI equipment on the host machine is directly presented to a virtual machine for the virtual machine to directly access. SR-IOV pass-through is a hardware-based virtualization solution, and through the SR-IOV technology, a PF (Physical Function ) can be virtualized into multiple VFs (Virtual Function), and each VF can be independently passed through to a Virtual machine, so that the utilization rate of hardware resources and the I/O performance of the Virtual machine can be greatly improved. One typical application scenario is that the network card SR-IOV device is directly connected, and by using the SR-IOV technology, one physical network card (PF) can be virtualized into a plurality of VF network cards, and then VF is directly connected to a virtual machine for use.
The virtual machine through configuration event is a configuration event of the pointer through trigger to the virtual machine equipment. The specific event type of the virtual machine through configuration event is not unique, and may include, for example, a through binding event requesting to establish a device through binding relationship, and a through unbinding event requesting to unbind the device through binding relationship. Specifically, the operation and maintenance personnel can interact with the server through the held terminal to trigger the virtual machine through binding event. Optionally, the terminal held by the operation and maintenance personnel can install an application program related to the direct control of the equipment, so that the operation and maintenance personnel can operate through an interface of the application program, and the terminal generates and sends a direct configuration instruction of the virtual machine to the server side so as to trigger a direct binding event of the virtual machine. Optionally, the operation and maintenance personnel can open a browser page related to the device direct management and control at the held terminal, so that the operation and maintenance personnel can operate on the browser page to enable the terminal to generate and send a virtual machine direct configuration instruction to the server side so as to trigger a virtual machine direct binding event. The virtual machine through configuration instruction may carry an instruction type, a virtual machine identifier of a virtual machine to be configured, which is expected to perform device through configuration, and a device identifier of a device to be configured, which is expected to perform device through configuration. The instruction types may include a through bind instruction and a through unbind instruction.
The target host is one of a plurality of hosts managed by the server. One or more virtual machines can be built in each host machine by building a virtual environment. As shown in fig. 1, a host machine 1 runs a virtual machine 11, a virtual machine 12, and a virtual machine 13, a host machine 2 runs a virtual machine 21, a virtual machine 22, and a virtual machine 23, and a host machine 3 runs a virtual machine 31, a virtual machine 32, and a virtual machine 33. As shown in FIG. 3, multiple virtual machines, including VM-a, VM-b, and VM-c, may be running on host A. The virtual machine to be configured refers to at least one of a plurality of virtual machines running on the target host machine. For example, an operator may request device pass-through configuration of one or more virtual machines in a target host by triggering a virtual machine pass-through configuration event.
Further, each host may contain multiple types of devices, and the number of devices of each type may be multiple. The device type may include, for example, at least one of a CPU (Central Processing Unit ), memory, hard disk, network card, or USB (Universal Serial Bus ) device, etc. The device to be configured is at least one of the devices in the host. Optionally, the operator may request device pass-through configuration of one or more devices in the target host by triggering a virtual machine pass-through configuration event. That is, the number of virtual machines to be configured and the number of devices to be configured may be one or more. It can be understood that, in the case that the number of virtual machines to be configured is a plurality of, the server may perform virtual machine device direct management and control for each virtual machine to be configured according to the virtual machine device direct management and control method of the present application.
Specifically, the operation and maintenance personnel can trigger a virtual machine through configuration event aiming at the target host machine through the held terminal, so that the server side can respond to the virtual machine through configuration event to determine the virtual machine to be configured and the equipment to be configured, wherein the virtual machine to be configured and the equipment to be configured are expected to be configured through the equipment. The specific mode of determining the virtual machine to be configured and the equipment to be configured by the server is not unique.
In a specific embodiment, an operator may directly manage a related browser page or application program interface in a virtual machine device, select a target host to be configured in a direct way, select a device to be configured that is expected to be configured in a direct way from devices included in the target host, select a virtual machine to be configured that is expected to be configured in a direct way from each virtual machine running in the target host, and trigger a virtual machine direct way configuration event for the target host after the selection is completed. Therefore, the server side can respond to the virtual machine through configuration event, and determine the virtual machine to be configured and the equipment to be configured which are expected to be subjected to equipment through configuration according to the selection result of the terminal.
In a specific embodiment, an operator can directly manage a related browser page or application program interface in the virtual machine device, and click or touch a direct configuration control of the target host machine to enable the terminal to send a direct configuration instruction aiming at the target host machine to the server side, so as to trigger a virtual machine direct configuration event aiming at the target host machine. The server may determine, in response to the virtual machine pass-through configuration event, a virtual machine to be configured that desires to perform device pass-through configuration and a device to be configured that belongs to the configurable device type according to a virtual machine running in the target host and the configurable device type that is included. Wherein, the configurable device type refers to a device type comprising a plurality of devices. For example, in the case where the target host includes a plurality of USB devices, the USB devices may be of a configurable device type; in the case where the target host includes multiple network cards, the network cards may be the configurable device type.
Step S204, the binding relation network and the current running information of the target host are obtained.
The binding relation network of the target host is used for recording the direct binding relation between each bound virtual machine and each bound device in the target host. The current operation information of the target host refers to data information capable of reflecting the current operation state of the target host. The current running information may include respective virtual machine information of each virtual machine running on the target host machine, and an occupancy state of each device on the target host machine. It can be understood that the binding relationship network of the target host is characterized by the binding record state for the target host; the current running information of the target host is characterized in that the current running state of the target host corresponds to the actual running information of the target host. Therefore, for the same target host, the timeliness of the current running information is better than that of the data information in the binding relation network. For example, the binding relationship network may be data information recorded in a database, and the current running information may be data information collected in real time; for another example, both the binding relationship network and the current operation information may be data information recorded in a database, but the update frequency of the current operation information is higher than that of the binding relationship network. The database can be arranged in the server side or can be arranged in a data storage system independent of the server side.
As described above, the virtual machine exclusively uses the device bound to the device after the device pass-through configuration, so to ensure accuracy of the pass-through configuration, the server needs to confirm the binding state of the device before performing the pass-through configuration. On the one hand, the server side can acquire a binding relation network of the target host machine, and determines the binding record state of the equipment to be configured based on the direct binding relation recorded in the binding relation network. The binding record status may be, for example, bound or unbound. Specifically, if the direct binding relation of the equipment to be configured is recorded in the binding relation network of the target host, the binding record state of the equipment to be configured is bound; if the direct binding relation of the equipment to be configured is not recorded in the binding relation network of the target host, the binding record state of the equipment to be configured is unbinding. In a specific embodiment, a relational network between a host machine and a virtual machine and a device is stored in the database, and the relational network is used for recording the virtual machines running in the host machine and the devices directly bound by each virtual machine. Therefore, the server can query and obtain the binding relation network of the target host from the relation network, and determine the binding record state of the equipment to be configured.
On the other hand, the server side can acquire the current operation information of the target host machine, and the current operation information can be used for determining the direct binding state of the equipment to be configured. In one embodiment, the server may collect host information of the target host, virtual machine information of each virtual machine running on the target host, and device information of each device in the target host by using an information collection manner, so as to determine the collected information as current running information of the target host. The host machine information may include a hardware configuration, an operating system version, a network setting, and the like of the host machine, the virtual machine information may include a virtual machine name, a configuration parameter, an operation state, and the like, and the device information may include a device type, vendor information, a device state, and the like. The device state may include an operational state of the device.
The specific mode of information collection by the server side can be active collection based on event driving. Specifically, as shown in fig. 3, the server may configure an event driver and a collector, where the event driver responds to a virtual machine through configuration event triggered by a target host, acquires a through configuration instruction issued by an operation and maintenance person through a terminal, notifies the collector to trigger an information collection action, and connects the collector to the target host so as to collect information on the target host and the virtual machine. For example, as shown in fig. 3, in the case where the device in the target host a includes a USB device, the collector may collect USB information in the host a. Further, the collector can update the USB metadata in the database based on the collected information, so that the service end can directly read the USB information without secondary collection under the condition that the USB information needs to be used.
Step S206, determining the straight-through binding state of the device to be configured based on the current operation information.
The direct binding state of the device to be configured reflects the actual binding state of the device to be configured. Specifically, the server may query the current running information of the target host to obtain related information of the device to be configured, and determine the through binding state of the device to be configured according to the related information of the device to be configured. For example, in the case that the running state of the device to be configured is occupied, by checking the configuration parameters of each virtual machine, determining the virtual machine occupying the device to be configured and the occupation mode of the virtual machine on the device, if the occupation mode is exclusive use, determining that the through binding state of the device to be configured is: the device to be configured is directly bound with the virtual machine occupying the device. And under the condition that the running state of the equipment to be configured is unoccupied, determining that the straight-through binding state of the equipment to be configured is unbinding.
And step S208, if the direct binding state is matched with the direct binding relationship, the virtual machine to be configured and the equipment to be configured are configured in a direct way.
Specifically, after determining the through binding state of the device to be bound based on the current running information, the server side can determine whether the through binding state and the through binding relationship are matched by comparing the through binding state and the through binding relationship of the same device to be configured. And for the equipment to be bound, the record information of which is consistent with the running information, the server can perform direct configuration on the virtual machine to be configured and the equipment to be configured. And for the equipment to be bound, the direct binding state and the direct binding relation of which are not matched, the record information and the operation information of the equipment to be bound are inconsistent, and if the direct configuration possibly causes confusion of a system, the server side does not execute the direct configuration for the equipment to be configured.
In a specific embodiment, if the through binding state does not match the through binding relationship, updating the through binding relationship according to the through binding state; and sending feedback information of the through configuration failure.
Specifically, if the through binding state is not matched with the through binding relationship, it is indicated that the record information and the operation information of the to-be-bound device are inconsistent, the server can update the through binding relationship according to the through binding state with better timeliness and relatively more accuracy, so that the accuracy of the through binding relationship is ensured, and convenience of subsequent through management and control is facilitated. Further, under the condition that the recorded information and the running information of the equipment to be bound are inconsistent, the server side can also send feedback information of the through configuration failure to the terminal, so that operation and maintenance personnel of the terminal can check in time, determine the reason of the inconsistent information and maintain the system. The feedback information may include a virtual machine identification of the virtual machine to be configured that failed to be configured, a device identification of the device to be configured, and a failure reason for the failure to be configured. Under the condition that the direct binding state is not matched with the direct binding relationship, the direct binding relationship is updated according to the direct binding state, and feedback information of failure of direct configuration is sent, so that accuracy of the direct binding relationship can be ensured, timely problem investigation and system maintenance by operation and maintenance personnel are facilitated, and further stability of the system is improved.
It should be noted that, for the virtual machine to be configured, if the virtual machine to be configured is not bound to the associated device of the device to be configured, the server may directly perform the direct binding configuration on the virtual machine to be configured and the device to be configured, where the direct binding event of the virtual machine is a direct binding event; if the virtual machine to be configured is already bound with the associated equipment of the equipment to be configured, the server side can perform direct unbinding processing on the virtual machine to be configured and the associated equipment, and then perform direct binding configuration on the virtual machine to be configured and the equipment to be configured. Wherein, the associated equipment of the equipment to be configured is the same as the equipment type of the equipment to be configured. Illustratively, the device to be configured is a USB device. As shown in fig. 3, taking a to-be-configured virtual machine as a virtual machine VM-b, a to-be-configured device as a USB-6, and a case that a virtual machine through configuration event is a through binding event as an example, if the through binding state of the USB-6 matches with the through binding relationship, and the virtual machine VM-b is not bound with any USB device in the host, the server may directly perform through binding configuration on the virtual machine VM-b and the USB-6. Taking a to-be-configured virtual machine as a virtual machine VM-a, taking a to-be-configured device as a USB-6, taking a case that a virtual machine through configuration event is a through binding event as an example, if the through binding state of the USB-6 is matched with the through binding relationship, and the virtual machine VM-a is already in through binding with the USB-4, the server side can perform through unbinding configuration on the virtual machine VM-a and the USB-4 first, and then perform through binding configuration on the virtual machine VM-a and the USB-6.
According to the virtual machine equipment through control method, virtual machines to be configured and equipment to be configured, which are expected to perform equipment through configuration, are determined in response to a virtual machine through configuration event triggered by a target host; acquiring a binding relation network and current operation information of a target host; determining a direct binding state of equipment to be configured based on current operation information; and if the direct binding state is matched with the direct binding relation, carrying out direct configuration on the virtual machine to be configured and the equipment to be configured. Because the binding relationship network of the target host is used for recording the direct binding relationship between each bound virtual machine and each bound device in the target host, the direct binding relationship recorded by the binding relationship network of the target host is matched and analyzed with the direct binding state determined based on the current running information of the target host in the direct configuration process of the virtual machine running in the target host, and the direct configuration is carried out under the condition that the direct binding relationship is matched with the direct binding relationship, the direct configuration can be carried out on the basis that the recorded information is matched with the running information, the configuration accuracy is improved, and the stability of the system is improved. And the binding relation network and the current running information of the target host are obtained in an active acquisition mode, so that the targeted acquisition of the data information can be realized, the data volume in the interaction process is reduced, the decline of the system performance under the connection scene of a large number of hosts can be avoided, and the stability of the system is improved.
In a specific embodiment, the method for directly controlling the virtual machine device further includes: if the virtual machine direct configuration event is a direct binding event, determining that the direct binding state is matched with the direct binding relationship under the condition that the direct binding relationship of the equipment to be configured is not recorded in the binding relationship network and the direct binding state of the equipment to be configured is unbinding; if the virtual machine direct configuration event is a direct unbinding event, recording a direct binding relationship between the virtual machine to be configured and the equipment to be configured in a binding relationship network, and determining that the direct binding state is matched with the direct binding relationship under the condition that the direct binding state of the equipment to be configured is binding.
Specifically, if the through binding relation of the device to be configured is not recorded in the binding relation network and the through binding state of the device to be configured is unbinding, the device to be configured is in an unbinding state, the recorded information of the device to be configured is consistent with the running information, and the server side can respond to the through binding event to perform through binding configuration on the device to be configured so as to distribute the device to be configured to the virtual machine to be configured. If the through binding relation between the virtual machine to be configured and the device to be configured is recorded in the binding relation network, and the through binding state of the device to be configured is binding, the device to be configured is in a binding state, the recorded information of the device to be configured is consistent with the running information, and the server side can respond to the through unbinding event to perform the through unbinding configuration on the device to be configured so as to release the through binding relation between the device to be configured and the virtual machine to be configured, so that other devices can use the device to be configured.
In this embodiment, different matching conditions are set for different types of events, so that requirements of different virtualized environments can be matched, and flexibility of a direct connection management and control method of virtual machine equipment is improved.
In a specific embodiment, the server may further determine a through binding state of the virtual machine to be configured based on current running information of the target host, and perform through configuration on the virtual machine to be configured and the device to be configured when the through binding state of the virtual machine to be configured is matched with the through binding relationship and the through binding state of the device to be configured is matched with the through binding relationship.
Optionally, if the through configuration event of the virtual machine is a through binding event, determining that the through binding state is matched with the through binding relationship when the respective through binding relationship of the virtual machine to be configured and the device to be configured is not recorded in the binding relationship network and the respective through binding states of the virtual machine to be configured and the device to be configured are not bound; if the virtual machine direct configuration event is a direct unbinding event, recording direct binding relations between the virtual machine to be configured and the equipment to be configured in a binding relation network, and determining that the direct binding states are matched with the direct binding relations under the condition that the direct binding states of the virtual machine to be configured and the equipment to be configured are binding. Under the condition that the recorded information and the running information of the virtual machine to be configured and the equipment to be configured are consistent, the configuration accuracy can be further ensured, and the stability of the system is further improved.
In one embodiment, obtaining a binding relationship network of a target host includes: and reading the binding relation network of the target host from the database. In the case of this embodiment, the virtual machine device through management method further includes: locking the binding relation network of the target host in the database; and updating the binding relation network of the target host in the database based on the direct configuration result of the virtual machine to be configured and the equipment to be configured, and unlocking the updated binding relation network.
Locking refers to setting a control variable to control a processing mode that a shared resource cannot be accessed by other processes. The added lock may be, for example, a distributed lock, and the specific type of lock may be, for example, a read-write lock. Distributed locks are one way to control the synchronous access of shared resources between distributed systems. In distributed systems, it is often necessary to coordinate their actions. If one or a group of resources is shared between different systems or between different hosts of the same system, then when accessing these resources, mutual exclusion is often required to prevent interference with each other to ensure consistency, at which time a distributed lock may be used. The implementation of the distributed lock is not unique and may be based on a database or Redis cache implementation, for example.
Specifically, the database may store a binding relationship network of each of the plurality of hosts. In the direct management and control process of the virtual machine equipment aiming at the target host, the binding relation network of other hosts except the target host is not required to be accessed. Moreover, as the number of operation and maintenance personnel can be multiple, the concurrency condition of multiple virtual machine through configuration events aiming at the same target host machine can possibly cause the concurrency access of the binding relation network of the target host machine in the database. Based on the method, the server side can read the binding relation network of the target host machine from the database and lock the binding relation network of the target host machine in the database so as to ensure that the preemption problem can not occur under the concurrent condition. Under the condition that the virtual machine to be configured and the equipment to be configured are configured in a direct way, the server can update the binding relation network of the target host in the database based on the direct way configuration result of the virtual machine to be configured and the equipment to be configured, and unlock the updated binding relation network.
Taking the case of configuring event drivers and collectors in the server as an example. As shown in fig. 4, an operator may trigger a virtual machine through configuration event for a target host through a terminal, issue a through configuration instruction to an event driver in a server, and respond to the through configuration instruction, the event driver may notify a collector to trigger an information acquisition action, and the collector acquires a binding relationship network of the target host from a database and performs locking processing on the binding relationship network. And connecting the collector with the host, and collecting current operation information of the host. After the service end completes the direct configuration of the virtual machine to be configured and the equipment to be configured based on the current running information and the binding relationship network, the binding relationship network in the database can be updated, and the updated binding relationship network is unlocked.
In this embodiment, the binding relationship network of the target host in the database is locked, so that consistency and stability of the binding relationship network can be ensured under the concurrent condition.
In one embodiment, locking the binding relationship network of the target host in the database comprises:
determining associated binding equipment of equipment to be configured from all bound equipment of a target host; determining binding relation record information of the associated binding equipment from a binding relation network of a target host in a database; and locking the binding relation record information.
The associated binding device is the same as the device type to which the device to be configured belongs. Specifically, the server may determine, from each bound device of the target host, an associated binding device that belongs to the same device type as the device to be configured, and then determine, from a binding relationship network of the target host in the database, binding relationship record information of the associated binding device, and perform locking processing on the binding relationship record information. For example, in the case that the device to be configured is a USB device, the associated binding device is a bound USB device, and the server only needs to lock the binding relationship record information of the bound USB device in the binding relationship network of the target host; and under the condition that the equipment to be configured is a gateway, the associated binding equipment is a bound gateway, and the server side only needs to lock the binding relation record information of the bound gateway in the binding relation network of the target host.
In a specific embodiment, the number of virtual machines to be configured and devices to be configured, which are expected to perform device pass-through configuration, is multiple, and each device to be configured belongs to at least two device types. In the case of this embodiment, the server may perform unified configuration on devices to be configured of the same device type. Specifically, after the server side obtains the binding relationship network of the target host, locking processing of binding relationship record information is performed for each equipment type, and through configuration processing is performed for each equipment to be configured according to the matching condition of the respective through binding state and the through binding relationship of each equipment to be configured of the equipment type. Namely, for equipment to be configured, the direct binding state of which is matched with the direct binding relation, the equipment to be configured and the corresponding virtual machine to be configured are subjected to direct configuration; and for the equipment to be configured, the direct binding state of which is not matched with the direct binding relationship, the direct configuration is not carried out. After each device to be configured belonging to the device type completes the direct configuration, the server side can update the binding relation record information of the device type based on the direct configuration result of each device to be configured, further complete the update of the binding relation network of the device type, and unlock the updated binding relation network.
As shown in fig. 5, the number of virtual machines to be configured and devices to be configured, which are expected to be configured through devices, is plural, and the case where the devices to be configured include a first type device and a second type device is exemplified. The server can classify the equipment to be configured according to the equipment types, and respectively perform direct configuration management and control on each type of equipment. That is, the response procedure for one virtual machine pass-through configuration event may be split into two concurrent thread executions. Specifically, the server may acquire and lock the binding relationship record information of the first type device from the database, and after completing the pass-through configuration of the first type device based on the binding relationship record information of the first type device, update the binding relationship record information of the first type device based on the configuration result, and unlock the binding relationship record information of the first type device. Similarly, the server may acquire and lock the binding relationship record information of the second type device from the database, and after completing the pass-through configuration of the second type device based on the binding relationship record information of the second type device, update the binding relationship record information of the second type device based on the configuration result, and unlock the second type device. The first type device and the second type device can be any two of a CPU, a memory device, a hard disk device, a USB device, a gateway and the like.
In the above embodiment, only the binding relationship record information of the associated binding device with the same device type as the device to be configured is locked, so that the binding relationship record information of other device types can be ensured to be accessed, and the consistency and stability of the relationship network can be ensured in the concurrent state, and meanwhile, the direct configuration requirement of other device types can be responded, thereby being beneficial to improving the direct configuration management and control efficiency.
In one embodiment, obtaining current operating information of a target host includes: reading metadata of a target host from a database; the current operational information of the target host is determined based on the metadata.
The metadata comprises host information of the target host, virtual machine information of each virtual machine running on the target host and device information of each device in the target host. The host information may include a hardware configuration, an operating system version, a network setting, etc. of the host, the virtual machine information may include a virtual machine name, configuration parameters, an operation state, etc., and the device information may include a device type, vendor information, a device state, etc. The device state may include an operational state of the device. The metadata and the binding relationship network may be stored in the same database or may be stored in different databases. And the update frequency of the metadata is higher than that of the binding relation network.
Specifically, the server may automatically trigger an information acquisition task for the target host according to a predetermined time interval, or actively acquire information of the target host in an event-driven manner, and then the server updates acquired data information as metadata to the database. Therefore, for a plurality of virtual machine direct configuration events triggered by the target host in the same period, the server does not need to collect information of the target host for a plurality of times, and only needs to read metadata of the target host from the database. After reading the metadata of the target host from the database, the server may determine current operating information of the target host based on the metadata. The server may determine the metadata as current running information of the target host, or may screen relevant information of the virtual machine to be configured and the device to be configured based on the metadata, as current running information of the target host.
In this embodiment, the current running information of the target host is determined based on the metadata read in the database, so that the server does not need to perform information acquisition on the target host for each virtual machine direct connection configuration event, which is beneficial to improving the processing efficiency of the virtual machine direct connection management and control.
In one embodiment, the virtual machine device through control method further includes: collecting host information of a target host, respective virtual machine information of each virtual machine running on the target host and respective device information of each device in the target host; and updating the metadata of the target host in the database based on the acquired information.
Specifically, the server side can acquire host information of the target host, respective virtual machine information of each virtual machine running on the target host and respective device information of each device in the target host in an active acquisition mode, and update metadata of the target host in the database based on the acquired information. Taking a USB device as an example, as shown in fig. 6, an collector may automatically trigger a collection task according to a predetermined time interval, that is, automatically perform periodic scheduling; acquisition tasks may also be triggered by receiving notifications from event drivers. After triggering the acquisition task, the acquisition device establishes connection with the target host machine so as to acquire the related information of the target host machine and the virtual machine. Specifically, through the connection established with the host machine, the collector can acquire key information of the host machine, including hardware configuration, operating system version, network setting and the like. After the host machine is connected, the collector can acquire information of the virtual machine running on the host machine, including the name, configuration parameters, running state and the like of the virtual machine. The collector can also actively acquire device information of devices connected to the target host, including device types, manufacturer information, device states, and the like. The device may be, for example, a USB device. All metadata collected will then be efficiently stored in the database for use by subsequent management and control operations.
In this embodiment, based on the information obtained by collection, the metadata of the target host in the database is updated, so that the metadata in the database can be ensured to be continuously updated, thereby providing a reliable data base for direct management and control of the virtual machine device, further ensuring the accuracy of the current running information of the target host determined based on the metadata, and providing a solid guarantee for the stability of the system.
In one embodiment, collecting host information of a target host, virtual machine information of each virtual machine running on the target host, and device information of each device in the target host, includes: acquiring an information acquisition period aiming at a target host; and collecting host information of the target host, virtual machine information of each virtual machine running on the target host and device information of each device in the target host according to the information collecting period.
Specific definitions of host information, virtual machine information, and device information are referred to above, and are not described herein. The information acquisition period is a time period formed by the triggering time of each acquisition task under the condition of automatically triggering the acquisition task. For example, the information acquisition period may be acquired once every 10S or once every 20S. Specifically, the operation and maintenance personnel can send the information acquisition period aiming at the target host machine to the server through the terminal according to the actual application requirements. That is, for different hosts managed by the server, information collection may be performed in different information collection periods. Therefore, the server can actively collect host information of the target host, virtual machine information of each virtual machine running on the target host and device information of each device in the target host according to the information collection period of the target host.
In this embodiment, the information collection for the target host is actively triggered according to the information collection period, so that timeliness of metadata obtained based on the collected information update can be ensured, accuracy of current running information ensured based on the metadata is further ensured, and stability of a prompt system is facilitated.
In one embodiment, the virtual machine device through control method further includes: a desired aging condition for the virtual machine pass-through configuration event is determined. In the case of this embodiment, reading metadata of the target host from the database includes: determining the information acquisition time of information acquisition according to the information acquisition period in the last time; and under the condition that the time difference between the information acquisition time and the current time meets the expected aging condition, reading the metadata of the target host machine from the database.
The desired aging condition may be characterized by a time difference between the information acquisition time and the current time of the metadata in the database, and the desired aging condition may be, for example, the time difference being less than or equal to a time difference threshold. The time difference threshold may be, for example, 0.5S or 1S. Specifically, the server may determine the desired aging conditions for the virtual machine pass-through configuration event. The expected aging condition can be determined by operation staff through a terminal or a server. In a specific embodiment, the server may configure the corresponding desired aging conditions for different types of virtual machine pass-through configuration events. For example, the time difference threshold for a pass-through binding event may be less than the time difference threshold for a pass-through unbinding event.
Further, the server side can determine the information acquisition time of the information acquisition event which is automatically triggered last time, namely the information acquisition time of information acquisition according to the information acquisition period last time. And calculating the time difference between the information acquisition time and the current time, if the time difference meets the expected aging condition, indicating that the metadata meeting the aging requirement of the virtual machine straight-through configuration time can be read from the current database, and the server side can read the metadata of the target host machine from the database and determine the current running information of the target host machine based on the read metadata. Otherwise, if the time difference does not meet the expected aging condition, the current database is indicated that the metadata meeting the aging requirement of the virtual machine straight-through configuration time cannot be read, the server can acquire information again for the target host, and the current running information of the target host is determined based on the latest acquired data information.
In this embodiment, under the condition that the time difference between the latest information collection time and the current time meets the aging condition, metadata of the target host machine is read from the database, and current operation information of the target host machine is determined based on the read metadata, so that the determined current operation information can be ensured to be matched with the aging requirement of the virtual machine direct configuration time, accuracy of direct configuration is improved, and stability of the system is improved.
In one embodiment, the virtual machine device direct management control further comprises: triggering an information acquisition event aiming at a target host under the condition that the time difference between the information acquisition time and the current time does not meet the expected aging condition; and updating metadata of the target host in the database based on the host information, the virtual machine information and the equipment information acquired in response to the information acquisition event.
If the time difference does not meet the expected aging condition, it is indicated that the metadata meeting the aging requirement of the virtual machine through configuration time cannot be read from the current database, and the server may perform information collection again for the target host, and determine the current running information of the target host based on the data information obtained by the latest collection. Based on the information, the server side can trigger an information acquisition event aiming at the target host machine under the condition that the time difference between the information acquisition time and the current time does not meet the expected aging condition, acquire host machine information, virtual machine information and equipment information in response to the information acquisition event, and update metadata of the target host machine in the database based on the acquired information. Therefore, the updated metadata in the database can meet the aging requirement of the virtual machine direct configuration time, and the server can determine the current running information of the target host based on the metadata read from the database.
In this embodiment, under the condition that the time difference between the latest information collection time and the current time does not meet the aging condition, the information collection is performed through event driving, and as a supplement to automatic triggering information collection, metadata which matches the aging requirement of the virtual machine direct configuration time can be ensured to be read from the database, so that timeliness of the current running information determined based on the metadata is ensured, accuracy of direct configuration is improved, and stability of the system is improved.
In a specific embodiment, as shown in fig. 7, the process of acquiring metadata of the target host may include the following steps:
step S701, acquiring an information acquisition period for a target host;
step S702, collecting host information of a target host, respective virtual machine information of each virtual machine running on the target host and respective device information of each device in the target host according to an information collection period;
step S703, updating metadata of the target host in the database based on the acquired information;
step S704, determining expected aging conditions of the virtual machine through configuration event and information acquisition time of information acquisition according to an information acquisition period in the last time;
Step S705, reading the metadata of the target host from the database under the condition that the time difference between the information acquisition time and the current time meets the expected aging condition;
step S706, triggering an information acquisition event aiming at a target host under the condition that the time difference between the information acquisition time and the current time does not meet the expected aging condition;
step S707, updating metadata of the target host in the database based on the host information, the virtual machine information and the equipment information acquired in response to the information acquisition event;
in step S708, the metadata of the target host is read from the database.
In this embodiment, the combination of the periodic scheduling manner of periodically and automatically performing information acquisition and the event-driven information acquisition manner can ensure that the metadata read from the database meets the aging requirement, thereby ensuring the timeliness of the current running information determined based on the metadata, being beneficial to improving the accuracy of the through configuration and improving the stability of the system.
In one embodiment, the device information includes a device type. In the case of this embodiment, the virtual machine device through management method further includes: determining a target device type desired to be queried in response to a device information query event triggered for a target host; and reading the respective device information of each target device belonging to the target device type from the device information of the database.
Specifically, the operation and maintenance personnel can select the type of the target equipment desired to be queried through the held terminal and send the type of the target equipment to the server so as to trigger an equipment information query event aiming at the target host. The server side can respond to the equipment information inquiry event, determine the type of the target equipment which is expected to be inquired, and read the equipment information of each target equipment belonging to the type of the target equipment from the equipment information of the database. It can be appreciated that whether the data collection is event driven or periodically triggered automatically, the correctness of the device information in the database can be ensured. Under the condition that the collector periodically and automatically triggers data collection, if the middle equipment is changed in two queries, for example, the USB equipment is pulled out, equipment information in the database is updated by data periodically collected by the collector, and dirty data cannot occur in the second query.
For the event-driven data collection manner, as shown in fig. 8, the operation and maintenance personnel issues an instruction of "inquiring the USB information of the host a" for the first time, and the event driver notifies the collector to collect the host information, and updates the metadata in the database based on the collected information, so as to obtain the correct USB information, namely: the host A comprises two USB, namely USB-1 and USB-2. After the USB-2 is manually pulled out, when the operation and maintenance personnel issues an instruction of "inquiring the USB information of the host a" again, the event driver will notify the collector to actively collect the USB information again, and update the metadata in the database based on the collected information, so as to obtain the correct USB information, namely: host A includes a USB, which is USB-1. Thus, the information acquired by the operation and maintenance personnel is always correct and stable.
In the above embodiment, in response to the device information query event, the device information is read from the metadata in the database, and since the metadata in the database is acquired through an active acquisition manner, the accuracy of the data obtained by query can be ensured, so that the system can flexibly cope with the change of the device on the host, and the adaptability of the system is improved.
In some embodiments, as shown in fig. 9, the data processing method includes:
step S901, determining a virtual machine to be configured and a device to be configured, which desire to perform device pass-through configuration, in response to a virtual machine pass-through configuration event triggered for a target host;
step S902, reading a binding relation network of a target host from a database;
the binding relation network of the target host is used for recording the direct binding relation between each bound virtual machine and each bound device in the target host;
step S903, determining the associated binding device of the device to be configured from the bound devices of the target host;
the associated binding equipment is the same as the equipment type of the equipment to be configured;
step S904, determining binding relation record information of the associated binding equipment from a binding relation network of a target host in a database;
Step S905, locking the binding relation record information;
step S906, acquiring an information acquisition period for a target host;
step S907, collecting host information of the target host, respective virtual machine information of each virtual machine running on the target host and respective device information of each device in the target host according to the information collection period;
step S908, based on the acquired information, updating metadata of the target host in the database;
step S909, determining the expected aging condition of the virtual machine through configuration event and the information acquisition time of the last information acquisition according to the information acquisition period;
step S910, under the condition that the time difference between the information acquisition time and the current time meets the expected aging condition, the metadata of the target host machine is read from the database;
step S911, triggering an information acquisition event aiming at a target host under the condition that the time difference between the information acquisition time and the current time does not meet the expected aging condition;
step S912, updating metadata of the target host in the database based on the host information, each virtual machine information, and each device information acquired in response to the information acquisition event;
Step S913, reading the metadata of the target host from the database;
step S914, determining current operation information of the target host based on the metadata, and determining a direct binding state of the device to be configured based on the current operation information;
step S915, if the direct binding state is matched with the direct binding relationship, the virtual machine to be configured and the equipment to be configured are configured in a direct way;
step S916, updating binding relation record information in the database based on the direct connection configuration result of the virtual machine to be configured and the equipment to be configured, and carrying out unlocking treatment on the updated binding relation record information;
step S917, if the direct binding state is not matched with the direct binding relationship, updating the direct binding relationship according to the direct binding state, and sending feedback information of failure in direct configuration.
In the process of directly controlling the virtual machine equipment, in the process of directly configuring the virtual machine operated in the target host, the directly binding relationship recorded by the binding relationship network of the target host is matched and analyzed with the directly binding state determined based on the current operation information of the target host, and the directly configuration is performed under the condition that the directly binding relationship and the directly binding state are matched, so that the directly configuration can be ensured on the basis that the recorded information is matched with the operation information, the accuracy of configuration is improved, and the stability of a system is improved. And the binding relation network and the current running information of the target host are obtained in an active acquisition mode, so that the targeted acquisition of the data information can be realized, the data volume in the interaction process is reduced, the decline of the system performance under the connection scene of a large number of hosts can be avoided, and the stability of the system is improved.
In a specific embodiment, taking a case that a device to be configured is a USB device as an example, the method for directly controlling a virtual machine device in the present application will be described in detail.
In the traditional technology, the acquisition process of the USB metadata is as follows: the host reports the device information of the self-connected USB device to the server, and the server monitors and receives the USB information reported by the host operating system, processes the received information and extracts information such as key device identification, device state and the like. And then the server stores the extracted information in a database for subsequent management and viewing. In the conventional art, a liquid crystal display device,
since the host computer is relied on to actively report USB information, the dependence can cause delay of information acquisition, and the response speed of the system is influenced. Moreover, when the USB of the host is unplugged, the server cannot sense, which may cause inaccurate understanding of the device state by the system, and affect the efficiency of device management. Meanwhile, under the condition that a large number of hosts are connected to the server, the processing efficiency is low due to the fact that a large amount of USB information needs to be processed, and the performance and response speed are affected. And the traditional scheme is difficult to adapt to different virtualized environments and requirements, can not provide customized management and control functions, and limits application in cloud computing environments.
Based on this, the application provides a new virtual machine equipment direct management and control mechanism, and the system and the method realize that USB information is actively acquired, a consistent equipment relationship is maintained, information processing efficiency is improved, flexibility and expandability are provided through a collector and an event driver, and aim to improve the management and monitoring capacity of USB equipment and provide a more efficient, accurate, consistent and customizable USB management and control scheme for users.
Specifically, in the application process of the present application, an information acquisition process and an event driven process are involved. The collector can accurately acquire key information of the host and the USB device through a preset scheduling mechanism, and efficiently store the key information into a database. The scheduling mechanism may be periodic automatic scheduling or event-based scheduling. Meanwhile, the information collector has the capability of receiving the instruction issued by the system, so that metadata can be refreshed rapidly after the instruction is received, and the information in the database is ensured to be consistent with the actual situation. The precise and efficient information acquisition flow provides reliable basic data for subsequent management and control, and provides firm guarantee for stability and safety of the system. When the server receives a direct connection configuration instruction issued by operation and maintenance personnel through the terminal, the event driver informs the collector to trigger the action of collecting information, and locks the relation network of the host machine, the virtual machine and the USB. The purpose of this procedure is to ensure that the association between the virtual machine and the USB device can be stably established, so as to meet the management and control requirements of the system on the USB device, and improve the stability and security of the system.
In one embodiment, the "collector" is used to obtain the original information of the host, the virtual machine, and the USB, and the detailed process flow is as follows: the collector actively collects or the event driver notifies and triggers, namely, the collector can automatically trigger the collection task according to a preset time interval and can trigger the collection task by receiving the notification of the event driver; the collector establishes connection with the host machine so as to acquire the related information of the host machine and the virtual machine; through the connection established with the host machine, the collector can acquire key information of the host machine, including hardware configuration, operating system version, network setting and the like; after the host machine is connected, the collector can acquire information of the virtual machine running on the host machine, including the name, configuration parameters, running state and the like of the virtual machine; the collector can also actively acquire information of USB equipment connected to the host, including equipment type, manufacturer information, equipment state and the like; the collector efficiently stores all the meta information collected into a database for use by subsequent management and control operations.
In one embodiment, the process of the event-driven flow includes the steps of: the operation and maintenance personnel issue instructions through a system interface or other modes, such as instructions for binding specific USB equipment with a virtual machine, unbinding USB and the virtual machine, inquiring USB information and the like; after issuing the instruction, the server side triggers a corresponding event and notifies the collector to execute the collection task, wherein the collection task can be triggered at a preset time interval or triggered at a specific event; the server locks the association relation between the virtual machine and the USB in the database, for example, when a write type instruction is executed, the information collector locks in the database to ensure that the problem of preemption cannot occur under the concurrent condition, so that the stability and consistency of the binding relation can be ensured; the collector establishes connection with the host machine so as to carry out subsequent binding or unbinding operation; after the connection is established with the host machine, the server side executes instruction tasks such as binding, unbinding, inquiring and the like.
By adopting the virtual machine straight-through control method provided by the application, the method has the following beneficial effects:
the real-time performance and accuracy of information acquisition are improved: because the management and control program uses the collector to actively acquire the USB information on the master machine, the active report of the master machine is not relied on, so that the state information of the USB can be acquired more quickly and accurately, and the response speed and accuracy of the system are improved.
The stability and reliability of the system are enhanced: in the new scheme, the association relation between the virtual machine and the USB is actively managed by the server, and the active management mode can better control the association relation between the virtual machine and the USB, so that the stability and the reliability of the system are improved, when the USB of the host is unplugged, the event driver can inform the collector to acquire the latest information, and the real-time updating mechanism enables the system to be more flexible in coping with the change of the USB equipment, and improves the adaptability of the system.
USB management and control under cloud computing environment is optimized: the scheme is carried out in the cloud computing environment, and the USB management and control scheme in the cloud computing environment can better meet the characteristics and requirements of the cloud computing environment, so that the efficiency and performance of the system are improved.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a virtual machine equipment direct-through control device for realizing the virtual machine equipment direct-through control method. The implementation scheme of the solution to the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitation in the embodiments of the direct control device for one or more virtual machine devices provided below may refer to the limitation of the direct control method for the virtual machine devices in the above description, and will not be repeated here.
In some embodiments, as shown in fig. 10, there is provided a virtual machine device direct management and control apparatus, including: an event driving module 1001, an information obtaining module 1002, a pass-through binding state determining module 1003, and a pass-through configuring module 1004, wherein:
an event driving module 1001, configured to determine a virtual machine to be configured and a device to be configured that desire device pass-through configuration, in response to a virtual machine pass-through configuration event triggered for a target host;
the information obtaining module 1002 is configured to obtain a binding relationship network and current running information of a target host; the binding relation network of the target host is used for recording the direct binding relation between each bound virtual machine and each bound device in the target host;
a through binding state determining module 1003, configured to determine a through binding state of a device to be configured based on current running information;
and the pass-through configuration module 1004 is configured to perform pass-through configuration on the virtual machine to be configured and the device to be configured if the pass-through binding state is matched with the pass-through binding relationship.
In one embodiment, the information obtaining module 1002 is specifically configured to read the binding relationship network of the target host from the database. In the case of this embodiment, the virtual machine device direct management and control apparatus further includes: the locking module is used for locking the binding relation network of the target host in the database; and the unlocking module is used for updating the binding relation network of the target host machine in the database based on the direct connection configuration result of the virtual machine to be configured and the equipment to be configured, and carrying out unlocking processing on the updated binding relation network.
In one embodiment, the locking module is specifically configured to: determining associated binding equipment of equipment to be configured from all bound equipment of a target host; the associated binding equipment is the same as the equipment type of the equipment to be configured; determining binding relation record information of the associated binding equipment from a binding relation network of a target host in a database; and locking the binding relation record information.
In one embodiment, the information obtaining module 1002 includes a metadata reading unit for reading metadata of the target host from the database; and the current running information determining unit is used for determining the current running information of the target host machine based on the metadata. The metadata comprises host information of the target host, virtual machine information of each virtual machine running on the target host and device information of each device in the target host.
In one embodiment, the virtual machine device direct management and control apparatus further includes a metadata update module for: collecting host information of a target host, respective virtual machine information of each virtual machine running on the target host and respective device information of each device in the target host; and updating the metadata of the target host in the database based on the acquired information.
In one embodiment, the metadata update module is specifically configured to: acquiring an information acquisition period aiming at a target host; and collecting host information of the target host, virtual machine information of each virtual machine running on the target host and device information of each device in the target host according to the information collecting period.
In one embodiment, the virtual machine device direct management and control apparatus further includes an aging condition determining module configured to: a desired aging condition for the virtual machine pass-through configuration event is determined. In the case of this embodiment, the metadata reading unit is specifically for: determining the information acquisition time of information acquisition according to the information acquisition period in the last time; and under the condition that the time difference between the information acquisition time and the current time meets the expected aging condition, reading the metadata of the target host machine from the database.
In one embodiment, the metadata update module is further to: triggering an information acquisition event aiming at a target host under the condition that the time difference between the information acquisition time and the current time does not meet the expected aging condition; and updating metadata of the target host in the database based on the host information, the virtual machine information and the equipment information acquired in response to the information acquisition event.
In one embodiment, the device information includes a device type. In the case of this embodiment, the virtual machine device direct management and control apparatus further includes an information query module configured to: determining a target device type desired to be queried in response to a device information query event triggered for a target host; and reading the respective device information of each target device belonging to the target device type from the device information of the database.
In one embodiment, the virtual machine device direct management and control apparatus further includes a relationship matching module configured to: if the virtual machine direct configuration event is a direct binding event, determining that the direct binding state is matched with the direct binding relationship under the condition that the direct binding relationship of the equipment to be configured is not recorded in the binding relationship network and the direct binding state of the equipment to be configured is unbinding; if the virtual machine direct configuration event is a direct unbinding event, recording a direct binding relationship between the virtual machine to be configured and the equipment to be configured in a binding relationship network, and determining that the direct binding state is matched with the direct binding relationship under the condition that the direct binding state of the equipment to be configured is binding.
In one embodiment, pass-through configuration module 1004 is further to: if the direct binding state is not matched with the direct binding relationship, updating the direct binding relationship according to the direct binding state; and sending feedback information of the through configuration failure.
All or part of the modules in the virtual machine equipment direct control device can be realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 11. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer equipment is used for storing data related in the direct management and control process of the virtual machine equipment. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a virtual machine device through-put control method.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 11. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a resource exchange processing method. The display unit of the computer equipment is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device, wherein the display screen can be a liquid crystal display screen or an electronic ink display screen, the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on a shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structures shown in fig. 11 or 12 are merely block diagrams of portions of structures related to the present application and do not constitute a limitation of the computer device on which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In some embodiments, a computer device is provided, including a memory, and a processor, where the memory stores a computer program, and the processor implements the steps in the virtual machine device pass-through management method described above when the computer program is executed.
In some embodiments, a computer readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the steps in the virtual machine device pass-through management method described above.
In some embodiments, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps in the virtual machine appliance pass-through management method described above.
It should be noted that, the object information (including, but not limited to, object device information, object personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) related to the present application are both information and data authorized by the object or sufficiently authorized by each party, and the collection, use, and processing of the related data are required to comply with the related laws and regulations and standards of the related countries and regions.
Those skilled in the art will appreciate that all or part of the processes in the methods of the embodiments described above may be implemented by computer programs to instruct related hardware; the computer program may be stored in a non-volatile computer readable storage medium, which when executed may comprise the flow of the embodiments of the methods as described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (15)

1. A virtual machine device through-control method, the method comprising:
responding to a virtual machine through configuration event triggered by aiming at a target host, and determining a virtual machine to be configured and equipment to be configured, wherein the virtual machine to be configured and the equipment to be configured are expected to be configured in a device through manner;
acquiring a binding relation network and current operation information of the target host; the binding relation network of the target host is used for recording the direct binding relation between each bound virtual machine and each bound device in the target host;
Determining a straight-through binding state of the equipment to be configured based on the current operation information;
and if the direct binding state is matched with the direct binding relation, carrying out direct configuration on the virtual machine to be configured and the equipment to be configured.
2. The method of claim 1, wherein the obtaining the binding relationship network of the target host comprises:
reading the binding relation network of the target host from a database;
the method further comprises the steps of:
locking the binding relation network of the target host in the database;
and updating the binding relation network of the target host machine in the database based on the direct configuration result of the virtual machine to be configured and the equipment to be configured, and unlocking the updated binding relation network.
3. The method according to claim 2, wherein the locking the binding relationship network of the target host in the database includes:
determining the associated binding equipment of the equipment to be configured from all the bound equipment of the target host; the associated binding equipment is the same as the equipment type to which the equipment to be configured belongs;
Determining binding relation record information of the association binding equipment from a binding relation network of the target host in the database;
and locking the binding relation record information.
4. The method of claim 1, wherein obtaining current operational information of the target host comprises:
reading metadata of the target host from a database; the metadata comprises host information of the target host, respective virtual machine information of each virtual machine running on the target host and respective device information of each device in the target host;
and determining the current running information of the target host machine based on the metadata.
5. The method according to claim 4, wherein the method further comprises:
collecting host information of the target host, virtual machine information of each virtual machine running on the target host and equipment information of each equipment in the target host;
and updating the metadata of the target host in the database based on the acquired information.
6. The method of claim 5, wherein the collecting host information of the target host, virtual machine information of each virtual machine running on the target host, and device information of each device in the target host comprises:
Acquiring an information acquisition period aiming at the target host;
and collecting host information of the target host, virtual machine information of each virtual machine running on the target host and device information of each device in the target host according to the information collecting period.
7. The method of claim 6, wherein the method further comprises:
determining an expected aging condition of the virtual machine pass-through configuration event;
the reading the metadata of the target host from the database includes:
determining the information acquisition time of information acquisition according to the information acquisition period in the last time;
and under the condition that the time difference between the information acquisition time and the current time meets the expected aging condition, reading the metadata of the target host machine from a database.
8. The method of claim 7, wherein the method further comprises:
triggering an information acquisition event aiming at the target host under the condition that the time difference between the information acquisition time and the current time does not meet the expected aging condition;
and updating metadata of the target host in the database based on the host information, the virtual machine information and the equipment information acquired in response to the information acquisition event.
9. The method of claim 5, wherein the device information comprises a device type; the method further comprises the steps of:
responding to a device information inquiry event triggered by aiming at the target host, and determining the type of target device expected to be inquired;
and reading the respective device information of each target device belonging to the target device type from the device information of the database.
10. The method according to any one of claims 1 to 9, characterized in that the method further comprises:
if the virtual machine through configuration event is a through binding event, determining that the through binding state is matched with the through binding relationship under the condition that the through binding relationship of the equipment to be configured is not recorded in the binding relationship network and the through binding state of the equipment to be configured is unbinding;
if the virtual machine direct configuration event is a direct unbinding event, the direct binding relationship between the virtual machine to be configured and the equipment to be configured is recorded in the binding relationship network, and if the direct binding state of the equipment to be configured is binding, the direct binding state is determined to be matched with the direct binding relationship.
11. The method according to any one of claims 1 to 9, characterized in that the method further comprises:
if the direct binding state is not matched with the direct binding relationship, updating the direct binding relationship according to the direct binding state;
and sending feedback information of the through configuration failure.
12. A virtual machine device direct management and control apparatus, the apparatus comprising:
the event driving module is used for responding to a virtual machine through configuration event triggered by a target host machine and determining a virtual machine to be configured and equipment to be configured which are expected to be subjected to equipment through configuration;
the information acquisition module is used for acquiring the binding relation network and the current operation information of the target host; the binding relation network of the target host is used for recording the direct binding relation between each bound virtual machine and each bound device in the target host;
the direct binding state determining module is used for determining the direct binding state of the equipment to be configured based on the current running information;
and the direct configuration module is used for carrying out direct configuration on the virtual machine to be configured and the equipment to be configured if the direct binding state is matched with the direct binding relation.
13. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 11 when the computer program is executed.
14. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 11.
15. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method of any one of claims 1 to 11.
CN202410066150.6A 2024-01-17 2024-01-17 Virtual machine equipment straight-through control method, device, equipment and storage medium Pending CN117573296A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410066150.6A CN117573296A (en) 2024-01-17 2024-01-17 Virtual machine equipment straight-through control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410066150.6A CN117573296A (en) 2024-01-17 2024-01-17 Virtual machine equipment straight-through control method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117573296A true CN117573296A (en) 2024-02-20

Family

ID=89895971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410066150.6A Pending CN117573296A (en) 2024-01-17 2024-01-17 Virtual machine equipment straight-through control method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117573296A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110214115A1 (en) * 2010-02-26 2011-09-01 Nokia Corporation Method and appartus for providing a high level mobile virtual machine
US9052935B1 (en) * 2012-11-27 2015-06-09 Symantec Corporation Systems and methods for managing affinity rules in virtual-machine environments
CN107807840A (en) * 2016-09-09 2018-03-16 阿里巴巴集团控股有限公司 A kind of equipment direction connection method and device applied to virtual machine network
CN113961301A (en) * 2020-07-01 2022-01-21 中移(苏州)软件技术有限公司 Virtual network card binding and unbinding method and device, computing node and storage medium
US20220405114A1 (en) * 2021-06-18 2022-12-22 EMC IP Holding Company LLC Method, device and computer program product for resource scheduling
US11663026B2 (en) * 2020-05-28 2023-05-30 EMC IP Holding Company LLC Allocation of accelerator resources based on job type
CN116860391A (en) * 2023-06-30 2023-10-10 鹏城实验室 GPU computing power resource scheduling method, device, equipment and medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110214115A1 (en) * 2010-02-26 2011-09-01 Nokia Corporation Method and appartus for providing a high level mobile virtual machine
US9052935B1 (en) * 2012-11-27 2015-06-09 Symantec Corporation Systems and methods for managing affinity rules in virtual-machine environments
CN107807840A (en) * 2016-09-09 2018-03-16 阿里巴巴集团控股有限公司 A kind of equipment direction connection method and device applied to virtual machine network
US11663026B2 (en) * 2020-05-28 2023-05-30 EMC IP Holding Company LLC Allocation of accelerator resources based on job type
CN113961301A (en) * 2020-07-01 2022-01-21 中移(苏州)软件技术有限公司 Virtual network card binding and unbinding method and device, computing node and storage medium
US20220405114A1 (en) * 2021-06-18 2022-12-22 EMC IP Holding Company LLC Method, device and computer program product for resource scheduling
CN116860391A (en) * 2023-06-30 2023-10-10 鹏城实验室 GPU computing power resource scheduling method, device, equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
汤雄: "基于KVM的3D远程桌面同步技术的研究与实现", 中国优秀硕士学位论文全文数据库信息科技辑(月刊), no. 01, 15 January 2020 (2020-01-15), pages 138 - 2300 *

Similar Documents

Publication Publication Date Title
US11711420B2 (en) Automated management of resource attributes across network-based services
US10776174B2 (en) Managing hosted resources across different virtualization platforms
US10664331B2 (en) Generating an application programming interface
US10270668B1 (en) Identifying correlated events in a distributed system according to operational metrics
CN104380261B (en) The locally-supported storage based on cloud
US10333789B1 (en) Client-directed placement of remotely-configured service instances
CN111651305B (en) Virtual machine backup method, virtual machine backup assembly and cloud computing system
CN111327613B (en) Distributed service authority control method and device and computer readable storage medium
US9910881B1 (en) Maintaining versions of control plane data for a network-based service control plane
US11811839B2 (en) Managed distribution of data stream contents
CN103514298A (en) Method for achieving file lock and metadata server
US10182104B1 (en) Automatic propagation of resource attributes in a provider network according to propagation criteria
CN111352592B (en) Disk read-write control method, device, equipment and computer readable storage medium
CN114706690B (en) Method and system for sharing GPU (graphics processing Unit) by Kubernetes container
WO2021082465A1 (en) Method for ensuring data consistency and related device
US10951540B1 (en) Capture and execution of provider network tasks
CN110457307B (en) Metadata management system, user cluster creation method, device, equipment and medium
US20230344781A1 (en) Grouping resource metadata tags
CN108696559B (en) Stream processing method and device
US10516756B1 (en) Selection of a distributed network service
CN117573296A (en) Virtual machine equipment straight-through control method, device, equipment and storage medium
CN113076086B (en) Metadata management system and method for modeling model object using the same
CN115037757A (en) Multi-cluster service management system
US11121981B1 (en) Optimistically granting permission to host computing resources
CN115686811A (en) Process management method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination