Method, device, equipment, medium and product for constructing and releasing virtualization node

By constructing a channel device within the node to be virtualized, the problem of resource waste caused by the hardware and software differences between bare metal nodes and virtualized nodes is solved, realizing unified management and efficient utilization of the resource pool, and supporting flexible construction and release of nodes.

CN123177900APending Publication Date: 2026-11-27CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611228927.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-13
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing technologies, bare metal nodes and virtualized nodes differ in hardware and software, making it impossible to build and pool them in a unified manner, resulting in serious waste of computing node resources in the resource pool.

Method used

A channel device is built within the node to be virtualized to connect the server and the resource pool management plane. The connection is controlled by the flow table on the network function module of the data processing unit, which eliminates the differences in hardware and software form between the virtualized node and the bare metal node, and realizes unified management of the resource pool.

Benefits of technology

It improves resource utilization, covers the capability set of virtualized nodes in traditional OpenStack architecture cloud platforms, and supports on-demand building and release of nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123177900A_ABST
    Figure CN123177900A_ABST
Patent Text Reader

Abstract

The application discloses a virtualization node construction and release method, device, equipment, medium and product, the construction method comprises the following steps: constructing the required equipment resources of a to-be-virtualized node; wherein the to-be-virtualized node comprises a server and a data processing unit; constructing a channel device in the to-be-virtualized node; wherein the channel device is used for connecting the to-be-virtualized node and a resource pool management plane; performing a power-on operation on the server, so that the server pulls an operating system pre-installed with a virtual machine monitor from a cloud disk after being powered on and performs a starting operation. The embodiment of the application can realize unified and pooled management of a resource pool, thereby improving resource utilization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cloud computing technology, and in particular to a method, apparatus, device, medium and product for constructing and releasing virtualized nodes. Background Technology

[0002] In existing cloud platforms based on OpenStack (an open-source cloud computing management platform project), compute nodes within the resource pool are divided into two main types: bare metal nodes and virtualized nodes. For bare metal nodes, the cloud platform incubates them into bare metal instances for tenants to use; for virtualized nodes, the cloud platform uses them as a foundation to incubate virtual machine instances, which are then provided to tenants. Due to different usage requirements, bare metal nodes and virtualized nodes differ in both hardware and software, making unified construction and pool management impossible, resulting in significant waste of compute node resources within the resource pool. Summary of the Invention

[0003] This application provides a method, apparatus, device, medium, and product for constructing and releasing virtualized nodes, in order to solve the problem that bare metal nodes and virtualized nodes differ in hardware and software in the prior art, which makes it impossible to construct and pool them in a unified manner, resulting in serious waste of computing node resources in the resource pool.

[0004] To achieve the above objectives, embodiments of this application provide a method for constructing virtualized nodes, including: The equipment resources required to construct the node to be virtualized; wherein, the node to be virtualized includes a server and a data processing unit; A channel device is constructed within the node to be virtualized; wherein the channel device is used to connect the node to be virtualized and the resource pool management plane; The server is powered on so that it pulls the operating system pre-installed with the virtual machine monitoring program from the cloud disk and starts up after power-on.

[0005] As an improvement to the above solution, the channel device includes: a first channel unit and a second channel unit; The first channel unit is used to connect the server and the system-on-a-chip of the data processing unit, with its first end located on the server and its second end located on the system-on-a-chip; The second channel unit is used to connect the system-on-a-chip and the hardware of the data processing unit. Its first end is located on the system-on-a-chip, and its second end is located on the physical port of the hardware. The physical port is also used to connect to the resource management plane. The first channel unit and the second channel unit are connected via the flow table control of the network function module of the data processing unit.

[0006] As an improvement to the above solution, the first end of the first channel unit is a network virtual device within the server; the second end of the first channel unit is the first representative port of the system-on-a-chip. The first end of the second channel unit is the second representative port of the system-on-a-chip; The second end of the second channel unit is the physical port configured with a virtual LAN tag.

[0007] As an improvement to the above solution, before constructing the device resources required for the node to be virtualized, the method further includes: The nova-compute service of the data processing unit constructs the configuration description file of the node to be virtualized and sends it to the control module of the data processing unit; The device resources required to construct the node to be virtualized include: The control module controls the hardware driver of the data processing unit according to the configuration description file to construct the device resources required for the node to be virtualized.

