Intelligent network card PXE boot installation method and device, equipment and storage medium
By establishing a network communication connection between the smart network card and the bare metal server and bridging the PXE server using the IPMI interface, efficient PXE boot installation of the smart network card was achieved, solving the configuration difficulties when crossing multiple network devices and improving installation reliability and efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2026-03-20
AI Technical Summary
In a data center cloud management environment, when smart network cards and PXE servers are connected across multiple intermediate network devices, they cannot be directly connected for configuration. This results in the smart network card PXE startup and installation being time-consuming and labor-intensive, and the results are not readily apparent.
A network communication connection is established between the smart network card and the PCIe channel of the bare metal server. The bare metal server connects to the cloud management platform through the IPMI interface. The cloud management platform establishes a communication connection with the PXE server. The PCIe channel and the IPMI interface are bridged to enable PXE boot installation of the smart network card.
It saves time in configuring intermediate network devices, improves the deployment efficiency of smart network cards and the reliability of PXE startup installation, and allows administrators to directly view the installation results on the cloud management platform.
Smart Images

Figure CN116346606B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data communication, and in particular to a PXE starting and installing method, device and equipment of an intelligent network card and a storage medium. BACKGROUND
[0002] With the gradually widening gap between the growth rate of CPU computing power and the growth rate of data center network transmission rate, CPU computing power encounters a bottleneck, and in the prior art, the CPU is usually flexibly unloaded from the processing tasks that are not suitable for the CPU, so as to meet the data plane network processing requirements and be compatible with the existing network protocol ecology. The core role of this method is to reduce the burden of CPU computing power and let it handle more important tasks. The traditional network card is only responsible for the transmission of the data link, the network stack algorithm and the protocol, and other functions such as storage, network encryption and decryption and security will occupy a large amount of CPU resources.
[0003] The intelligent network card has an operating system, and some intelligent network cards have embedded systems when they are shipped, and do not need to be started and installed with an operating system through the PXE (Preboot Execution Environment) function. However, at present, users of intelligent network cards often purchase intelligent network cards without embedded systems, and install independently developed intelligent network card systems suitable for their own businesses into the intelligent network cards. When the intelligent network card is automatically deployed through the traditional PXE function, the intelligent network card and the PXE server network need to be interconnected to complete the deployment. However, in a real network environment, the intelligent network card and the PXE server may need to cross multiple intermediate network devices such as switches to realize interconnection.
[0004] In a data center cloud management environment, to complete the PXE starting and installing of the intelligent network card, it may be impossible to directly connect to the intermediate network device for configuration, and manual connection and login to the intermediate device are required for operation. If multiple network devices are involved, it will take a lot of time to pass through the network, which is time-consuming and labor-consuming. Moreover, the result of the PXE starting and installing of the intelligent network card cannot be intuitively perceived, and it can only be confirmed whether the installation is successful by restarting the intelligent network card and paying attention to whether the starting is successful. SUMMARY
[0005] Therefore, the present application provides a PXE starting and installing method, device and equipment of an intelligent network card and a storage medium to overcome the deficiencies in the prior art.
[0006] The present application provides the following technical solutions:
[0007] In a first aspect, the embodiments of the present disclosure provide a PXE boot installation method of an intelligent network card, applied to the intelligent network card, wherein the intelligent network card establishes a network communication connection with a PCIe channel of a bare metal server, the bare metal server is connected to a cloud management platform through an IPMI interface, the cloud management platform establishes a communication connection with a PXE server, the PCIe channel is bridged with the IPMI interface, and the method comprises the following steps:
[0008] After the intelligent network card is powered on by the bare metal server, it is judged whether the physical port of the intelligent network card connected to the external network is opened;
[0009] If the physical port is not opened, a DHCP request is sent to the IPMI interface of the bare metal server through the network communication connection, an IP address allocated by the PXE server is obtained through the network communication connection, and a communication connection is established with the PXE server according to the IP address;
[0010] A PXE boot installation file request is sent to the IPMI interface through the network communication connection, so that the PXE boot installation file request is sent to the PXE server through the IPMI interface;
[0011] The PXE boot installation file returned by the PXE server is obtained through the network communication connection, and PXE boot installation is performed through the PXE boot installation file.
[0012] Further, the step of sending a DHCP request to the IPMI interface of the bare metal server through the network communication connection, and obtaining an IP address allocated by the PXE server through the network communication connection, comprises the following steps:
[0013] The intelligent network card sends the DHCP request message to the IPMI interface of the bare metal server through the network communication connection;
[0014] The DHCP Offer message returned by the PXE server is received through the network communication connection, wherein the DHCP Offer message comprises an IP address allocated by the PXE server to the intelligent network card;
[0015] A DHCP request confirmation message is sent to the IPMI interface of the bare metal server through the network communication connection, and a confirmation message returned by the PXE server is received through the network communication connection.
[0016] Further, after receiving the PXE boot installation file returned by the PXE server and performing PXE boot installation through the PXE boot installation file, the method further comprises:
[0017] sending the PXE boot installation result to the IPMI interface of the bare metal server through the network communication connection, so that the IPMI interface of the bare metal server sends the PXE boot installation result to the cloud management platform, and so that an administrator confirms whether the PXE boot installation of the intelligent network card is successful according to the PXE boot installation result.
[0018] In a second aspect, the disclosure provides an intelligent network card PXE boot installation method, applied to a bare metal server, a PCIe channel of the bare metal server establishes a network communication connection with an intelligent network card, the bare metal server connects a cloud management platform through an IPMI interface, the cloud management platform establishes a communication connection with a PXE server, the PCIe channel is bridged with the IPMI interface, and the method comprises:
[0019] controlling power-on of the intelligent network card after receiving an instruction of the cloud management platform;
[0020] receiving a DHCP request sent by the intelligent network card through the network communication connection, sending the DHCP request to the PXE server through the IPMI interface, and sending an IP address allocated by the PXE server to the intelligent network card through the network communication connection, so that the intelligent network card establishes a communication connection with the PXE server according to the IP address;
[0021] receiving a PXE boot installation file request sent by the intelligent network card through the network communication connection, and sending the PXE boot installation file request to the PXE server through the IPMI interface;
[0022] sending the PXE boot installation file returned by the PXE server to the intelligent network card through the network communication connection, so that the intelligent network card performs PXE boot installation through the PXE boot installation file.
[0023] Further, the sending of the IP address allocated by the PXE server to the intelligent network card through the network communication connection comprises:
[0024] the IPMI interface of the bare metal server receives a DHCP request message from the intelligent network card through the network communication connection, and sends the DHCP request message to the PXE server through the network communication connection;
[0025] sending the DHCP Offer message returned by the PXE server to the smart NIC through the network communication connection, wherein the DHCP Offer message comprises an IP address allocated to the smart NIC by the PXE server;
[0026] receiving a DHCP request confirmation message from the smart NIC through the network communication connection, and sending the DHCP request confirmation message to the PXE server through the network communication connection;
[0027] sending the confirmation message returned by the PXE server to the smart NIC through the network communication connection.
[0028] Further, after sending the PXE startup installation file returned by the PXE server to the smart NIC through the network communication connection, the method further comprises:
[0029] receiving a PXE startup installation result sent by the smart NIC through the network communication connection, and sending the PXE startup installation result to the cloud management platform through the IPMI interface, so that an administrator confirms whether the PXE startup installation of the smart NIC is successful according to the PXE startup installation result.
[0030] In a third aspect, an embodiment of the present disclosure provides a smart NIC PXE startup installation device applied to a smart NIC, wherein the smart NIC establishes a network communication connection with a PCIe channel of a bare metal server, the bare metal server is connected to a cloud management platform through an IPMI interface, the cloud management platform is connected to a PXE server, the PCIe channel is bridged with the IPMI interface, and the device comprises:
[0031] a judgment module configured to judge whether a physical port of the smart NIC connected to an external network is opened after the smart NIC is powered on by the bare metal server;
[0032] a transceiver module configured to send a DHCP request to the IPMI interface of the bare metal server through the network communication connection if the physical port is not opened, to obtain an IP address allocated by the PXE server through the network communication connection, and to establish a communication connection with the PXE server according to the IP address;
[0033] the transceiver module is further configured to send a PXE startup installation file request to the IPMI interface through the network communication connection, so that the PXE startup installation file request is sent to the PXE server through the IPMI interface.
[0034] The transceiver module is further configured to acquire, through the network communication connection, a PXE startup installation file returned by the PXE server and received by the IPMI interface, and perform PXE startup installation through the PXE startup installation file.
[0035] In a fourth aspect, an intelligent network card PXE startup installation apparatus is provided in the embodiments of the present disclosure, and is applied to a bare metal server. A PCIe channel of the bare metal server establishes a network communication connection with an intelligent network card. The bare metal server connects a cloud management platform through an IPMI interface. The cloud management platform establishes a communication connection with a PXE server. The PCIe channel is bridged with the IPMI interface. The apparatus comprises:
[0036] A power-on module configured to control the intelligent network card to be powered on after receiving an instruction of the cloud management platform.
[0037] A transceiver module configured to receive a DHCP request sent by the intelligent network card through the network communication connection, send the DHCP request to the PXE server through the IPMI interface, and send an IP address allocated by the PXE server and received by the IPMI interface to the intelligent network card through the network communication connection, so that the intelligent network card establishes a communication connection with the PXE server according to the IP address.
[0038] The transceiver module is further configured to receive a PXE startup installation file request sent by the intelligent network card through the network communication connection, and send the PXE startup installation file request to the PXE server through the IPMI interface.
[0039] The transceiver module is further configured to send a PXE startup installation file returned by the PXE server and received by the IPMI interface to the intelligent network card through the network communication connection, so that the intelligent network card performs PXE startup installation through the PXE startup installation file.
[0040] In a fifth aspect, a computer device is provided in the embodiments of the present disclosure. The computer device comprises a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the steps of the intelligent network card PXE startup installation method in any one of the first aspect or the second aspect are implemented.
[0041] In a sixth aspect, a computer readable storage medium is provided in the embodiments of the present disclosure. The computer readable storage medium stores a computer program. When the computer program is executed by a processor, the steps of the intelligent network card PXE startup installation method in any one of the first aspect or the second aspect are implemented.
[0042] Embodiments of the present application have the following advantages:
[0043] The intelligent network card PXE starting installation method provided by the embodiment of the present application is applied to an intelligent network card, the intelligent network card establishes a network communication connection with a PCIe channel of a bare metal server, the bare metal server is connected to a cloud management platform through an IPMI interface, the cloud management platform establishes a communication connection with a PXE server, the PCIe channel is bridged with the IPMI interface, and the method comprises the following steps: after the intelligent network card is powered on by the bare metal server, it is determined whether a physical port of the intelligent network card connected to an external network is opened; if the physical port is not opened, a DHCPDiscovery message is sent to the IPMI interface of the bare metal server through the network communication connection, an IP address allocated from the PXE server is obtained through the network communication connection, and a communication connection is established with the PXE server according to the IP address; a PXE starting installation file request is sent to the IPMI interface through the network communication connection, so that the PXE starting installation file request is sent to the PXE server through the IPMI interface; the PXE starting installation file returned from the PXE server is obtained through the network communication connection, and PXE starting installation is performed through the PXE starting installation file. The intelligent network card communicates with the bare metal server, realizes starting and installation of the intelligent network card system, saves time for configuring intermediate network equipment, and improves the efficiency of deploying the intelligent network card.
[0044] In order to make the above objectives, characteristics and advantages of the present application more apparent and easy to understand, the following preferred embodiments are specifically described below, and the accompanying drawings are referred to for detailed description. BRIEF DESCRIPTION OF DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained without creative labor. In each drawing, similar components are marked with similar reference numerals.
[0046] Figure 1 A flowchart of an intelligent network card PXE starting installation method applied to an intelligent network card is shown;
[0047] Figure 2 A flowchart of an intelligent network card PXE starting installation method applied to a bare metal server is shown;
[0048] Figure 3 Fig. 300 shows a structural schematic diagram of the smart NIC PXE boot installation device applied to the smart NIC according to an embodiment of the present application;
[0049] Figure 4 Fig. 400 shows a structural schematic diagram of the smart NIC PXE boot installation device applied to the bare metal server according to an embodiment of the present application;
[0050] Figure 5 Fig. 500 shows a structural schematic diagram of the network system according to an embodiment of the present application.
[0051] Fig. 300 shows a structural schematic diagram of the smart NIC PXE boot installation device applied to the smart NIC according to an embodiment of the present application; Fig. 310 shows a judgment module; Fig. 320 shows a transceiver module; Fig. 400 shows a structural schematic diagram of the smart NIC PXE boot installation device applied to the bare metal server according to an embodiment of the present application; Fig. 410 shows a power-on module; and Fig. 420 shows a transceiver module. DETAILED DESCRIPTION
[0052] Embodiments of the present application are described in detail below with reference to the accompanying drawings. Examples of the embodiments are shown in the drawings, in which the same or similar components are denoted by the same or similar reference numerals throughout. The embodiments described below by reference to the drawings are exemplary and are intended to explain the present application, and should not be understood as limiting the present application.
[0053] It should be noted that when an element is referred to as being “fixed” to another element, it can be directly on the other element or there can be an intervening element. When an element is referred to as being “connected” to another element, it can be directly connected to the other element or intervening elements can be present. In contrast, when an element is referred to as being “directly on” another element, there are no intervening elements present. The terms “vertical”, “horizontal”, “left”, “right”, and the like as used herein are for purposes of explanation only and are not intended to be limiting.
[0054] In the present application, unless otherwise explicitly specified and limited, the terms “mounting”, “connection”, “connecting”, “fixing” and the like should be understood in a broad sense, for example, they can be fixed connection, or detachable connection, or integral; they can be mechanical connection, or electrical connection; they can be direct connection, or indirect connection through an intermediate medium; they can be internal connection of two elements or interaction relationship between two elements. For those skilled in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.
[0055] In addition, the terms "first", "second", etc. are used only for descriptive purposes and should not be construed as implying or suggesting relative importance or an ordered ranking of the indicated technical features. Thus, features defined with "first", "second", etc. can explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "a plurality of" is two or more, unless otherwise explicitly and specifically limited.
[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description of the specification herein is used only for the purpose of describing particular embodiments and is not intended to be limiting of the present application. As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items.
[0057] Embodiment 1
[0058] As Figure 1 shown, a flow chart of a smart NIC PXE boot installation method in an embodiment of the present application, the smart NIC PXE boot installation method provided by the embodiment of the present application is applied to a smart NIC, as Figure 5 shown, the smart NIC establishes a network communication connection with a PCIe (Peripheral Component Interconnect express, Peripheral Component Interconnect bus) port of a bare metal server, the bare metal server connects a cloud management platform through an IPMI interface, the cloud management platform establishes a communication connection with a PXE server, the PCIe channel is bridged with the IPMI interface, and the method comprises the following steps:
[0059] In step S110, after the smart NIC is powered on by the bare metal server, it is determined whether the physical port of the smart NIC connected to the external network is opened.
[0060] Specifically, the smart NIC is mounted on a bare metal server, and is not connected to an external network port. The bare metal server is powered on and can be connected to a cloud management platform through its IPMI interface. The bare metal server starts from its operating system and runs a preset driver to load a PF (Physical Function, physical function) device provided by the smart NIC for the bare metal server. In the bare metal server, the IPMI interface is connected to the PCIe channel of the bare metal server, and the connection mode can be bridging, which is not limited by the embodiment of the present application.
[0061] The intelligent network card is connected through the IPMI interface of the bare metal server on the cloud management platform, and the intelligent network card is enabled to enter the PXE starting state through the IPMI interface of the bare metal server, and after the intelligent network card enters the PXE starting installation process, it is judged whether the physical port of the intelligent network card connected to the external network is opened. If the state of the physical port of the intelligent network card connected to the external network is opened, it is considered that the intelligent network card can be started and installed through the physical port connected to the external network, and at this time, the standard PXE starting installation process can be entered.
[0062] The implementation of the present application only requires that the server supports the IPMI interface of the bare metal server, and the existing general server supports and is mature in technology, thereby improving the use rate of the method of the present application.
[0063] In step S120, if the physical port is not opened, a DHCP Discovery packet is sent to the IPMI interface of the bare metal server through the network communication connection, an IP address allocated from the PXE server received by the IPMI interface is acquired through the network communication connection, and a communication connection with the PXE server is established according to the IP address.
[0064] Specifically, if the physical port of the intelligent network card connected to the external network is closed, it is considered that the intelligent network card cannot be started and installed through the port connected to the external network, and it is considered that the process of starting and installing through the network communication connection needs to be performed.
[0065] The intelligent network card enters the process of starting and installing through the network communication connection, initializes the PCIe channel of the intelligent network card, so that the intelligent network card can communicate with the bare metal server through the network communication connection, and at this time, the intelligent network card formally enters the process of starting and installing.
[0066] Firstly, the intelligent network card needs to send a DHCP Discovery packet to acquire an IP address for communicating with the PXE server, and the DHCP Discovery packet is sent to the IPMI interface of the bare metal server through the network communication connection. In this embodiment, if the destination MAC address of the DHCP Discovery packet is all f, it indicates that it is a broadcast data packet.
[0067] After the IPMI interface of the bare metal server receives the DHCP Discovery packet, the DHCP Discovery packet is sent to the PXE server through the network communication connection.
[0068] Further, the bare metal server IPMI interface receives the DHCP Offer message returned by the PXE server through the network communication connection, and forwards the DHCP Offer message to the intelligent network card through the network communication connection. The DHCP Offer message includes the IP address allocated to the intelligent network card by the PXE server.
[0069] After the intelligent network card is allocated to the IP address, the intelligent network card sends a DHCP request confirmation message to the IPMI interface of the bare metal server through the network communication connection again, and receives the confirmation message returned by the PXE server through the network communication connection. At this point, the intelligent network card completes the request for allocating the IP address, obtains the IP address allocated by the PXE server, and can further communicate with the PXE server through the address.
[0070] In step S130, the PXE startup installation file request is sent to the IPMI interface through the network communication connection, so that the PXE startup installation file request is sent to the PXE server through the IPMI interface.
[0071] After the intelligent network card receives the confirmation message, the intelligent network card starts sending the PXE startup installation file request to the IPMI interface of the bare metal server through the network communication connection, so that the PXE startup installation file request is sent to the PXE server through the IPMI interface, thereby requesting the PXE startup installation file deployed by the PXE server, and completing the startup and installation of the intelligent network card.
[0072] It can be understood that in the embodiment of the application, the PXE startup installation file includes a binary file, a Grub (GRand Unified Bootloader, multi-operating system startup program) menu, a Kernel and an initd. The specific file content contained in the PXE startup installation file can be determined according to actual conditions, and the embodiment of the application does not limit this.
[0073] In step S140, the PXE startup installation file returned by the PXE server is obtained through the network communication connection, and PXE startup installation is performed through the PXE startup installation file.
[0074] Specifically, the IPMI interface of the bare metal server receives the PXE startup installation file returned by the PXE server through the network communication connection, and forwards the startup installation file to the intelligent network card through the network communication connection.
[0075] The intelligent network card reads the PXE startup installation file, and completes the PXE startup installation of the intelligent network card. The above method improves the efficiency of deploying the intelligent network card and improves the reliability of the PXE startup installation of the intelligent network card.
[0076] Further, after the intelligent network card completes the PXE startup installation through the above steps, the intelligent network card sends the PXE startup installation result to the IPMI interface of the bare metal server again through the network communication connection. After the IPMI interface of the bare metal server receives the PXE startup installation result, the IPMI interface sends the PXE startup installation result to the cloud management platform in the form of capture, so that the administrator confirms whether the PXE startup installation of the intelligent network card is successful according to the PXE startup installation result. The administrator can directly check the result on the cloud management platform, thereby saving the time of configuring intermediate network equipment, improving the efficiency of deploying the intelligent network card, and improving the reliability of the startup and installation of the intelligent network card. Thus, the process of the PXE startup installation of the intelligent network card through the network communication connection and the IPMI interface of the bare metal server ends.
[0077] The PXE startup installation method of the intelligent network card provided by the embodiment of the application is applied to an intelligent network card, the intelligent network card establishes a network communication connection with a PCIe channel of a bare metal server, the bare metal server is connected to a cloud management platform through an IPMI interface, the cloud management platform is connected to a PXE server, the PCIe channel is bridged with the IPMI interface, and the method comprises the following steps: after the intelligent network card is powered on by the bare metal server, it is determined whether a physical port of the intelligent network card connected to an external network is opened; if the physical port is not opened, a DHCP Discovery packet is sent to the IPMI interface of the bare metal server through the network communication connection, an IP address allocated by the PXE server and received by the IPMI interface is acquired through the network communication connection, and a communication connection is established with the PXE server according to the IP address; a PXE startup installation file request is sent to the IPMI interface through the network communication connection, so that the PXE startup installation file request is sent to the PXE server through the IPMI interface; a PXE startup installation file returned by the PXE server and received by the IPMI interface is acquired through the network communication connection, and PXE startup installation is performed through the PXE startup installation file. The intelligent network card communicates with the bare metal server, realizes the startup and installation of the intelligent network card system, saves the time of configuring intermediate network equipment, and improves the efficiency of deploying the intelligent network card.
[0078] Embodiment 2
[0079] As Figure 2As shown, a flowchart of a PXE boot installation method of an intelligent network card in an embodiment of the present application is shown, and the PXE boot installation method of the intelligent network card provided in the embodiment of the present application is applied to a bare metal server, such as Figure 5 As shown, the PCIe channel of the bare metal server establishes a network communication connection with the intelligent network card, the bare metal server connects a cloud management platform through an IPMI interface, the cloud management platform establishes a communication connection with a PXE server, the PCIe channel is bridged with the IPMI interface, and the method comprises the following steps:
[0080] In step S210, the intelligent network card is powered on after receiving the instruction of the cloud management platform.
[0081] Specifically, first, a PXE pre-boot execution environment is built, and a boot installation file of the intelligent network card is deployed in advance, wherein the boot installation file comprises a binary file, a Grub menu, a Kernel and an initd, and the intelligent network card is powered on after receiving the instruction of the cloud management platform.
[0082] It can be understood that in the embodiment of the present application, the PXE boot installation file comprises a binary file, a Grub menu, a Kernel and an initd, and the specific file content contained in the PXE boot installation file can be determined according to actual conditions, and the embodiment of the present application does not limit this.
[0083] In step S220, the DHCP Discovery packet sent by the intelligent network card is received through the network communication connection, the DHCP Discovery packet is sent to the PXE server through the IPMI interface, and the IP address allocated by the PXE server received by the IPMI interface is sent to the intelligent network card through the network communication connection, so that the intelligent network card establishes a communication connection with the PXE server according to the IP address.
[0084] Further, after the IPMI interface of the bare metal server receives the DHCP Discovery packet sent by the intelligent network card through the network communication connection, the DHCP Discovery packet is submitted to the PXE server through the network communication connection. Then, the PXE server allocates an IP address, and the IP address can be used for communication between the intelligent network card and the PXE server. The DHCP Offer packet returned by the PXE server and containing the IP address received by the IPMI interface is sent to the intelligent network card through the network communication connection.
[0085] The intelligent network card sends a DHCP request confirmation message again after receiving the DHCP Offer message. The IPMI interface of the bare metal server sends the DHCP request confirmation message to the PXE server through the network communication connection after receiving the DHCP request confirmation message from the intelligent network card through the network communication connection, and forwards the confirmation message returned by the PXE server to the intelligent network card through the network communication connection.
[0086] The intelligent network card completes the request for allocating an IP address, obtains the IP address allocated by the PXE server, and can further communicate with the PXE server through the address.
[0087] In step S230, the PXE boot installation file request sent by the intelligent network card is received through the network communication connection, and the PXE boot installation file request is sent to the PXE server through the IPMI interface.
[0088] After receiving the confirmation message, the intelligent network card sends a PXE boot installation file request to the PXE server through the network communication connection. The PXE server sends the pre-deployed PXE boot installation file to the IPMI interface of the bare metal server through the network communication connection, so that the IPMI interface sends the PXE boot installation file to the intelligent network card through the network communication connection, and the intelligent network card completes its own boot and installation.
[0089] In step S240, the PXE boot installation file returned by the PXE server and received by the IPMI interface is sent to the intelligent network card through the network communication connection, so that the intelligent network card performs PXE boot installation through the PXE boot installation file.
[0090] Further, the IPMI interface of the bare metal server receives the PXE boot installation file request sent by the intelligent network card through the network communication connection, and sends the PXE boot installation file request to the PXE server. The PXE server sends the boot installation file to the IPMI interface of the bare metal server through the network communication connection, so that the boot installation file can reach the intelligent network card through the network communication connection. Then, the intelligent network card reads the boot installation file and completes the PXE boot installation of the intelligent network card. The above method improves the efficiency of deploying the intelligent network card and improves the reliability of the PXE boot installation of the intelligent network card.
[0091] Furthermore, the bare metal server's IPMI interface receives the PXE boot installation result sent by the smart network card through the network communication connection, and then sends the PXE boot installation result to the cloud management platform through the IPMI interface, so that the administrator can confirm whether the PXE boot installation of the smart network card was successful based on the PXE boot installation result. At this point, the process of the bare metal server's IPMI interface assisting the smart network card in PXE boot installation via the network communication connection is complete.
[0092] The PXE boot installation method for a smart network interface card (NIC) provided in this invention is applied to a bare-metal server. The bare-metal server establishes a network communication connection between its PCIe channel and the smart NIC. The bare-metal server connects to a cloud management platform via an IPMI interface. The cloud management platform establishes a communication connection with the PXE server. The PCIe channel is bridged with the IPMI interface. The method includes: receiving an instruction from the cloud management platform and controlling the smart NIC to power on; receiving a DHCP request sent by the smart NIC through the network communication connection. The system sends Discovery messages and DHCP Discovery messages to the PXE server via the IPMI interface. It also sends the IP address assigned by the PXE server, received via the IPMI interface, to the smart network interface card (NIC) through the network communication connection, enabling the NIC to establish a communication connection with the PXE server based on the IP address. Furthermore, the system receives PXE boot installation file requests from the NIC via the network communication connection and sends these requests to the PXE server via the IPMI interface. Finally, it sends the PXE boot installation file returned by the PXE server, received via the IPMI interface, to the NIC through the network communication connection, allowing the NIC to perform PXE boot installation using the PXE boot installation file. This communication between the NIC and the bare metal server enables the startup and installation of the NIC system, saving time configuring intermediate network devices and improving the efficiency of NIC deployment.
[0093] Example 3
[0094] like Figure 3 The diagram shows a schematic of a PXE boot installation device 300 for a smart network interface card (NIC) according to an embodiment of the present invention. The smart NIC establishes a network communication connection with the PCIe channel of a bare metal server. The bare metal server is connected to a cloud management platform via an IPMI interface. The cloud management platform establishes a communication connection with a PXE server. The PCIe channel is bridged with the IPMI interface. The device includes:
[0095] The judgment module 310 is configured to judge whether a physical port of the intelligent network card connected to an external network is opened after the intelligent network card is powered on by the bare metal server.
[0096] The transceiver module 320 is configured to send a DHCP Discovery packet to an IPMI interface of the bare metal server through the network communication connection if the physical port is not opened, to obtain an IP address allocated by the PXE server and received by the IPMI interface through the network communication connection, and to establish a communication connection with the PXE server according to the IP address.
[0097] The transceiver module 320 is further configured to send a PXE startup installation file request to the IPMI interface through the network communication connection, so that the PXE startup installation file request is sent to the PXE server through the IPMI interface.
[0098] The transceiver module 320 is further configured to obtain the PXE startup installation file returned by the PXE server and received by the IPMI interface through the network communication connection, and to perform PXE startup installation through the PXE startup installation file.
[0099] Optionally, the intelligent network card PXE startup installation device further comprises:
[0100] The mounting module is configured to mount the intelligent network card on the bare metal server, load the bare metal server, and connect the bare metal server and the bare metal server IPMI interface.
[0101] The connection module is configured to connect the intelligent network card and the cloud management platform through the bare metal server IPMI interface.
[0102] Optionally, the intelligent network card PXE startup installation device further comprises:
[0103] The first sending sub-module is configured to send the DHCP Discovery packet to the IPMI interface of the bare metal server through the network communication connection.
[0104] The first receiving sub-module is configured to receive the DHCP Offer packet returned by the PXE server through the network communication connection, wherein the DHCP Offer packet comprises an IP address allocated by the PXE server to the intelligent network card.
[0105] The second sending sub-module is configured to send a DHCP request confirmation packet to the IPMI interface of the bare metal server through the network communication connection, and to receive a confirmation packet returned by the PXE server through the network communication connection.
[0106] Optionally, the smart network card PXE boot installation device further includes:
[0107] The third sending submodule is used to send the PXE boot installation result to the IPMI interface of the bare metal server through the network communication connection, so that the IPMI interface of the bare metal server sends the PXE boot installation result to the cloud management platform, so that the administrator can confirm whether the PXE boot installation of the smart network card is successful based on the PXE boot installation result.
[0108] The PXE boot installation device for smart network interface cards (NICs) provided in this embodiment of the invention communicates with a bare metal server through a smart NIC to realize the boot and installation of the smart NIC system, saving the time of configuring intermediate network devices and improving the efficiency of deploying smart NICs.
[0109] Example 4
[0110] like Figure 4 The diagram shows a schematic of a PXE boot installation device 400 for a bare-metal server using a smart network interface card (NIC). The bare-metal server establishes a network communication connection with the smart NIC via its PCIe channel. The bare-metal server connects to a cloud management platform via an IPMI interface. The cloud management platform establishes a communication connection with the PXE server. The PCIe channel is bridged with the IPMI interface. The device includes:
[0111] The power-on module 410 is used to control the smart network card to power on after receiving the instruction from the cloud management platform;
[0112] The transceiver module 420 is used to receive DHCP Discovery messages sent by the smart network card through the network communication connection, send the DHCP Discovery messages to the PXE server through the IPMI interface, and send the IP address assigned by the PXE server received by the IPMI interface to the smart network card through the network communication connection, so that the smart network card can establish a communication connection with the PXE server according to the IP address.
[0113] The transceiver module 420 is also used to receive the PXE boot installation file request sent by the smart network card through the network communication connection, and send the PXE boot installation file request to the PXE server through the IPMI interface;
[0114] The transceiver module 420 is further configured to send the PXE boot installation file returned by the PXE server and received by the IPMI interface to the smart network card through the network communication connection, so that the smart network card can perform PXE boot installation through the PXE boot installation file.
[0115] Optionally, the intelligent network card PXE boot installation device further comprises:
[0116] The second receiving submodule is configured to receive the DHCP Discovery packet from the intelligent network card through the IPMI interface of the bare metal server and the network communication connection, and send the DHCP Discovery packet to the PXE server through the network communication connection.
[0117] The third receiving submodule is configured to send the DHCP Offer packet returned by the PXE server to the intelligent network card through the network communication connection, wherein the DHCP Offer packet comprises the IP address allocated to the intelligent network card by the PXE server.
[0118] The fourth receiving submodule is configured to receive the DHCP request confirmation packet from the intelligent network card through the network communication connection, and send the DHCP request confirmation packet to the PXE server through the network communication connection.
[0119] The fifth receiving submodule is configured to send the confirmation packet returned by the PXE server to the intelligent network card through the network communication connection.
[0120] Optionally, the intelligent network card PXE boot installation device further comprises:
[0121] The sixth receiving submodule is configured to receive the PXE boot installation result sent by the intelligent network card through the network communication connection, and send the PXE boot installation result to the cloud management platform through the IPMI interface, so that the administrator confirms whether the PXE boot installation of the intelligent network card is successful according to the PXE boot installation result.
[0122] The intelligent network card PXE boot installation device provided by the embodiment of the application realizes the boot and installation of the intelligent network card system by the communication between the intelligent network card and the bare metal server, saves the time for configuring the intermediate network equipment, and improves the efficiency of deploying the intelligent network card.
[0123] In the embodiment of the disclosure, a computer device is provided, which comprises a memory and a processor, the memory stores a computer program, and the processor implements the steps of the intelligent network card PXE boot installation method in the embodiment 1 or the embodiment 2 when executing the computer program.
[0124] The embodiment of the present disclosure provides a computer readable storage medium, the computer readable storage medium stores a computer program, and the computer program is executed by a processor to realize the steps of the intelligent network card PXE starting installation method in the embodiment 1 or the embodiment 2.
[0125] In several embodiments provided by the present application, it should be understood that the disclosed apparatus and method can also be implemented by other manners. The apparatus embodiments described above are only schematic, for example, the flow charts and structural diagrams in the drawings show possible implementation architectures, functions and operation of the apparatus, method and computer program product according to the embodiments of the present application. In this regard, each block in the flow charts or structural diagrams can represent a module, a program segment or a part of code, which contains one or more executable instructions for implementing the specified logic function. It should also be noted that in alternative implementation manners, the functions noted in the blocks can also occur in different orders from those noted in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and sometimes they can also be executed in reverse order, depending on the functions involved. It should also be noted that each block in the structural diagram and / or flow chart, and the combination of blocks in the structural diagram and / or flow chart, can be implemented by a dedicated hardware-based system for executing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
[0126] In addition, each functional module or unit in the embodiments of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0127] If the functions are realized in the form of software function modules and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a plurality of instructions for causing a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.
[0128] The above merely illustrates the specific embodiments of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of the changes or replacements within the technical range disclosed by the present application, which should be covered in the protection scope of the present application.
Claims
1. A method for booting and installing a smart network card using PXE, characterized in that, The method, applied to a smart network interface card (NIC), establishes a network communication connection with the PCIe channel of a bare metal server. The bare metal server connects to a cloud management platform via an IPMI interface. The cloud management platform establishes a communication connection with a PXE server. The PCIe channel is bridged with the IPMI interface. After the smart network card is powered on by the bare metal server, it is determined whether the physical port of the smart network card that connects to the external network is open. If the physical port is not open, a DHCP Discovery message is sent to the IPMI interface of the bare metal server through the network communication connection. The IP address assigned by the PXE server is obtained from the IPMI interface through the network communication connection, and a communication connection is established with the PXE server based on the IP address. The PXE boot installation file request is sent to the IPMI interface through the network communication connection, so that the PXE boot installation file request is sent to the PXE server through the IPMI interface; The PXE boot installation file returned by the PXE server is obtained through the network communication connection and received from the IPMI interface, and PXE boot installation is performed through the PXE boot installation file. The step of sending a DHCP Discovery message to the IPMI interface of the bare metal server via the network communication connection, and obtaining the IP address assigned by the PXE server received by the IPMI interface via the network communication connection, includes: The smart network card sends the DHCPDiscovery message to the IPMI interface of the bare metal server through the network communication connection; The network communication connection receives a DHCP Offer message returned by the PXE server, wherein the DHCP Offer message includes the IP address assigned to the smart network card by the PXE server; Send a DHCP request confirmation message to the IPMI interface of the bare metal server through the network communication connection, and receive a confirmation message returned from the PXE server through the network communication connection.
2. The PXE boot installation method for a smart network card according to claim 1, characterized in that, After receiving the PXE boot installation file returned by the PXE server and performing PXE boot installation using the PXE boot installation file, the method further includes: The PXE boot installation result is sent to the IPMI interface of the bare metal server through the network communication connection, so that the IPMI interface of the bare metal server sends the PXE boot installation result to the cloud management platform, so that the administrator can confirm whether the PXE boot installation of the smart network card is successful based on the PXE boot installation result.
3. A method for booting and installing a smart network card using PXE, characterized in that, The method, applied to bare-metal servers, establishes a network communication connection between the bare-metal server's PCIe channel and a smart network interface card (NIC), connects the bare-metal server to a cloud management platform via an IPMI interface, establishes a communication connection between the cloud management platform and a PXE server, and bridges the PCIe channel with the IPMI interface. After receiving the instruction from the cloud management platform, the system controls the smart network card to power on. The network communication connection receives the DHCP Discovery message sent by the smart network card, and sends the DHCP Discovery message to the PXE server through the IPMI interface. The network communication connection also sends the IP address assigned by the PXE server received by the IPMI interface to the smart network card, so that the smart network card can establish a communication connection with the PXE server based on the IP address. The network communication connection is used to receive the PXE boot installation file request sent by the smart network card, and the PXE boot installation file request is sent to the PXE server through the IPMI interface; The PXE boot installation file returned by the PXE server and received by the IPMI interface is sent to the smart network card through the network communication connection, so that the smart network card can perform PXE boot installation through the PXE boot installation file; The step of sending the IP address allocated by the PXE server received through the IPMI interface to the smart network card via the network communication connection includes: The bare metal server's IPMI interface receives DHCP Discovery messages from the smart network card through the network communication connection, and sends the DHCP Discovery messages to the PXE server through the network communication connection. The DHCP Offer message returned by the PXE server and received by the IPMI interface is sent to the smart network card through the network communication connection, wherein the DHCP Offer message includes the IP address assigned to the smart network card by the PXE server; The system receives DHCP request confirmation messages from the smart network card through the network communication connection and sends the DHCP request confirmation messages to the PXE server through the network communication connection. The acknowledgment message received by the IPMI interface from the PXE server is sent to the smart network card through the network communication connection.
4. The PXE boot installation method for a smart network card according to claim 3, characterized in that, After receiving the PXE boot installation file returned by the PXE server via the IPMI interface and sending it to the smart network card through the network communication connection, the method further includes: The system receives the PXE boot installation result sent by the smart network card through the network communication connection, and sends the PXE boot installation result to the cloud management platform through the IPMI interface, so that the administrator can confirm whether the PXE boot installation of the smart network card is successful based on the PXE boot installation result.
5. A smart network card PXE boot installation device, characterized in that, An application for smart network interface cards (NICs) is provided, wherein the smart NIC establishes a network communication connection with the PCIe channel of a bare metal server, the bare metal server is connected to a cloud management platform via an IPMI interface, the cloud management platform establishes a communication connection with a PXE server, and the PCIe channel is bridged with the IPMI interface. The device comprises: The judgment module is used to determine whether the physical port of the smart network card connecting to the external network is open after the smart network card is powered on by the bare metal server. The transceiver module is used to send a DHCP Discovery message to the IPMI interface of the bare metal server through the network communication connection if the physical port is not open, obtain the IP address assigned by the PXE server received by the IPMI interface through the network communication connection, and establish a communication connection with the PXE server based on the IP address. The transceiver module is also used to send a PXE boot installation file request to the IPMI interface through the network communication connection, so that the PXE boot installation file request is sent to the PXE server through the IPMI interface; The transceiver module is also used to obtain the PXE boot installation file returned by the PXE server from the IPMI interface through the network communication connection, and to perform PXE boot installation through the PXE boot installation file; The first sending submodule is used for the smart network card to send the DHCP Discovery message to the IPMI interface of the bare metal server through the network communication connection; The first receiving submodule is configured to receive a DHCPOffer message returned by the PXE server through the network communication connection, wherein the DHCPOffer message includes the IP address assigned to the smart network card by the PXE server; The second sending submodule is used to send a DHCP request confirmation message to the IPMI interface of the bare metal server through the network communication connection, and to receive a confirmation message returned by the PXE server through the network communication connection.
6. A smart network card PXE boot installation device, characterized in that, An apparatus for use in bare-metal servers, wherein the bare-metal server establishes a network communication connection between its PCIe channel and a smart network interface card, the bare-metal server connects to a cloud management platform via an IPMI interface, the cloud management platform establishes a communication connection with a PXE server, and the PCIe channel is bridged with the IPMI interface; the apparatus includes: The power-on module is used to control the smart network card to power on after receiving instructions from the cloud management platform; The transceiver module is used to receive DHCP Discovery messages sent by the smart network card through the network communication connection, send the DHCP Discovery messages to the PXE server through the IPMI interface, and send the IP address assigned by the PXE server received by the IPMI interface to the smart network card through the network communication connection, so that the smart network card can establish a communication connection with the PXE server according to the IP address. The transceiver module is also used to receive the PXE boot installation file request sent by the smart network card through the network communication connection, and send the PXE boot installation file request to the PXE server through the IPMI interface; The transceiver module is also used to send the PXE boot installation file returned by the PXE server and received by the IPMI interface to the smart network card through the network communication connection, so that the smart network card can perform PXE boot installation through the PXE boot installation file; The second receiving submodule is used to receive DHCP Discovery messages from the smart network card through the IPMI interface of the bare metal server via the network communication connection, and to send the DHCP Discovery messages to the PXE server through the network communication connection. The third receiving submodule is used to send the DHCP Offer message returned by the PXE server received by the IPMI interface to the smart network card through the network communication connection, wherein the DHCP Offer message includes the IP address assigned to the smart network card by the PXE server; The fourth receiving submodule is used to receive a DHCP request confirmation message from the smart network card through the network communication connection, and send the DHCP request confirmation message to the PXE server through the network communication connection. The fifth receiving submodule is used to send the acknowledgment message returned by the PXE server received by the IPMI interface to the smart network card through the network communication connection.
7. A computer device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the smart network card PXE boot installation method according to any one of claims 1-2 or 3-4.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the smart network card PXE boot installation method as described in any one of claims 1-2 or 3-4.
Citation Information
Patent Citations
Intelligent network card deployment method and device and medium
CN114995888A
Data processor configuration method and device, equipment and medium
CN115562734A