CN116820492A - Method and device for installing system on intelligent network card - Google Patents

Method and device for installing system on intelligent network card Download PDF

Info

Publication number
CN116820492A
CN116820492A CN202310569139.7A CN202310569139A CN116820492A CN 116820492 A CN116820492 A CN 116820492A CN 202310569139 A CN202310569139 A CN 202310569139A CN 116820492 A CN116820492 A CN 116820492A
Authority
CN
China
Prior art keywords
network card
target
intelligent network
image file
container
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310569139.7A
Other languages
Chinese (zh)
Inventor
范梦瑶
柴小明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202310569139.7A priority Critical patent/CN116820492A/en
Publication of CN116820492A publication Critical patent/CN116820492A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a method and a device for installing a system on an intelligent network card, wherein the method comprises the following steps: acquiring a target image file, wherein the target image file is an image file corresponding to an operating system to be installed to a target intelligent network card; establishing a Docker container according to communication network port configuration information between a target host corresponding to the target intelligent network card and the target intelligent network card, and constructing a system-on-chip mirror image installation container; and installing the target image file to the target intelligent network card through the system-on-chip image installation container. According to the method, the creation of the Docker container is carried out through the communication network port configuration information between the host and the intelligent network card, the mirror image of the created Docker container on the intelligent network card deployment system on chip is utilized, the installation process of the intelligent network card system on chip is simplified, and the deployment efficiency of the intelligent network card system on chip is improved.

Description