[0008] As an improvement to the above solution, before the nova-compute service of the data processing unit constructs the configuration description file of the node to be virtualized and sends it to the control module of the data processing unit, the method further includes: The nova-compute service receives instructions to construct the node to be virtualized as a virtual node.

[0009] As an improvement to the above solution, before powering on the server, the method further includes: The nova-compute service of the data processing unit constructs the cloud disk mount point of the node to be virtualized; The step of powering on the server, so that the server pulls the operating system pre-installed with the virtual machine monitoring program from the cloud disk and starts the program after power-on, includes: The control module controls the baseboard management controller of the server to power on the server, so that the server can access the cloud disk through the cloud disk mount point, pull the operating system pre-installed with the virtual machine monitoring program, and start the operation.

[0010] To achieve the above objectives, embodiments of this application also provide a method for releasing a virtualized node, comprising: Clean up the device resources built for virtualized nodes; Power off the servers within the virtualized nodes; Destroy the channel device within the virtualized node; wherein the channel device is used to connect the virtualized node and the resource pool management plane.

[0011] As an improvement to the above solution, the method further includes: The nova-compute service within the data processing unit of the virtualized node cleans up the cloud disk mount point of the virtualized node.

[0012] As an improvement to the above solution, the method further includes: The nova-compute service within the data processing unit of the virtualized node receives an instruction to release the virtualized node; The nova-compute service sends a libvirt destroy command to the control module of the data processing unit.

[0013] To achieve the above objectives, this application also provides a virtualization node construction apparatus, including a control module for a data processing unit within the node to be virtualized, the control module being used for: The equipment resources required to construct the node to be virtualized; wherein, the node to be virtualized includes a server and a data processing unit; A channel device is constructed within the node to be virtualized; wherein the channel device is used to connect the node to be virtualized and the resource pool management plane; The server is powered on so that it pulls the operating system pre-installed with the virtual machine monitoring program from the cloud disk and starts up after power-on.

[0014] To achieve the above objectives, this application also provides a virtualized node release device, including a control module for a data processing unit within a virtualized node, the control module being used for: Clean up the device resources built for virtualized nodes; Power off the servers within the virtualized nodes; Destroy the channel device within the virtualized node; wherein the channel device is used to connect the virtualized node and the resource pool management plane.

[0015] To achieve the above objectives, embodiments of this application also provide an electronic device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the virtualization node construction method as described above, or the virtualization node release method as described above.

[0016] To achieve the above objectives, embodiments of this application also provide a computer-readable storage medium, the computer-readable storage medium including a stored computer program; wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the virtualization node construction method as described above, or the virtualization node release method as described above.

[0017] To achieve the above objectives, embodiments of this application also provide a computer program product, including a computer program / instructions, which, when executed by a processor, implement the virtualization node construction method as described above, or the virtualization node release method as described above.

[0018] Compared with existing technologies, the virtualization node construction and release method, apparatus, device, medium, and product provided in this application embodiment, by constructing a channel device within the virtualization node including a server and a data processing unit, enables the server to connect to the resource pool management plane without requiring a management network interface card for the virtualization node. This eliminates the hardware and software differences between virtualization nodes and bare metal nodes, allowing the virtualization node to be managed as a special bare metal instance, achieving unified pool management of the resource pool, thereby improving resource utilization. Furthermore, the virtualization node constructed in this application embodiment can cover the capability set of virtualization nodes in traditional OpenStack architecture cloud platforms, and can be released under the control of the cloud platform. The released node can be directly used as a bare metal node or reconstructed as a virtualization node. Attached Figure Description

[0019] Figure 1 This is a flowchart of a virtualized node construction method provided in an embodiment of this application; Figure 2 This is a schematic diagram of the structure of a channel device provided in an embodiment of this application; Figure 3 This is a flowchart of a virtualization node release method provided in an embodiment of this application; Figure 4 This is a schematic diagram of the structure of a virtualized node provided in an embodiment of this application; Figure 5 This is a structural block diagram of a virtualized node construction device provided in an embodiment of this application; Figure 6 This is a structural block diagram of a virtualized node release device provided in an embodiment of this application; Figure 7 This is a structural block diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0020] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0021] In the description of this application, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0022] In this application description, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0023] In this application description, the terms "first," "second," etc., are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus. The term "based on" means "at least partially based on." The term "according to" means "at least partially according to." The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments." The term "and / or" means at least one of the connected objects, such as A and / or B, indicating three cases: including only A, only B, and both A and B. Unless otherwise stated, the term "multiple" means two or more.

