CN113419815B - Method, system, equipment and medium for pre-starting operation environment installation - Google Patents

Method, system, equipment and medium for pre-starting operation environment installation Download PDF

Info

Publication number
CN113419815B
CN113419815B CN202110593140.4A CN202110593140A CN113419815B CN 113419815 B CN113419815 B CN 113419815B CN 202110593140 A CN202110593140 A CN 202110593140A CN 113419815 B CN113419815 B CN 113419815B
Authority
CN
China
Prior art keywords
network
deployment
bridge
bare metal
port
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.)
Active
Application number
CN202110593140.4A
Other languages
Chinese (zh)
Other versions
CN113419815A (en
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.)
Jinan Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data 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 Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN202110593140.4A priority Critical patent/CN113419815B/en
Publication of CN113419815A publication Critical patent/CN113419815A/en
Application granted granted Critical
Publication of CN113419815B publication Critical patent/CN113419815B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45583Memory management, e.g. access or allocation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Abstract

The invention discloses a method, a system, equipment and a storage medium for pre-starting an operation environment installation, wherein the method comprises the following steps: deploying Openstack at the deployment node, and installing a network card at the bare metal node; respectively creating a first network port and a second network port of a deployment network at a deployment node, adding the second bare metal port into a first bridge of the bare metal node, binding a unique identification code of the first network port to the second bare metal port, and issuing the first network port and a flow table of the deployment network to the first bridge at the bare metal node; creating a second network bridge at the deployment node, setting the mac address of the second network bridge as the mac address of the second network port, binding the unique identification code of the second network port to the second network bridge, and issuing the second network port and a stream table of the deployment network to the second network bridge at the deployment node; and receiving a request sent by the bare metal node according to the pre-starting operation environment installation at the deployment node based on the first bridge and the second bridge, and installing according to the request.

Description