Method and device for installing system on intelligent network card
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for installing a system on an intelligent network card.
Background
The processing pressure of mass data in the big data age is exponentially increasing, but the processing capability of a central processing unit (Central Processing Unit, CPU for short) is approaching a bottleneck, and an intelligent network card (Smart Network Interface Card, smartNIC for short) is generated, so that compared with a common network card, the intelligent network card can be used for accelerating network, storage and safety functions.
At present, the main installation mode of a System On Chip (SOC) of an intelligent network card depends On the installation of a pre-start execution environment (Preboot Execution Environment, PXE for short), but the installation can be smoothly performed only by dividing a virtual network card and setting a basic input output System (Basic Input Output System, BIOS for short) for guiding start, so that the whole installation process is complicated and the installation efficiency is low.
Therefore, there is a need for a method and apparatus for installing a system on a smart card to solve the above-mentioned problems.
Disclosure of Invention
Aiming at the problems existing in the prior art, the invention provides a method and a device for installing a system on an intelligent network card.
The invention provides a method for installing a system on an intelligent network card, which comprises the following steps:
acquiring a target image file, wherein the target image file is an image file corresponding to an operating system to be installed to a target intelligent network card;
establishing a Docker container according to communication network port configuration information between a target host corresponding to the target intelligent network card and the target intelligent network card, and constructing a system-on-chip mirror image installation container;
and installing the target image file to the target intelligent network card through the system-on-chip image installation container.
According to the method for installing the system on the intelligent network card provided by the invention, before the target image file is acquired, the method further comprises the following steps:
creating a Docker container through mirror image files of a plurality of operating systems, and constructing a mirror image library container of the operating system to be installed in the target host;
the obtaining the image file of the operating system to be installed includes:
receiving a first input, the first input comprising an operation to determine at least 1 target image file from a plurality of the image files;
and responding to the first input, and acquiring the target image file from the image library container of the operating system to be loaded.
According to the method for installing the system on the intelligent network card provided by the invention, the creation of the Docker container is carried out according to the communication network port configuration information between the target host machine corresponding to the target intelligent network card and the target intelligent network card, and a system on chip mirror image installation container is constructed, and the method comprises the following steps:
acquiring the communication network port configuration information, wherein the communication network port configuration information comprises port information and IP address information of a target network port when the target host and the target intelligent network card communicate;
and establishing a Docker container through the port information and the IP address information, and constructing a system-on-chip mirror image installation container.
According to the method for installing the system on the intelligent network card provided by the invention, the object image file is installed to the object intelligent network card through the system image installation container on the chip, and the method comprises the following steps:
if the number of the target image files is 1, the target image files are directly installed to the target intelligent network card through the system-on-chip image installation container;
if the target image files are multiple, constructing a virtual network card corresponding to each target image file in the target intelligent network card, and installing each target image file to the corresponding virtual network card based on a virtual network port of each virtual network card.
According to the method for installing the system on the intelligent network card provided by the invention, the virtual network card corresponding to each target image file is constructed in the target intelligent network card, and the method comprises the following steps:
determining the maximum starting number of the virtual network cards in the target intelligent network card according to the bus number, the equipment number, the number of function number BDFs of the bare metal server corresponding to the target intelligent network card and the BAR resource information of the base address register corresponding to each BDF;
receiving a second input, wherein the second input comprises the operation of constructing a virtual network card corresponding to each target image file in the target intelligent network card;
responding to the second input, and if the number of virtual network cards to be constructed is smaller than or equal to the maximum starting number, constructing virtual network cards corresponding to the target image files in the target intelligent network card;
and if the number of the virtual network cards to be constructed is larger than the maximum starting number, generating corresponding virtual network card construction failure prompt information.
According to the method for installing the system on the intelligent network card provided by the invention, after the plurality of target image files are provided, a virtual network card corresponding to each target image file is constructed in the target intelligent network card, and each target image file is installed to the corresponding virtual network card based on a virtual network port of each virtual network card, the method further comprises:
acquiring running state information of each virtual network card in a preset period;
and determining the installation condition of the on-chip system corresponding to each virtual network card according to the running state information.
According to the method for installing the system on the intelligent network card provided by the invention, after the target image file is installed to the target intelligent network card through the system on chip image installation container, the method further comprises the following steps:
and transmitting mirror files required by other intelligent network cards except the target intelligent network card to the corresponding host machine based on the mirror library container of the to-be-installed operating system in the target host machine so as to install the system on chip on the other intelligent network cards except the target intelligent network card.
The invention also provides a device for installing the intelligent network card system, which comprises:
the image file acquisition module is used for acquiring a target image file, wherein the target image file is an image file corresponding to an operating system to be installed to the target intelligent network card;
the container construction module is used for constructing a system-on-chip mirror image installation container according to the communication network port configuration information between the target host corresponding to the target intelligent network card and the target intelligent network card;
and the installation module is used for installing the target image file to the target intelligent network card through the system-on-chip image installation container.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the installation method of the intelligent network card system is realized when the processor executes the program.
The invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of installing a system on a smart network card as described in any of the above.
According to the method and the device for installing the system on the intelligent network card, the creation of the Docker container is carried out through the communication network port configuration information between the host and the intelligent network card, and the mirror image of the created Docker container on the intelligent network card deployment system on chip is utilized, so that the installation process of the system on the intelligent network card is simplified, and the deployment efficiency of the system on the intelligent network card is improved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for installing a system on an intelligent network card according to the present invention;
FIG. 2 is a schematic diagram of an automatic installation of SOCs of a single host provided by the present invention;
FIG. 3 is a schematic diagram of a multi-platform SOC auto-installation for a single host provided by the present invention;
FIG. 4 is a schematic diagram illustrating installation of a server cluster-based intelligent network card SOC according to the present invention;
FIG. 5 is a schematic diagram of a system-on-card installation device according to the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The intelligent network card has independent SOC system for self-management, can be managed by a server, is a diversified and interactable component, can be used for accelerating network, storage and safety functions, and can also execute functions such as virtualization, load balancing, data path optimization and the like. Based on the self-management characteristic of the intelligent network card, the network related service can be moved to the intelligent network card SOC for processing, so that on one hand, the resource consumption of the server in the network part can be greatly saved, and on the other hand, the management and self-management can be performed. The system installation process of the existing intelligent network card SOC firstly needs to build and deploy a PXE environment, and secondly, the PXE installation process also needs to be correspondingly set according to different installation requirements of the intelligent network card, and the installation process is complex, time-consuming and labor-consuming.
The invention provides a system automatic installation method of an intelligent network card SOC based on a Docker, which utilizes the physical support relationship and the virtualization function between the intelligent network card and a host server and realizes the automatic installation of the intelligent network card SOC by means of the function of the Docker for flexibly and rapidly transplanting mirror images. The intelligent network card SOC can be quickly and automatically installed on a single host, and the powerful portability of the intelligent network card SOC can be quickly deployed to a server cluster carried by the intelligent network card, so that the deployment rate is greatly improved.
Fig. 1 is a flow chart of an installation method of a system on an intelligent network card provided by the invention, and as shown in fig. 1, the invention provides an installation method of a system on an intelligent network card, comprising the following steps:
step 101, obtaining a target image file, wherein the target image file is an image file corresponding to an operating system to be installed on a target intelligent network card.
In the invention, the target intelligent network card is firstly connected to the server, the target host machine (i.e. the host machine which communicates with the target intelligent network card) is provided with the open source Linux system, and after the server is electrified, the target host machine is used for identifying whether the target intelligent network card has normal functions, for example, whether the target intelligent network card can be started normally.
Further, a system image file to be installed to the target intelligent network card at this time, for example, centOS, redHat and image files of various open source systems, is obtained. Preferably, in an embodiment, based on the Docker environment of the target host, the image packaging of the SOC system is performed, that is, a Docker container storing the image file is constructed according to image files of multiple different operating systems, so that when the SOC is installed on the intelligent network card, the required system image file can be quickly obtained directly from the Docker container.
And 102, creating a Docker container according to communication network port configuration information between a target host corresponding to the target intelligent network card and the target intelligent network card, and constructing a system on chip mirror image installation container.
The Docker as a lightweight virtualization technology has the advantages of light weight, quick starting, standard opening, safety and reliability, can simultaneously run a plurality of Docker containers on one host, and shares the kernel of the host operating system. Based on the characteristics of the Docker container, in the invention, according to the communication network port configuration information between the target host and the target intelligent network card, such as network port information (generally, nic 0) for keeping the host and the intelligent network card SOC in communication, and the static IP mapping relationship between the host and the intelligent network card, the intelligent network card end SOC to-be-installed area with the mirror image system installation function, namely the system on chip mirror image installation container, is created through the Docker environment of the target host.
And step 103, installing the target image file to the target intelligent network card through the system-on-chip image installation container.
In the invention, the system image on chip installation container created by the target host machine utilizes a script (which is set in the early stage and is used for realizing the automatic installation of the system image file to the intelligent network card by the system image on chip installation container), and the target image file is installed point to point so as to install the target image file to the target intelligent network card, thereby completing the SOC installation of the intelligent network card.
According to the method for installing the system on the intelligent network card, the creation of the Docker container is carried out through the communication network port configuration information between the host and the intelligent network card, and the mirror image of the created Docker container on the intelligent network card deployment system on chip is utilized, so that the installation process of the system on the intelligent network card is simplified, and the deployment efficiency of the system on the intelligent network card is improved.
On the basis of the foregoing embodiment, before the target image file is obtained, the method further includes:
creating a Docker container through mirror image files of a plurality of operating systems, and constructing a mirror image library container of the operating system to be installed in the target host;
the obtaining the image file of the operating system to be installed includes:
receiving a first input, the first input comprising an operation to determine at least 1 target image file from a plurality of the image files;
and responding to the first input, and acquiring the target image file from the image library container of the operating system to be loaded.
In the invention, mirror image files of various operating systems, such as CentOS, redHat and Ubuntu operating systems, are obtained, and customized OS development can be performed according to actual requirements; and then, carrying out installation mirror image packaging on the intelligent network card SOC in a Docker environment of the target host, and constructing a mirror image packaging area to be installed, namely an operating system mirror image library container to be installed, based on the Docker container. Further, according to the input operation of the user side, determining a target image file from the image packaging area to be installed for subsequent installation of the intelligent network card SOC.
On the basis of the foregoing embodiment, the creating a Docker container according to the communication network port configuration information between the target host corresponding to the target intelligent network card and the target intelligent network card, to construct a system-on-chip mirror image installation container includes:
acquiring the communication network port configuration information, wherein the communication network port configuration information comprises port information and IP address information of a target network port when the target host and the target intelligent network card communicate;
and establishing a Docker container through the port information and the IP address information, and constructing a system-on-chip mirror image installation container.
According to the connection relation between the target intelligent network card and the target host, the network port connected with the target host in the target intelligent network card is determined. Further, based on a network interface (generally nic 0) of the target intelligent network card for simultaneously keeping the target host computer in communication with the SOC, configuring a static IP to ensure IP connectivity, thereby creating a corresponding Docker container, namely a system-on-chip mirror image installation container; and then, the Docker mirror image created by the target host machine is installed point to point through the system-on-chip mirror image installation container by using the installation script, so that mirror image transplanting is realized, and SOC installation of the target intelligent network card is completed. Fig. 2 is a schematic diagram of automatic installation of an SOC of a single host provided in the present invention, as shown in fig. 2, by using a Docker mirror image installation script, installing a target mirror image file in a Docker1 container (i.e. a to-be-installed mirror image packaging area) into a target intelligent network card by using a Docker2 container (i.e. an intelligent network card end SOC to-be-installed area), so that the intelligent network card SOC is rapidly deployed based on a Docker technology.
On the basis of the above embodiment, the installing, by the system on chip image installation container, the target image file to the target intelligent network card includes:
if the number of the target image files is 1, the target image files are directly installed to the target intelligent network card through the system-on-chip image installation container;
if the target image files are multiple, constructing a virtual network card corresponding to each target image file in the target intelligent network card, and installing each target image file to the corresponding virtual network card based on a virtual network port of each virtual network card.
In the present invention, for the case that only one operating system is installed in the intelligent network card, based on the above embodiment, the container may be installed by the system-on-chip mirror image, and the mirror image file may be directly installed to the intelligent network card according to the communication network port configuration information.
For the case that the intelligent network card needs multiple operating systems, firstly, a Single Root I/O Virtualization (SR-IOV) technology of the intelligent network card is utilized, and a physical Function (Physical Function, PF) and a Virtual Function (VF) are created at the same time, so that a plurality of Virtual network cards are created, and mirror files to be installed of each Virtual network card are obtained through a mirror library container of the operating system to be installed, so that a plurality of target mirror files are obtained; and based on the virtual network ports corresponding to the virtual network cards, the system-on-chip mirror image installation containers are constructed through the Docker containers, and each mirror image file is installed to the corresponding virtual network card, so that the installation process of various mirror image files is realized. Fig. 3 is a schematic diagram of automatic installation of a multi-platform SOC of a single host provided in the present invention, and may refer to fig. 3, where corresponding image files (such as RedHat image files, centOS image files, etc.) are obtained from a dock 1 container through a dock image installation script, and each image file is installed into a virtual network card through a corresponding virtual network port (i.e., virtual network port 0, virtual network card 1, virtual network card 2, etc.) by using different system-on-chip image installation containers (i.e., dock 2, dock 3, dock 4, etc.), so that the installation process of the multi-platform SOC is rapidly completed in the intelligent network card.
On the basis of the foregoing embodiment, the constructing, in the target intelligent network card, a virtual network card corresponding to each target image file includes:
determining the maximum starting number of the virtual network cards in the target intelligent network card according to the bus number, the equipment number, the number of function number BDFs of the bare metal server corresponding to the target intelligent network card and the BAR resource information of the base address register corresponding to each BDF;
receiving a second input, wherein the second input comprises the operation of constructing a virtual network card corresponding to each target image file in the target intelligent network card;
responding to the second input, and if the number of virtual network cards to be constructed is smaller than or equal to the maximum starting number, constructing virtual network cards corresponding to the target image files in the target intelligent network card;
and if the number of the virtual network cards to be constructed is larger than the maximum starting number, generating corresponding virtual network card construction failure prompt information.
In the invention, the intelligent network card can comprehensively allocate the total BDF as a combination of blk (block Device) +net modes (optionally, the allocation ratio of blk and net is 1:1) according to the Number of Bus numbers, device numbers, function numbers (BDFs) of the connected bare metal servers and the resources of a base address register (Base Address Register, BAR) corresponding to each BDF Number, thereby determining the maximum N virtual creation numbers (namely, the maximum starting Number of the virtual network card, and the specific value of N is determined according to the actual BDF Number and BAR resource information) and having the net of the virtual Function VF. Further, according to the construction operation of the virtual network cards of the target intelligent network card, the number of virtual network cards actually required to be constructed at this time is obtained, and further under the condition that the maximum starting number is not exceeded, the construction of the virtual network cards at this time is completed, and the installation of the SOC is implemented for each virtual network card.
On the basis of the above embodiment, if the target image files are multiple, building a virtual network card corresponding to each target image file in the target intelligent network card, and installing each target image file to the corresponding virtual network card based on a virtual network port of each virtual network card, where the method further includes:
acquiring running state information of each virtual network card in a preset period;
and determining the installation condition of the on-chip system corresponding to each virtual network card according to the running state information.
In the invention, after the SOC of the intelligent network card is installed, the running state of the SOC of the intelligent network card is continuously collected so as to ensure successful installation and improve the stability of the system.
On the basis of the above embodiment, after the target image file is installed to the target intelligent network card by the system on chip image installation container, the method further includes:
and transmitting mirror files required by other intelligent network cards except the target intelligent network card to the corresponding host machine based on the mirror library container of the to-be-installed operating system in the target host machine so as to install the system on chip on the other intelligent network cards except the target intelligent network card.
In the invention, for the server cluster where the target host is located, if the intelligent network cards of other hosts in the server cluster also need to deploy the SOC, the mirror image storage container of the to-be-installed operating system of the single-node host (namely the target host) deployed by the existing mirror image file can be used as a mirror image storage, and mirror image batch deployment is carried out on the intelligent network cards of other hosts by means of a switch network and a Docker tool. Fig. 4 is a schematic diagram of installation of an SOC of an intelligent network card based on a server cluster according to the present invention, which can refer to fig. 4, where corresponding mirror files are provided for other hosts (such as host OS-02, host OS-03, etc.) in the server cluster through a mirror packaging area of the host OS-01, and then the installation of the SOC is completed by a system-on-chip mirror installation container of each host itself. It should be noted that in the present invention, the connection of mirror image package areas between all hosts is not shown in fig. 4, and interaction exists between mirror image package areas between all hosts, that is, mirror image files required by each other can be provided, for example, host OS-01 can provide mirror image files for host OS-06.
In an embodiment, the method for installing the system on the intelligent network card provided by the invention is integrally described, and specifically comprises the following steps:
step S1, intelligent network card server deployment: connecting the intelligent network card to a server, installing an open source Linux system (such as RedHat, centOS, SUSE and the like) to be used at a host machine end, checking whether the intelligent network card identification is normal or not after the host machine server is electrified, executing the subsequent steps if the intelligent network card identification is normal, and generating corresponding alarm prompt information if the intelligent network card identification is abnormal;
step S2, host migration SOC mirror image preparation: the system mirror image packaging of the SOC to be installed is carried out under the Docker environment of the host machine, and at present, the Docker source supports various mirrors, such as a common RedHat, centOS system and various open-source systems, and customized OS development can be carried out according to actual requirements, so that a mirror image packaging area to be installed based on a Docker container is formed;
step S3, installing an SOC system: establishing a Docker container by using the configuration information of a network port (generally nic 0) for simultaneously keeping the host and the SOC in communication with the intelligent network card, and configuring static IP to ensure IP connectivity so as to construct the Docker container for executing the SOC installation function of the intelligent network card, namely a system-on-chip mirror image installation container; then, a script is utilized to mount the Docker mirror image file created by the host machine point to point through a system-on-chip mirror image mounting container, so as to realize mirror image transplanting; if the intelligent network card needs to install various operating systems, the SR-IOV function of the intelligent network card can be utilized to simultaneously establish a physical function PF and a virtual function VF, and the established virtual network port can realize the installation of various mirror files through a system-on-chip mirror image installation container;
step S4, installing a server cluster SOC system: when the intelligent network card in the server cluster deploys the SOC, a single-node host of the existing image file can be used as an image library, and other intelligent network cards in the server cluster can be rapidly deployed in batches by means of the switch network and the Docker tool, so that the SOC installation of a plurality of intelligent network cards is completed.
The invention utilizes the characteristics of flexible and convenient migration and deployment mirror image of the Docker, can realize quick deployment in a single-point server or a server cluster, realizes automatic installation by means of a script tool, saves time and labor, and can deploy one to multiple mirror image systems according to requirements so as to realize multi-operation platform management.
The installation device of the intelligent network card system provided by the invention is described below, and the installation device of the intelligent network card system described below and the installation method of the intelligent network card system described above can be correspondingly referred to each other.
Fig. 5 is a schematic structural diagram of an installation device of a system on an intelligent network card, as shown in fig. 5, the invention provides an installation device of a system on an intelligent network card, which comprises an image file obtaining module 501, a container constructing module 502 and an installation module 503, wherein the image file obtaining module 501 is used for obtaining a target image file, and the target image file is an image file corresponding to an operating system to be installed on a target intelligent network card; the container construction module 502 is configured to perform dock container creation according to communication network port configuration information between a target host corresponding to the target intelligent network card and the target intelligent network card, and construct a system-on-chip mirror image installation container; the installation module 503 is configured to install the target image file to the target intelligent network card through the system on chip image installation container.
In the present invention, the image file obtaining module 501 obtains the image files of the system to be installed to the target intelligent network card, for example, centOS, redHat and the image files of various open source systems. Preferably, in an embodiment, based on the Docker environment of the target host, the image packaging of the SOC system is performed, that is, a Docker container storing the image file is constructed according to image files of multiple different operating systems, so that when the SOC of the intelligent network card is installed, the image file obtaining module 501 may directly and quickly obtain the required system image file from the Docker container.
Further, based on the characteristics of the Docker container, in the present invention, the container construction module 502 creates, according to the communication network configuration information between the target host and the target intelligent network card, such as network port information (generally nic 0) for maintaining the host and the intelligent network card SOC to communicate, and the static IP mapping relationship between the host and the intelligent network card, an intelligent network card end SOC to-be-installed area with a mirror image system installation function, that is, a system on chip mirror image installation container, through the Docker environment of the target host.
Finally, the installation module 503 uses a script (set in the early stage, for implementing automatic installation of the system image file to the intelligent network card through the system image installation container on chip), and performs point-to-point installation on the target image file through the system image installation container on chip created by the target host, so as to install the target image file to the target intelligent network card, thereby completing SOC installation of the intelligent network card.
According to the installation device of the intelligent network card system, the creation of the Docker container is carried out through the communication network port configuration information between the host and the intelligent network card, and the mirror image of the created Docker container on the intelligent network card deployment system on chip is utilized, so that the installation process of the intelligent network card system is simplified, and the deployment efficiency of the intelligent network card system is improved.
On the basis of the embodiment, the device further comprises a mirror image library construction module, which is used for carrying out Docker container creation through mirror image files of a plurality of operating systems, and constructing a mirror image library container of the operating system to be installed in the target host;
the image file acquisition module is specifically configured to:
receiving a first input, the first input comprising an operation to determine at least 1 target image file from a plurality of the image files;
and responding to the first input, and acquiring the target image file from the image library container of the operating system to be loaded.
On the basis of the embodiment, the container construction module comprises a network port configuration information acquisition unit and a construction unit, wherein the network port configuration information acquisition unit is used for acquiring the communication network port configuration information, and the communication network port configuration information comprises port information and IP address information of a target network port when the target host communicates with the target intelligent network card; the construction unit is used for carrying out Docker container creation through the port information and the IP address information to construct a system-on-chip mirror image installation container.
On the basis of the above embodiment, the installation module is specifically configured to:
if the number of the target image files is 1, the target image files are directly installed to the target intelligent network card through the system-on-chip image installation container;
if the target image files are multiple, constructing a virtual network card corresponding to each target image file in the target intelligent network card, and installing each target image file to the corresponding virtual network card based on a virtual network port of each virtual network card.
On the basis of the above embodiment, the mounting module is further configured to:
determining the maximum starting number of the virtual network cards in the target intelligent network card according to the bus number, the equipment number, the number of function number BDFs of the bare metal server corresponding to the target intelligent network card and the BAR resource information of the base address register corresponding to each BDF;
receiving a second input, wherein the second input comprises the operation of constructing a virtual network card corresponding to each target image file in the target intelligent network card;
responding to the second input, and if the number of virtual network cards to be constructed is smaller than or equal to the maximum starting number, constructing virtual network cards corresponding to the target image files in the target intelligent network card;
and if the number of the virtual network cards to be constructed is larger than the maximum starting number, generating corresponding virtual network card construction failure prompt information.
On the basis of the embodiment, the device further comprises an operation state acquisition module and an installation result analysis module, wherein the operation state acquisition module is used for acquiring operation state information of each virtual network card in a preset period; and the installation result analysis module is used for determining the installation condition of the system on chip corresponding to each virtual network card according to the running state information.
On the basis of the above embodiment, the device further includes a cluster deployment module, configured to send mirror files required by other intelligent network cards except the target intelligent network card to a corresponding host machine based on the to-be-installed operating system mirror library container in the target host machine, so as to install the system on chip on the other intelligent network cards except the target intelligent network card.
The system provided by the invention is used for executing the method embodiments, and specific flow and details refer to the embodiments and are not repeated herein.
Fig. 6 is a schematic structural diagram of an electronic device according to the present invention, as shown in fig. 6, the electronic device may include: processor (Processor) 601, communication interface (Communications Interface) 602, memory (Memory) 603 and communication bus 604, wherein Processor 601, communication interface 602, memory 603 accomplish the communication between each other through communication bus 604. The processor 601 may call logic instructions in the memory 603 to perform a method of installing a system on a smart card, the method comprising: acquiring a target image file, wherein the target image file is an image file corresponding to an operating system to be installed to a target intelligent network card; establishing a Docker container according to communication network port configuration information between a target host corresponding to the target intelligent network card and the target intelligent network card, and constructing a system-on-chip mirror image installation container; and installing the target image file to the target intelligent network card through the system-on-chip image installation container.
Further, the logic instructions in the memory 603 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform a method of installing a system on a smart network card provided by the methods described above, the method comprising: acquiring a target image file, wherein the target image file is an image file corresponding to an operating system to be installed to a target intelligent network card; establishing a Docker container according to communication network port configuration information between a target host corresponding to the target intelligent network card and the target intelligent network card, and constructing a system-on-chip mirror image installation container; and installing the target image file to the target intelligent network card through the system-on-chip image installation container.
In still another aspect, the present invention further provides a non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor is implemented to perform the method for installing a system on a smart network card provided in the above embodiments, the method including: acquiring a target image file, wherein the target image file is an image file corresponding to an operating system to be installed to a target intelligent network card; establishing a Docker container according to communication network port configuration information between a target host corresponding to the target intelligent network card and the target intelligent network card, and constructing a system-on-chip mirror image installation container; and installing the target image file to the target intelligent network card through the system-on-chip image installation container.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for installing a system on a smart network card, comprising:
acquiring a target image file, wherein the target image file is an image file corresponding to an operating system to be installed to a target intelligent network card;
establishing a Docker container according to communication network port configuration information between a target host corresponding to the target intelligent network card and the target intelligent network card, and constructing a system-on-chip mirror image installation container;
and installing the target image file to the target intelligent network card through the system-on-chip image installation container.
2. The method of installing a system on a smart card of claim 1, wherein prior to said obtaining a target image file, said method further comprises:
creating a Docker container through mirror image files of a plurality of operating systems, and constructing a mirror image library container of the operating system to be installed in the target host;
the obtaining the image file of the operating system to be installed includes:
receiving a first input, the first input comprising an operation to determine at least 1 target image file from a plurality of the image files;
and responding to the first input, and acquiring the target image file from the image library container of the operating system to be loaded.
3. The method for installing a system on an intelligent network card according to claim 2, wherein the creating a Docker container according to the communication network port configuration information between the target host corresponding to the target intelligent network card and the target intelligent network card, and constructing a system on a chip mirror image installation container, includes:
acquiring the communication network port configuration information, wherein the communication network port configuration information comprises port information and IP address information of a target network port when the target host and the target intelligent network card communicate;
and establishing a Docker container through the port information and the IP address information, and constructing a system-on-chip mirror image installation container.
4. The method for installing a system on a smart network card according to claim 3, wherein said installing the target image file to the target smart network card through the system on chip image installation container comprises:
if the number of the target image files is 1, the target image files are directly installed to the target intelligent network card through the system-on-chip image installation container;
if the target image files are multiple, constructing a virtual network card corresponding to each target image file in the target intelligent network card, and installing each target image file to the corresponding virtual network card based on a virtual network port of each virtual network card.
5. The method for installing the system on an intelligent network card according to claim 4, wherein said constructing a virtual network card corresponding to each of said target image files in said target intelligent network card comprises:
determining the maximum starting number of the virtual network cards in the target intelligent network card according to the bus number, the equipment number, the number of function number BDFs of the bare metal server corresponding to the target intelligent network card and the BAR resource information of the base address register corresponding to each BDF;
receiving a second input, wherein the second input comprises the operation of constructing a virtual network card corresponding to each target image file in the target intelligent network card;
responding to the second input, and if the number of virtual network cards to be constructed is smaller than or equal to the maximum starting number, constructing virtual network cards corresponding to the target image files in the target intelligent network card;
and if the number of the virtual network cards to be constructed is larger than the maximum starting number, generating corresponding virtual network card construction failure prompt information.
6. The method according to claim 4, wherein after the plurality of target image files are provided, a virtual network card corresponding to each target image file is constructed in the target intelligent network card, and each target image file is installed to the corresponding virtual network card based on a virtual network port of each virtual network card, the method further comprises:
acquiring running state information of each virtual network card in a preset period;
and determining the installation condition of the on-chip system corresponding to each virtual network card according to the running state information.
7. The method of installing a system on a smart network card according to any one of claims 2 to 6, wherein after the installing the target image file to the target smart network card by the system on chip image installation container, the method further comprises:
and transmitting mirror files required by other intelligent network cards except the target intelligent network card to the corresponding host machine based on the mirror library container of the to-be-installed operating system in the target host machine so as to install the system on chip on the other intelligent network cards except the target intelligent network card.
8. A device for installing a system on a smart network card, comprising:
the image file acquisition module is used for acquiring a target image file, wherein the target image file is an image file corresponding to an operating system to be installed to the target intelligent network card;
the container construction module is used for constructing a system-on-chip mirror image installation container according to the communication network port configuration information between the target host corresponding to the target intelligent network card and the target intelligent network card;
and the installation module is used for installing the target image file to the target intelligent network card through the system-on-chip image installation container.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of installing a system on a smart network card according to any one of claims 1 to 7 when executing the computer program.
10. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the method of installing a system on a smart network card according to any of claims 1 to 7.
CN202310569139.7A 2023-05-19 2023-05-19 Method and device for installing system on intelligent network card Pending CN116820492A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310569139.7A CN116820492A (en) 2023-05-19 2023-05-19 Method and device for installing system on intelligent network card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310569139.7A CN116820492A (en) 2023-05-19 2023-05-19 Method and device for installing system on intelligent network card