[0024] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, data stored, data displayed, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with relevant laws, regulations and standards.

[0025] See Figure 1 , Figure 1 This is a flowchart of a virtualized node construction method provided in an embodiment of this application. The virtualized node construction method includes: S11. Construct the device resources required for the node to be virtualized; wherein, the node to be virtualized includes a server and a data processing unit; S12. Construct a channel device within the node to be virtualized; wherein the channel device is used to connect the node to be virtualized and the resource pool management plane; S13. Power on the server so that after powering on, the server pulls the operating system pre-installed with the virtual machine monitoring program from the cloud disk and starts the operation.

[0026] It is worth noting that the channel device is simulated by software and can be constructed or destroyed under software control.

[0027] This application constructs a channel device within the virtualized node, including a server and a data processing unit, enabling the server to connect to the resource pool management plane without requiring a management network interface card (NIC) for the virtualized node. This eliminates the hardware and software differences between virtualized nodes and bare metal nodes, allowing the virtualized node to be managed as a special bare metal instance. This achieves unified pool management of the resource pool, thereby improving resource utilization. Furthermore, the virtualized node constructed in this application's embodiments can cover the capability set of virtualized nodes in traditional OpenStack cloud platforms and can be released under the control of the cloud platform. The released node can be directly used as a bare metal node or reconstructed as a virtualized node.

[0028] In one optional embodiment, the channel device includes: a first channel unit and a second channel unit; The first channel unit is used to connect the server and the system-on-a-chip of the data processing unit, with its first end located on the server and its second end located on the system-on-a-chip; The second channel unit is used to connect the system-on-a-chip and the hardware of the data processing unit. Its first end is located on the system-on-a-chip, and its second end is located on the physical port of the hardware. The physical port is also used to connect to the resource management plane. The first channel unit and the second channel unit are connected via the flow table control of the network function module of the data processing unit.

[0029] In this embodiment, the server can be connected to the resource pool management plane and can be controlled on demand by the cloud platform. Virtualized instances on the computing nodes can also be hot-migrated based on this channel device, and the usage requirements of virtualized nodes can be met without the need for a management network card.

[0030] In one optional embodiment, the first end of the first channel unit is a network virtual device within the server; the second end of the first channel unit is a first representative port of the system-on-a-chip. The first end of the second channel unit is the second representative port of the system-on-a-chip; The second end of the second channel unit is the physical port configured with a virtual LAN tag.

[0031] In one specific embodiment, the channel device is as follows: Figure 2 As shown, the channel device is carried by the hardware of the Data Processing Unit (DPU) and the network function module (specifically a virtual switch) within the DPU, including the first channel unit and the second channel unit.

[0032] The first channel unit is used to connect the server and the DPC SoC, i.e., the system-on-chip (SoC) of the DPU. Its first end is located in the server and is manifested as a network virtual device (specifically, a virtio-net device); its second end is located on the network function module in the DPU SoC and is manifested as the first representative port of the SoC (specifically, the first representative port on the virtual switch).

[0033] The second channel unit connects the DPU SoC and the resource pool management plane. Its first end is located on the network function module within the DPU SoC, manifested as the second representative port of the system-on-a-chip (specifically, the second representative port on the virtual switch). Its second end is located on the physical port of the DPU hardware, which is configured with a virtual LAN tag (specifically, a VLAN tag) to separate traffic using VLAN tags. The first and second channel units are connected via flow table control on the network function module of the data processing unit.

[0034] It is worth noting that, Figure 2 The colors in the text are for visual distinction only and have no additional meaning.

[0035] In an optional embodiment, before constructing the device resources required to virtualize the node, the method further includes: The nova-compute service of the data processing unit constructs the configuration description file of the node to be virtualized and sends it to the control module of the data processing unit; The device resources required to construct the node to be virtualized include: The control module controls the hardware driver of the data processing unit according to the configuration description file to construct the device resources required for the node to be virtualized.

[0036] It is worth noting that the virtualized nodes in this embodiment are not built during the resource pool construction phase, but are built on demand as a special bare-metal instance during the production phase. To achieve this, the nova-compute service is deployed within the DPU. Specifically, the nova-compute service of the DPU builds the configuration description file (libvirt XML description) of the node to be virtualized and sends it to the DPU's control module. Then, the control module controls the DPU's hardware driver according to the configuration description file to construct the device resources required for the node to be virtualized.

