CN117687639A - Method, system, device, storage medium and program product for installing operating system - Google Patents

Method, system, device, storage medium and program product for installing operating system Download PDF

Info

Publication number
CN117687639A
CN117687639A CN202211080764.7A CN202211080764A CN117687639A CN 117687639 A CN117687639 A CN 117687639A CN 202211080764 A CN202211080764 A CN 202211080764A CN 117687639 A CN117687639 A CN 117687639A
Authority
CN
China
Prior art keywords
operating system
network card
node information
installation
intelligent network
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
CN202211080764.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.)
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Cloud Computing Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Cloud Computing Beijing Co Ltd filed Critical Tencent Cloud Computing Beijing Co Ltd
Priority to CN202211080764.7A priority Critical patent/CN117687639A/en
Publication of CN117687639A publication Critical patent/CN117687639A/en
Pending legal-status Critical Current

Links

Abstract

The application discloses an operating system installation method, an operating system installation system, an operating system installation device, a storage medium and a program product, and belongs to the technical field of computers. The method comprises the following steps: the node management unit defines first node information corresponding to the intelligent network card and second node information corresponding to the bare metal physical machine; the method comprises the steps that under the condition that target node information comprises first node information, a state machine calls a first installation unit to install an operating system of the intelligent network card; the state machine calls a second installation unit to install an operating system of the bare metal physical machine under the condition that the target node information comprises second node information; and under the condition that the target node information comprises the first node information and the second node information, the state machine calls the first installation unit and the second installation unit to respectively install the intelligent network card and the operating system of the bare metal physical machine. According to the method, different nodes are configured for the intelligent network card and the bare metal physical machine, and the automatic installation of the operating systems of the intelligent network card and the bare metal physical machine is realized according to the nodes.

Description