Method, system, equipment and medium for pre-starting operation environment installation
Technical Field
The present invention relates to the field of cloud computing, and more particularly, to a method, a system, a computer device, and a readable medium for pre-booting an operating environment installation.
Background
With the rapid development of the field of cloud computing, bare metal services are computing services with both elasticity of virtual machines and performance of physical machines, and can provide exclusive physical servers on the cloud for individuals or enterprises. The method can provide excellent computing performance for services such as a key application system, high-performance computing, big data, a core database and the like, and ensure data security. When the bare metal cloud physical machine is created, the required bare metal cloud physical machine can be created just by specifying required hardware requirements (such as cpu memory and the like), mirror images and required networks as well as the virtual machine. And the user can apply flexibly and apply for use according to the requirement.
The method comprises the steps of adding a deployment network to bare metal, starting to obtain a memory file system by deploying network bare metal pxe (Pre-boot Execution Environment), obtaining an ironic (bare metal service) after the memory file system is powered on, mounting a boot disk of the bare metal to a node where the ironic is located, and deploying a user image to the bare metal boot disk.
For a general scene of a general ordinary network card, when a network is deployed and tftp (simple File Transfer Protocol) server and dhcp-server (Dynamic host configuration Protocol server) are set, a pxe is set for the network card to start, and then a memory File system can be obtained. The dhcp-server is used for providing an ip (Internet Protocol) address, a tftp server address and a start-up file for a pxe process, the network card pxe can acquire the deployed network ip address, the tftp server address and the start-up file through the dhcp after being started, and then the tftp server can acquire the start-up file, so that the whole process is completed. However, since OVN (Open Virtual Network ) does not support bare metal deployment, there is no method for turning on a deployment node TFTP-SERVER to a deployment Network and turning on an intelligent Network card PF0hpf (a port corresponding to PF0 generated by the Network card on a bare metal system) to the deployment Network in a complex scenario of dual networking of OVN and an intelligent Network card BF2(blue field 2).
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method, a system, a computer device, and a computer-readable storage medium for pre-booting an operating environment installation, where under the condition that OVN does not support bare metal deployment at present, the present invention opens a path from a control node TFTP-SERVER to a deployment network and a path from an intelligent network card pf0hpf to the deployment network, and prompts OVN to issue a flow table of the deployment network, prompts PXE to deploy a network channel to open, and completes adaptation OVN of an intelligent network card BF2, and realizes all flows of PXE file system acquisition of bare metal through an OVERLAY network (the OVERLAY network is a virtual network established on an existing physical network), thereby providing a solid technical foundation for an OVERLAY scheme of realizing the OVERLAY based on the intelligent network card by the bare metal.
Based on the above object, an aspect of the embodiments of the present invention provides a method for pre-starting an operating environment installation, including the following steps: deploying Openstack at a deployment node, installing a network card at a bare metal node, enabling the network card to generate a first bare metal port at the bare metal node, and generating a second bare metal port corresponding to the first bare metal port in an operating system of the network card; respectively creating a first network port and a second network port of a deployment network at a deployment node, adding the second bare metal port into a first bridge of the bare metal node, binding a unique identification code of the first network port to the second bare metal port, and issuing flow tables of the first network port and the deployment network to the first bridge at the bare metal node; creating a second network bridge at a deployment node, setting the mac address of the second network bridge as the mac address of the second network port, binding the unique identification code of the second network port to the second network bridge, and issuing the second network port and the flow table of the deployment network to the second network bridge at the deployment node; and receiving a request sent by the bare metal node according to a pre-starting operation environment installation at the deployment node based on the first bridge and the second bridge, and installing according to the request.
In some embodiments, said deploying Openstack at the deployment node comprises: setting IP addresses of the deployment network and the simple file transfer protocol service, and deploying the simple file transfer protocol service on the deployment node.
In some embodiments, the creating, at the deployment node, the first network port and the second network port of the deployment network, respectively, comprises: setting an IP address of the second network port to an IP address of the trivial file transfer protocol service.
In some embodiments, said binding the unique identification code of the second network port to the second bridge comprises: and binding the unique identification code of the second network port to a bridge port corresponding to the second bridge, and modifying the configuration of the SNTP service to monitor the bridge port.
In some embodiments, the method further comprises: and respectively setting virtual channel endpoint IP addresses on the deployment node and the bare metal node, and setting a virtual network tunnel based on the virtual channel endpoint IP addresses.
In some embodiments, said receiving, at said deployment node, a request issued by said bare metal node based on said first bridge and said second bridge and installed according to a pre-boot execution environment comprises: and acquiring the IP address of the dynamic host configuration protocol, the IP address of the simple file transfer protocol service and the first starting configuration file from the flow table of the first bridge through the second bare metal port.
In some embodiments, said receiving, at said deployment node, a request issued by said bare metal node based on said first bridge and said second bridge and installed according to a pre-boot execution environment comprises: and acquiring a second starting configuration file from the simple file transfer protocol service of the deployment node through the virtual network tunnel based on the first starting configuration file, and sending the request to the deployment node according to the second starting configuration file.
In another aspect of the embodiments of the present invention, a system for pre-starting an operating environment installation apparatus is provided, including: the network card comprises a deployment module and a control module, wherein the deployment module is configured to deploy Openstack at deployment nodes, install a network card at bare metal nodes, enable the network card to generate a first bare metal port at the bare metal nodes, and generate a second bare metal port corresponding to the first bare metal port in an operating system of the network card; the first network configuration module is used for respectively creating a first network port and a second network port of a deployment network at a deployment node, adding the second bare metal port into a first bridge of the bare metal node, binding a unique identification code of the first network port to the second bare metal port, and issuing flow tables of the first network port and the deployment network to the first bridge at the bare metal node; the second network configuration module is configured to create a second network bridge at a deployment node, set a mac address of the second network bridge as a mac address of the second network port, bind a unique identification code of the second network port to the second network bridge, and issue the second network port and a flow table of the deployment network to the second network bridge at the deployment node; and the execution module is configured to receive a request sent by the bare metal node according to a pre-starting operation environment installation based on the first bridge and the second bridge at the deployment node, and install the installation according to the request.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method as above.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: under the condition that OVN does not support bare metal deployment at present, a control node TFTP-SERVER is opened to a deployment network and an intelligent network card pf0hpf is opened to the deployment network, OVN is prompted to issue a flow table of the deployment network, a PXE deployment network channel is prompted to be opened, BF2 adaptation OVN of the intelligent network card is completed, all processes of acquiring a file system by PXE of bare metal are achieved through an OVERLAY network, and a solid technical foundation is provided for achieving an OVERLAY scheme by the bare metal based on the intelligent network card.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic diagram of an embodiment of a method for pre-starting an operating environment installation provided by the present invention;
FIG. 2 is a diagram of a hardware architecture of an embodiment of a method of pre-booting a runtime environment loader provided by the present invention;
FIG. 3 is a schematic hardware configuration diagram of an embodiment of a computer device of the pre-boot runtime environment installation provided in the present invention;
FIG. 4 is a schematic diagram of an embodiment of a computer storage medium of a pre-boot execution environment installation provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In a first aspect of the embodiments of the present invention, an embodiment of a method for pre-starting an operating environment installation is provided. Fig. 1 is a schematic diagram illustrating an embodiment of a method for pre-booting a runtime environment provided by the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s1, deploying Openstack at a deployment node, installing a network card at a bare metal node, enabling the network card to generate a first bare metal port at the bare metal node, and generating a second bare metal port corresponding to the first bare metal port in an operating system of the network card;
s2, respectively creating a first network port and a second network port of a deployment network at a deployment node, adding the second bare metal port into a first bridge of the bare metal node, binding a unique identification code of the first network port to the second bare metal port, and issuing a flow table of the first network port and the deployment network to the first bridge at the bare metal node;
s3, creating a second network bridge at a deployment node, setting the mac address of the second network bridge as the mac address of the second network port, binding the unique identification code of the second network port to the second network bridge, and issuing the second network port and the flow table of the deployment network to the second network bridge at the deployment node; and
s4, receiving a request sent by the bare metal node according to a pre-starting operation environment installation based on the first bridge and the second bridge at the deployment node, and installing according to the request.
Fig. 2 is a hardware architecture diagram of an embodiment of the present invention, and the embodiment of the present invention is described with reference to fig. 2. As shown in fig. 2, the present embodiment includes a deployment node and a bare metal node, where the left side of fig. 2 is the deployment node, the right side is the bare metal node, the bare metal node includes a bare metal and a network card, and the network card includes an ARM operating system.
First, several terms are introduced: openstack is a cloud computing open source infrastructure project; bare metal servers (barremet) are generally used to indicate that a physical server has not yet installed an operating system, which may be referred to as bare metal for short; an Overlay network is a virtual network established on an existing physical network, and is provided with an independent control and forwarding plane, and the physical network is transparent to terminal equipment (such as a server) connected to the Overlay, so that the separation of a bearing network and a service network can be realized; the deployment network is a concept in ironic, a memory file system of a deployment mirror image can be obtained by deploying network bare metal, and a user mirror image can be copied to the bare metal system after the obtained memory file system is powered on.
The method comprises the steps of deploying Openstack at deployment nodes, installing a network card at bare metal nodes, enabling the network card to generate first bare metal ports at the bare metal nodes, and generating second bare metal ports corresponding to the first bare metal ports in an operating system of the network card. Openstack is installed at the deployment node, and a neutron ironic nova component is contained in the openstack. The deployment OVN and OVS (Open Virtual Switch) are installed at the deployment node. And installing an intelligent network card on the bare metal side, installing an operating system in the intelligent network card, and installing ovn-controller and ovs on the operating system. The network card in the embodiment is a bluefield2 intelligent network card proposed by Melllanox. After the intelligent network card is inserted into the bare metal node, the intelligent network card generates a first bare metal port (PF0) on the bare metal system, and similarly, a port in the arm operating system of the intelligent network card corresponds to PF0 in the bare metal system, that is, a second bare metal port (PF0 hpf).
In some embodiments, said deploying Openstack at the deployment node comprises: setting IP addresses of the deployment network and the simple file transfer protocol service, and deploying the simple file transfer protocol service on the deployment node. Planning the deployment network and the ip address of the TFTP-SERVER, and deploying the TFTP-SERVER on the deployment node.
In some embodiments, the method further comprises: and respectively setting virtual channel endpoint IP addresses on the deployment node and the bare metal node, and setting a virtual network tunnel based on the virtual channel endpoint IP addresses. And (3) planning and configuring a vtep (Virtual channel Endpoint) ip on the deployment node and the arm operating system and opening an overlay Tunnel.
Respectively creating a first network port and a second network port of a deployment network at a deployment node, adding the second bare metal port into a first bridge of the bare metal node, binding a unique identification code of the first network port to the second bare metal port, and issuing flow tables of the first network port and the deployment network to the first bridge at the bare metal node. At a deployment node, a neutron (network component of an Openstack cloud computing sourcing project) api (Application Programming Interface) is called by Openstack to create a neutron port of a deployment network and record uuid (universal Unique Identifier) of the neutron port. Adding a second bare metal port to a first bridge (br-int) of the bare metal node, the code may be, for example, ovs-vsctadd-port pf0hpf br-int-set interface pf0hpf external-ids, iface-id uuid, where external-ids denotes binding the first network port neutron port to pf0 hpf. The ovn-controller in the Arm os automatically detects that the uuid of the first network port is bound, and issues the first network port and all flow tables of the deployed network to br-int of ovs. At this time, the network on the arm side of the intelligent network card is opened.
In some embodiments, the creating, at the deployment node, the first network port and the second network port of the deployment network, respectively, comprises: setting an IP address of the second network port to an IP address of the trivial file transfer protocol service. Invoking the neutron api at the deployment node sets the IP address of the second network port to the IP address of the tftp-server.
Creating a second network bridge at a deployment node, setting the mac address of the second network bridge as the mac address of the second network port, binding the unique identification code of the second network port to the second network bridge, and issuing the second network port and the flow table of the deployment network to the second network bridge at the deployment node. Calling ovs-vsctl at the deployment node to create a second bridge (bm-default), and designating the mac (Media Access Control) address of the second bridge as the mac address of the second network port. The code may be as follows: ovs-vsctl-may-existing add-br bm-deployment br-int 0-set interface bm-deployment extension-ids, iface-id ═ uuid extension-ids, iface-status ═ active, and set interface bm-deployment mac ═ mac. Wherein, external-ids, i.e., initial-id, indicates uuid bound to the second network port, and set interface bm-default mac indicates mac address designating mac address of the second bridge as mac address of the second network port. Ovn on the deployment node detects that the second network port is bound, and then automatically issues the second network port and all flow tables of the deployment network. At this time, the deployment network of the deployment node is opened.
In some embodiments, said binding the unique identification code of the second network port to the second bridge comprises: and binding the unique identification code of the second network port to a bridge port corresponding to the second bridge, and modifying the configuration of the SNTP service to monitor the bridge port. And binding the uuid of the second network port to the bm-default port of the second bridge, modifying the tftp-server configuration to monitor the bm-default port, and restarting the tftp-server service.
And receiving a request sent by the bare metal node according to a pre-starting operation environment installation at the deployment node based on the first bridge and the second bridge, and installing according to the request.
In some embodiments, said receiving, at said deployment node, a request issued by said bare metal node based on said first bridge and said second bridge and installed according to a pre-boot execution environment comprises: and acquiring the IP address of the dynamic host configuration protocol, the IP address of the simple file transfer protocol service and the first starting configuration file from the flow table of the first bridge through the second bare metal port. The PF0 obtains the ip address of dhcp, the ip address of tftp-server and a first boot configuration file (bootfile) from the flow table on the first bridge on the arm operating system through PF0 hfp.
In some embodiments, said receiving, at said deployment node, a request issued by said bare metal node based on said first bridge and said second bridge and installed according to a pre-boot execution environment comprises: and acquiring a second starting configuration file from the simple file transfer protocol service of the deployment node through the virtual network tunnel based on the first starting configuration file, and sending the request to the deployment node according to the second starting configuration file. After the PF0 obtains the dhcp ip address, the tftp-server ip address, and the first boot-up profile, a second boot-up profile is obtained through the PF0hpf, the first bridge, and the overlay tunnel to the first bridge and the second bridge of the deployment node to the tftp-server. Because the tftp-server monitors the bm-deployment port all the time, the whole flow is responded in time after the request message comes, and the installation deployment of the pxe is completed.
For bare metal, it monopolizes one compute node, eventually exposing it to the end user completely as well. Therefore, for the overlay implementation scheme of bare metal, it cannot implement encapsulation and decapsulation of the overlay network on a computing node like an openstack virtual machine. The embodiment of the invention provides a method for realizing bare metal overlay based on an intelligent Network card bf2 under the networking of a soft SDN (Software Defined Network) ovn. The method can realize the process that the bare metal obtains the memory file system based on the pxe of the intelligent network card under the ovn overlay networking, and provides a technical foundation for realizing the overlay based on the intelligent network card + OVN by the bare metal.
It should be particularly noted that, the steps in the embodiments of the method for pre-starting the operating environment installation may be mutually intersected, replaced, added, or deleted, so that these methods for pre-starting the operating environment installation that are reasonably arranged, combined and transformed also belong to the protection scope of the present invention, and the protection scope of the present invention should not be limited to the embodiments.
In view of the above object, according to a second aspect of the embodiments of the present invention, there is provided a system for pre-starting an operating environment installation, including: the network card comprises a deployment module and a control module, wherein the deployment module is configured to deploy Openstack at deployment nodes, install a network card at bare metal nodes, enable the network card to generate a first bare metal port at the bare metal nodes, and generate a second bare metal port corresponding to the first bare metal port in an operating system of the network card; the first network configuration module is used for respectively creating a first network port and a second network port of a deployment network at a deployment node, adding the second bare metal port into a first bridge of the bare metal node, binding a unique identification code of the first network port to the second bare metal port, and issuing flow tables of the first network port and the deployment network to the first bridge at the bare metal node; the second network configuration module is configured to create a second network bridge at a deployment node, set a mac address of the second network bridge as a mac address of the second network port, bind a unique identification code of the second network port to the second network bridge, and issue the second network port and a flow table of the deployment network to the second network bridge at the deployment node; and the execution module is configured to receive a request sent by the bare metal node according to a pre-starting operation environment installation based on the first bridge and the second bridge at the deployment node, and install the installation according to the request.
In some embodiments, the deployment module is configured to: setting IP addresses of the deployment network and the simple file transfer protocol service, and deploying the simple file transfer protocol service on the deployment node.
In some embodiments, the first network configuration module is configured to: setting an IP address of the second network port to an IP address of the trivial file transfer protocol service.
In some embodiments, the second network configuration module is configured to: and binding the unique identification code of the second network port to a bridge port corresponding to the second bridge, and modifying the configuration of the SNTP service to monitor the bridge port.
In some embodiments, the system further comprises a third network configuration module configured to: and respectively setting virtual channel endpoint IP addresses on the deployment node and the bare metal node, and setting a virtual network tunnel based on the virtual channel endpoint IP addresses.
In some embodiments, the execution module is configured to: and acquiring the IP address of the dynamic host configuration protocol, the IP address of the simple file transfer protocol service and the first starting configuration file from the flow table of the first bridge through the second bare metal port.
In some embodiments, the execution module is configured to: and acquiring a second starting configuration file from the simple file transfer protocol service of the deployment node through the virtual network tunnel based on the first starting configuration file, and sending the request to the deployment node according to the second starting configuration file.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, deploying Openstack at a deployment node, installing a network card at a bare metal node, enabling the network card to generate a first bare metal port at the bare metal node, and generating a second bare metal port corresponding to the first bare metal port in an operating system of the network card; s2, respectively creating a first network port and a second network port of a deployment network at a deployment node, adding the second bare metal port into a first bridge of the bare metal node, binding a unique identification code of the first network port to the second bare metal port, and issuing a flow table of the first network port and the deployment network to the first bridge at the bare metal node; s3, creating a second network bridge at a deployment node, setting the mac address of the second network bridge as the mac address of the second network port, binding the unique identification code of the second network port to the second network bridge, and issuing the second network port and the flow table of the deployment network to the second network bridge at the deployment node; and S4, receiving a request sent by the bare metal node according to a pre-starting operation environment installation based on the first bridge and the second bridge at the deployment node, and installing according to the request.
In some embodiments, said deploying Openstack at the deployment node comprises: setting IP addresses of the deployment network and the simple file transfer protocol service, and deploying the simple file transfer protocol service on the deployment node.
In some embodiments, the creating, at the deployment node, the first network port and the second network port of the deployment network, respectively, comprises: setting an IP address of the second network port to an IP address of the trivial file transfer protocol service.
In some embodiments, said binding the unique identification code of the second network port to the second bridge comprises: and binding the unique identification code of the second network port to a bridge port corresponding to the second bridge, and modifying the configuration of the SNTP service to monitor the bridge port.
In some embodiments, the steps further comprise: and respectively setting virtual channel endpoint IP addresses on the deployment node and the bare metal node, and setting a virtual network tunnel based on the virtual channel endpoint IP addresses.
In some embodiments, said receiving, at said deployment node, a request issued by said bare metal node based on said first bridge and said second bridge and installed according to a pre-boot execution environment comprises: and acquiring the IP address of the dynamic host configuration protocol, the IP address of the simple file transfer protocol service and the first starting configuration file from the flow table of the first bridge through the second bare metal port.
In some embodiments, said receiving, at said deployment node, a request issued by said bare metal node based on said first bridge and said second bridge and installed according to a pre-boot execution environment comprises: and acquiring a second starting configuration file from the simple file transfer protocol service of the deployment node through the virtual network tunnel based on the first starting configuration file, and sending the request to the deployment node according to the second starting configuration file.
Fig. 3 is a schematic hardware structural diagram of an embodiment of a computer device installed in the pre-boot execution environment according to the present invention.
Taking the apparatus shown in fig. 3 as an example, the apparatus includes a processor 201 and a memory 202, and may further include: an input device 203 and an output device 204.
The processor 201, the memory 202, the input device 203 and the output device 204 may be connected by a bus or other means, and fig. 3 illustrates the connection by a bus as an example.
The memory 202, which is a non-volatile computer-readable storage medium, may be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for pre-booting the operating environment installation in the embodiments of the present application. The processor 201 executes various functional applications and data processing of the server by executing the nonvolatile software program, instructions and modules stored in the memory 202, that is, the method of the pre-boot execution environment installation of the above-described method embodiment is realized.
The memory 202 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of a method of the pre-boot execution environment installation, and the like. Further, the memory 202 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 202 may optionally include memory located remotely from processor 201, which may be connected to local modules via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 203 may receive information such as a user name and a password that are input. The output device 204 may include a display device such as a display screen.
Program instructions/modules corresponding to one or more methods of pre-booting the runtime environment installation are stored in the memory 202, and when executed by the processor 201, perform the methods of pre-booting the runtime environment installation in any of the above-described method embodiments.
Any embodiment of the computer device executing the method for pre-starting the operating environment installation can achieve the same or similar effects as any corresponding method embodiment.
The invention also provides a computer readable storage medium storing a computer program which, when executed by a processor, performs the method as above.
Fig. 4 is a schematic diagram of an embodiment of a computer storage medium installed in the pre-boot execution environment according to the present invention. Taking the computer storage medium as shown in fig. 4 as an example, the computer readable storage medium 3 stores a computer program 31 which, when executed by a processor, performs the above method.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes of the methods of the above embodiments can be implemented by a computer program to instruct related hardware, and the program of the method for pre-booting the runtime environment installation can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods as described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (9)