[0037] In an optional embodiment, before the nova-compute service of the data processing unit constructs the configuration description file of the node to be virtualized and sends it to the control module of the data processing unit, the method further includes: The nova-compute service receives instructions to construct the node to be virtualized as a virtual node.

[0038] It is worth noting that in this embodiment of the application, when the nova-compute service receives the instruction to build the node to be virtualized into a virtual node, the virtual node construction method is implemented to realize the on-demand construction of virtual nodes.

[0039] In an optional embodiment, prior to powering on the server, the method further includes: The nova-compute service of the data processing unit constructs the cloud disk mount point of the node to be virtualized; The step of powering on the server, so that the server pulls the operating system pre-installed with the virtual machine monitoring program from the cloud disk and starts the program after power-on, includes: The control module controls the baseboard management controller of the server to power on the server, so that the server can access the cloud disk through the cloud disk mount point, pull the operating system pre-installed with the virtual machine monitoring program, and start the operation.

[0040] It is worth noting that in this embodiment of the application, the cloud disk mount point of the node to be virtualized is created through the nova-compute service, so that after the server is powered on, it can access the cloud disk through the cloud disk mount point, pull the operating system pre-installed with the hypervisor and start the operation, and the virtualization node is built.

[0041] Specifically, the nova-compute service of the data processing unit controls the storage function module of the DPU to construct the cloud disk mount point of the node to be virtualized.

[0042] See Figure 3 , Figure 3 This is a flowchart of a virtualization node release method provided in an embodiment of this application. The virtualization node release method includes: S21. Clean up the device resources built for virtualized nodes; S22. Power off the server within the virtualized node; S23. Destroy the channel device within the virtualized node; wherein the channel device is used to connect the virtualized node and the resource pool management plane.

[0043] It is worth noting that once the virtualization node is built, it becomes a virtualized node. If you need to release a virtualized node, you can do so by cleaning up the device resources built for the virtualized node, powering off the server of the virtualized node, and destroying the channel device within the virtualized node.

[0044] In an optional embodiment, the method further includes: The nova-compute service within the data processing unit of the virtualized node cleans up the cloud disk mount point of the virtualized node.

[0045] This application embodiment cleans up the cloud disk mount points of virtualized nodes through the nova-compute service, thereby completing the reclamation of virtualized node storage resources.

[0046] In an optional embodiment, the method further includes: The nova-compute service within the data processing unit of the virtualized node receives an instruction to release the virtualized node; The nova-compute service sends a libvirt destroy command to the control module of the data processing unit.

[0047] It is worth noting that in this embodiment, the nova-compute service receives the instruction to release the virtualized node, and then sends the libvirt destroy instruction to the control module of the data processing unit so that the control module of the DPU starts to execute steps S21 to S23. That is, the libvirt destroy instruction is used to execute the above-mentioned virtualized node release, so as to realize the on-demand release of the virtualized node.

[0048] In one specific embodiment, the structure of the virtualized node is as follows: Figure 4 This includes: a server, a DPU SoC, and DPU hardware. The DPU SoC includes: nova-compute service, a control module, a network function module, a storage function module, and hardware drivers. Among these, Figure 4 The colors in the text are for visual distinction only and have no additional meaning.

[0049] The control module runs within the DPU's SoC and is used to perform control tasks on the instances hosted on the compute nodes by the nova-compute service.

[0050] The control module provides a standard libvirt interface to nova-compute when facing north.

[0051] The control module interfaces southward with the DPU's hardware driver, the DPU's network function module, the server's Baseboard Management Controller (BMC), and the Hypervisor running on the server, including: Prepare device resources for virtual machine instances, bare metal instances, and virtualization nodes by controlling the hardware driver of the DPU.

[0052] The channel device is built or destroyed by controlling the hardware driver and network function module of the DPU.

[0053] The server is powered on or off via the BMC.

[0054] The nova-compute service passes its control tasks over virtual machine instances to the Hypervisor running on the server via RPC calls, and the Hypervisor then performs the control tasks on its behalf.

[0055] Based on the control module, the nova-compute service can remotely control the hypervisor within the server from within the DPU to manage virtual machine instances, achieving power control of the server without relying on the ironic service. This allows nova-compute to manage DPU-based virtual machine instances, bare metal instances, and virtualization nodes just like it would manage non-DPU-based virtual machine instances.

[0056] The virtualization node construction method is applied to the server and DPU of the node to be virtualized, and the specific steps include: The DPU's nova-compute service receives instructions to build the node to be virtualized into a virtual node.