Publications (1)

Publication Number Publication Date
CN116820492A true CN116820492A (en) 2023-09-29

Family

ID=88121238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310569139.7A Pending CN116820492A (en) 2023-05-19 2023-05-19 Method and device for installing system on intelligent network card

Country Status (1)

Country Link
CN (1) CN116820492A (en)

Similar Documents

Publication Publication Date Title
CN111245898B (en) Network equipment online method, device, server and storage medium
CN110765026B (en) Automatic test method, device, storage medium and equipment
CN108989145A (en) A kind of test method and device of network interface card virtualized nature
CN113849272A (en) Method and device for adding GPU (graphics processing Unit) resources in virtual machine
CN110489305B (en) Server management method and device
CN111078305A (en) Information acquisition method and device, server and information management system
US20100043006A1 (en) Systems and methods for a configurable deployment platform with virtualization of processing resource specific persistent settings
CN114385251A (en) Operating system booting method, system, terminal and storage medium based on memory
CN109597673B (en) Method for creating virtual machine and scheduling equipment
CN114024853A (en) Hardware information collection method and system for bare metal node and related components
US20020083226A1 (en) Configuring computer components
CN112214413A (en) Application program testing method, device, equipment and storage medium
CN108259895A (en) set-top box test method, system and terminal device
CN116820492A (en) Method and device for installing system on intelligent network card
CN111459510A (en) Cross-network operating system installation method and device, electronic equipment and medium
CN110413311A (en) ' In System Reconfiguration Method and server
CN107688479B (en) Android system network cluster, construction method thereof, and Android system network cluster data processing method and system
CN113886153B (en) Network card pressure testing method and device based on container
CN112291096B (en) Configuration method and device of bare metal server
CN115033299A (en) Method and terminal for starting production test system
EP4086756A1 (en) Method and apparatus for processing virtual machine component
CN111683145B (en) Configuration method of client device, electronic device and medium
CN115129648A (en) Method and device for converting PCIE (peripheral component interface express) bus into USB (universal serial bus) bus of vehicle-mounted monitoring board
US11954512B2 (en) Control device and control method
CN113608767A (en) Service upgrade processing method, electronic device and storage medium

Legal Events

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