1. A method of pre-starting an operating environment installation, comprising the steps of:
deploying Openstack at a deployment node, installing a network card at a bare metal node, enabling the network card to generate a first bare metal port at the bare metal node, and generating a second bare metal port corresponding to the first bare metal port in an operating system of the network card;
respectively creating a first network port and a second network port of a deployment network at a deployment node, adding the second bare metal port into a first bridge of the bare metal node, binding a unique identification code of the first network port to the second bare metal port, and issuing flow tables of the first network port and the deployment network to the first bridge at the bare metal node;
creating a second network bridge at a deployment node, setting the mac address of the second network bridge as the mac address of the second network port, binding the unique identification code of the second network port to the second network bridge, and issuing the second network port and the flow table of the deployment network to the second network bridge at the deployment node; and
receiving a request sent by the bare metal node and installed according to a pre-starting operation environment at the deployment node based on the first bridge and the second bridge, and installing according to the request;
installing deployment OVN and OVS on deployment nodes, installing an intelligent network card on a bare metal side, installing an operating system in the intelligent network card, installing ovn-controller and OVS on the operating system, respectively setting virtual channel endpoint IP addresses on the deployment nodes and the bare metal nodes, setting virtual network tunnels based on the virtual channel endpoint IP addresses, and planning and configuring vtep IP on the deployment nodes and the arm operating system and opening the overlay tunnels.
2. The method of claim 1, wherein deploying Openstack at a deployment node comprises:
setting IP addresses of the deployment network and the simple file transfer protocol service, and deploying the simple file transfer protocol service on the deployment node.
3. The method of claim 2, wherein creating the first network port and the second network port of the deployment network at the deployment node respectively comprises:
setting an IP address of the second network port to an IP address of the trivial file transfer protocol service.
4. The method of claim 2, wherein binding the unique identification code of the second network port to the second bridge comprises:
and binding the unique identification code of the second network port to a bridge port corresponding to the second bridge, and modifying the configuration of the SNTP service to monitor the bridge port.
5. The method of claim 1, wherein receiving, at the deployment node based on the first bridge and the second bridge, a request issued by the bare metal node to install according to a pre-boot execution environment comprises:
and acquiring the IP address of the dynamic host configuration protocol, the IP address of the simple file transfer protocol service and the first starting configuration file from the flow table of the first bridge through the second bare metal port.
6. The method of claim 5, wherein receiving, at the deployment node based on the first bridge and the second bridge, a request issued by the bare metal node to install according to a pre-boot execution environment comprises:
and acquiring a second starting configuration file from the simple file transfer protocol service of the deployment node through the virtual network tunnel based on the first starting configuration file, and sending the request to the deployment node according to the second starting configuration file.
7. A system for pre-starting a runtime environment loader, comprising:
the network card comprises a deployment module and a control module, wherein the deployment module is configured to deploy Openstack at deployment nodes, install a network card at bare metal nodes, enable the network card to generate a first bare metal port at the bare metal nodes, and generate a second bare metal port corresponding to the first bare metal port in an operating system of the network card;
the first network configuration module is used for respectively creating a first network port and a second network port of a deployment network at a deployment node, adding the second bare metal port into a first bridge of the bare metal node, binding a unique identification code of the first network port to the second bare metal port, and issuing flow tables of the first network port and the deployment network to the first bridge at the bare metal node;
the second network configuration module is configured to create a second network bridge at a deployment node, set a mac address of the second network bridge as a mac address of the second network port, bind a unique identification code of the second network port to the second network bridge, and issue the second network port and a flow table of the deployment network to the second network bridge at the deployment node; and
the execution module is configured to receive, at the deployment node, a request sent by the bare metal node according to a pre-boot operating environment installation based on the first bridge and the second bridge, and install the bare metal node according to the request;
and a third network configuration module, configured to install deployment OVN and an OVS on the deployment node, install an intelligent network card on the bare metal side, install an operating system in the intelligent network card, install ovn-controller and OVS on the operating system, set virtual channel endpoint IP addresses on the deployment node and the bare metal node respectively, set a virtual network tunnel based on the virtual channel endpoint IP addresses, and plan and configure vtep IP on the deployment node and the arm operating system and open an overlay tunnel.
8. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1 to 6.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN202110593140.4A 2021-05-28 2021-05-28 Method, system, equipment and medium for pre-starting operation environment installation Active CN113419815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110593140.4A CN113419815B (en) 2021-05-28 2021-05-28 Method, system, equipment and medium for pre-starting operation environment installation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110593140.4A CN113419815B (en) 2021-05-28 2021-05-28 Method, system, equipment and medium for pre-starting operation environment installation