[0057] The nova-compute service controls the storage function module of the DPU and constructs the cloud disk mount point for the node to be virtualized.

[0058] The nova-compute service builds the libvirt xml description of the configuration description file for the node to be virtualized and passes it to the control module of the DPU through the standard libvirt interface.

[0059] The control module, based on the libvirt xml description, controls the hardware driver of the DPU to configure the device resources required by the node to be virtualized.

[0060] The control module controls the hardware driver and network function module of the DPU to build the channel device.

[0061] The control module controls the server's BMC to power on the server.

[0062] The server accesses the cloud disk through the cloud disk mount point, pulls the operating system pre-installed with the Hypervisor from the cloud disk and completes the startup, thus completing the virtualization node construction.

[0063] Based on this, when the embodiments of this application need to manage (including create) virtual machine instances on virtualization nodes, the nova-compute service can directly call the network function module and storage function module of the DPU to manage (including create) the network device resources and storage device resources of the virtual machine instances; it can call the control module in the DPU to transmit control commands for virtual machine instances to the Hypervisor relay on the virtualization node server side, such as creating, deleting, plugging and unplugging devices, powering on and off, etc.

[0064] When a virtual machine instance on a virtualization node needs to be hot-migrated, the memory information of the virtual machine instance on the source virtualization node can be synchronized to the destination virtualization node sequentially through the channel device in the source virtualization node's DPU, the resource pool management plane, and the channel device in the destination virtualization node's DPU.

[0065] The virtualized node release method applies to servers and DPUs with virtualized nodes, and the specific steps include: All virtual machine instances on the virtualized node have been unsubscribed or migrated to other virtualized nodes.

[0066] The nova-compute service within the DPU receives instructions to release virtualized nodes.

[0067] The nova-compute service pushes libvirtdestroy commands to the control module within the DPU via the standard libvirt interface.

[0068] The control module controls the server's BMC to complete the power-off operation of the server.

[0069] The control module controls the hardware driver and network function module of the DPU and destroys the channel device.

[0070] The control module controls the hardware driver of the DPU and cleans up the device resources built for the virtualized nodes.

[0071] The nova-compute service controls the storage function module of the DPU, cleans up the cloud disk mount points of virtualized nodes, and releases the virtualized nodes.

[0072] Based on this, the virtualized nodes released in this application embodiment can be restored as compute nodes (i.e., compute node DPU, compute node server), and can be incubated into bare metal instances as needed, or rebuilt into virtualized nodes. Based on this application, the process of incubating a compute node into a bare metal instance is largely the same as the process of incubating it into a virtualized node, except that no channel device needs to be built, and the bare metal instance uses the tenant-specified operating system instead of the virtualized node-specific operating system pre-installed with a Hypervisor; this application will not elaborate on this aspect.

[0073] See Figure 5 , Figure 5 This is a structural block diagram of a virtualization node construction device 10 provided in an embodiment of this application. The virtualization node construction device 10 includes a control module 11 for a data processing unit within the node to be virtualized. The control module 11 is used for: The equipment resources required to construct the node to be virtualized; wherein, the node to be virtualized includes a server and a data processing unit; A channel device is constructed within the node to be virtualized; wherein the channel device is used to connect the node to be virtualized and the resource pool management plane; The server is powered on so that it pulls the operating system pre-installed with the virtual machine monitoring program from the cloud disk and starts up after power-on.

[0074] Optionally, the channel device includes: a first channel unit and a second channel unit; The first channel unit is used to connect the server and the system-on-a-chip of the data processing unit, with its first end located on the server and its second end located on the system-on-a-chip; The second channel unit is used to connect the system-on-a-chip and the hardware of the data processing unit. Its first end is located on the system-on-a-chip, and its second end is located on the physical port of the hardware. The physical port is also used to connect to the resource management plane. The first channel unit and the second channel unit are connected via the flow table control of the network function module of the data processing unit.

[0075] Optionally, the first end of the first channel unit is a network virtual device within the server; the second end of the first channel unit is the first representative port of the system-on-a-chip. The first end of the second channel unit is the second representative port of the system-on-a-chip; The second end of the second channel unit is the physical port configured with a virtual LAN tag.

