WO2024011856A1 - Metadata acquisition method and apparatus, and device and storage medium - Google Patents

Metadata acquisition method and apparatus, and device and storage medium Download PDF

Info

Publication number
WO2024011856A1
WO2024011856A1 PCT/CN2022/141550 CN2022141550W WO2024011856A1 WO 2024011856 A1 WO2024011856 A1 WO 2024011856A1 CN 2022141550 W CN2022141550 W CN 2022141550W WO 2024011856 A1 WO2024011856 A1 WO 2024011856A1
Authority
WO
WIPO (PCT)
Prior art keywords
metadata
virtual machine
query command
command input
peripheral information
Prior art date
Application number
PCT/CN2022/141550
Other languages
French (fr)
Chinese (zh)
Inventor
佘文生
陈俊
刘宽
夏勇
段江南
黄景平
Original Assignee
天翼云科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 天翼云科技有限公司 filed Critical 天翼云科技有限公司
Publication of WO2024011856A1 publication Critical patent/WO2024011856A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/164File meta data generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45587Isolation or security of virtual machine instances

Definitions

  • This application relates to the field of virtualization technology and provides a metadata acquisition method, device, equipment and storage medium.
  • the cloud host initialization program (cloud-init) and other services inside the virtual machine need to obtain the virtual machine metadata and perform initial configuration operations such as name, password, and network.
  • initial configuration operations such as name, password, and network.
  • the other is to establish a network channel for the virtual machine to access an external metadata server, and obtain the corresponding metadata from the metadata server through the established network channel.
  • the virtual machine needs to access the metadata server multiple times, which will occupy a high network bandwidth, which not only affects the normal network communication function of the virtual machine, but also easily causes network abnormalities and increases the failure of metadata acquisition. Rate.
  • Embodiments of the present application provide a metadata acquisition method, device, equipment, and storage medium to solve the problems of occupying cdrom drive letters, occupying high network bandwidth, and having a high risk of file loss.
  • embodiments of the present application provide a method for obtaining metadata, including:
  • Corresponding metadata is obtained from the system management peripheral information, and the metadata is used for initial configuration operations of the virtual machine.
  • system query command based on the object input is used to obtain the system management peripheral information of the own operating system, including:
  • the system management peripheral information of the own operating system is obtained from the virtual machine startup parameters.
  • the object before obtaining the system management peripheral information of the own operating system based on the system query command input using the object, it also includes:
  • a command input interface is presented to the usage object, so that the usage object inputs the system query command in the command input interface.
  • the command input interface after presenting the command input interface to the user object, and before obtaining the system management peripheral information of the own operating system based on the system query command input by the user object, it also includes:
  • determine whether the system query command is a legal command by performing the following operations:
  • embodiments of the present application also provide a metadata acquisition device, including:
  • the acquisition unit is used to obtain the system management peripheral information of its own operating system based on the system query command input using the object;
  • a processing unit configured to obtain corresponding metadata from the system management peripheral information, and the metadata is used for initial configuration operations of the virtual machine.
  • the acquisition unit is used for:
  • the system management peripheral information of the own operating system is obtained from the virtual machine startup parameters.
  • the metadata acquisition device before obtaining the system management peripheral information of its own operating system based on the system query command input using the object, the metadata acquisition device further includes an interface presentation unit, and the interface presentation unit is used for:
  • a command input interface is presented to the usage object, so that the usage object inputs the system query command in the command input interface.
  • the metadata acquisition device further includes a command audit unit,
  • the command audit unit is used for:
  • the command audit unit determines whether the system query command is a legal command by performing the following operations:
  • embodiments of the present application further provide a computer device, including a processor and a memory, wherein the memory stores program code, and when the program code is executed by the processor, the processor Perform the steps for any of the above metadata acquisition methods.
  • embodiments of the present application also provide a computer-readable storage medium, which includes program code.
  • program code When the program product is run on a computer device, the program code is used to cause the computer device to execute any of the above. The steps of the metadata acquisition method.
  • Embodiments of the present application provide a metadata acquisition method, device, equipment and storage medium.
  • the method includes: obtaining the system management peripheral information of its own operating system based on a system query command input using an object; and then obtaining the system management peripheral information from the system management peripheral
  • the corresponding metadata is obtained from the information, which is used for the initial configuration operation of the virtual machine.
  • the method provided by the embodiment of the present application does not require external cdrom. Therefore, the cdrom drive letter will not be occupied, and the cdrom operation permission will not be opened to the user, causing accidental deletion of files, etc. In situations such as file leakage, the security risk of metadata file loss is effectively reduced.
  • the method provided by the embodiment of the present application is executed inside the virtual machine and does not require network communication with other terminal devices to obtain the corresponding metadata. Therefore, when the metadata of the virtual machine is obtained in batches, the virtual machine will not be affected. Under the condition of normal network communication function, a large amount of metadata can be obtained quickly and accurately at a small cost of network bandwidth.
  • Figure 1A is an optional schematic diagram of an application scenario in the embodiment of the present application.
  • Figure 1B is an optional schematic diagram of another application scenario in the embodiment of the present application.
  • Figure 2A is a schematic flowchart of obtaining metadata provided by an embodiment of the present application.
  • Figure 2B is a schematic diagram of the command input interface provided by the embodiment of the present application.
  • Figure 2C is a schematic diagram of alarm information provided by an embodiment of the present application.
  • Figure 3A is a schematic flowchart of obtaining metadata in the kvm virtual machine of centos7 provided by the embodiment of the present application;
  • Figure 3B is a logical schematic diagram of obtaining metadata in the kvm virtual machine of centos7 provided by the embodiment of the present application;
  • Figure 4 is a schematic structural diagram of a metadata acquisition device provided by an embodiment of the present application.
  • Figure 5 is a schematic structural diagram of a computer device provided in an embodiment of the present application.
  • Figure 6 is a schematic structural diagram of a computing device in an embodiment of the present application.
  • Cloud host initialization program (cloud-init):
  • cloud-init is an open source cloud initialization program, which is widely used in major cloud platforms and is used to initialize the customized information (such as host name, password, user data, etc.) specified in the newly created elastic cloud server. configuration.
  • CDROM is an external memory device, a type of optical disc used on computers. This kind of optical disc can only write data once, and the information will be permanently stored on the optical disc. When using it, you need to use the optical disc drive to read the information.
  • a virtual machine is an emulator of a computer system. It simulates a complete computer system with complete hardware system functions and runs in a completely isolated environment through software, which can provide the functions of a physical computer.
  • a system virtual machine provides a complete system platform that can run a complete operating system, while a program virtual machine is designed to run a single computer program.
  • a program virtual machine is designed to run a single computer program.
  • no matter which virtual machine is used its essence is software running on the virtual machine and is limited to the resources provided by the virtual machine.
  • the other is to establish a network channel for the virtual machine to access an external metadata server, and obtain the corresponding metadata from the metadata server through the established network channel.
  • the virtual machine needs to access the metadata server multiple times, which will occupy a high network bandwidth, which not only affects the normal network communication function of the virtual machine, but also easily causes network abnormalities and increases the failure of metadata acquisition. Rate.
  • embodiments of the present application provide a method for obtaining metadata.
  • the method includes: obtaining system management peripheral information of its own operating system based on a system query command input using an object; and then obtaining corresponding virtual machine metadata from the system management peripheral information, and the metadata is used for initial configuration of the virtual machine operate.
  • the method provided by the embodiment of the present application does not require external cdrom. Therefore, the cdrom drive letter will not be occupied, and the cdrom operation permission will not be opened to the user, causing accidental deletion of files, etc. In situations such as file leakage, the security risk of metadata file loss is effectively reduced.
  • the method provided by the embodiment of the present application is executed inside the virtual machine and does not require network communication with other terminal devices to obtain the corresponding metadata. Therefore, when the metadata of the virtual machine is obtained in batches, the virtual machine will not be affected. Under the condition of normal network communication function, a large amount of metadata can be obtained quickly and accurately at a small cost of network bandwidth.
  • FIG 1A shows one of the application scenarios of the embodiment of the present application.
  • This scenario includes multiple physical terminal devices 110. Wired communication or wireless communication is established between each physical terminal device 110, and each physical terminal device 110 can be located in the same local area network or in different local area networks, which is not limited in this application.
  • the physical terminal device 110 runs the deployed virtual machine software in response to the launch operation triggered using the object.
  • the virtual machine obtains the system management peripheral information of its own operating system based on the system query command entered using the object; and then obtains the corresponding metadata from the system management peripheral information, which is used for the virtual machine. Initialize configuration operations.
  • Figure 1B shows another application scenario of the embodiment of the present application.
  • This scenario includes two physical terminal devices 110' and a server 130'. Wired communication or wireless communication is established between each physical terminal device 110' and the server 130', which is not limited in this application.
  • the physical terminal device 110' In response to the access operation triggered by the usage object, the physical terminal device 110' presents the access interface 120' to it; and then remotely accesses the virtual machine on the server 130' based on the URL and other information input by the usage object in the access interface 120'.
  • the virtual machine obtains the system management peripheral information of its own operating system based on the system query command entered using the object; and then obtains the corresponding metadata from the system management peripheral information, which is used for the virtual machine. Initialize configuration operations.
  • the physical terminal device 110 and the physical terminal device 110' in the embodiment of the present application are both computer devices used by users.
  • Computer equipment can be personal computers, mobile phones, tablets, notebooks, e-book readers, smart homes and other computer equipment with certain computing capabilities.
  • the server 130' in the embodiment of the present application can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or can provide cloud services, cloud databases, cloud computing, cloud functions, and cloud storage. , network services, cloud communications, middleware services, domain name services, security services, content distribution network (Content Delivery Network (CDN), as well as cloud servers for basic cloud computing services such as big data and artificial intelligence platforms, this application is not limited here.
  • cloud services cloud communications, middleware services, domain name services, security services, content distribution network (Content Delivery Network (CDN), as well as cloud servers for basic cloud computing services such as big data and artificial intelligence platforms, this application is not limited here.
  • CDN Content Distribution Network
  • the virtual machine obtains the system management peripheral information of its own operating system based on the system query command input using the object.
  • the virtual machine Before performing step 201, the virtual machine responds to a command input operation triggered by the use object and presents a command input interface to the use object, so that the use object inputs a system query command in the command input interface.
  • the user enters the su command in the terminal interface of the virtual machine and presses Enter.
  • the word "password" appears on the terminal interface
  • the user then enters the account password of the virtual machine, and the user is presented with the command input interface shown in Figure 2B.
  • the virtual machine obtains the system query command input by the user object, and then determines whether the system query command is a legal command. If so, continues the system query based on the user object input. command to obtain the system management peripheral information of its own operating system; otherwise, an alarm message is sent to the user object, prompting the other party to re-enter a new system query command.
  • the virtual machine can determine whether the system query command entered using the object is a legal command by performing the following operations:
  • the virtual machine Based on the system type of the operating system, the virtual machine obtains the corresponding syntax rules; and then determines whether the system query command complies with the syntax rules. If so, the system query command is determined to be a legal command; otherwise, the system query command is determined to be an illegal command.
  • corresponding syntax rules are configured for different types of operating systems.
  • the virtual machine determines that the system query command is a legal command, and then obtains the system management peripheral information of its own operating system based on the system query command.
  • system administrator adds customized system management peripherals (i.e. System Management Basic Input Output System, smbios) field.
  • This field contains the metadata required when the virtual machine starts. Therefore, when the virtual machine starts, you can obtain the system management peripheral information of its own operating system from the virtual machine startup parameters by using the system query command entered by the object.
  • S202 The virtual machine obtains corresponding metadata from the system management peripheral information, and the metadata is used for the initial configuration operation of the virtual machine.
  • centos7 take the kvm virtual machine that starts centos7 as an example.
  • the system query command entered by the user is "dmidecode –oem-string 1".
  • the method provided by the embodiment of the present application does not require external cdrom. Therefore, the cdrom drive letter will not be occupied, and the cdrom operation permission will not be opened to the user, causing accidental deletion of files, etc. In situations such as file leakage, the security risk of metadata file loss is effectively reduced.
  • the method provided by the embodiment of the present application is executed inside the virtual machine and does not require network communication with other terminal devices to obtain the corresponding metadata. Therefore, when the metadata of the virtual machine is obtained in batches, the virtual machine will not be affected. Under the condition of normal network communication function, a large amount of metadata can be obtained quickly and accurately at a small cost of network bandwidth.
  • the metadata acquisition device 400 may include:
  • the acquisition unit 401 is used to obtain the system management peripheral information of its own operating system based on the system query command input using the object;
  • the processing unit 402 is configured to obtain corresponding metadata from the system management peripheral information, and the metadata is used for the initial configuration operation of the virtual machine.
  • the acquisition unit 401 is used for:
  • the system management peripheral information of the own operating system is obtained from the virtual machine startup parameters.
  • the metadata acquisition device 400 before obtaining the system management peripheral information of its own operating system based on the system query command input using the object, the metadata acquisition device 400 also includes an interface presentation unit 403, which is used to:
  • a command input interface is presented to the usage object, so that the usage object inputs a system query command in the command input interface.
  • the metadata acquisition device 400 further includes a command audit unit 404 to perform command auditing.
  • Unit 404 is used for:
  • the command audit unit 404 determines whether the system query command is a legal command by performing the following operations:
  • each of the above parts is divided into modules (or units) according to their functions and described separately.
  • the functions of each module (or unit) can be implemented in the same or multiple software or hardware.
  • the computer device 500 may include at least a processor 501 and a memory 502 .
  • the memory 502 stores program code.
  • the program code When executed by the processor 501, it causes the processor 501 to perform the steps of any of the above metadata acquisition methods.
  • a computing device may include at least one processor, and at least one memory.
  • the memory stores program code.
  • the program code When executed by the processor, it causes the processor to perform the steps in the metadata acquisition method described above in this specification according to various exemplary embodiments of the present application.
  • the processor may perform the steps shown in Figure 2A.
  • a computing device 600 according to this embodiment of the present application is described below with reference to FIG. 6 .
  • the computing device 600 in FIG. 6 is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present application.
  • computing device 600 is embodied in the form of a general-purpose computing device.
  • the components of the computing device 600 may include, but are not limited to: the above-mentioned at least one processing unit 601, the above-mentioned at least one storage unit 602, and a bus 603 connecting different system components (including the storage unit 602 and the processing unit 601).
  • Bus 603 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus structures.
  • the storage unit 602 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 6021 and/or a cache storage unit 6022, and may further include a read-only memory (ROM) 6023.
  • RAM random access memory
  • ROM read-only memory
  • Storage unit 602 may also include a program/utility 6025 having a set of (at least one) program modules 6024 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, Each of these examples, or some combination, may include the implementation of a network environment.
  • program/utility 6025 having a set of (at least one) program modules 6024 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, Each of these examples, or some combination, may include the implementation of a network environment.
  • Computing device 600 may also communicate with one or more external devices 604 (e.g., keyboard, pointing device, etc.), with one or more devices that enable a user to interact with computing device 600, and/or with one or more devices that enable the computing device 600 to 600 can communicate with any device (eg, router, modem, etc.) that can communicate with one or more other computing devices. This communication may occur through input/output (I/O) interface 605. Also, computing device 600 may communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through network adapter 606 . As shown, network adapter 606 communicates with other modules for computing device 600 via bus 603 .
  • I/O input/output
  • networks eg, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet
  • network adapter 606 communicates with other modules for computing device 600 via bus 603 .
  • computing device 600 may be used in conjunction with computing device 600, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc.
  • various aspects of the metadata acquisition method provided by this application can also be implemented in the form of a program product, which includes program code.
  • the program product When the program product is run on a computer device, the program code is In order to cause the computer device to perform the steps in the metadata acquisition method according to various exemplary embodiments of the present application described above in this specification, for example, the computer device may perform the steps shown in FIG. 2A.
  • the Program Product may take the form of one or more readable media in any combination.
  • the readable medium may be a readable signal medium or a readable storage medium.
  • the readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.

Abstract

A metadata acquisition method and apparatus, and a device and a storage medium. The method comprises: a virtual machine acquiring system management peripheral information of its own operating system on the basis of a system query command, which is input by a use subject (S201); and the virtual machine obtaining corresponding metadata from the system management peripheral information, wherein the metadata is used for an initialization configuration operation of the virtual machine (S202). By means of the method, no plug-in CDROM is required, no CDROM drive letter is occupied, and the situations of mistakenly deleting a file, disclosing a file, etc., due to opening a CDROM operation permission to the use subject are prevented, thereby effectively reducing the security risk of the loss of a metadata file. In addition, the method is executed inside the virtual machine, and the corresponding metadata is acquired without the need for network communication with another terminal device, such that when the metadata of the virtual machine is acquired in batches, a large amount of metadata can be quickly and accurately acquired by means of a relatively small network bandwidth.

Description

元数据获取方法、装置、设备及存储介质Metadata acquisition methods, devices, equipment and storage media 技术领域Technical field
本申请涉及虚拟化技术领域,提供了一种元数据获取方法、装置、设备及存储介质。This application relates to the field of virtualization technology and provides a metadata acquisition method, device, equipment and storage medium.
背景技术Background technique
在刚刚启动云电脑、云桌面等虚拟机时,虚拟机内部的云主机初始化程序(cloud-init)等服务需要获取虚拟机元数据,进行名称、密码、网络等初始化配置操作。目前常采用以下两种方法,获取虚拟机的元数据:When a virtual machine such as a cloud computer or cloud desktop is just started, the cloud host initialization program (cloud-init) and other services inside the virtual machine need to obtain the virtual machine metadata and perform initial configuration operations such as name, password, and network. Currently, the following two methods are commonly used to obtain the metadata of a virtual machine:
一种是以只读光盘(Compact Disc Read-Only Memory,cdrom)的形式,将包含元数据信息的文件挂载给虚拟机,虚拟机内部再通过读取cdrom信息,获取相应的虚拟机元数据。但是,这种元数据获取方法不仅占用了虚拟机的cdrom盘符,导致虚拟机无法再外挂其他的cdrom,还会因为向使用对象开放了cdrom操作权限,增加元数据文件丢失的安全风险。One is the Compact Disc Read-Only Memory (cdrom), mount the file containing metadata information to the virtual machine, and then read the cdrom information inside the virtual machine to obtain the corresponding virtual machine metadata. However, this method of obtaining metadata not only occupies the CDROM drive letter of the virtual machine, making it impossible for the virtual machine to plug in other CDROMs, but also increases the security risk of metadata file loss because it opens CDROM operation permissions to the user.
另一种是为虚拟机建立一条用于访问外部的元数据服务器的网络通道,通过建立的网络通道,从元数据服务器中获取相应的元数据。但是,在批量获取元数据时,虚拟机需要多次访问元数据服务器,会占用较高的网络带宽,既影响了虚拟机的正常网络通信功能,又容易引发网络异常,增加了元数据获取失败率。The other is to establish a network channel for the virtual machine to access an external metadata server, and obtain the corresponding metadata from the metadata server through the established network channel. However, when obtaining metadata in batches, the virtual machine needs to access the metadata server multiple times, which will occupy a high network bandwidth, which not only affects the normal network communication function of the virtual machine, but also easily causes network abnormalities and increases the failure of metadata acquisition. Rate.
技术问题technical problem
本申请实施例提供了一种元数据获取方法、装置、设备及存储介质,以解决占用cdrom盘符、占用较高的网络带宽和文件丢失风险高的问题。Embodiments of the present application provide a metadata acquisition method, device, equipment, and storage medium to solve the problems of occupying cdrom drive letters, occupying high network bandwidth, and having a high risk of file loss.
技术解决方案Technical solutions
第一方面,本申请实施例提供了一种元数据获取方法,包括:In the first aspect, embodiments of the present application provide a method for obtaining metadata, including:
基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息;Obtain the system management peripheral information of its own operating system based on the system query command entered using the object;
从所述系统管理外设信息中得到相应的元数据,所述元数据用于虚拟机的初始化配置操作。Corresponding metadata is obtained from the system management peripheral information, and the metadata is used for initial configuration operations of the virtual machine.
可选的,所述基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息,包括:Optionally, the system query command based on the object input is used to obtain the system management peripheral information of the own operating system, including:
基于所述使用对象输入的系统查询命令,从虚拟机启动参数中获取自身操作系统的系统管理外设信息。Based on the system query command input by the use object, the system management peripheral information of the own operating system is obtained from the virtual machine startup parameters.
可选的,在基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息之前,还包括:Optionally, before obtaining the system management peripheral information of the own operating system based on the system query command input using the object, it also includes:
响应于所述使用对象触发的命令输入操作,向所述使用对象呈现命令输入界面,以使所述使用对象在所述命令输入界面中输入所述系统查询命令。In response to a command input operation triggered by the usage object, a command input interface is presented to the usage object, so that the usage object inputs the system query command in the command input interface.
可选的,在向所述使用对象呈现命令输入界面之后,在基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息之前,还包括:Optionally, after presenting the command input interface to the user object, and before obtaining the system management peripheral information of the own operating system based on the system query command input by the user object, it also includes:
获取所述使用对象输入的系统查询命令;Obtain the system query command input using the object;
判断所述系统查询命令是否为合法命令,若是,继续基于所述使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息;否则,向所述使用对象发送告警信息,提示对方重新输入新的系统查询命令。Determine whether the system query command is a legal command. If so, continue to obtain the system management peripheral information of its own operating system based on the system query command input by the user object; otherwise, send an alarm message to the user object to prompt the other party to restart Enter a new system query command.
可选的,通过执行以下操作,判断所述系统查询命令是否为合法命令:Optionally, determine whether the system query command is a legal command by performing the following operations:
基于所述操作系统的系统类型,获取相应的语法规则;Based on the system type of the operating system, obtain the corresponding grammar rules;
判断所述系统查询命令是否符合所述语法规则,若是,则确定所述系统查询命令为合法命令;否则,确定所述系统查询命令为非法命令。Determine whether the system query command complies with the grammatical rule. If so, the system query command is determined to be a legal command; otherwise, the system query command is determined to be an illegal command.
第二方面,本申请实施例还提供了一种元数据获取装置,包括:In a second aspect, embodiments of the present application also provide a metadata acquisition device, including:
获取单元,用于基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息;The acquisition unit is used to obtain the system management peripheral information of its own operating system based on the system query command input using the object;
处理单元,用于从所述系统管理外设信息中得到相应的元数据,所述元数据用于虚拟机的初始化配置操作。A processing unit configured to obtain corresponding metadata from the system management peripheral information, and the metadata is used for initial configuration operations of the virtual machine.
可选的,所述获取单元用于:Optionally, the acquisition unit is used for:
基于所述使用对象输入的系统查询命令,从虚拟机启动参数中获取自身操作系统的系统管理外设信息。Based on the system query command input by the use object, the system management peripheral information of the own operating system is obtained from the virtual machine startup parameters.
可选的,在基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息之前,所述元数据获取装置还包括界面呈现单元,所述界面呈现单元用于:Optionally, before obtaining the system management peripheral information of its own operating system based on the system query command input using the object, the metadata acquisition device further includes an interface presentation unit, and the interface presentation unit is used for:
响应于所述使用对象触发的命令输入操作,向所述使用对象呈现命令输入界面,以使所述使用对象在所述命令输入界面中输入所述系统查询命令。In response to a command input operation triggered by the usage object, a command input interface is presented to the usage object, so that the usage object inputs the system query command in the command input interface.
可选的,在向所述使用对象呈现命令输入界面之后,在基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息之前,所述元数据获取装置还包括命令审计单元,所述命令审计单元用于:Optionally, after presenting the command input interface to the user object, and before obtaining the system management peripheral information of the own operating system based on the system query command input by the user object, the metadata acquisition device further includes a command audit unit, The command audit unit is used for:
获取所述使用对象输入的系统查询命令;Obtain the system query command input using the object;
判断所述系统查询命令是否为合法命令,若是,继续基于所述使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息;否则,向所述使用对象发送告警信息,提示对方重新输入新的系统查询命令。Determine whether the system query command is a legal command. If so, continue to obtain the system management peripheral information of its own operating system based on the system query command input by the user object; otherwise, send an alarm message to the user object to prompt the other party to restart Enter a new system query command.
可选的,所述命令审计单元通过执行以下操作,判断所述系统查询命令是否为合法命令:Optionally, the command audit unit determines whether the system query command is a legal command by performing the following operations:
基于所述操作系统的系统类型,获取相应的语法规则;Based on the system type of the operating system, obtain the corresponding grammar rules;
判断所述系统查询命令是否符合所述语法规则,若是,则确定所述系统查询命令为合法命令;否则,确定所述系统查询命令为非法命令。Determine whether the system query command complies with the grammatical rule. If so, the system query command is determined to be a legal command; otherwise, the system query command is determined to be an illegal command.
第三方面,本申请实施例还提供了一种计算机设备,包括处理器和存储器,其中,所述存储器存储有程序代码,当所述程序代码被所述处理器执行时,使得所述处理器执行上述任意一种元数据获取方法的步骤。In a third aspect, embodiments of the present application further provide a computer device, including a processor and a memory, wherein the memory stores program code, and when the program code is executed by the processor, the processor Perform the steps for any of the above metadata acquisition methods.
第四方面,本申请实施例还提供了一种计算机可读存储介质,其包括程序代码,当程序产品在计算机设备上运行时,所述程序代码用于使所述计算机设备执行上述任意一种元数据获取方法的步骤。In a fourth aspect, embodiments of the present application also provide a computer-readable storage medium, which includes program code. When the program product is run on a computer device, the program code is used to cause the computer device to execute any of the above. The steps of the metadata acquisition method.
本申请有益效果如下:The beneficial effects of this application are as follows:
本申请实施例提供了一种元数据获取方法、装置、设备及存储介质,该方法包括:基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息;再从系统管理外设信息中得到相应的元数据,该元数据用于虚拟机的初始化配置操作。Embodiments of the present application provide a metadata acquisition method, device, equipment and storage medium. The method includes: obtaining the system management peripheral information of its own operating system based on a system query command input using an object; and then obtaining the system management peripheral information from the system management peripheral The corresponding metadata is obtained from the information, which is used for the initial configuration operation of the virtual machine.
相较于传统的元数据获取方法,本申请实施例所提供的方法不需要外挂cdrom,因此,不会占用cdrom盘符,也不会因为向使用对象开放了cdrom操作权限,出现误删文件、泄露文件等情况,有效降低了元数据文件丢失的安全风险。Compared with the traditional metadata acquisition method, the method provided by the embodiment of the present application does not require external cdrom. Therefore, the cdrom drive letter will not be occupied, and the cdrom operation permission will not be opened to the user, causing accidental deletion of files, etc. In situations such as file leakage, the security risk of metadata file loss is effectively reduced.
此外,本申请实施例所提供的方法是在虚拟机内部执行的,不需要与其他终端设备网络通信,获取相应的元数据,因此,在批量获取虚拟机的元数据时,在不影响虚拟机的正常网络通信功能的情况下,花费较小的网络带宽,快速、准确地获取到大量的元数据。In addition, the method provided by the embodiment of the present application is executed inside the virtual machine and does not require network communication with other terminal devices to obtain the corresponding metadata. Therefore, when the metadata of the virtual machine is obtained in batches, the virtual machine will not be affected. Under the condition of normal network communication function, a large amount of metadata can be obtained quickly and accurately at a small cost of network bandwidth.
本申请的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the application will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
附图说明Description of drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described here are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation of the present application. In the attached picture:
图1A为本申请实施例中一种应用场景的一个可选的示意图; Figure 1A is an optional schematic diagram of an application scenario in the embodiment of the present application;
图1B为本申请实施例中另一种应用场景的一个可选的示意图;Figure 1B is an optional schematic diagram of another application scenario in the embodiment of the present application;
图2A为本申请实施例提供的获取元数据的流程示意图;Figure 2A is a schematic flowchart of obtaining metadata provided by an embodiment of the present application;
图2B为本申请实施例提供的命令输入界面示意图;Figure 2B is a schematic diagram of the command input interface provided by the embodiment of the present application;
图2C为本申请实施例提供的告警信息示意图;Figure 2C is a schematic diagram of alarm information provided by an embodiment of the present application;
图3A为本申请实施例提供的在centos7的kvm虚拟机中获取元数据的流程示意图;Figure 3A is a schematic flowchart of obtaining metadata in the kvm virtual machine of centos7 provided by the embodiment of the present application;
图3B为本申请实施例提供的在centos7的kvm虚拟机中获取元数据的逻辑示意图;Figure 3B is a logical schematic diagram of obtaining metadata in the kvm virtual machine of centos7 provided by the embodiment of the present application;
图4为本申请实施例提供的一种元数据获取装置的结构示意图;Figure 4 is a schematic structural diagram of a metadata acquisition device provided by an embodiment of the present application;
图5为本申请实施例中提供的一种计算机设备的组成结构示意图;Figure 5 is a schematic structural diagram of a computer device provided in an embodiment of the present application;
图6为本申请实施例中的一个计算装置的结构示意图。Figure 6 is a schematic structural diagram of a computing device in an embodiment of the present application.
本发明的实施方式Embodiments of the invention
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请技术方案的一部分实施例,而不是全部的实施例。基于本申请文件中记载的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请技术方案保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are Some embodiments of the technical solution, rather than all embodiments. Based on the embodiments recorded in the application documents, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the technical solution of this application.
以下对本申请实施例中的部分用语进行解释说明,以便于本领域技术人员理解。Some terms used in the embodiments of this application are explained below to facilitate understanding by those skilled in the art.
1、云主机初始化程序(cloud-init):1. Cloud host initialization program (cloud-init):
cloud-init是开源的云初始化程序,被广泛应用于各大云平台中,用于对新创建的弹性云服务器中指定的自定义信息(如,主机名、密码、用户数据等信息)进行初始化配置。cloud-init is an open source cloud initialization program, which is widely used in major cloud platforms and is used to initialize the customized information (such as host name, password, user data, etc.) specified in the newly created elastic cloud server. configuration.
2、只读光盘(Compact Disc Read-Only Memory,cdrom):2. Compact Disc Read-Only Memory (cdrom):
cdrom属于外存储器设备,是一种在电脑上使用的光碟。这种光碟只能写入一次数据,信息会永久保存在光碟上,使用时需借助于光碟驱动器读取信息。CDROM is an external memory device, a type of optical disc used on computers. This kind of optical disc can only write data once, and the information will be permanently stored on the optical disc. When using it, you need to use the optical disc drive to read the information.
3、虚拟机(Virtual Machine):3. Virtual Machine:
虚拟机是计算机系统的仿真器,通过软件模拟具有完整硬件系统功能的、运行在一个完全隔离环境中的完整计算机系统,能提供物理计算机的功能。A virtual machine is an emulator of a computer system. It simulates a complete computer system with complete hardware system functions and runs in a completely isolated environment through software, which can provide the functions of a physical computer.
根据虚拟机的运用场景和与直接机器的相关性,可分为系统虚拟机和程序虚拟机。系统虚拟机提供了一个可以运行完整操作系统的完整系统平台,而程序虚拟机是为运行单个计算机程序所设计的。但是,无论使用哪种虚拟机,其本质均是运行在虚拟机上的软件,被局限在虚拟机提供的资源里。According to the application scenarios of virtual machines and their correlation with direct machines, they can be divided into system virtual machines and program virtual machines. A system virtual machine provides a complete system platform that can run a complete operating system, while a program virtual machine is designed to run a single computer program. However, no matter which virtual machine is used, its essence is software running on the virtual machine and is limited to the resources provided by the virtual machine.
下面对本申请实施例的设计思想进行简要介绍:The design ideas of the embodiments of this application are briefly introduced below:
在刚刚启动云电脑、云桌面等虚拟机时,虚拟机内部的cloud-init等服务需要获取虚拟机元数据,进行名称、密码、网络等初始化配置操作。目前常采用以下两种方法,获取虚拟机的元数据:When a virtual machine such as a cloud computer or cloud desktop is just started, services such as cloud-init inside the virtual machine need to obtain the virtual machine metadata and perform initial configuration operations such as name, password, and network. Currently, the following two methods are commonly used to obtain the metadata of a virtual machine:
一种是以cdrom的形式,将包含元数据信息的文件挂载给虚拟机,虚拟机内部再通过读取cdrom信息,获取相应的虚拟机元数据。但是,这种元数据获取方法不仅占用了虚拟机的cdrom盘符,导致虚拟机无法再外挂其他的cdrom,还会因为向使用对象开放了cdrom操作权限,增加元数据文件丢失的安全风险。One is to mount files containing metadata information to the virtual machine in the form of cdrom, and then read the cdrom information inside the virtual machine to obtain the corresponding virtual machine metadata. However, this method of obtaining metadata not only occupies the CDROM drive letter of the virtual machine, making it impossible for the virtual machine to plug in other CDROMs, but also increases the security risk of metadata file loss because it opens CDROM operation permissions to the user.
另一种是为虚拟机建立一条用于访问外部的元数据服务器的网络通道,通过建立的网络通道,从元数据服务器中获取相应的元数据。但是,在批量获取元数据时,虚拟机需要多次访问元数据服务器,会占用较高的网络带宽,既影响了虚拟机的正常网络通信功能,又容易引发网络异常,增加了元数据获取失败率。The other is to establish a network channel for the virtual machine to access an external metadata server, and obtain the corresponding metadata from the metadata server through the established network channel. However, when obtaining metadata in batches, the virtual machine needs to access the metadata server multiple times, which will occupy a high network bandwidth, which not only affects the normal network communication function of the virtual machine, but also easily causes network abnormalities and increases the failure of metadata acquisition. Rate.
有鉴于此,本申请实施例提供了一种元数据获取方法。该方法包括:基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息;再从系统管理外设信息中得到相应的虚拟机元数据,该元数据用于虚拟机的初始化配置操作。In view of this, embodiments of the present application provide a method for obtaining metadata. The method includes: obtaining system management peripheral information of its own operating system based on a system query command input using an object; and then obtaining corresponding virtual machine metadata from the system management peripheral information, and the metadata is used for initial configuration of the virtual machine operate.
相较于传统的元数据获取方法,本申请实施例所提供的方法不需要外挂cdrom,因此,不会占用cdrom盘符,也不会因为向使用对象开放了cdrom操作权限,出现误删文件、泄露文件等情况,有效降低了元数据文件丢失的安全风险。Compared with the traditional metadata acquisition method, the method provided by the embodiment of the present application does not require external cdrom. Therefore, the cdrom drive letter will not be occupied, and the cdrom operation permission will not be opened to the user, causing accidental deletion of files, etc. In situations such as file leakage, the security risk of metadata file loss is effectively reduced.
此外,本申请实施例所提供的方法是在虚拟机内部执行的,不需要与其他终端设备网络通信,获取相应的元数据,因此,在批量获取虚拟机的元数据时,在不影响虚拟机的正常网络通信功能的情况下,花费较小的网络带宽,快速、准确地获取到大量的元数据。In addition, the method provided by the embodiment of the present application is executed inside the virtual machine and does not require network communication with other terminal devices to obtain the corresponding metadata. Therefore, when the metadata of the virtual machine is obtained in batches, the virtual machine will not be affected. Under the condition of normal network communication function, a large amount of metadata can be obtained quickly and accurately at a small cost of network bandwidth.
以下结合说明书附图对本申请的优选实施例进行说明,应当理解,此处所描述的优选实施例仅用于说明和解释本申请,并不用于限定本申请,并且在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The preferred embodiments of the present application are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present application, and are not used to limit the present application. In the absence of conflict, the present application The embodiments and features of the embodiments may be combined with each other.
图1A示出了本申请实施例的其中一种应用场景,该场景包括多台物理终端设备110。各台物理终端设备110之间建立有线通信或无线通信,且各台物理终端设备110可以位于同一局域网,也可以位于不同局域网,本申请在此不作限制。Figure 1A shows one of the application scenarios of the embodiment of the present application. This scenario includes multiple physical terminal devices 110. Wired communication or wireless communication is established between each physical terminal device 110, and each physical terminal device 110 can be located in the same local area network or in different local area networks, which is not limited in this application.
物理终端设备110响应于使用对象触发的启动操作,运行已部署的虚拟机软件。当虚拟机启动时,虚拟机基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息;再从系统管理外设信息中得到相应的元数据,该元数据用于虚拟机的初始化配置操作。The physical terminal device 110 runs the deployed virtual machine software in response to the launch operation triggered using the object. When the virtual machine is started, the virtual machine obtains the system management peripheral information of its own operating system based on the system query command entered using the object; and then obtains the corresponding metadata from the system management peripheral information, which is used for the virtual machine. Initialize configuration operations.
图1B示出了本申请实施例的另一种应用场景,该场景包括两台物理终端设备110'与一台服务器130'。各台物理终端设备110'与服务器130'之间建立有线通信或无线通信,本申请在此不作限制。Figure 1B shows another application scenario of the embodiment of the present application. This scenario includes two physical terminal devices 110' and a server 130'. Wired communication or wireless communication is established between each physical terminal device 110' and the server 130', which is not limited in this application.
物理终端设备110'响应于使用对象触发的访问操作,向其呈现访问界面120';再基于使用对象在访问界面120'中输入的网址等信息,远程访问服务器130'上的虚拟机。当虚拟机启动时,虚拟机基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息;再从系统管理外设信息中得到相应的元数据,该元数据用于虚拟机的初始化配置操作。In response to the access operation triggered by the usage object, the physical terminal device 110' presents the access interface 120' to it; and then remotely accesses the virtual machine on the server 130' based on the URL and other information input by the usage object in the access interface 120'. When the virtual machine is started, the virtual machine obtains the system management peripheral information of its own operating system based on the system query command entered using the object; and then obtains the corresponding metadata from the system management peripheral information, which is used for the virtual machine. Initialize configuration operations.
其中,本申请实施例的物理终端设备110与物理终端设备110'均为用户使用的计算机设备。计算机设备可以是个人计算机、手机、平板电脑、笔记本、电子书阅读器、智能家居等具备一定计算能力的计算机设备。Among them, the physical terminal device 110 and the physical terminal device 110' in the embodiment of the present application are both computer devices used by users. Computer equipment can be personal computers, mobile phones, tablets, notebooks, e-book readers, smart homes and other computer equipment with certain computing capabilities.
本申请实施例的服务器130',可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器,本申请在此不做限制。The server 130' in the embodiment of the present application can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or can provide cloud services, cloud databases, cloud computing, cloud functions, and cloud storage. , network services, cloud communications, middleware services, domain name services, security services, content distribution network (Content Delivery Network (CDN), as well as cloud servers for basic cloud computing services such as big data and artificial intelligence platforms, this application is not limited here.
参阅图2A示出的流程示意图,当虚拟机启动时,获取虚拟机元数据的过程如下:Referring to the schematic flow chart shown in Figure 2A, when the virtual machine is started, the process of obtaining virtual machine metadata is as follows:
S201:虚拟机基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息。S201: The virtual machine obtains the system management peripheral information of its own operating system based on the system query command input using the object.
在执行步骤201之前,虚拟机响应于使用对象触发的命令输入操作,向使用对象呈现命令输入界面,以使使用对象在命令输入界面中输入系统查询命令。Before performing step 201, the virtual machine responds to a command input operation triggered by the use object and presents a command input interface to the use object, so that the use object inputs a system query command in the command input interface.
例如,用户在虚拟机的终端界面中输入su命令并回车,在终端界面出现“密码”字样时,再输入虚拟机的账户密码,向用户呈现如图2B所示的命令输入界面。For example, the user enters the su command in the terminal interface of the virtual machine and presses Enter. When the word "password" appears on the terminal interface, the user then enters the account password of the virtual machine, and the user is presented with the command input interface shown in Figure 2B.
接下来,在向使用对象呈现命令输入界面之后,在执行步骤201之前,虚拟机获取使用对象输入的系统查询命令,再判断系统查询命令是否为合法命令,若是,继续基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息;否则,向使用对象发送告警信息,提示对方重新输入新的系统查询命令。Next, after presenting the command input interface to the user object, before executing step 201, the virtual machine obtains the system query command input by the user object, and then determines whether the system query command is a legal command. If so, continues the system query based on the user object input. command to obtain the system management peripheral information of its own operating system; otherwise, an alarm message is sent to the user object, prompting the other party to re-enter a new system query command.
具体地,虚拟机可通过执行以下操作,判断使用对象输入的系统查询命令是否为合法命令:Specifically, the virtual machine can determine whether the system query command entered using the object is a legal command by performing the following operations:
虚拟机基于操作系统的系统类型,获取相应的语法规则;再判断系统查询命令是否符合语法规则,若是,则确定系统查询命令为合法命令;否则,确定系统查询命令为非法命令。Based on the system type of the operating system, the virtual machine obtains the corresponding syntax rules; and then determines whether the system query command complies with the syntax rules. If so, the system query command is determined to be a legal command; otherwise, the system query command is determined to be an illegal command.
在本申请实施例中,为不同类型的操作系统配置了相应的语法规则。在运行了Linux操作系统的虚拟机中使用dmidecode命令,查看系统管理外设信息;在运行了Windows操作系统的虚拟机中使用wmic命令,查看系统管理外设信息。In this embodiment of the present application, corresponding syntax rules are configured for different types of operating systems. Use the dmidecode command in a virtual machine running the Linux operating system to view system management peripheral information; use the wmic command in a virtual machine running the Windows operating system to view system management peripheral information.
假设虚拟机上运行了Linux操作系统,用户输入的系统查询命令为“wmic –oem-string 1”,由于该命令不符合该操作系统的语法规则,所以,虚拟机会在命令输入界面中,向用户呈现如图2C所示的告警信息“不是内部或外部命令,也不是可运行的程序,请重新输入系统命令”,提示对方重新输入新的系统查询命令。Assume that the Linux operating system is running on the virtual machine, and the system query command entered by the user is "wmic –oem-string 1". Since this command does not comply with the syntax rules of the operating system, the virtual machine will ask the user in the command input interface. The warning message "Not an internal or external command, nor an operable program, please re-enter the system command" as shown in Figure 2C is displayed, prompting the other party to re-enter a new system query command.
假设虚拟机上运行了Linux操作系统,用户输入的系统查询命令为“dmidecode –oem-string 1”,由于该命令符合该操作系统的语法规则,虚拟机确定系统查询命令为合法命令,再基于该系统查询命令,获取自身操作系统的系统管理外设信息。Assume that the Linux operating system is running on the virtual machine, and the system query command entered by the user is "dmidecode –oem-string 1", because the command complies with the syntax rules of the operating system, the virtual machine determines that the system query command is a legal command, and then obtains the system management peripheral information of its own operating system based on the system query command.
在本申请实施例提供的虚拟机元数据的获取方法中,系统管理员提前在虚拟机启动参数中,增加了自定义的系统管理外设(即System Management Basic Input Output System,smbios)字段。该字段包含了虚拟机启动时所需的元数据,因此,在虚拟机启动时,可以通过使用对象输入的系统查询命令,从虚拟机启动参数中获取自身操作系统的系统管理外设信息。In the method for obtaining virtual machine metadata provided by the embodiments of this application, the system administrator adds customized system management peripherals (i.e. System Management Basic Input Output System, smbios) field. This field contains the metadata required when the virtual machine starts. Therefore, when the virtual machine starts, you can obtain the system management peripheral information of its own operating system from the virtual machine startup parameters by using the system query command entered by the object.
例如,以启动centos7的kvm虚拟机为例,在虚拟机启动参数中增加系统管理外设字段“- smbios type=11,value=name=centos7-test1”,该字段的值为虚拟机启动时所需的元数据“name=centos7-test1”。For example, taking the kvm virtual machine that starts centos7 as an example, add the system management peripheral field "-smbios" to the virtual machine startup parameters. type=11,value=name=centos7-test1", the value of this field is the metadata "name=centos7-test1" required when starting the virtual machine.
S202:虚拟机从系统管理外设信息中得到相应的元数据,该元数据用于虚拟机的初始化配置操作。S202: The virtual machine obtains corresponding metadata from the system management peripheral information, and the metadata is used for the initial configuration operation of the virtual machine.
承接上例,以启动centos7的kvm虚拟机为例,用户输入的系统查询命令为“dmidecode –oem-string 1”,虚拟机基于待查询数据信息,从系统管理外设信息中得到相应的元数据“name=centos7-test1”。相较于传统的元数据获取方法,本申请实施例所提供的方法不需要外挂cdrom,因此,不会占用cdrom盘符,也不会因为向使用对象开放了cdrom操作权限,出现误删文件、泄露文件等情况,有效降低了元数据文件丢失的安全风险。Following the above example, take the kvm virtual machine that starts centos7 as an example. The system query command entered by the user is "dmidecode –oem-string 1". The virtual machine obtains the corresponding metadata from the system management peripheral information based on the data information to be queried. "name=centos7-test1". Compared with the traditional metadata acquisition method, the method provided by the embodiment of the present application does not require external cdrom. Therefore, the cdrom drive letter will not be occupied, and the cdrom operation permission will not be opened to the user, causing accidental deletion of files, etc. In situations such as file leakage, the security risk of metadata file loss is effectively reduced.
此外,本申请实施例所提供的方法是在虚拟机内部执行的,不需要与其他终端设备网络通信,获取相应的元数据,因此,在批量获取虚拟机的元数据时,在不影响虚拟机的正常网络通信功能的情况下,花费较小的网络带宽,快速、准确地获取到大量的元数据。In addition, the method provided by the embodiment of the present application is executed inside the virtual machine and does not require network communication with other terminal devices to obtain the corresponding metadata. Therefore, when the metadata of the virtual machine is obtained in batches, the virtual machine will not be affected. Under the condition of normal network communication function, a large amount of metadata can be obtained quickly and accurately at a small cost of network bandwidth.
参阅图3A示出的流程示意图与图3B示出的逻辑示意图,在centos7的kvm虚拟机中获取元数据的过程如下:Referring to the flow diagram shown in Figure 3A and the logic diagram shown in Figure 3B, the process of obtaining metadata in the kvm virtual machine of centos7 is as follows:
S301:在虚拟机启动时,用户向虚拟机发送su命令,并执行回车操作;S301: When the virtual machine starts, the user sends the su command to the virtual machine and executes the Enter operation;
S302:虚拟机在接收到su命令时,响应于用户触发的回车操作,在终端界面中呈现“输入密码”的提示信息;S302: When the virtual machine receives the su command, in response to the enter operation triggered by the user, a prompt message of "enter password" is displayed in the terminal interface;
S303:用户向虚拟机发送相应的账户密码;S303: The user sends the corresponding account password to the virtual machine;
S304:虚拟机在接收到账户密码时,向用户呈现命令输入界面;S304: When the virtual machine receives the account password, it presents the command input interface to the user;
S305:用户向虚拟机发送系统查询命令“dmidecode –oem-string 1”;S305: The user sends the system query command "dmidecode –oem-string 1" to the virtual machine;
S306:虚拟机在确定系统查询命令为合法命令时,基于该系统查询命令,获取自身操作系统的系统管理外设信息;S306: When the virtual machine determines that the system query command is a legal command, it obtains the system management peripheral information of its own operating system based on the system query command;
S307:虚拟机从系统管理外设信息中得到相应的元数据“name=centos7-test1”;S307: The virtual machine obtains the corresponding metadata "name=centos7-test1" from the system management peripheral information;
S308:虚拟机向用户呈现相应的元数据“name=centos7-test1”。S308: The virtual machine presents the corresponding metadata "name=centos7-test1" to the user.
与上述方法实施例基于同一发明构思,本申请实施例还提供了一种元数据获取装置。如图4所示,元数据获取装置400可以包括:Based on the same inventive concept as the above method embodiments, embodiments of the present application also provide a metadata acquisition device. As shown in Figure 4, the metadata acquisition device 400 may include:
获取单元401,用于基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息;The acquisition unit 401 is used to obtain the system management peripheral information of its own operating system based on the system query command input using the object;
处理单元402,用于从系统管理外设信息中得到相应的元数据,所述元数据用于虚拟机的初始化配置操作。The processing unit 402 is configured to obtain corresponding metadata from the system management peripheral information, and the metadata is used for the initial configuration operation of the virtual machine.
可选的,获取单元401用于:Optionally, the acquisition unit 401 is used for:
基于使用对象输入的系统查询命令,从虚拟机启动参数中获取自身操作系统的系统管理外设信息。Based on the system query command input using the object, the system management peripheral information of the own operating system is obtained from the virtual machine startup parameters.
可选的,在基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息之前,元数据获取装置400还包括界面呈现单元403,界面呈现单元403用于:Optionally, before obtaining the system management peripheral information of its own operating system based on the system query command input using the object, the metadata acquisition device 400 also includes an interface presentation unit 403, which is used to:
响应于使用对象触发的命令输入操作,向使用对象呈现命令输入界面,以使使用对象在命令输入界面中输入系统查询命令。In response to a command input operation triggered by the usage object, a command input interface is presented to the usage object, so that the usage object inputs a system query command in the command input interface.
可选的,在向使用对象呈现命令输入界面之后,在基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息之前,元数据获取装置400还包括命令审计单元404,命令审计单元404用于:Optionally, after presenting the command input interface to the user object, and before obtaining the system management peripheral information of its own operating system based on the system query command input by the user object, the metadata acquisition device 400 further includes a command audit unit 404 to perform command auditing. Unit 404 is used for:
获取使用对象输入的系统查询命令;Get system query commands using object input;
判断系统查询命令是否为合法命令,若是,继续基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息;否则,向使用对象发送告警信息,提示对方重新输入新的系统查询命令。Determine whether the system query command is a legal command. If so, continue to obtain the system management peripheral information of its own operating system based on the system query command entered by the user object; otherwise, send an alarm message to the user object and prompt the other party to re-enter a new system query command. .
可选的,命令审计单元404通过执行以下操作,判断系统查询命令是否为合法命令:Optionally, the command audit unit 404 determines whether the system query command is a legal command by performing the following operations:
基于操作系统的系统类型,获取相应的语法规则;Based on the system type of the operating system, obtain the corresponding syntax rules;
判断系统查询命令是否符合语法规则,若是,则确定系统查询命令为合法命令;否则,确定系统查询命令为非法命令。Determine whether the system query command complies with the grammatical rules. If so, the system query command is determined to be a legal command; otherwise, the system query command is determined to be an illegal command.
为了描述的方便,以上各部分按照功能划分为各模块(或单元)分别描述。当然,在实施本申请时可以把各模块(或单元)的功能在同一个或多个软件或硬件中实现。For the convenience of description, each of the above parts is divided into modules (or units) according to their functions and described separately. Of course, when implementing this application, the functions of each module (or unit) can be implemented in the same or multiple software or hardware.
在介绍了本申请示例性实施方式的服务平台的访问方法和装置之后,接下来,介绍根据本申请的另一示例性实施方式的计算机设备。After introducing the access method and device of the service platform according to the exemplary embodiment of the present application, next, a computer device according to another exemplary embodiment of the present application is introduced.
所属技术领域的技术人员能够理解,本申请的各个方面可以实现为系统、方法或程序产品。因此,本申请的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。Those skilled in the art can understand that various aspects of the present application can be implemented as systems, methods or program products. Therefore, various aspects of the present application can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which may be collectively referred to herein as "Circuits", "modules" or "systems".
与上述方法实施例基于同一发明构思,本申请实施例中还提供了一种计算机设备,参阅图5所示,计算机设备500可以至少包括处理器501、以及存储器502。其中,存储器502存储有程序代码,当程序代码被处理器501执行时,使得处理器501执行上述任意一种元数据获取方法的步骤。Based on the same inventive concept as the above method embodiments, embodiments of the present application also provide a computer device. Referring to FIG. 5 , the computer device 500 may include at least a processor 501 and a memory 502 . The memory 502 stores program code. When the program code is executed by the processor 501, it causes the processor 501 to perform the steps of any of the above metadata acquisition methods.
在一些可能的实施方式中,根据本申请的计算装置可以至少包括至少一个处理器、以及至少一个存储器。其中,存储器存储有程序代码,当程序代码被处理器执行时,使得处理器执行本说明书上述描述的根据本申请各种示例性实施方式的元数据获取方法中的步骤。例如,处理器可以执行如图2A中所示的步骤。In some possible implementations, a computing device according to the present application may include at least one processor, and at least one memory. The memory stores program code. When the program code is executed by the processor, it causes the processor to perform the steps in the metadata acquisition method described above in this specification according to various exemplary embodiments of the present application. For example, the processor may perform the steps shown in Figure 2A.
下面参照图6来描述根据本申请的这种实施方式的计算装置600。图6的计算装置600仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。A computing device 600 according to this embodiment of the present application is described below with reference to FIG. 6 . The computing device 600 in FIG. 6 is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present application.
如图6所示,计算装置600以通用计算装置的形式表现。计算装置600的组件可以包括但不限于:上述至少一个处理单元601、上述至少一个存储单元602、连接不同系统组件(包括存储单元602和处理单元601)的总线603。As shown in Figure 6, computing device 600 is embodied in the form of a general-purpose computing device. The components of the computing device 600 may include, but are not limited to: the above-mentioned at least one processing unit 601, the above-mentioned at least one storage unit 602, and a bus 603 connecting different system components (including the storage unit 602 and the processing unit 601).
总线603表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器、外围总线、处理器或者使用多种总线结构中的任意总线结构的局域总线。Bus 603 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus structures.
存储单元602可以包括易失性存储器形式的可读介质,例如随机存取存储器(RAM)6021和/或高速缓存存储单元6022,还可以进一步包括只读存储器(ROM)6023。The storage unit 602 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 6021 and/or a cache storage unit 6022, and may further include a read-only memory (ROM) 6023.
存储单元602还可以包括具有一组(至少一个)程序模块6024的程序/实用工具6025,这样的程序模块6024包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。Storage unit 602 may also include a program/utility 6025 having a set of (at least one) program modules 6024 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, Each of these examples, or some combination, may include the implementation of a network environment.
计算装置600也可以与一个或多个外部设备604(例如键盘、指向设备等)通信,还可与一个或者多个使得用户能与计算装置600交互的设备通信,和/或与使得该计算装置600能与一个或多个其它计算装置进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口605进行。并且,计算装置600还可以通过网络适配器606与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器606通过总线603与用于计算装置600的其它模块通信。应当理解,尽管图中未示出,可以结合计算装置600使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理器、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。Computing device 600 may also communicate with one or more external devices 604 (e.g., keyboard, pointing device, etc.), with one or more devices that enable a user to interact with computing device 600, and/or with one or more devices that enable the computing device 600 to 600 can communicate with any device (eg, router, modem, etc.) that can communicate with one or more other computing devices. This communication may occur through input/output (I/O) interface 605. Also, computing device 600 may communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through network adapter 606 . As shown, network adapter 606 communicates with other modules for computing device 600 via bus 603 . It should be understood that, although not shown in the figures, other hardware and/or software modules may be used in conjunction with computing device 600, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc.
与上述方法实施例基于同一发明构思,本申请提供的元数据获取方法的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当程序产品在计算机设备上运行时,程序代码用于使计算机设备执行本说明书上述描述的根据本申请各种示例性实施方式的元数据获取方法中的步骤,例如,计算机设备可以执行如图2A中所示的步骤。Based on the same inventive concept as the above method embodiments, various aspects of the metadata acquisition method provided by this application can also be implemented in the form of a program product, which includes program code. When the program product is run on a computer device, the program code is In order to cause the computer device to perform the steps in the metadata acquisition method according to various exemplary embodiments of the present application described above in this specification, for example, the computer device may perform the steps shown in FIG. 2A.
程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以是但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The Program Product may take the form of one or more readable media in any combination. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。Although the preferred embodiments of the present application have been described, those skilled in the art will be able to make additional changes and modifications to these embodiments once the basic inventive concepts are understood. Therefore, it is intended that the appended claims be construed to include the preferred embodiments and all changes and modifications that fall within the scope of this application.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (10)

  1. 一种元数据获取方法,其特征在于,包括:A method for obtaining metadata, which is characterized by including:
    基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息;Obtain the system management peripheral information of its own operating system based on the system query command input using the object;
    从所述系统管理外设信息中得到相应的元数据,所述元数据用于虚拟机的初始化配置操作。Corresponding metadata is obtained from the system management peripheral information, and the metadata is used for initial configuration operations of the virtual machine.
  2. 如权利要求1所述的方法,其特征在于,所述基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息,包括:The method of claim 1, wherein the system query command input using an object is used to obtain the system management peripheral information of the own operating system, including:
    基于所述使用对象输入的系统查询命令,从虚拟机启动参数中获取自身操作系统的系统管理外设信息。Based on the system query command input by the use object, the system management peripheral information of the own operating system is obtained from the virtual machine startup parameters.
  3. 如权利要求1所述的方法,其特征在于,在基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息之前,还包括:The method according to claim 1, characterized in that, before obtaining the system management peripheral information of its own operating system based on the system query command input using the object, it further includes:
    响应于所述使用对象触发的命令输入操作,向所述使用对象呈现命令输入界面,以使所述使用对象在所述命令输入界面中输入所述系统查询命令。In response to a command input operation triggered by the usage object, a command input interface is presented to the usage object, so that the usage object inputs the system query command in the command input interface.
  4. 如权利要求3所述的方法,其特征在于,在向所述使用对象呈现命令输入界面之后,在基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息之前,还包括:The method of claim 3, wherein after presenting a command input interface to the user object and before obtaining the system management peripheral information of the own operating system based on the system query command input by the user object, the method further includes:
    获取所述使用对象输入的系统查询命令;Obtain the system query command input using the object;
    判断所述系统查询命令是否为合法命令,若是,继续基于所述使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息;否则,向所述使用对象发送告警信息,提示对方重新输入新的系统查询命令。Determine whether the system query command is a legal command. If so, continue to obtain the system management peripheral information of its own operating system based on the system query command input by the user object; otherwise, send an alarm message to the user object to prompt the other party to restart Enter a new system query command.
  5. 如权利要求4所述的方法,其特征在于,通过执行以下操作,判断所述系统查询命令是否为合法命令:The method of claim 4, wherein it is determined whether the system query command is a legal command by performing the following operations:
    基于所述操作系统的系统类型,获取相应的语法规则;Based on the system type of the operating system, obtain the corresponding grammar rules;
    判断所述系统查询命令是否符合所述语法规则,若是,则确定所述系统查询命令为合法命令;否则,确定所述系统查询命令为非法命令。Determine whether the system query command complies with the grammatical rule. If so, the system query command is determined to be a legal command; otherwise, the system query command is determined to be an illegal command.
  6. 一种元数据获取装置,其特征在于,包括:A metadata acquisition device, characterized by including:
    获取单元,用于基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息;The acquisition unit is used to obtain the system management peripheral information of its own operating system based on the system query command input using the object;
    处理单元,用于从所述系统管理外设信息中得到相应的元数据,所述元数据用于虚拟机的初始化配置操作。A processing unit configured to obtain corresponding metadata from the system management peripheral information, and the metadata is used for initial configuration operations of the virtual machine.
  7. 如权利要求6所述的装置,其特征在于,所述获取单元用于:The device according to claim 6, characterized in that the acquisition unit is used for:
    基于所述使用对象输入的系统查询命令,从虚拟机启动参数中获取自身操作系统的系统管理外设信息。Based on the system query command input by the use object, the system management peripheral information of the own operating system is obtained from the virtual machine startup parameters.
  8. 如权利要求6所述的装置,其特征在于,在基于使用对象输入的系统查询命令,获取自身操作系统的系统管理外设信息之前,所述元数据获取装置还包括界面呈现单元,所述界面呈现单元用于:The device according to claim 6, characterized in that, before obtaining the system management peripheral information of its own operating system based on the system query command input using the object, the metadata acquisition device further includes an interface presentation unit, and the interface Presentation units are used for:
    响应于所述使用对象触发的命令输入操作,向所述使用对象呈现命令输入界面,以使所述使用对象在所述命令输入界面中输入所述系统查询命令。In response to a command input operation triggered by the usage object, a command input interface is presented to the usage object, so that the usage object inputs the system query command in the command input interface.
  9. 一种计算机设备,其特征在于,其包括处理器和存储器,其中,所述存储器存储有程序代码,当所述程序代码被所述处理器执行时,使得所述处理器执行权利要求1~5中任一项所述方法的步骤。A computer device, characterized in that it includes a processor and a memory, wherein the memory stores program code, and when the program code is executed by the processor, it causes the processor to execute claims 1 to 5 The steps of any of the methods.
  10. 一种计算机可读存储介质,其特征在于,其包括程序代码,当所述程序代码在计算机设备上运行时,所述程序代码用于使所述计算机设备执行权利要求1~5中任一项所述方法的步骤。A computer-readable storage medium, characterized in that it includes program code. When the program code is run on a computer device, the program code is used to cause the computer device to execute any one of claims 1 to 5. The steps of the method.
PCT/CN2022/141550 2022-07-15 2022-12-23 Metadata acquisition method and apparatus, and device and storage medium WO2024011856A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210836608.2 2022-07-15
CN202210836608.2A CN115292250A (en) 2022-07-15 2022-07-15 Metadata acquisition method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2024011856A1 true WO2024011856A1 (en) 2024-01-18

Family

ID=83821567

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/141550 WO2024011856A1 (en) 2022-07-15 2022-12-23 Metadata acquisition method and apparatus, and device and storage medium

Country Status (2)

Country Link
CN (1) CN115292250A (en)
WO (1) WO2024011856A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115292250A (en) * 2022-07-15 2022-11-04 天翼云科技有限公司 Metadata acquisition method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190034496A1 (en) * 2017-07-27 2019-01-31 Citrix Systems, Inc. Abstract Query Processing Using Metadata on Multiple Complex Data Sources
CN111813504A (en) * 2020-07-13 2020-10-23 北京金山云网络技术有限公司 Method and device for automatically configuring effective virtual machine and electronic equipment
CN112988062A (en) * 2021-01-28 2021-06-18 腾讯科技(深圳)有限公司 Metadata reading limiting method and device, electronic equipment and medium
CN114528255A (en) * 2022-01-13 2022-05-24 深圳爱捷云科技有限公司 Metadata management method, electronic device and computer program product
CN115292250A (en) * 2022-07-15 2022-11-04 天翼云科技有限公司 Metadata acquisition method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190034496A1 (en) * 2017-07-27 2019-01-31 Citrix Systems, Inc. Abstract Query Processing Using Metadata on Multiple Complex Data Sources
CN111813504A (en) * 2020-07-13 2020-10-23 北京金山云网络技术有限公司 Method and device for automatically configuring effective virtual machine and electronic equipment
CN112988062A (en) * 2021-01-28 2021-06-18 腾讯科技(深圳)有限公司 Metadata reading limiting method and device, electronic equipment and medium
CN114528255A (en) * 2022-01-13 2022-05-24 深圳爱捷云科技有限公司 Metadata management method, electronic device and computer program product
CN115292250A (en) * 2022-07-15 2022-11-04 天翼云科技有限公司 Metadata acquisition method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN115292250A (en) 2022-11-04

Similar Documents

Publication Publication Date Title
CN110651269B (en) Isolated container event monitoring
US10445258B1 (en) Method for creation of device drivers and device objects for peripheral devices
US10333772B2 (en) Remote keyboard-video-mouse technologies
US10754955B2 (en) Authenticating a boot path update
TWI526931B (en) Inherited product activation for virtual machines
US20070233880A1 (en) Methods, media and systems for enabling a consistent web browsing session on different digital processing devices
BRPI0920478B1 (en) METHOD FOR USE IN A NETWORK ARRANGEMENT, SENDING COMPUTER AND LEGIBLE STORAGE MEDIA BY NON-TRANSITIONAL COMPUTER
TW201220194A (en) Demand based USB proxy for data stores in service processor complex
US10831897B2 (en) Selective enforcement of secure boot database entries in an information handling system
US10078762B1 (en) Systems and methods for digitally enforcing computer parental controls
US10191864B1 (en) Standardized interface for storage using an input/output (I/O) adapter device
CN102385523A (en) Method for installing and managing driver of cloud operating system
US9940148B1 (en) In-place hypervisor updates
US10303487B2 (en) System and method for booting an information handling system
CN112256393B (en) Resource management method and equipment for bare metal server
US11003798B1 (en) Systems and methods for enforcing age-based application constraints
US8515732B2 (en) Opening a message catalog file for a language that is not installed
CN111083166A (en) Method and device for setting white list in cloud database and computer storage medium
WO2024011856A1 (en) Metadata acquisition method and apparatus, and device and storage medium
US10409734B1 (en) Systems and methods for controlling auxiliary device access to computing devices based on device functionality descriptors
CN103023704A (en) Method and system for accessing virtual network service equipment
CN111158857A (en) Data encryption method, device, equipment and storage medium
US11436372B1 (en) Systems and methods for protecting user privacy
US11601262B2 (en) Distributed key management system
CN114285842A (en) Electronic reading room building method and system based on cloud desktop

Legal Events

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

Ref document number: 22950963

Country of ref document: EP

Kind code of ref document: A1