Method, system, device, storage medium and program product for installing operating system
Technical Field
Embodiments of the present invention relate to the field of computer technologies, and in particular, to an operating system installation method, system, device, storage medium, and program product.
Background
The intelligent network card is also called an intelligent network adapter, and can complete the network transmission function of the standard network card and also provide a built-in programmable and configurable hardware acceleration engine. The intelligent network card can also install an operating system.
In the related art, after an operating system is installed on an intelligent network card by a worker, the operating system is inserted into a bare metal physical machine, and the existence of the intelligent network card is ignored in the process of installing the operating system on the bare metal physical machine. The intelligent network card is installed in the operating system through the mode, and the installation efficiency is low.
Disclosure of Invention
The embodiment of the application provides an installation method, an installation system, an installation device, a storage medium and a program product of an operating system, which can improve the installation efficiency of an intelligent network card and the universality of the installation method of the intelligent network card. The technical scheme is as follows:
according to an aspect of an embodiment of the present application, there is provided an operating system installation method, where the method is applied to an operating system installation system, and the operating system installation system includes a state machine, a first installation unit, a second installation unit, a node management unit, and a database; the first installation unit is used for installing an operating system of the intelligent network card, the second installation unit is used for installing an operating system of the bare metal physical machine, and the intelligent network card is installed on the bare metal physical machine; the method comprises the following steps:
The node management unit defines and manages node information, wherein the node information comprises first node information corresponding to the intelligent network card and second node information corresponding to the bare metal physical machine, and the first node information and the second node information are different;
the database stores the node information;
the state machine installs the operating system according to target node information corresponding to a target installation mode, wherein the target installation mode is an installation mode of the operating system selected by a user; the state machine calls the first installation unit to install the operating system of the intelligent network card under the condition that the target node information comprises the first node information; in the case that the target node information includes the second node information, the state machine invokes the second installation unit to install an operating system of the bare metal physical machine; and under the condition that the target node information comprises the first node information and the second node information, the state machine calls the first installation unit and the second installation unit to respectively install the intelligent network card and the operating system of the bare metal physical machine.
According to an aspect of an embodiment of the present application, there is provided an operating system installation system including a state machine, a first installation unit, a second installation unit, a node management unit, and a database; the first installation unit is used for installing an operating system of the intelligent network card, the second installation unit is used for installing an operating system of the bare metal physical machine, and the intelligent network card is installed on the bare metal physical machine;
the node management is used for unit definition and management of node information, wherein the node information comprises first node information corresponding to the intelligent network card and second node information corresponding to the bare metal physical machine, and the first node information and the second node information are different;
the database is used for storing the node information;
the state machine is used for installing the operating system according to target node information corresponding to a target installation mode, wherein the target installation mode is an installation mode of the operating system selected by a user; the state machine is used for calling the first installation unit to install the operating system of the intelligent network card under the condition that the target node information comprises the first node information; the state machine is used for calling the second installation unit to install the operating system of the bare metal physical machine under the condition that the target node information comprises the second node information; and under the condition that the target node information comprises the first node information and the second node information, the state machine is used for calling the first installation unit and the second installation unit to respectively install the intelligent network card and the operating system of the bare metal physical machine.
According to an aspect of the embodiments of the present application, there is provided a computer device including a processor and a memory, in which a computer program is stored, the computer program being loaded and executed by the processor to implement the installation method of the operating system described above.
According to an aspect of the embodiments of the present application, there is provided a computer-readable storage medium having stored therein a computer program that is loaded and executed by a processor to implement the above-described installation method of an operating system.
According to an aspect of embodiments of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the computer device performs the above-described installation method of the operating system.
The technical scheme provided by the embodiment of the application can bring the following beneficial effects:
different nodes are configured for the intelligent network card and the bare metal physical machine, and then the installation unit is called to automatically install the operating systems of the intelligent network card and the bare metal physical machine according to the node corresponding to the target installation mode (such as the installation mode selected by a user), so that the installation efficiency of the operating system of the intelligent network card is improved. Meanwhile, the independent installation or combined installation of the operating system of the intelligent network card and the bare metal physical machine is supported, so that the installation flexibility of the operating system is improved.
In addition, the operating system installation system provided by the embodiment of the application can realize automatic installation of the operating systems of the intelligent network card and the bare metal physical machine, and support independent installation or combined installation of the operating systems of the intelligent network card and the bare metal physical machine, so that the operating system installation system is applicable to any deployment scene of the bare metal physical machine with the intelligent network card, the universality of the operating system installation system is improved, and the operating system installation system can be quickly restored to different cloud projects (such as proprietary cloud, public cloud and the like).
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is an architecture diagram of an operating system installation system provided in one embodiment of the present application;
FIG. 2 is a flow chart of a method of installing an operating system provided in one embodiment of the present application;
FIG. 3 is a schematic diagram of an installation flow link of an operating system provided in one embodiment of the present application;
FIG. 4 is a schematic diagram of an independent operating system installation process of an intelligent network card according to one embodiment of the present application;
FIG. 5 is a schematic diagram of an independent operating system installation process of a bare metal physical machine according to one embodiment of the present disclosure;
FIG. 6 is a schematic diagram of the overall installation of the operating system of the intelligent network card and the operating system of the bare metal physical machine according to one embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Before describing embodiments of the present application, related terms referred to in the present application will be first described.
1. HOST: in this embodiment of the present application, the HOST refers to a HOST device that is different from a HOST of an intelligent network card in a bare metal physical machine with an intelligent network card.
2. Bare metal physical machine: the cloud server is also called a bare metal server, is a computing service with the performances of an elastic cloud server and a physical machine, and can provide a dedicated physical server on the cloud.
3. OS: operating System.
4. An intelligent network card: the core is that the CPU (Central Processing Unit ) of the bare metal physical machine is assisted by the FPGA (Field-Programmable Gate Array, field programmable gate array) to process network load. The intelligent network card can also install an operating system.
5. Management end: in the operating system installation system, the intelligent network card and the general control end of the bare metal physical machine cluster.
6. Diskless mirroring: an image directly mounted on RAM (Random-Access Memory), such as a diskless image of an operating system.
7. DHCP: dynamic Host Configuration Protocol it is mainly used for centralized management of IP addresses (Internet Protocol Address, internet protocol addresses), allocation of IP addresses, and dynamic acquisition of IP addresses, gateway addresses, DNS (Domain Name System ) server addresses, etc. by hosts in a network environment.
8. TFTP: trivial File Transfer Protocol, the simple file transfer protocol is a protocol used for simple file transfer between a client and a server in the TCP (Transfer Control Protocol, transmission control protocol)/IP protocol family.
9. DNS: is a distributed network directory service, and is mainly used for the mutual conversion of domain names and IP addresses.
10. PXE: preboot Execution Environment a pre-boot execution environment provides a mechanism for booting a computer using a network interface that allows the computer to boot independently of a local data storage device by using DHCP, TFTP, etc. network protocols and concepts of globally unique identifiers, universal network driver interfaces, universally unique identifiers, etc., and extending preset APIs (Application Programming Interface, application programming interfaces) through bare metal physical machine firmware.
11. Out-of-band management: network management can be divided into two modes, out-of-Band (Out-of-Band) and in-Band management. In-band management: the management control information and the data information are transmitted using a unified physical channel. For example: both data information and management information may be communicated via the network device ethernet port. Out-of-band management: the core idea of out-of-band management is that management control information and data information are transmitted through different physical channels and are completely independent and are not affected by each other.
Referring to FIG. 1, an architecture diagram of an operating system installation system according to one embodiment of the present application is shown. The operating system installation system may include: a state machine 101, a first installation unit 102, a second installation unit 103, a node management unit 104, a database 105, a shared IP management unit 106, and an out-of-band management unit 107. The operating system installation system may be a distributed architecture system, i.e. a distributed deployment of state machine 101, first installation unit 102, second installation unit 103, node management unit 104, database 105, shared IP management unit 106, and out-of-band management unit 107. The state machine 101, the first installation unit 102, the second installation unit 103, the node management unit 104, the database 105, the shared IP management unit 106, and the out-of-band management unit 107 may be deployed at a management end of the operating system installation system.
The state machine 101 is configured to take charge of a circulation between preset flows corresponding to the operating system installation system. For example, the state machine 101 may perform a flow transition according to a preset flow according to a control signal. In one example, the state machine 101 is correspondingly configured with a state machine table, and the state machine 101 may control the circulation of a plurality of flows according to the state machine table; the state machine table comprises an identifier of the device (such as an identifier of the intelligent network card and an identifier of the bare metal physical machine), a current flow (i.e. a preset flow executed currently), a return result of the current flow, a next flow and a preset flow corresponding to the state machine. The state machine 101 may implement a flow-through function from a state-through control flow.
In this embodiment of the present application, the preset flow corresponding to the state machine 101 may include: a node initialization procedure, a node identification procedure (i.e., a third procedure hereinafter), a first procedure, and a second procedure. The state machine 101 may sequentially circulate the node initialization procedure, the node identification procedure, the first procedure, and the second procedure. Optionally, the state machine 101 may also selectively circulate part of the flow. For example, the state machine 101 may only perform the flow of the node initialization procedure, the node identification procedure, and the first procedure, or may only perform the flow of the node initialization procedure, the node identification procedure, and the second procedure, which is not limited in the embodiment of the present application.
The node initialization flow is used for initializing node information of the device. For example, the state machine 101 performs a node initialization procedure to call the node management unit 104 to define both the intelligent network card and the bare metal physical machine as nodes for management.
The node identification process is used for identifying the node information so as to determine the node corresponding to the node information. For example, the state machine 101 executes a node identification procedure to invoke a node identification unit (not shown in fig. 1) to identify target node information of a target installation mode, so as to obtain a node corresponding to the target installation mode. The target installation mode may be an installation mode of an operating system selected by a user. In this embodiment of the present application, the installation manner of the operating system may include automatic installation of the operating system of the intelligent network card, automatic installation of the operating system of the bare metal physical machine, and integral installation of the operating systems of the intelligent network card and the bare metal physical machine.
The first procedure is used to call the first installation unit 102 to install the operating system of the intelligent network card. In the embodiment of the present application, the first flow may include the following sub-flows: the method comprises the following steps of a network card PXE entering sub-process, an FPGA checking and upgrading sub-process, an intelligent network card electronic process, a first operating system installation sub-process, a first operating system distribution network clip process, a first operating system restarting sub-process and a first network card configuration sub-process.
The network card enters the PXE sub-process and is used for entering the PXE process to download and load diskless images of the kernel and the operating system. The FPGA checking and upgrading sub-process, the intelligent network card electronic process and the intelligent network card electronic process are used for upgrading the FPGA. The first operating system installation sub-flow is used for executing the installation of the operating system. The first operation system network allocation clip flow is used for binding network cards of intelligent network classes. The first operating system restarting sub-process is used for restarting the intelligent network card. The first network card configuration sub-process is used for limiting the ports and services of the intelligent network card so as to release the IP to the bare metal physical machine, and can prevent the network card and the services of the intelligent network card from causing interference to the HOST HOST.
Second flow Cheng Yongyu calls second installation unit 103 to install the operating system of the bare metal physical machine (e.g., HOST of the bare metal physical machine), and the second flow may include the following sub-flows: the bare metal physical machine is initialized into a PXE sub-process, a second operating system installation sub-process, a second operating system distribution network clip process, a second operating system restarting sub-process and a second network card configuration sub-process.
The bare metal physical machine is initialized into the PXE sub-flow and used for entering the PXE process to download and load the diskless mirror image of the kernel and the operating system. The second operating system installation sub-flow is used to perform the installation of the operating system. The second operation system network allocation clip flow is used for allocating IP for the network card of the bare metal physical machine. The second network card configuration sub-process is used for releasing the IP to be shared to the intelligent network card.
Illustratively, the data structure of the state table may be as follows:
{ apparatus: < device name >, current flow: < current flow >, return result of current flow: < return result >, next flow: < next flow >, all flow: < all flow links from start to end > }.
The first installation unit 102 is used for installing an operating system of the intelligent network card. Illustratively, under the guidance of the first flow, the first installation unit 102 performs installation of the operating system of the intelligent network card. The second installation unit 103 is used for installing an operating system of the bare metal physical machine. Illustratively, the second installation unit 103 performs installation of the operating system of the bare metal physical machine under the guidance of the second flow. The intelligent network card is installed on the bare metal physical machine. For example, a server side of an operating system installation system may be deployed with a plurality of bare metal physical machines. Taking the bare metal physical machine 108 as an example, the intelligent network card 109 can be installed on the bare metal physical machine 108, and the HOST 110 is disposed in the bare metal physical machine 108. Optionally, during the deployment phase of bare metal physical machine 108, neither intelligent network card 109 nor HOST 110 has an operating system installed therein.
The node management unit 104 is configured to define nodes for the intelligent network card and the bare metal physical machine, generate node information corresponding to the nodes, and manage the node information. For the bare metal physical machine 108, the node management unit 104 configures a first node for the intelligent network card 109, configures a second node for the HOST 110 (i.e., the bare metal physical machine 108), and the attribute of the first node is different from the attribute of the second node, so that independent out-of-band management can be performed. The first node information corresponding to the first node is different from the second node information corresponding to the second node. In the embodiment of the application, each device corresponds to a node, and the node can be used as a unique identifier of each device.
In one example, the node information may include: unique identification codes corresponding to the intelligent network card or the bare metal physical machine, associated equipment, a mechanical serial number, a manufacturer model, an out-of-band IP, an out-of-band user, an out-of-band password and an identification of an operating system, and a current step corresponding to a node, a state of the current step and a time of the current step.
The associated device corresponding to the intelligent network card can be a bare metal physical machine installed on the intelligent network card, and the associated device corresponding to the bare metal physical machine can be an intelligent network card installed on the bare metal physical machine. The machine serial number and manufacturer model are factory identifications of the corresponding devices. The out-of-band IP, out-of-band user, and out-of-band password may be used for powering on, powering off, and restarting the corresponding device.
Illustratively, the format of the node information may be as follows (node is node):
{ node: < name of intelligent network card or HOST >,
attribute: { nodetype: < Intelligent class or HOST HOST >, peerdevice: < associated device >,
arch: < architecture >, serial: < machine serial number >,
bmcip: < out-of-band IP >, bmcuser: < out-of-band user >, bmcgpasswd: < out-of-band password >,
currentqueue: < current step >, currentstate: < state of current step >, currtime= < time >,
model: < vendor model >, os: < OS > that needs to be installed }.
The database 105 is used to store data corresponding to the operating system installation system. Illustratively, the database 105 may be used to store and read node information.
The shared IP management unit 106 is configured to perform IP configuration for the intelligent network card and the bare metal physical machine. In one example, the shared IP management unit 106 includes a network card configuration toolkit and a shared IP allocation policy; the network card configuration tool package comprises an FPGA upgrading tool, a binding script of the intelligent network card and a network card configuration tool of the bare metal physical machine. The FPGA upgrading tool is used for upgrading the FPGA. The binding script of the intelligent network card is used for binding the network card of the intelligent network card. The network card configuration tool of the bare metal physical machine is used for configuring the network card of the bare metal physical machine.
The shared IP allocation strategy is used for indicating the intelligent network card and the bare metal physical machine to share one IP, and the intelligent network card and the bare metal physical machine are represented by different fields in node information.
Illustratively, the node information of the intelligent network card may be:
{ node: < name of intelligent network card >, attribute: { nodetype: an intelligent network card, IP < IP > }.
The node information of the bare metal physical machine (i.e., HOST) may be:
{ node: < HOST name >, attribute: { nodetype: HOST, nicip: < IP > }.
The out-of-band management unit 107 is used for performing power management on the intelligent network card and the bare metal physical machine. Illustratively, the out-of-band management unit 107 may perform power management on the intelligent network card and the bare metal physical machine according to an out-of-band management protocol (e.g., IPMI (Intelligent Platform Management Interface, intelligent platform management interface) protocol), such as power on, power off, checking a power state, setting a slave network start-up, and the like. In the embodiment of the application, the intelligent network card and the bare metal physical machine are independently powered and have corresponding command sets. The state machine 101 decides to execute the out-of-band command of the intelligent network card or the out-of-band command of the bare metal physical machine according to the node.
Optionally, the operating system installation system may further include a TFTP server, a DHCP server, and a hypertext transfer protocol HTTP server, where a diskless image of the operating system is stored in the TFTP server, where an IP address of the TFTP server and a location of the diskless image are recorded in the DHCP server, and where the operating system is stored in the HTTP server; the diskless mirror image is used for installing an operating system of the intelligent network card or the bare metal physical machine, and can run in the memory. The operating system installation system may also include a DNS server. The operating system installation system can initiate instructions of batch operation to all bare metal physical machines in the bare metal physical machine cluster through a TFTP server, a DHCP server, an HTTP server and a DNS server.
In summary, according to the technical scheme provided by the embodiment of the application, different nodes are configured for the intelligent network card and the bare metal physical machine, and then the installation unit is called to automatically install the operating systems of the intelligent network card and the bare metal physical machine according to the node corresponding to the target installation mode (such as the installation mode selected by the user), so that the installation efficiency of the operating system of the intelligent network card is improved. Meanwhile, the independent installation or combined installation of the operating system of the intelligent network card and the bare metal physical machine is supported, so that the installation flexibility of the operating system is improved.
In addition, the operating system installation system provided by the embodiment of the application can realize automatic installation of the operating systems of the intelligent network card and the bare metal physical machine, and support independent installation or combined installation of the operating systems of the intelligent network card and the bare metal physical machine, so that the operating system installation system is applicable to any deployment scene of the bare metal physical machine with the intelligent network card, the universality of the operating system installation system is improved, and the operating system installation system can be quickly restored to different cloud projects (such as proprietary cloud, public cloud and the like).
The following are method embodiments of the present application, and for details not specifically described in the method embodiments of the present application, reference may be made to system embodiments of the present application.
Referring to fig. 2, a flowchart of an installation method of an operating system according to an embodiment of the present application is shown. The method can be applied to the operating system installation system described in the above embodiment. The method may comprise the following steps (201-203):
step 201, a node management unit defines and manages node information, wherein the node information comprises first node information corresponding to an intelligent network card and second node information corresponding to a bare metal physical machine, and the first node information and the second node information are different.
Optionally, the state machine may execute a node initialization procedure to invoke the node management unit to define the intelligent network card as a first node, define the bare metal physical machine as a second node, and set corresponding node information for the first node and the second node respectively, so as to obtain the first node information and the second node information. The state machine, the node management unit and the node information are the same as those described in the above embodiments, and the content not described in the embodiments of the present application may refer to the above embodiments and will not be described herein again.
Alternatively, the node information may be generated after the user selects the installation mode of the operating system, or may be generated before the user selects the installation mode of the operating system, which is not limited in the embodiment of the present application.
Based on the fact that the intelligent network card and the bare metal physical machine are defined as different nodes, the embodiment of the application provides installation modes of three operating systems. Referring to fig. 3, a first mounting mode 301 is: sequentially executing the corresponding steps of the first procedure: the network card enters the PXE sub-process, the FPGA checking and upgrading sub-process, the intelligent network card electronic process, the first operating system installation sub-process, the first operating system distribution network clip process, the first operating system restarting sub-process and the first network card configuration sub-process to complete independent installation of the operating systems of the intelligent network card.
The second mounting mode 302 is: and sequentially executing the corresponding steps of the second procedure: the bare metal physical machine is initialized into 5 sub-processes of PXE sub-processes, a second operating system installation sub-process, a second operating system distribution network clip process, a second operating system restarting sub-process and a second network card configuration sub-process, and the independent installation of the operating systems of the bare metal physical machine is completed. It should be noted that, before the second installation mode is executed, the intelligent network card needs to be stopped from entering the PXE network card to release the IP to the bare metal physical machine. After the second installation mode is executed, the intelligent network card is re-opened to enter the network card of the PXE.
The third mounting mode 303 is: the first procedure is executed first to finish independent installation of the operating system of the intelligent network card, and then the second procedure is executed to finish independent installation of the operating system of the bare metal physical machine, so that integral installation of the operating systems of the intelligent network card and the bare metal physical machine is realized.
Step 202, a database stores node information.
The node management unit may send the first node information and the second node information to a database for storage for use in a subsequent installation process of the operating system.
Step 203, the state machine installs the operating system according to the target node information corresponding to the target installation mode, wherein the target installation mode is the installation mode of the operating system selected by the user; the method comprises the steps that under the condition that target node information comprises first node information, a state machine calls a first installation unit to install an operating system of the intelligent network card; the state machine calls a second installation unit to install an operating system of the bare metal physical machine under the condition that the target node information comprises second node information; and under the condition that the target node information comprises the first node information and the second node information, the state machine calls the first installation unit and the second installation unit to respectively install the intelligent network card and the operating system of the bare metal physical machine.
The target installation may refer to an installation of an operating system selected by a user, developer, designer, or the like, and may be any one of the three installation. The target node information is node information corresponding to a node to be executed by the target installation mode.
In one example, the operating system installation system further includes a node identification unit, the preset flow corresponding to the state machine further includes a third flow (i.e. the node identification flow), and the identification process of the node information may be as follows: executing a third flow by the state machine to call the node identification unit to identify the node of the target node information so as to obtain the node corresponding to the target node information; and the state machine installs the operating system according to the node corresponding to the target node information. For example, the state machine may perform installation of the operating system according to the device (i.e., the intelligent network card or the bare metal physical machine) corresponding to the node.
If the target node information includes the first node information, it indicates that the user selects the first installation mode 301. The state machine executes a first procedure 401 to call the first installation unit to install the operating system of the intelligent network card, and referring to fig. 4, the operating system installation process may be as follows:
1. Executing the network card PXE sub-flow: and operating the first node by using a first out-of-band command corresponding to the intelligent network card, enabling the intelligent network card to enter a PXE process, downloading and loading the kernel and the diskless mirror image, and storing the kernel and the diskless mirror image into a memory system. Optionally, it may be further verified whether the operating system is installed on the intelligent network card.
2. Performing an FPGA check and upgrade sub-flow: under the condition that the intelligent network card supports the FPGA, checking the version of the FPGA, if the FPGA needs to be upgraded, downloading an FPGA upgrading tool, and executing the upgrading of the FPGA; otherwise, the FPGA is not upgraded.
3. Executing the electronic flow under the intelligent network card and the electronic flow on the intelligent network card: after the FPGA is upgraded, the intelligent network card is powered down and powered up, so that the hardware upgrade is effective.
4. Executing a first operating system installation sub-process: and initiating the PXE installation to the intelligent network card again, downloading the diskless mirror image of the operating system, and writing the mirror image into the hard disk.
5. Executing a first operating system distribution network clip flow: and acquiring a binding script (namely a Bond script) of the intelligent network card and an IP attribute corresponding to the first node, and configuring Bonding for the network card of the intelligent network card.
6. Executing a first operating system restart sub-process: and activating an operating system of the intelligent network card to finish installation.
7. Executing a first network card configuration sub-flow: ebtables (a configuration tool for network packet filtering) rules are written to limit the ports and services of the operating system of the intelligent network card, and Eth0 (fiber Ethernet interface card) is stopped. Because the intelligent network card and the bare metal physical machine share IP, the configuration can prevent the network card and the service of the intelligent network card from interfering the bare metal physical machine when the bare metal physical machine initiates the PXE installation.
If the target node information includes second node information, it indicates that the user has selected the second installation mode 302. The state machine executes a first procedure 402 to call a second installation unit to install an operating system of the bare metal physical machine, referring to fig. 5, the operating system installation process may be as follows:
1. performing initialization of the bare metal physical machine into a PXE sub-flow: and operating the second node by using a second out-of-band command corresponding to the bare metal physical machine, enabling the bare metal physical machine to enter a PXE process, downloading and loading the kernel and the diskless mirror image, and storing the kernel and the diskless mirror image into a memory system. Optionally, it may be further verified whether the operating system installation is performed on the bare metal physical machine.
2. Executing a second operating system installation sub-process: downloading a diskless mirror image of the operating system, writing the mirror image into a hard disk, and then installing the operating system on an HOST HOST of the bare metal physical machine.
3. Executing a second operating system distribution network clip flow: and acquiring a network card configuration tool of the HOST HOST and the IP attribute of the second node, and configuring the IP for the network card of the HOST HOST.
4. Executing a second operating system restart sub-process: and activating an operating system of the bare metal physical machine to finish installation.
5. Executing a second network card configuration sub-flow: after the HOST health check is completed, because the intelligent network card and the HOST share the IP, eth0 needs to be opened for the intelligent network card.
Optionally, before executing the second procedure, the state machine executes a first network card release sub-procedure to stop the intelligent network card from entering the PXE network card; after executing the second flow, the state machine executes a second network card release sub-flow to re-open the intelligent network card into the network card of the PXE.
If the target node information includes the first node information and the second node information, it indicates that the user selects the third installation mode 303. After executing the first procedure 401, the state machine executes the second procedure 402 to call the first installation unit to install the operating system of the intelligent network card, and then call the second installation unit to install the operating system of the bare metal physical machine, referring to fig. 6, the operating system installation process may be as follows:
1. The first process 401 is performed to complete the operating system installation of the intelligent network card and stop Eth0 to release the IP.
2. The second process 402 is performed to complete the operating system installation of the bare metal physical machine and open Eth0 for the intelligent network card to share IP.
The state machine can call the out-of-band management unit to start, shut down and restart the intelligent network card and the bare metal physical machine respectively and independently according to the out-of-band IP, the out-of-band user and the out-of-band password in the node information.
In summary, according to the technical scheme provided by the embodiment of the application, different nodes are configured for the intelligent network card and the bare metal physical machine, and then the installation unit is called to automatically install the operating systems of the intelligent network card and the bare metal physical machine according to the node corresponding to the target installation mode (such as the installation mode selected by the user), so that the installation efficiency of the operating system of the intelligent network card is improved. Meanwhile, the independent installation or combined installation of the operating system of the intelligent network card and the bare metal physical machine is supported, so that the installation flexibility of the operating system is improved.
In addition, the operating system installation system provided by the embodiment of the application can realize automatic installation of the operating systems of the intelligent network card and the bare metal physical machine, and support independent installation or combined installation of the operating systems of the intelligent network card and the bare metal physical machine, so that the operating system installation system is applicable to any deployment scene of the bare metal physical machine with the intelligent network card, the universality of the operating system installation system is improved, and the operating system installation system can be quickly restored to different cloud projects (such as proprietary cloud, public cloud and the like).
Referring to fig. 7, a schematic structural diagram of a computer device according to an embodiment of the present application is shown. The computer device may be any electronic device having data computing, processing and storage functions, and may be used to implement the installation method of the operating system provided in the above-described embodiments. Specifically, the following may be included.
The computer device 700 includes a central processing unit (such as a CPU (Central Processing Unit, central processing unit), a GPU (Graphics Processing Unit, graphics processor), an FPGA (Field Programmable Gate Array ), etc.) 701, a system Memory 704 including a RAM (Random-Access Memory) 702 and a ROM (Read-Only Memory) 703, and a system bus 705 connecting the system Memory 704 and the central processing unit 701. The computer device 700 also includes a basic input/output system (Input Output System, I/O system) 706, which facilitates the transfer of information between various devices within the server, and a mass storage device 707 for storing an operating system 713, application programs 714, and other program modules 715.
In some embodiments, the basic input/output system 706 includes a display 708 for displaying information and an input device 709, such as a mouse, keyboard, or the like, for a user to input information. Wherein the display 708 and the input device 709 are coupled to the central processing unit 701 through an input output controller 710 coupled to a system bus 705. The basic input/output system 706 may also include an input/output controller 710 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input output controller 710 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 707 is connected to the central processing unit 701 through a mass storage controller (not shown) connected to the system bus 705. The mass storage device 707 and its associated computer-readable media provide non-volatile storage for the computer device 700. That is, the mass storage device 707 may include a computer readable medium (not shown) such as a hard disk or CD-ROM (Compact Disc Read-Only Memory) drive.
Without loss of generality, the computer readable medium may include computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM (Erasable ProgrammableRead-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash Memory or other solid state Memory technology, CD-ROM, DVD (Digital Video Disc, high density digital video disc) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will recognize that the computer storage medium is not limited to the ones described above. The system memory 704 and mass storage device 707 described above may be collectively referred to as memory.
The computer device 700 may also operate in accordance with embodiments of the present application through a network, such as the internet, to remote computers connected to the network. I.e., the computer device 700 may be connected to the network 712 through a network interface unit 711 coupled to the system bus 705, or other types of networks or remote computer systems (not shown) may be coupled using the network interface unit 711.
The memory also includes a computer program stored in the memory and configured to be executed by the one or more processors to implement the method of operating system installation described above.
In one exemplary embodiment, there is also provided a computer-readable storage medium having stored therein a computer program which, when executed by a processor, implements the above-described method of installing an operating system.
Alternatively, the computer-readable storage medium may include: ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State Drives, solid State disk), optical disk, or the like. The random access memory may include ReRAM (Resistance Random Access Memory, resistive random access memory) and DRAM (Dynamic Random Access Memory ), among others.
In one exemplary embodiment, a computer program product or computer program is also provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions so that the computer device executes the installation method of the operating system.
It should be noted that, information (including, but not limited to, object device information, object personal information, etc.), data (including, but not limited to, data for analysis, stored data, presented data, etc.), and signals related to the present application are all subject authorized or fully authorized by each party, and the collection, use, and processing of related data is required to comply with related laws and regulations and standards of related countries and regions. For example, the operating system, the intelligent network card, the bare metal physical machine, etc. referred to in this application are all acquired with sufficient authorization.
It should be understood that references herein to "a plurality" are to two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. In addition, the step numbers described herein are merely exemplary of one possible execution sequence among steps, and in some other embodiments, the steps may be executed out of the order of numbers, such as two differently numbered steps being executed simultaneously, or two differently numbered steps being executed in an order opposite to that shown, which is not limited by the embodiments of the present application.
The foregoing description of the exemplary embodiments of the present application is not intended to limit the invention to the particular embodiments disclosed, but on the contrary, the intention is to cover all modifications, equivalents, alternatives, and alternatives falling within the spirit and scope of the invention.

Claims (14)

1. The method is applied to an operating system installation system, and the operating system installation system comprises a state machine, a first installation unit, a second installation unit, a node management unit and a database; the first installation unit is used for installing an operating system of the intelligent network card, the second installation unit is used for installing an operating system of the bare metal physical machine, and the intelligent network card is installed on the bare metal physical machine; the method comprises the following steps:
the node management unit defines and manages node information, wherein the node information comprises first node information corresponding to the intelligent network card and second node information corresponding to the bare metal physical machine, and the first node information and the second node information are different;
the database stores the node information;
the state machine installs the operating system according to target node information corresponding to a target installation mode, wherein the target installation mode is an installation mode of the operating system selected by a user; the state machine calls the first installation unit to install the operating system of the intelligent network card under the condition that the target node information comprises the first node information; in the case that the target node information includes the second node information, the state machine invokes the second installation unit to install an operating system of the bare metal physical machine; and under the condition that the target node information comprises the first node information and the second node information, the state machine calls the first installation unit and the second installation unit to respectively install the intelligent network card and the operating system of the bare metal physical machine.
2. The method of claim 1, wherein the preset flow corresponding to the state machine comprises a first flow and a second flow; the method further comprises the steps of:
executing the first flow by the state machine to call the first installation unit to install the operating system of the intelligent network card;
or,
executing the second flow by the state machine to call the second installation unit to install the operating system of the bare metal physical machine;
or,
and the state machine executes the second flow after executing the first flow so as to call the first installation unit to install the operating system of the intelligent network card, and then call the second installation unit to install the operating system of the bare metal physical machine.
3. The method of claim 2, wherein the first procedure comprises: the network card enters a pre-boot execution environment PXE sub-process, a Field Programmable Gate Array (FPGA) checking and upgrading sub-process, an intelligent network card down-electronic process, an intelligent network card up-electronic process, a first operating system installation sub-process, a first operating system network allocation clip process, a first operating system restarting sub-process and a first network card configuration sub-process;
The second process includes: the bare metal physical machine is initialized into a PXE sub-process, a second operating system installation sub-process, a second operating system distribution network clip process, a second operating system restarting sub-process and a second network card configuration sub-process.
4. The method of claim 3, wherein the state machine executing the second flow to invoke the second installation unit to install the operating system of the bare metal physical machine further comprises:
executing the first network card releasing sub-process by the state machine to stop the network card of the intelligent network card entering the PXE;
after the state machine executes the second flow to call the second installation unit to install the operating system of the bare metal physical machine, the method further includes:
and the state machine executes the second network card releasing sub-flow to re-open the intelligent network card into the network card of the PXE.
5. The method according to claim 1, wherein the operating system installation system further includes a node identification unit, and the preset flow corresponding to the state machine further includes a third flow; the state machine installs the operating system according to the target node information corresponding to the target installation mode, and the state machine comprises the following steps:
The state machine executes the third flow to call the node identification unit to identify the node of the target node information, so as to obtain the node corresponding to the target node information;
and the state machine installs the operating system according to the node corresponding to the target node information.
6. The method of claim 1, wherein the operating system installation system further comprises a simple file transfer protocol, TFTP, server, a dynamic host configuration protocol, DHCP, server, and a hypertext transfer protocol, HTTP, server, the TFTP server having stored therein a diskless image of the operating system, the DHCP server having recorded therein an internet protocol, IP, address of the TFTP server and a location of the diskless image, the HTTP server having stored therein the operating system;
the diskless mirror image is used for installing an operating system of the intelligent network card or the bare metal physical machine.
7. The method of claim 1, wherein the operating system installation system further comprises a shared IP management unit comprising a network card configuration toolkit and a shared IP allocation policy; the network card configuration tool package comprises an FPGA upgrading tool, a binding script of the intelligent network card and a network card configuration tool of the bare metal physical machine, wherein the shared IP allocation strategy is used for indicating the intelligent network card and the bare metal physical machine to share one IP, and the intelligent network card and the bare metal physical machine are represented by different fields in node information.
8. The method according to any one of claims 1 to 7, wherein the node information comprises: the intelligent network card or the unique identification code corresponding to the bare metal physical machine, the associated equipment, the mechanical serial number, the manufacturer model, the out-of-band IP, the out-of-band user, the out-of-band password and the identification of the operating system, and the current step corresponding to the node, the state of the current step and the time.
9. The method according to any one of claims 1 to 7, further comprising:
and the state machine calls the out-of-band management unit to independently start, shut down and restart the intelligent network card and the bare metal physical machine according to the out-of-band IP, the out-of-band user and the out-of-band password in the node information.
10. The method according to any one of claims 1 to 7, wherein the state machines are correspondingly configured with a state machine table, and the state machine table controls the circulation of a plurality of flows according to the state machine table;
the state machine table comprises an identifier of the device, a current flow, a return result of the current flow, a next flow and a preset flow corresponding to the state machine.
11. An operating system installation system, which is characterized by comprising a state machine, a first installation unit, a second installation unit, a node management unit and a database; the first installation unit is used for installing an operating system of the intelligent network card, the second installation unit is used for installing an operating system of the bare metal physical machine, and the intelligent network card is installed on the bare metal physical machine;
The node management is used for unit definition and management of node information, wherein the node information comprises first node information corresponding to the intelligent network card and second node information corresponding to the bare metal physical machine, and the first node information and the second node information are different;
the database is used for storing the node information;
the state machine is used for installing the operating system according to target node information corresponding to a target installation mode, wherein the target installation mode is an installation mode of the operating system selected by a user; the state machine is used for calling the first installation unit to install the operating system of the intelligent network card under the condition that the target node information comprises the first node information; the state machine is used for calling the second installation unit to install the operating system of the bare metal physical machine under the condition that the target node information comprises the second node information; and under the condition that the target node information comprises the first node information and the second node information, the state machine is used for calling the first installation unit and the second installation unit to respectively install the intelligent network card and the operating system of the bare metal physical machine.
12. A computer device comprising a processor and a memory, the memory having stored therein a computer program that is loaded and executed by the processor to implement the method of installing an operating system according to any one of claims 1 to 10.
13. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program that is loaded and executed by a processor to implement the method of installing an operating system according to any one of claims 1 to 10.
14. A computer program product, characterized in that it comprises computer instructions stored in a computer-readable storage medium, from which a processor reads and executes them to implement the method of installing an operating system according to any of claims 1 to 10.
CN202211080764.7A 2022-09-05 2022-09-05 Method, system, device, storage medium and program product for installing operating system Pending CN117687639A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211080764.7A CN117687639A (en) 2022-09-05 2022-09-05 Method, system, device, storage medium and program product for installing operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211080764.7A CN117687639A (en) 2022-09-05 2022-09-05 Method, system, device, storage medium and program product for installing operating system

Publications (1)

Publication Number Publication Date
CN117687639A true CN117687639A (en) 2024-03-12

Family

ID=90135890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211080764.7A Pending CN117687639A (en) 2022-09-05 2022-09-05 Method, system, device, storage medium and program product for installing operating system

Country Status (1)

Country Link
CN (1) CN117687639A (en)

Similar Documents

Publication Publication Date Title
RU2549126C2 (en) Method and system for installing and updating software of application terminal in home network
US8997090B2 (en) Installing an operating system in a host system
WO2016112825A1 (en) Remote control method, terminal device, management server, and remote control system
US7600005B2 (en) Method and apparatus for provisioning heterogeneous operating systems onto heterogeneous hardware systems
CN103677807B (en) Customizing program logic for booting a system
KR101130370B1 (en) Method and system for providing a common operating system
JP6799668B2 (en) RAID setting
US8332490B2 (en) Method, apparatus and program product for provisioning a computer system
CN107391193A (en) A kind of client, the system and method for configuration server
CN113419815B (en) Method, system, equipment and medium for pre-starting operation environment installation
CN104113430A (en) Cloud computing data center automatic deployment software framework design
CN112272246A (en) Out-of-band network IP automatic configuration method and device, electronic equipment and storage medium
US7293168B2 (en) System and method for initially configuring and booting a device using a device identifier
CN108259305A (en) A kind of physical machine remote dummy lan handover method and device based on openstack
CN110971689B (en) System installation method, device, system, equipment and storage medium
US20230229481A1 (en) Provisioning dpu management operating systems
EP2372565A1 (en) Method for managing USB devices
CN111078305A (en) Information acquisition method and device, server and information management system
CN108234174B (en) Management method and device of virtual network function
CN114024853A (en) Hardware information collection method and system for bare metal node and related components
CN107659621B (en) RAID control card configuration method and device
CN117687639A (en) Method, system, device, storage medium and program product for installing operating system
WO2004086223A1 (en) A method for configurating a singleboard automatically
US11425203B2 (en) Commissioning a virtualized network function
CN112799641A (en) Method and device for expanding software development kit, electronic equipment and storage medium

Legal Events

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