[0076] Optionally, the device further includes: nova-compute service for the data processing unit within the node to be virtualized; The nova-compute service is used to build the configuration description file of the node to be virtualized and send it to the control module; The control module 11 is also used to control the hardware driver of the data processing unit according to the configuration description file, and to construct the device resources required for the node to be virtualized.

[0077] Optionally, the device further includes: nova-compute service for the data processing unit within the node to be virtualized; The nova-compute service is also used to receive instructions to build the node to be virtualized into a virtualized node.

[0078] Optionally, the device further includes: nova-compute service for the data processing unit within the node to be virtualized; The nova-compute service is used to construct the cloud disk mount point for the node to be virtualized; The control module 11 is also used to control the baseboard management controller of the server, to power on the server, so that the server can access the cloud disk through the cloud disk mount point, pull the operating system pre-installed with the virtual machine monitoring program and start the operation.

[0079] It is worth noting that the working process of each module in the virtualized node construction device 10 described in this application embodiment can refer to the working process of the virtualized node construction method described in the above embodiment, and will not be repeated here.

[0080] See Figure 6 , Figure 6 This is a structural block diagram of a virtualized node release device 20 provided in an embodiment of this application. The virtualized node release device includes a control module 21 for a data processing unit within a virtualized node. The control module 21 is used for: Clean up the device resources built for virtualized nodes; Power off the servers within the virtualized nodes; Destroy the channel device within the virtualized node; wherein the channel device is used to connect the virtualized node and the resource pool management plane.

[0081] Optionally, the apparatus further includes: nova-compute service for data processing units within virtualized nodes; The nova-compute service is also used to clean up the cloud disk mount points of the virtualized nodes.

[0082] Optionally, the apparatus further includes: nova-compute service for data processing units within virtualized nodes; The nova-compute service is also used to receive instructions to release the virtualized node and send libvirt destroy instructions to the control module of the data processing unit.

[0083] It is worth noting that the working process of each module in the virtualization node release device 20 described in this application embodiment can refer to the working process of the virtualization node construction method described in the above embodiment, and will not be repeated here.

[0084] Furthermore, this application also provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute the virtualization node construction method or the virtualization node release method described in any of the above embodiments.

[0085] Furthermore, this application also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the virtualization node construction method or the virtualization node release method described in any of the above embodiments.

[0086] See Figure 7 , Figure 7 This is a structural block diagram of an electronic device 30 provided in an embodiment of this application. The electronic device 30 includes: a processor 31, a memory 32, and a computer program stored in the memory 32 and executable on the processor 31. When the processor 31 executes the computer program, it implements the virtualization node construction method described above, or the steps in the virtualization node release method embodiment described above. Alternatively, when the processor 31 executes the computer program, it implements the functions of each module / unit in the various device embodiments described above.

[0087] For example, the computer program may be divided into one or more modules / units, which are stored in the memory 32 and executed by the processor 31 to complete this application. The one or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the electronic device 30.

[0088] The electronic device 30 may include, but is not limited to, a processor 31 and a memory 32. Those skilled in the art will understand that the schematic diagram is merely an example of the electronic device 30 and does not constitute a limitation on the electronic device 30. It may include more or fewer components than illustrated, or combine certain components, or different components. For example, the electronic device 30 may also include input / output devices, network access devices, buses, etc.

[0089] The processor 31 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor. The processor 31 is the control center of the electronic device 30, connecting various parts of the electronic device 30 via various interfaces and lines.

[0090] The processor 31 can be any one of a CPU (Central Processing Unit), GPU (Graphics Processing Unit), TPU (Tensor Processing Unit), NPU (Neural Network Processing Unit), DPU (Deep Learning Processing Unit), APU (Accelerated Processing Unit), and GPGPU (General-Purpose Computing on Graphics Processing Unit). The processor 31 is the control center of the electronic device 30, connecting various parts of the electronic device via various interfaces and lines.

[0091] The memory 32 can be used to store the computer programs and / or modules. The processor 31 implements various functions of the electronic device 30 by running or executing the computer programs and / or modules stored in the memory 32 and calling the data stored in the memory 32. The memory 32 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function, etc.; the data storage area may store related data, etc. In addition, the memory 32 may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital card (SD card), flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0092] If the modules / units integrated in the electronic device 30 are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by the processor 31, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.

[0093] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided in this application, the connection relationships between modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.

[0094] The above description is the preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications are also considered to be within the scope of protection of this application.

Claims