Publications (2)

Publication Number Publication Date
CN113419815A CN113419815A (en) 2021-09-21
CN113419815B true CN113419815B (en) 2022-04-22

Family

ID=77713177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110593140.4A Active CN113419815B (en) 2021-05-28 2021-05-28 Method, system, equipment and medium for pre-starting operation environment installation

Country Status (1)

Country Link
CN (1) CN113419815B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113986358B (en) * 2021-09-26 2023-12-26 阿里巴巴(中国)有限公司 Bare metal example installation method, device and equipment
CN113612702B (en) * 2021-09-30 2021-12-24 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for realizing bare metal inspection process
CN113612667B (en) * 2021-09-30 2021-12-17 苏州浪潮智能科技有限公司 Bare metal detection method, system and related components
CN114024853A (en) * 2021-10-27 2022-02-08 浪潮电子信息产业股份有限公司 Hardware information collection method and system for bare metal node and related components

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111200527A (en) * 2019-12-31 2020-05-26 浪潮云信息技术有限公司 Method for automatically discovering and deploying bare computer based on ironic
CN111756629A (en) * 2019-03-26 2020-10-09 中移(苏州)软件技术有限公司 Method, device, equipment, network and medium for accessing equipment to overlay network and communication

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10581734B2 (en) * 2010-05-03 2020-03-03 Pluribus Networks, Inc. Methods, systems, and fabrics implementing a distributed network operating system
CN110532065A (en) * 2019-09-02 2019-12-03 广州市品高软件股份有限公司 A kind of dispositions method and device of bare metal server
CN111901177B (en) * 2020-08-06 2022-08-30 鹏城实验室 Bare metal server network configuration method, system and related equipment
CN112737860B (en) * 2021-01-06 2023-06-20 浪潮云信息技术股份公司 Method for accessing VXLAN of bare metal server and computer readable medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111756629A (en) * 2019-03-26 2020-10-09 中移(苏州)软件技术有限公司 Method, device, equipment, network and medium for accessing equipment to overlay network and communication
CN111200527A (en) * 2019-12-31 2020-05-26 浪潮云信息技术有限公司 Method for automatically discovering and deploying bare computer based on ironic

Also Published As

Publication number Publication date
CN113419815A (en) 2021-09-21

Similar Documents

Publication Publication Date Title
CN113419815B (en) Method, system, equipment and medium for pre-starting operation environment installation
US11502950B2 (en) Universal customer premise equipment
CN108293019B (en) Flow table processing method and device
TWI584195B (en) Method for iscsi based bare metal os image deployment and diskless boot in a server system
US9304793B2 (en) Master automation service
WO2016155394A1 (en) Method and device for establishing link between virtual network functions
TW201832097A (en) System and method for automatically updating bios setup options
CN113452830B (en) Batch control method of android cloud mobile phone, computer readable medium and electronic device
CN109040207B (en) Method, device and equipment for accessing user mode network file system
CN108282369A (en) A kind of physical machine remote deployment method and device based on openstack
CN113612702B (en) Method, system, equipment and storage medium for realizing bare metal inspection process
WO2024077885A1 (en) Management method, apparatus and device for container cluster, and non-volatile readable storage medium
CN108259305A (en) A kind of physical machine remote dummy lan handover method and device based on openstack
CN114070723A (en) Virtual network configuration method and system of bare metal server and intelligent network card
CN113419813B (en) Method and device for deploying bare engine management service based on container platform
CN113918174A (en) Bare metal server deployment method, deployment controller and server cluster
CN108234174B (en) Management method and device of virtual network function
CN112099902A (en) Network adapter configuration method and device of virtual machine, electronic device and storage medium
WO2023000672A1 (en) Network switching method and apparatus, electronic device, and storage medium
WO2023159956A1 (en) Bare metal server inspection and deployment method and apparatus, and device and medium
CN114995888A (en) Intelligent network card deployment method, device and medium
US11645158B2 (en) Automated rollback in virtualized computing environments
CN110430132B (en) Method and device for binding Socket and VRF
US11863520B2 (en) Data access methods and systems
CN115469969A (en) Network card binding method and system of virtual machine

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
GR01 Patent grant
GR01 Patent grant