1. A method for constructing virtualized nodes, characterized in that, include: The equipment resources required to construct the node to be virtualized; wherein, the node to be virtualized includes a server and a data processing unit; A channel device is constructed within the node to be virtualized; wherein the channel device is used to connect the node to be virtualized and the resource pool management plane; The server is powered on so that it pulls the operating system pre-installed with the virtual machine monitoring program from the cloud disk and starts up after power-on.

2. The virtualized node construction method as described in claim 1, characterized in that, The channel device includes: a first channel unit and a second channel unit; The first channel unit is used to connect the server and the system-on-a-chip of the data processing unit, with its first end located on the server and its second end located on the system-on-a-chip; The second channel unit is used to connect the system-on-a-chip and the hardware of the data processing unit. Its first end is located on the system-on-a-chip, and its second end is located on the physical port of the hardware. The physical port is also used to connect to the resource management plane. The first channel unit and the second channel unit are connected via the flow table control of the network function module of the data processing unit.

3. The virtualized node construction method as described in claim 2, characterized in that, The first end of the first channel unit is a network virtual device within the server; the second end of the first channel unit is the first representative port of the system-on-a-chip. The first end of the second channel unit is the second representative port of the system-on-a-chip; The second end of the second channel unit is the physical port configured with a virtual LAN tag.

4. The virtualized node construction method as described in claim 1, characterized in that, Before constructing the device resources required to virtualize the node, the method further includes: The nova-compute service of the data processing unit constructs the configuration description file of the node to be virtualized and sends it to the control module of the data processing unit; The device resources required to construct the node to be virtualized include: The control module controls the hardware driver of the data processing unit according to the configuration description file to construct the device resources required for the node to be virtualized.

5. The virtualized node construction method as described in claim 4, characterized in that, Before the nova-compute service of the data processing unit constructs the configuration description file of the node to be virtualized and sends it to the control module of the data processing unit, the method further includes: The nova-compute service receives instructions to construct the node to be virtualized as a virtual node.

6. The virtualized node construction method as described in claim 1, characterized in that, Prior to powering on the server, the method further includes: The nova-compute service of the data processing unit constructs the cloud disk mount point of the node to be virtualized; The step of powering on the server, so that the server pulls the operating system pre-installed with the virtual machine monitoring program from the cloud disk and starts the program after power-on, includes: The control module controls the baseboard management controller of the server to power on the server, so that the server can access the cloud disk through the cloud disk mount point, pull the operating system pre-installed with the virtual machine monitoring program, and start the operation.

7. A method for releasing a virtualized node, characterized in that, include: Clean up the device resources built for virtualized nodes; Power off the servers within the virtualized nodes; Destroy the channel device within the virtualized node; wherein the channel device is used to connect the virtualized node and the resource pool management plane.

8. The virtualization node release method as described in claim 7, characterized in that, The method further includes: The nova-compute service within the data processing unit of the virtualized node cleans up the cloud disk mount point of the virtualized node.

9. The virtualization node release method as described in claim 7, characterized in that, The method further includes: The nova-compute service within the data processing unit of the virtualized node receives an instruction to release the virtualized node; The nova-compute service sends a libvirt destroy command to the control module of the data processing unit.

10. A virtualized node construction device, characterized in that, The control module includes a data processing unit within the node to be virtualized, and the control module is used for: The equipment resources required to construct the node to be virtualized; wherein, the node to be virtualized includes a server and a data processing unit; A channel device is constructed within the node to be virtualized; wherein the channel device is used to connect the node to be virtualized and the resource pool management plane; The server is powered on so that it pulls the operating system pre-installed with the virtual machine monitoring program from the cloud disk and starts up after power-on.

11. A virtualized node release device, characterized in that, The control module includes a data processing unit within a virtualized node, the control module being used for: Clean up the device resources built for virtualized nodes; Power off the servers within the virtualized nodes; Destroy the channel device within the virtualized node; wherein the channel device is used to connect the virtualized node and the resource pool management plane.

12. An electronic device, characterized in that, The device includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor, when executing the computer program, implements the virtualized node construction method as described in any one of claims 1 to 6, or the virtualized node release method as described in any one of claims 7 to 9.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program; wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the virtualization node construction method as described in any one of claims 1 to 6, or the virtualization node release method as described in any one of claims 7 to 9.

14. A computer program product, characterized in that, It includes a computer program / instruction that, when executed by a processor, implements the virtualization node construction method as described in any one of claims 1 to 6, or the virtualization node release method as described in any one of claims 7 to 9.