CN105681081A - Physical machine management method and device - Google Patents

Physical machine management method and device Download PDF

Info

Publication number
CN105681081A
CN105681081A CN201610018656.5A CN201610018656A CN105681081A CN 105681081 A CN105681081 A CN 105681081A CN 201610018656 A CN201610018656 A CN 201610018656A CN 105681081 A CN105681081 A CN 105681081A
Authority
CN
China
Prior art keywords
physical machine
pxe
network card
network
instruction
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.)
Granted
Application number
CN201610018656.5A
Other languages
Chinese (zh)
Other versions
CN105681081B (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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610018656.5A priority Critical patent/CN105681081B/en
Publication of CN105681081A publication Critical patent/CN105681081A/en
Application granted granted Critical
Publication of CN105681081B publication Critical patent/CN105681081B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention relates to a physical machine management method and device. The method comprises that a management platform collects the information of one or more accessing physical machines in advance; wherein the information of the physical machine may comprises the identity of a PXE network card; the management platform receives an operation system installation instruction of the physical machine; the physical machine is selected according to the operation system installation instruction and the information of one or more physical machines collected in advance; the management platform inserts the PXE network card corresponding to the selected physical machine in a PXE network and installs the operation system of the selected physical machine based on the PXE network. Through adoption of the embodiment of the invention, the operation system of the physical machine can be installed through the PXE network card; manual configuration is unnecessary; the operation system of the physical machine is installed more conveniently; and the user experience is relatively high.

Description

物理机管理方法及装置Physical machine management method and device

技术领域technical field

本发明涉及数据处理技术领域,尤其涉及一种物理机管理方法及装置。The present invention relates to the technical field of data processing, in particular to a physical machine management method and device.

背景技术Background technique

目前在各类机构的数据中心的规模越来越大,有效快速的为物理机安装操作系统,能够提高大型数据中心的体验。即使是对于基于云技术的数据中心,也存在无法虚拟化的应用,例如对性能要求高,或对硬件有特殊依赖,这类应用还需要继续部署在物理机中。At present, the scale of data centers in various organizations is getting larger and larger. Effective and fast installation of operating systems for physical machines can improve the experience of large data centers. Even for cloud-based data centers, there are applications that cannot be virtualized, such as those with high performance requirements or special dependencies on hardware. Such applications need to continue to be deployed on physical machines.

现有技术中通过PXE(prebootexecuteenvironment,预启动执行环境)技术实现了操作系统的自动化安装。PXE技术是一种从网络引导计算机启动的方式,具有支持PXE启动的网卡的物理机,在没有软驱、硬盘、CD-ROM等的情况下也可以启动或进行批量的操作系统安装。In the prior art, automatic installation of an operating system is realized through a PXE (preboot execute environment, pre-boot execution environment) technology. PXE technology is a way to boot a computer from the network. A physical machine with a network card that supports PXE boot can also be started or batch operating system installation without a floppy drive, hard disk, CD-ROM, etc.

在利用PXE技术为物理机安装操作系统的时候,通常需要手动配置,但是,数据中心通常有大量的物理机,所述人工配置的工作量很大,且很容易出现人为错误。所以,如何实现更便捷的为物理机安装操作系统成为本领域技术人员迫切需要解决的技术问题。When using the PXE technology to install an operating system for a physical machine, manual configuration is usually required. However, there are usually a large number of physical machines in a data center, and the manual configuration requires a lot of work and is prone to human errors. Therefore, how to implement a more convenient installation of an operating system for a physical machine has become an urgent technical problem to be solved by those skilled in the art.

发明内容Contents of the invention

本发明实施例提供了一种物理机管理方法及装置,可以实现在便捷的为物理机安装操作系统。Embodiments of the present invention provide a physical machine management method and device, which can realize convenient installation of an operating system for a physical machine.

一方面,本申请的实施例提供了一种物理机管理方法。包括:管理平台接收物理机操作系统安装指令,根据该操作系统安装指令确定一个或多个目标物理机。管理平台指示SDN(SoftwareDefinedNetwork,软件定义网络)控制器将与所述目标物理机对应的PXE网卡接入到PXE网络中。管理平台基于所述PXE网络,通过目标物理机的PXE网卡对目标物理机进行操作系统的安装。通过本发明实施例可以实现,通过PXE网卡对物理机操作系统的安装,且不用手动配置,使得对物理机操作系统的安装更便捷,用户体验更高。On the one hand, the embodiments of the present application provide a physical machine management method. The method includes: the management platform receives a physical machine operating system installation instruction, and determines one or more target physical machines according to the operating system installation instruction. The management platform instructs the SDN (Software Defined Network, software defined network) controller to connect the PXE network card corresponding to the target physical machine to the PXE network. Based on the PXE network, the management platform installs the operating system on the target physical machine through the PXE network card of the target physical machine. Through the embodiment of the present invention, it can be realized that the installation of the physical machine operating system through the PXE network card does not require manual configuration, so that the installation of the physical machine operating system is more convenient and the user experience is higher.

在一个可能的设计中,管理平台还可以预先收集不同类型操作系统的镜像、和/或业务网络的信息。通过本发明实施例可以实现,为物理机安装不同类型的操作系统,或者为物理机配置不同类型的网络,增加用户体验。In a possible design, the management platform may also pre-collect images of different types of operating systems and/or service network information. Through the embodiment of the present invention, it can be realized that different types of operating systems are installed on the physical machine, or different types of networks are configured on the physical machine, so as to increase user experience.

在一个可能的设计中,管理平台可以获取至少一个物理机的信息,其中该信息包括,至少一个物理机中每个物理机的规格参数、每个物理机具有的PXE网卡的标识。上述管理平台根据操作系统安装指令确定一个或多个目标物理机,指示SDN控制器将与所述目标物理机对应的PXE网卡接入到PXE网络中,具体包括:管理平台将操作系统安装指令携带的规则参数与管理平台获取的信息中的一个或多个物理机的规格参数匹配,匹配成功的物理机为目标物理机,从所述信息中获取所述目标物理机的PXE网卡的标识。管理平台向SDN控制器下发接入指令,该接入指令携带目标物理机的PXE网卡的标识,且用于指示所述SDN控制器将接入指令携带的标识所指定的PXE网卡接入到PXE网络。通过本发明实施例可以实现更精确地选择物理机,且不用手动配置提高了用户体验。In a possible design, the management platform may acquire information of at least one physical machine, where the information includes specification parameters of each physical machine in the at least one physical machine, and an identifier of a PXE network card of each physical machine. The above-mentioned management platform determines one or more target physical machines according to the operating system installation instruction, and instructs the SDN controller to connect the PXE network card corresponding to the target physical machine to the PXE network, specifically including: the management platform carries the operating system installation instruction The rule parameter matches the specification parameters of one or more physical machines in the information obtained by the management platform, the successfully matched physical machine is the target physical machine, and the identification of the PXE network card of the target physical machine is obtained from the information. The management platform sends an access command to the SDN controller, the access command carries the identifier of the PXE network card of the target physical machine, and is used to instruct the SDN controller to connect the PXE network card specified by the identifier carried by the access command to the PXE network. Through the embodiments of the present invention, more accurate selection of physical machines can be realized, and user experience is improved without manual configuration.

在一个可能的设计中,管理平台接收所述SDN控制器上传的LLDP(LinkLayerDiscoveryProtocol,链路层发现协议)信息,或者,管理平台从至少一个物理机获取各个物理机的LLDP信息,其中,每个所述LLDP信息携带一个物理机所具有的PXE网卡的标识和与该个物理机所具有的PXE网卡通信连接的交换机的端口的端口号。上述SDN控制器将所述接入指令携带的标识所指定的PXE网卡接入到PXE网络,具体为:SDN控制器将所述接入指令携带的标识所指定的PXE网卡所对应通信连接的交换机的端口接入PXE网络。通过本发明实施例可以实现,通过LLDP协议获取物理机的信息,管理平台能够更有效的收集物理机的信息,在PXE网卡接入PXE网络过程中,不需要手动配置,便可实现,提高了用户体验。In a possible design, the management platform receives the LLDP (LinkLayerDiscoveryProtocol, Link Layer Discovery Protocol) information uploaded by the SDN controller, or the management platform obtains the LLDP information of each physical machine from at least one physical machine, wherein each The LLDP information carries the identifier of the PXE network card of a physical machine and the port number of the port of the switch that is communicatively connected to the PXE network card of the physical machine. The above-mentioned SDN controller connects the PXE network card specified by the identifier carried by the access instruction to the PXE network, specifically: the SDN controller connects the switch corresponding to the communication connection of the PXE network card specified by the identifier carried by the access instruction port connected to the PXE network. Through the embodiment of the present invention, it can be realized that the information of the physical machine is obtained through the LLDP protocol, and the management platform can collect the information of the physical machine more effectively. In the process of connecting the PXE network card to the PXE network, it can be realized without manual configuration, which improves the user experience.

在一个可能的设计中,管理平台对目标物理机完成操作系统的安装之后,指示SDN控制器断开目标物理机的PXE网卡与PXE网络的网络连接,指示SDN控制器将所述目标物理机的PXE网卡接入业务网络。通过本发明实施例可以实现,PXE网卡的复用,节省了资源,提高了用户体验。In a possible design, after the management platform completes the installation of the operating system on the target physical machine, it instructs the SDN controller to disconnect the PXE network card of the target physical machine from the PXE network, and instructs the SDN controller to connect the PXE network card of the target physical machine The PXE NIC is connected to the service network. Through the embodiment of the present invention, it can be realized that the multiplexing of the PXE network card saves resources and improves user experience.

在一个可能的设计中,管理平台接收释放指令,该释放指令包括一个或多个目标物理机的标识。管理平台根据释放指令,指示释放指令中的标识所指定的目标物理机释放操作系统。其中,管理平台可以基于PXE网络、业务网络,向目标物理机发送释放命令。通过发明实施例可以实现,物理机操作系统的释放不需要人为的配置,使得操作更便捷,用户体验更高。In a possible design, the management platform receives a release instruction, and the release instruction includes the identifiers of one or more target physical machines. The management platform instructs the target physical machine specified by the identifier in the release instruction to release the operating system according to the release instruction. Wherein, the management platform may send a release command to the target physical machine based on the PXE network or the service network. Through the embodiments of the invention, it can be realized that the release of the operating system of the physical machine does not require manual configuration, making the operation more convenient and the user experience higher.

在一个可能的设计中,管理平台在接收到所述释放指令时,指示所述SDN控制器断开释放指令中的标识所指定的目标物理机所具有的PXE网卡的网络连接,需断开的网络连接包括:释放指令中的标识所指定的目标物理机所具有的PXE网卡与PXE网络的网络连接、释放指令中的标识所指定的目标物理机所具有的PXE网卡与业务网络的网络连接。In a possible design, when the management platform receives the release instruction, it instructs the SDN controller to disconnect the network connection of the PXE network card of the target physical machine specified by the identifier in the release instruction. The network connection includes: the network connection between the PXE network card of the target physical machine specified by the identifier in the release command and the PXE network, and the network connection between the PXE network card of the target physical machine specified by the identifier in the release command and the service network.

在一个可能的设计中,管理平台接收镜像选择指令,确定镜像选择指令所指定的操作系统镜像。管理平台对目标物理机进行操作系统的安装,具体为:管理平台使用确定的操作系统镜像对目标物理机进行操作系统的安装。In a possible design, the management platform receives the image selection instruction, and determines the operating system image specified by the image selection instruction. The management platform installs the operating system on the target physical machine, specifically: the management platform uses the determined operating system image to install the operating system on the target physical machine.

在一个可能的设计中,物理机的信息还包括物理机的规格参数、业务网卡的标识、和/或物理机的标识。In a possible design, the information of the physical machine also includes specification parameters of the physical machine, an identifier of the service network card, and/or an identifier of the physical machine.

在一个可能的设计中,上述操作系统安装指令包括,物理机规格参数、操作系统的类型、和/或业务网络的信息等等。通过操作系统安装指令携带的信息,可以更精确的选择物理机,或者为物理机配置更合适的网络。In a possible design, the above operating system installation instruction includes physical machine specification parameters, operating system type, and/or service network information and the like. Through the information carried in the operating system installation instructions, the physical machine can be selected more accurately, or a more suitable network can be configured for the physical machine.

在一个可能的设计中,管理平台预先获取接入的至少一个物理机的信息包括:管理平台从所述至少一个物理机分别获取每个物理机的信息。通过SDN控制器自动收集物理机的信息,为物理机操作系统的安装提供了方便。In a possible design, the management platform obtaining the information of at least one physical machine accessed in advance includes: the management platform separately obtains the information of each physical machine from the at least one physical machine. The information of the physical machine is automatically collected through the SDN controller, which provides convenience for the installation of the operating system of the physical machine.

另一方面,本申请的实施例提供了一种物理机管理方法。包括:SDN控制器接收管理平台发送的接入命令,该接入命令携带有所述目标物理机的PXE网卡的标识。SDN控制器根据接入指令将接入指令携带的标识所指定的预启动执行环境PXE网卡接入到PXE网络,以便管理平台基于PXE网络,通过目标物理机的PXE网卡对目标物理机进行操作系统的安装。通过本发明实施例可以实现,将PXE网卡自动接入PXE网络,不用人为配置,增加了用户体验。On the other hand, the embodiments of the present application provide a physical machine management method. The method includes: the SDN controller receives the access command sent by the management platform, and the access command carries the identifier of the PXE network card of the target physical machine. The SDN controller connects the pre-boot execution environment PXE network card specified by the identifier carried by the access command to the PXE network according to the access command, so that the management platform can operate the target physical machine through the PXE network card of the target physical machine based on the PXE network. installation. Through the embodiment of the present invention, it can be realized that the PXE network card is automatically connected to the PXE network without manual configuration, which increases user experience.

在一个可能的设计中,还包括,SDN控制器接收管理平台发送的接入更改指令,该接入更改指令携带有目标物理机的PXE网卡的标识,该接入更改指令由管理平台完成对目标物理机安装操作系统时触发。SDN控制器根据接入更改指令,断开接入更改指令携带的标识所指定的PXE网卡与PXE网络的网络连接,将接入更改指令携带的标识所指定的PXE网卡接入业务网络。通过本发明实施例可以实现对PXE网卡的重复利用,以节省资源。In a possible design, it also includes that the SDN controller receives the access change command sent by the management platform, the access change command carries the identification of the PXE network card of the target physical machine, and the access change command is completed by the management platform to the target Triggered when an operating system is installed on a physical machine. According to the access modification instruction, the SDN controller disconnects the network connection between the PXE network card specified by the identifier carried by the access modification instruction and the PXE network, and connects the PXE network card specified by the identifier carried by the access modification instruction to the service network. The embodiment of the present invention can realize the repeated utilization of the PXE network card, so as to save resources.

在一个可能的设计中,SDN控制器可以从交换机获取至少一个链路层发现协议LLDP信息,向管理平台转发至少一个LLDP信息,其中,每个LLDP信息携带一个物理机所具有的PXE网卡的标识和与该个物理机所具有的PXE网卡通信连接的交换机的端口的端口号,其中,每个所述LLDP信息由一个物理机生成并向与该个物理机所具有的PXE网卡通信连接的交换机上传。SDN控制器将接入指令携带的标识所指定的PXE网卡接入到PXE网络,具体为:SDN控制器将接入指令携带的标识所指定的PXE网卡所对应通信连接的交换机的端口接入PXE网络。通过本发明实施例可以实现通过PXE网络以及PXE网卡,为物理机安装操作系统,操作更便捷,用户体验更高。In a possible design, the SDN controller can obtain at least one link layer discovery protocol LLDP information from the switch, and forward at least one LLDP information to the management platform, wherein each LLDP information carries the identification of a PXE network card that a physical machine has and the port number of the port of the switch that is communicatively connected to the PXE network card that the physical machine has, wherein each of the LLDP information is generated by a physical machine and sent to the switch that is communicatively connected to the PXE network card that the physical machine has upload. The SDN controller connects the PXE network card specified by the identifier carried by the access instruction to the PXE network, specifically: the SDN controller connects the port of the communication-connected switch corresponding to the PXE network card specified by the identifier carried by the access instruction to the PXE The internet. Through the embodiment of the present invention, it is possible to install an operating system for a physical machine through a PXE network and a PXE network card, which makes the operation more convenient and the user experience is higher.

在一个可能的设计中,还包括:SDN控制器接收管理平台发送的释放命令,所述释放命令包括业务网卡的标识和/或PXE网卡的标识。SDN控制器根据业务网卡的标识和/或PXE网卡的标识查询对应的交换机信息、交换机的端口信息、以及网络分配的VLA。SDN控制器向所述交换机发送删除命令,所述删除命令包括业务网卡的标识和/或PXE网卡的标识对应的交换机的端口与网络分配的VLAN信息,该删除命令用于指示所述交换机删除业务网卡和/或PXE网卡与业务网络的连接。通过本发明实施例可以实现,物理机释放时自动把网卡从业务网络断开。In a possible design, it further includes: the SDN controller receives the release command sent by the management platform, where the release command includes the identifier of the service network card and/or the identifier of the PXE network card. The SDN controller queries the corresponding switch information, port information of the switch, and the VLA assigned by the network according to the identifier of the service network card and/or the identifier of the PXE network card. The SDN controller sends a delete command to the switch, the delete command includes the port of the switch corresponding to the identifier of the service network card and/or the PXE network card and the VLAN information assigned by the network, and the delete command is used to instruct the switch to delete the service The connection between the NIC and/or PXE NIC and the service network. Through the embodiment of the present invention, it can be realized that the network card is automatically disconnected from the service network when the physical machine is released.

在一个可能的设计中,还包括:在物理机接入交换机时,SDN控制器向所述物理机接入的交换机发送查询命令。SDN控制器接收物理机接入的交换机发送的物理机的信息,该物理机的信息包括PXE网卡的标识。SDN控制器向所述管理平台发送物理机的信息。通过本发明实施例可以实现对于物理机的信息的收集,为物理机的安装提供了条件。In a possible design, the method further includes: when the physical machine is connected to the switch, the SDN controller sends a query command to the switch connected to the physical machine. The SDN controller receives the information of the physical machine sent by the switch connected to the physical machine, where the information of the physical machine includes the identifier of the PXE network card. The SDN controller sends the information of the physical machine to the management platform. The embodiment of the present invention can realize the collection of information on the physical machine, which provides conditions for the installation of the physical machine.

又一方面,本申请的实施例提供了一种物理机管理方法。包括:交换机接收SDN控制器发送的端口号与VLAN配置信息,该端口与VLAN配置信息包括目标物理机的PXE网卡接入的端口以及PXE网络的标识。交换机根据端口号与VLAN配置信息,将PXE网卡接入所述PXE网络。通过本发明实施例可以实现对PXE网卡的连接,为物理机操作系统的安装提供了条件。In yet another aspect, the embodiments of the present application provide a physical machine management method. It includes: the switch receives the port number and VLAN configuration information sent by the SDN controller, and the port and VLAN configuration information includes the port connected by the PXE network card of the target physical machine and the identifier of the PXE network. The switch connects the PXE network card to the PXE network according to the port number and VLAN configuration information. Through the embodiment of the present invention, the connection to the PXE network card can be realized, which provides conditions for the installation of the physical machine operating system.

在一个可能的设计中,包括:交换机接收所述SDN控制器发送的删除命令包括业务网卡的标识和/或PXE网卡的标识对应接入的交换机的端口信息与网络分配的VLAN信息。交换机根据所述删除命令,删除业务网卡和/或PXE网卡与业务网络的连接。In a possible design, it includes: the switch receives the delete command sent by the SDN controller, including the port information of the switch connected to the service network card and/or the PXE network card corresponding to the PXE network card and VLAN information assigned by the network. The switch deletes the connection between the service network card and/or the PXE network card and the service network according to the delete command.

再一方面,本申请的实施例提供了一种物理机管理方法。包括:物理机与交换机建立连接。物理机通过LLDP协议向交换机发送物理机的信息,该物理机的信息包括PXE网卡的标识。通过本发明实施例可以实现对物理机信息的收集,进一步为物理机操作系统的安装提供了条件。In another aspect, the embodiments of the present application provide a physical machine management method. Including: establishing a connection between the physical machine and the switch. The physical machine sends information about the physical machine to the switch through the LLDP protocol, and the information about the physical machine includes the identifier of the PXE network card. The embodiment of the present invention can realize the collection of physical machine information, further providing conditions for the installation of the physical machine operating system.

再一方面,本申请的实施例提供了一种物理机管理方法。包括:物理机与交换机建立连接。交换机将物理机的网卡接入的端口号,交换机号等信息发送给物理机。物理机可以进行存储,还可以将上述信息以及物理机的信息发送给管理平台。In another aspect, the embodiments of the present application provide a physical machine management method. Including: establishing a connection between the physical machine and the switch. The switch sends information such as the port number connected to the network card of the physical machine and the switch number to the physical machine. The physical machine can store, and can also send the above information and the information of the physical machine to the management platform.

再一方面,本申请的实施例提供了一种物理机管理装置。包括:In yet another aspect, the embodiments of the present application provide an apparatus for managing a physical machine. include:

管理接口模块,用于接收操作系统安装指令。物理机管理和调度模块,用于根据所述操作系统安装指令确定一个或多个目标物理机,指示软件定义网络SDN控制器将与所述目标物理机对应的预启动执行环境PXE网卡接入到PXE网络中。PXE安装管理模块,用于基于所述PXE网络,通过所述目标物理机的PXE网卡对所述目标物理机进行操作系统的安装。The management interface module is configured to receive an operating system installation instruction. The physical machine management and scheduling module is used to determine one or more target physical machines according to the operating system installation instruction, and instructs the software-defined network SDN controller to connect the pre-boot execution environment PXE network card corresponding to the target physical machine to the In the PXE network. The PXE installation management module is configured to install an operating system on the target physical machine through the PXE network card of the target physical machine based on the PXE network.

在一个可能的设计中,所述物理机管理和调度模块还用于,获取至少一个物理机的信息,所述信息包括,所述至少一个物理机中每个物理机的规格参数、每个物理机具有的PXE网卡的标识。根据所述操作系统安装指令确定一个或多个目标物理机,指示SDN控制器将与所述目标物理机对应的PXE网卡接入到PXE网络中,具体包括:将所述操作系统安装指令携带的规则参数与所述管理平台获取的所述信息中的一个或多个物理机的规格参数匹配,匹配成功的物理机为目标物理机,从所述信息中获取所述目标物理机的PXE网卡的标识。所述装置还包括:网络管理模块,用于向SDN控制器下发接入指令,所述接入指令携带所述目标物理机的PXE网卡的标识,所述接入指令用于指示所述SDN控制器将所述接入指令携带的标识所指定的PXE网卡接入到PXE网络。In a possible design, the physical machine management and scheduling module is further configured to obtain information about at least one physical machine, where the information includes specification parameters of each physical machine in the at least one physical machine, and each physical machine The identifier of the PXE NIC on the machine. Determine one or more target physical machines according to the operating system installation instruction, and instruct the SDN controller to connect the PXE network card corresponding to the target physical machine to the PXE network, specifically including: carrying the operating system installation instruction The rule parameter is matched with the specification parameters of one or more physical machines in the information acquired by the management platform, the successfully matched physical machine is the target physical machine, and the PXE network card of the target physical machine is obtained from the information. logo. The device also includes: a network management module, configured to issue an access instruction to the SDN controller, the access instruction carrying the identifier of the PXE network card of the target physical machine, and the access instruction is used to indicate that the SDN The controller connects the PXE network card specified by the identifier carried in the access instruction to the PXE network.

在一个可能的设计中,所述网络管理模块还用于,接收所述SDN控制器上传的链路层发现协议LLDP信息,或者,从所述至少一个物理机获取各个物理机的所述LLDP信息,其中,每个所述LLDP信息携带一个物理机所具有的PXE网卡的标识和与该个物理机所具有的PXE网卡通信连接的交换机的端口的端口号。所述SDN控制器将所述接入指令携带的标识所指定的PXE网卡接入到PXE网络,具体为:所述SDN控制器将所述接入指令携带的标识所指定的PXE网卡所对应通信连接的交换机的端口接入PXE网络。In a possible design, the network management module is further configured to receive link layer discovery protocol LLDP information uploaded by the SDN controller, or obtain the LLDP information of each physical machine from the at least one physical machine , wherein each of the LLDP information carries the identifier of the PXE network card of a physical machine and the port number of the port of the switch that is communicatively connected to the PXE network card of the physical machine. The SDN controller connects the PXE network card specified by the identifier carried by the access instruction to the PXE network, specifically: the SDN controller communicates with the PXE network card corresponding to the identifier carried by the access instruction The port of the connected switch is connected to the PXE network.

在一个可能的设计中,所述物理机管理和调度模块还用于,对所述目标物理机完成操作系统的安装之后,指示所述SDN控制器断开所述目标物理机的PXE网卡与所述PXE网络的网络连接,指示所述SDN控制器将所述目标物理机的PXE网卡接入业务网络。In a possible design, the physical machine management and scheduling module is further configured to, after the operating system is installed on the target physical machine, instruct the SDN controller to disconnect the PXE network card of the target physical machine from the The network connection of the PXE network, instructing the SDN controller to connect the PXE network card of the target physical machine to the service network.

在一个可能的设计中,所述管理接口模块,还用于接收释放指令,所述释放指令包括一个或多个目标物理机的标识。所述物理机管理和调度模块还用于,根据所述释放指令,指示所述释放指令中的标识所指定的目标物理机释放操作系统。In a possible design, the management interface module is further configured to receive a release instruction, where the release instruction includes identifiers of one or more target physical machines. The physical machine management and scheduling module is further configured to, according to the release instruction, instruct the target physical machine specified by the identifier in the release instruction to release the operating system.

在一个可能的设计中,所述物理机管理和调度模块还用于,管理平台在接收到所述释放指令时,指示所述SDN控制器断开所述释放指令中的标识所指定的目标物理机所具有的PXE网卡的网络连接,需断开的网络连接包括:所述释放指令中的标识所指定的目标物理机所具有的PXE网卡与PXE网络的网络连接、所述释放指令中的标识所指定的目标物理机所具有的PXE网卡与业务网络的网络连接。In a possible design, the physical machine management and scheduling module is further configured to: when the management platform receives the release instruction, instruct the SDN controller to disconnect the target physical machine specified by the identifier in the release instruction. The network connection of the PXE network card that the machine has, the network connection that needs to be disconnected comprises: the network connection between the PXE network card and the PXE network of the target physical machine that the identification in the said release command specifies, and the identification in the said release command The network connection between the PXE network card of the specified target physical machine and the service network.

在一个可能的设计中,所述管理接口模块,还用于接收镜像选择指令,确定所述镜像选择指令所指定的操作系统镜像;对所述目标物理机进行操作系统的安装,具体为:使用确定的操作系统镜像对目标物理机进行操作系统的安装。In a possible design, the management interface module is further configured to receive an image selection instruction, determine the operating system image specified by the image selection instruction; install the operating system on the target physical machine, specifically: use The determined operating system image is used to install the operating system on the target physical machine.

再一方面,本申请的实施例提供了一种物理机管理装置。包括:接收模块,用于接收管理平台发送的接入命令,所述接入命令携带有所述目标物理机的PXE网卡的标识;处理模块,用于根据所述接入指令将所述接入指令携带的标识所指定的预启动执行环境PXE网卡接入到PXE网络,以便所述管理平台基于所述PXE网络,通过所述目标物理机的PXE网卡对所述目标物理机进行操作系统的安装。In yet another aspect, the embodiments of the present application provide an apparatus for managing a physical machine. Including: a receiving module, configured to receive an access command sent by a management platform, the access command carrying the identifier of the PXE network card of the target physical machine; a processing module, configured to convert the access command according to the access command The pre-boot execution environment PXE network card specified by the identifier carried by the instruction is connected to the PXE network, so that the management platform installs the operating system on the target physical machine through the PXE network card of the target physical machine based on the PXE network .

在一个可能的设计中,所述接收模块还用于,接收所述管理平台发送的接入更改指令,所述接入更改指令携带有所述目标物理机的PXE网卡的标识,所述接入更改指令由所述管理平台完成对所述目标物理机安装操作系统时触发。所述处理模块还用于,根据所述接入更改指令,断开所述接入更改指令携带的标识所指定的PXE网卡与所述PXE网络的网络连接,将所述接入更改指令携带的标识所指定的PXE网卡接入业务网络。In a possible design, the receiving module is further configured to receive an access change instruction sent by the management platform, the access change instruction carries the identifier of the PXE network card of the target physical machine, and the access The change instruction is triggered when the management platform finishes installing the operating system on the target physical machine. The processing module is further configured to, according to the access modification instruction, disconnect the network connection between the PXE network card specified by the identifier carried in the access modification instruction and the PXE network, and connect the PXE network card carried in the access modification instruction to Indicates that the specified PXE NIC is connected to the service network.

在一个可能的设计中,所述装置还包括发送模块,用于从交换机获取至少一个链路层发现协议LLDP信息,向所述管理平台转发所述至少一个LLDP信息,其中,每个所述LLDP信息携带一个物理机所具有的PXE网卡的标识和与该个物理机所具有的PXE网卡通信连接的交换机的端口的端口号,其中,每个所述LLDP信息由一个物理机生成并向与该个物理机所具有的PXE网卡通信连接的交换机上传。所述将所述接入指令携带的标识所指定的PXE网卡接入到PXE网络,具体为:将所述接入指令携带的标识所指定的PXE网卡所对应通信连接的交换机的端口接入PXE网络。In a possible design, the device further includes a sending module, configured to obtain at least one link layer discovery protocol LLDP information from the switch, and forward the at least one LLDP information to the management platform, wherein each of the LLDP The information carries the identification of the PXE network card that a physical machine has and the port number of the port of the switch that communicates with the PXE network card that the physical machine has, wherein each of the LLDP information is generated by a physical machine and sent to the The switch connected to the PXE network card of each physical machine is uploaded. The accessing the PXE network card specified by the identifier carried by the access instruction to the PXE network is specifically: connecting the port of the switch corresponding to the communication connection of the PXE network card specified by the identifier carried by the access instruction to the PXE network. The internet.

再一方面,本申请的实施例提供了一种管理平台。包括:处理器,存储器,收发器和总线;其中,处理器、存储器、和收发器通过总线通信;收发器,用于与软件定义网络SDN控制器进行交互,还用于通过业务网络或者预启动执行环境PXE网络与物理机交互;所述存储器用于存放程序;所述处理器用于执行所述存储器存储的所述程序,以执行上述管理平台的运行步骤。In another aspect, the embodiments of the present application provide a management platform. Including: processor, memory, transceiver and bus; wherein, the processor, memory, and transceiver communicate through the bus; the transceiver is used to interact with the software-defined network SDN controller, and is also used to pass the service network or pre-start The execution environment PXE network interacts with the physical machine; the memory is used to store programs; the processor is used to execute the programs stored in the memory to execute the above-mentioned operation steps of the management platform.

再一方面,本申请的实施例提供了一种SDN控制器。包括:处理器,存储器,收发器和总线;处理器、存储器、和收发器通过总线通信。收发器用于与物理机、交换机或者管理平台进行交互,还用于与网关和/或交换机交互来组建业务网络或者预启动执行环境PXE网络;存储器用于存放程序;处理器用于执行所述存储器存储的所述程序,以执行上述SDN控制器的运行步骤。In yet another aspect, the embodiments of the present application provide an SDN controller. Including: processor, memory, transceiver and bus; processor, memory, and transceiver communicate through the bus. The transceiver is used to interact with physical machines, switches or management platforms, and is also used to interact with gateways and/or switches to form business networks or pre-boot execution environment PXE networks; memory is used to store programs; processor is used to execute the memory storage The program to execute the operation steps of the above SDN controller.

再一方面,本发明实施例提供了一种存储介质,用于储存为上述管理平台所用的计算机软件指令,其包含用于执行上述方面所设计的程序。In another aspect, an embodiment of the present invention provides a storage medium for storing computer software instructions used by the above-mentioned management platform, which includes a program designed for executing the above-mentioned aspect.

再一方面,本发明实施例提供了一种存储介质,用于储存为上述SDN控制器所用的计算机软件指令,其包含用于执行上述方面所设计的程序。In another aspect, an embodiment of the present invention provides a storage medium for storing computer software instructions used by the above-mentioned SDN controller, which includes a program designed for executing the above-mentioned aspects.

再一方面,本发明实施例提供了一种存储介质,用于储存为上述交换机所用的计算机软件指令,其包含用于执行上述方面所设计的程序。In another aspect, an embodiment of the present invention provides a storage medium for storing computer software instructions used by the above-mentioned switch, which includes a program designed for executing the above-mentioned aspect.

通过本发明实施例,管理平台提前收集物理机的PXE网卡的标识,在需要对物理机安装操作系统时,管理平台指示SDN控制器根据提前收集的PXE网卡的标识将PXE网卡接入PXE网络中,继而管理平台可以通过PXE网络对物理机进行操作系统的安装,使得对于物理机操作系统的安装更便捷。Through the embodiment of the present invention, the management platform collects the identification of the PXE network card of the physical machine in advance, and when the operating system needs to be installed on the physical machine, the management platform instructs the SDN controller to connect the PXE network card to the PXE network according to the identification of the PXE network card collected in advance , and then the management platform can install the operating system on the physical machine through the PXE network, making the installation of the operating system on the physical machine more convenient.

附图说明Description of drawings

图1为本发明实施例提供的系统架构图;FIG. 1 is a system architecture diagram provided by an embodiment of the present invention;

图2为本发明实施例提供的一种物理机管理方法的流程图;FIG. 2 is a flowchart of a physical machine management method provided by an embodiment of the present invention;

图3为本发明实施例提供的一种物理机管理方法的示意图;FIG. 3 is a schematic diagram of a physical machine management method provided by an embodiment of the present invention;

图4为本发明实施例提供的另一种物理机管理方法的示意图;FIG. 4 is a schematic diagram of another physical machine management method provided by an embodiment of the present invention;

图5为本发明实施例提供的另一种物理机管理方法的流程图;FIG. 5 is a flow chart of another physical machine management method provided by an embodiment of the present invention;

图6为本发明实施例提供的再一种物理机管理方法的示意图;FIG. 6 is a schematic diagram of yet another physical machine management method provided by an embodiment of the present invention;

图7为本发明实施例提供的一种物理机管理装置的结构示意图;FIG. 7 is a schematic structural diagram of a physical machine management device provided by an embodiment of the present invention;

图8为本发明实施例提供的另一种物理机管理装置的结构示意图;FIG. 8 is a schematic structural diagram of another physical machine management device provided by an embodiment of the present invention;

图9为本发明实施例提供的再一种物理机管理装置的结构示意图;FIG. 9 is a schematic structural diagram of another physical machine management device provided by an embodiment of the present invention;

图10为本发明实施例提供的一种管理平台的硬件结构示意图;FIG. 10 is a schematic diagram of a hardware structure of a management platform provided by an embodiment of the present invention;

图11为本发明实施例提供的一种SDN控制器的硬件结构示意图;FIG. 11 is a schematic diagram of a hardware structure of an SDN controller provided by an embodiment of the present invention;

图12为本发明实施例提供的一种交换机的硬件结构示意图。FIG. 12 is a schematic diagram of a hardware structure of a switch provided by an embodiment of the present invention.

具体实施方式detailed description

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

为便于对本发明实施例的理解,下面将结合附图以具体实施例做进一步的解释说明,实施例并不构成对本发明实施例的限定。In order to facilitate the understanding of the embodiments of the present invention, further explanations will be given below with specific embodiments in conjunction with the accompanying drawings, which are not intended to limit the embodiments of the present invention.

本申请的发明人通过分析发现,管理平台可以提前收集物理机的PXE网卡的标识,在需要对物理机安装操作系统时,可以根据提前收集的PXE网卡的标识,将PXE网卡接入PXE网络中,管理平台可以通过PXE网络对物理机进行操作系统的安装。The inventor of the present application found through analysis that the management platform can collect the identification of the PXE network card of the physical machine in advance, and when the operating system needs to be installed on the physical machine, the PXE network card can be connected to the PXE network according to the identification of the PXE network card collected in advance , the management platform can install the operating system on the physical machine through the PXE network.

图1为本发明实施例提供的系统架构图。如图1所示,管理平台通过SDN控制器以及交换机控制物理机,实现为物理机安装操作系统。FIG. 1 is a system architecture diagram provided by an embodiment of the present invention. As shown in Figure 1, the management platform controls the physical machine through the SDN controller and the switch to install the operating system for the physical machine.

其中,管理平台:可以作为控制中心,提供物理机管理和调度模块、操作系统镜像管理模块、PXE安装管理模块,网络管理模块,管理接口模块,等等功能模块。Among them, the management platform: can be used as a control center to provide physical machine management and scheduling modules, operating system image management modules, PXE installation management modules, network management modules, management interface modules, and other functional modules.

其中,物理机管理和调度模块为管理平台的中心,可以接收管理接口模块发送的操作系统的安装指令或释放指令等等;还可以指示网络管理模块将为物理机将网卡加入到对应的网络,例如将物理机的PXE网卡加入到对应的PXE网络;还可以指示PXE安装管理模块通过PXE网络为物理机安装操作系统;等等。Among them, the physical machine management and scheduling module is the center of the management platform, which can receive the installation instruction or release instruction of the operating system sent by the management interface module; it can also instruct the network management module to add the network card to the corresponding network for the physical machine, For example, add the PXE network card of the physical machine to the corresponding PXE network; you can also instruct the PXE installation management module to install the operating system for the physical machine through the PXE network; and so on.

管理接口模块为交互接口,可以为用户提供操作接口,接收用户输入的操作系统的安装指令或释放指令等等,还可以将这些命令发送给物理机管理和调度模块。The management interface module is an interactive interface, which can provide the user with an operation interface, receive the installation instruction or release instruction of the operating system input by the user, and send these commands to the physical machine management and scheduling module.

镜像管理模块,存储有多种类型的操作系统的镜像,可以根据PXE安装管理模块的指示,选择该指示对应的操作系统的镜像,可以将选定的操作系统的镜像发送给PXE安装管理模块。The image management module stores images of various types of operating systems. According to the instruction of the PXE installation management module, the image of the corresponding operating system can be selected, and the image of the selected operating system can be sent to the PXE installation management module.

PXE安装管理模块,负责基于PXE网络为物理机安装操作系统,可以根据物理机管理和调度模块的指示,从镜像管理模块获取物理机操作系统的镜像,并安装在接入PXE网络的物理机上。The PXE installation management module is responsible for installing the operating system for the physical machine based on the PXE network. According to the instructions of the physical machine management and scheduling module, the image of the physical machine operating system can be obtained from the image management module and installed on the physical machine connected to the PXE network.

网络管理模块,负责网卡与网络的连接,可以根据物理机管理和调度模块的指示,指示SDN控制器将PXE网卡加入到PXE网络中,或者将业务网卡或者PXE网卡加入到业务网络中。也可以根据物理机管理和调度模块的指示,指示SDN控制器删除该指示对应的网卡与网络的连接。The network management module is responsible for the connection between the network card and the network. According to the instructions of the physical machine management and scheduling module, it can instruct the SDN controller to add the PXE network card to the PXE network, or add the service network card or PXE network card to the service network. It is also possible to instruct the SDN controller to delete the connection between the network card corresponding to the instruction and the network according to the instruction of the physical machine management and scheduling module.

SDN控制器:可以通过API(ApplicationProgrammingInterface,应用程序编程接口)接收管理平台中网络管理模块的指令,根据指令控制网关交换机、接入交换机设备,例如,可以根据网络管理模块的指令,控制网关交换机或接入交换机设备,建立或删除网卡与网络的连接。SDN controller: It can receive instructions from the network management module in the management platform through API (Application Programming Interface), and control gateway switches and access switch devices according to the instructions. For example, it can control gateway switches or Access the switch device, establish or delete the connection between the network card and the network.

交换机:可以为物理机提供网卡的接入和网关交换路由等功能。可接收SDN控制器指令做相应配置。其中交换机可以包括接入交换机以及网关交换机。接入交换机可以与物理机连接,网关交换机或者SDN控制器可以通过接入交换机与物理机连接。管理平台的PXE安装管理模块可以通过接入交换机为物理机安装操作系统。应该知道的是,上述交换机的类型仅为举例,为了适应不同的任务,交换机的类型以及个数,可以有多个。Switch: It can provide functions such as network card access and gateway switching routing for physical machines. It can receive SDN controller instructions for corresponding configuration. The switches may include access switches and gateway switches. The access switch can be connected to the physical machine, and the gateway switch or SDN controller can be connected to the physical machine through the access switch. The PXE installation management module of the management platform can install the operating system for the physical machine through the access switch. It should be known that the above types of switches are only examples, and in order to adapt to different tasks, there may be multiple types and numbers of switches.

物理机:可以支持IPMI协议,具有PXE网卡,可从网络启动。其中,物理机可以有多台。其中,PXE网卡可以是物理机操作系统镜像数据流的加载网卡。物理机操作系统镜像保存在管理平台中,物理机发放时,管理平台将PXE网卡先加入到PXE网络,管理平台基于PXE网络并通过PXE网卡将操作系统的镜像加载到物理机的本地硬盘中。操作系统安装完成后,管理平台可以将物理机的PXE网卡从PXE网络中断开,再将物理机的网卡(该网卡可以是PXE网卡或者其他类型的网卡)加入到业务网络,其中,业务网络是物理机发放后所使用的网络。一般情况下,业务网络与PXE网络VLAN不同,是隔离的网络。Physical machine: It can support the IPMI protocol, has a PXE network card, and can be booted from the network. Wherein, there may be multiple physical machines. Wherein, the PXE network card may be a loading network card of the operating system image data stream of the physical machine. The operating system image of the physical machine is stored on the management platform. When the physical machine is released, the management platform first adds the PXE network card to the PXE network. The management platform is based on the PXE network and loads the image of the operating system to the local hard disk of the physical machine through the PXE network card. After the operating system is installed, the management platform can disconnect the PXE network card of the physical machine from the PXE network, and then add the network card of the physical machine (the network card can be a PXE network card or other types of network cards) to the service network. Among them, the service network It is the network used by the physical machine after provisioning. Generally, the service network is an isolated network, which is different from the PXE network VLAN.

下面结合具体实例以及附图对本发明进行详细的介绍。The present invention will be described in detail below in conjunction with specific examples and accompanying drawings.

图2为本发明实施例提供的一种物理机管理方法的流程图。如图2所示,所述方法具体包括:FIG. 2 is a flowchart of a physical machine management method provided by an embodiment of the present invention. As shown in Figure 2, the method specifically includes:

210、预先获取一个或多个物理机的信息。其中,该一个或多个物理机的信息包括PXE网卡的标识等信息。210. Acquire information about one or more physical machines in advance. Wherein, the information of the one or more physical machines includes information such as identification of the PXE network card.

其中,物理机的信息可以包括下述任意一项或多项:PXE网卡的标识、业务网卡的标识、物理机的规格参数、物理机的标识。其中,PXE网卡的标识可以是PXE网卡的MAC地址.业务网卡的标识可以是业务网卡的MAC地址;业务网卡是指用于接入业务网络的网卡,可见,业务网卡可以包括PXE网卡。其中,网卡的MAC地址具有物理唯一性,并且不会改变,可以通过网卡的MAC地址作为标识;物理机的规格参数可以是,物理机的中央处理器(CentralProcessingUnit,简称CPU)型号、内存的大小硬盘的型号大小等等参数信息;物理机的标识能够唯一标识物理机。Wherein, the information of the physical machine may include any one or more of the following: PXE network card identification, service network card identification, physical machine specification parameters, and physical machine identification. Wherein, the identification of the PXE network card can be the MAC address of the PXE network card. The identification of the service network card can be the MAC address of the service network card; the service network card refers to the network card used to access the service network. It can be seen that the service network card can include the PXE network card. Among them, the MAC address of the network card is physically unique and will not change, and can be identified by the MAC address of the network card; the specification parameters of the physical machine can be, the central processing unit (Central Processing Unit, referred to as CPU) model of the physical machine, the size of the memory Parameter information such as the model size of the hard disk; the identifier of the physical machine can uniquely identify the physical machine.

下面对物理机的信息的获取方式,进行详细的介绍。The method for obtaining the information of the physical machine is described in detail below.

在物理机中,可以预先安装一个简单的操作系统,该操作系统可以控制物理机启动或重启,支持输入输出操作,例如,该简单的操作系统可以在物理机接入交换机时,通过该交换机将该物理机的信息发送给管理平台。其中,该简单的操作系统可以是定制或经过裁减的计算机操作系统,例如,定制或经过裁减的LINUX系统。In the physical machine, a simple operating system can be pre-installed, which can control the physical machine to start or restart, and support input and output operations. For example, when the physical machine is connected to the switch, the simple operating system can connect the The information of the physical machine is sent to the management platform. Wherein, the simple operating system may be a customized or tailored computer operating system, for example, a customized or tailored LINUX system.

在物理机安装了上述简单的操作系统后,物理机在接收到管理平台或交换机发送的命令后,可以获取物理机的信息发送给交换机或者管理平台。下面做进一步的介绍。After the above-mentioned simple operating system is installed on the physical machine, after receiving the command sent by the management platform or the switch, the physical machine can obtain the information of the physical machine and send it to the switch or the management platform. Let's make a further introduction below.

对于物理机的网卡的MAC地址,以及网卡接入的交换机的端口等的信息:For the MAC address of the network card of the physical machine, and the port of the switch connected to the network card:

在物理机接入交换机后,交换机可以通过LLDP协议,获取物理机的PXE网卡的MAC地址,或者业务网卡的MAC地址等的信息,交换机接收到物理机发送的LLDP消息后,进行存储,其中该LLDP消息包括物理机的PXE网卡的MAC地址,或者业务网卡的MAC地址等的信息。After the physical machine is connected to the switch, the switch can obtain information such as the MAC address of the PXE network card of the physical machine or the MAC address of the service network card through the LLDP protocol. After receiving the LLDP message sent by the physical machine, the switch stores it. The LLDP message includes information such as the MAC address of the PXE network card of the physical machine or the MAC address of the service network card.

SDN控制器可以向交换机查询物理机的网卡的MAC地址以及其对应接入的交换机的端口的信息,并进行存储,例如控制器查询交换机存储的LLDP信息,其中,该LLDP信息可以包括物理机的网卡的MAC地址以及与该网卡连接的交换机的端口号。SDN控制器可以根据LLDP信息生成物理拓扑,并记录LLDP信息。其中,SDN控制器可以以设定的周期进行查询,或者,交换机也可以在接收到物理机的上传的LLDP信息后,直接将LLDP信息发送给SDN控制器,SDN控制器可以在接收到物理机的网卡的MAC地址以及其对应接入的交换机的端口的信息后进行存储。The SDN controller can query the switch for the MAC address of the network card of the physical machine and the information of the port of the switch it is connected to, and store them. For example, the controller queries the LLDP information stored by the switch, where the LLDP information can include the physical machine. The MAC address of the network card and the port number of the switch connected to the network card. The SDN controller can generate a physical topology based on LLDP information and record LLDP information. Among them, the SDN controller can query at a set period, or the switch can also directly send the LLDP information to the SDN controller after receiving the LLDP information uploaded by the physical machine, and the SDN controller can receive the physical machine Store the MAC address of the network card and the port information of the corresponding connected switch.

SDN控制器可以把物理机的网卡的MAC地址以及其对应接入的交换机的端口的信息发送给管理平台,例如,可以将从交换机获取的LLDP信息通知管理平台的网络管理模块,管理平台分别记录各个物理机的信息,例如,分别记录每个物理机具有的各网卡的MAC地址。SDN控制器还可以在接收到管理平台发送的物理机的信息获取请求后,再将物理机的信息发送给管理平台。The SDN controller can send the MAC address of the network card of the physical machine and the port information of the switch it is connected to to the management platform. For example, it can notify the network management module of the management platform of the LLDP information obtained from the switch, and the management platform records the The information of each physical machine, for example, respectively records the MAC addresses of the network cards of each physical machine. The SDN controller may also send the information of the physical machine to the management platform after receiving the information acquisition request of the physical machine sent by the management platform.

在另一种实现方式下,物理机在接入交换机时,交换机可以将物理机的PXE网卡接入的交换机的交换机号,以及接入的该交换机的端口的端口号,或者,物理机的业务网卡或者PXE网卡接入的交换机的交换机号,以及接入的该交换机的端口的端口号发送给物理机,物理机可以存储这些信息,例如,存储在LLDP信息中。管理平台可以从接入的物理机中获取各个物理机存储的物理机的网卡的MAC地址以及其对应接入的交换机的端口的信息,例如,管理平台可以通过LLDP协议向物理机发送请求,该请求用于获取该物理机的网卡的MAC地址以及其对应接入的交换机的端口的信息,物理机接收到该请求后,将物理机的网卡的MAC地址以及其对应接入的交换机的端口的信息发送给管理平台,例如,携带在LLDP信息中发送给管理平台。应该知道的是,管理平台与物理机可以通过接入交换机连接。In another implementation, when the physical machine is connected to the switch, the switch can use the switch number of the switch to which the PXE network card of the physical machine is connected, and the port number of the port of the switch that is connected, or the service number of the physical machine The switch number of the switch connected to the network card or the PXE network card, and the port number of the port connected to the switch are sent to the physical machine, and the physical machine can store these information, for example, in LLDP information. The management platform can obtain the MAC address of the network card of the physical machine stored in each physical machine and the port information of the corresponding connected switch from the connected physical machine. For example, the management platform can send a request to the physical machine through the LLDP protocol. The request is used to obtain the MAC address of the network card of the physical machine and the information of the port of the switch that is connected to it. After receiving the request, the physical machine sends the MAC address of the network card of the physical machine and the port of the switch that is The information is sent to the management platform, for example, carried in LLDP information and sent to the management platform. It should be known that the management platform and the physical machine can be connected through an access switch.

对于物理机的规格参数、或者物理机的标识等物理机的信息:For physical machine specifications, or physical machine identifiers, and other physical machine information:

在物理机的安装了简单的操作系统后,管理平台可以向物理机发送物理机的获取指令,物理机在接收到该获取指令后,将物理机的规格参数、或者物理机的标识等的信息发送给管理平台。After a simple operating system is installed on the physical machine, the management platform can send an acquisition command of the physical machine to the physical machine. sent to the management platform.

需要说明的是,物理机的规格参数、或者物理机的标识等物理机的信息的获取方式仅为举例,其他能够实现物理机的信息的获取的方式都在本发明实施例中。It should be noted that the method of obtaining information of the physical machine such as the specification parameter of the physical machine or the identifier of the physical machine is only an example, and other methods capable of obtaining information of the physical machine are included in the embodiments of the present invention.

220、接收操作系统安装指令。其中,该操作系统安装指令可以包括目标物理机的信息,操作系统的类型,业务网络信息,等等。220. Receive an operating system installation instruction. Wherein, the operating system installation instruction may include target physical machine information, operating system type, service network information, and so on.

管理平台可以将预先获取的物理机的信息,操作系统的类型信息,网络类型等信息通过管理接口模块呈现给用户或管理员,以便用户或管理员根据物理机的信息选择目标物理。其中,操作系统的类型信息以及网络类型等信息也可以是管理平台预先收集的。The management platform can present the pre-acquired physical machine information, operating system type information, network type and other information to the user or administrator through the management interface module, so that the user or administrator can select the target physical machine according to the information of the physical machine. Wherein, information such as type information of the operating system and network type may also be pre-collected by the management platform.

管理平台可以通过管理接口模块接收操作系统安装指令,例如,管理接口模块可以提供如下选择:操作系统是Windows7、XP、还是Linux等;物理机的CPU型号、内存的大小硬盘的型号大小等等;选择对业务网络的网络速度、网络类型(VLAN、VxLAN、其他物理网络或虚拟网络等)等参数的要求。其中,该操作系统安装指令可以携带用户通过管理接口模块选择的操作系统类型、物理机的规格参数、网络类型等的信息。The management platform can receive operating system installation instructions through the management interface module. For example, the management interface module can provide the following options: whether the operating system is Windows7, XP, or Linux, etc.; the CPU model of the physical machine, the size of the internal memory, the model size of the hard disk, etc.; Select the requirements for parameters such as network speed and network type (VLAN, VxLAN, other physical or virtual networks, etc.) of the business network. Wherein, the operating system installation instruction may carry information such as the operating system type selected by the user through the management interface module, the specification parameters of the physical machine, and the network type.

其中,PXE网络一般为固定使用的网络,不需要进行选择,也就是说,管理接口模块可以不提供PXE网络的选择,管理平台默认在为物理机安装操作系统时,将物理机的网卡接入到PXE网络中。Among them, the PXE network is generally a fixed-use network and does not need to be selected. That is to say, the management interface module may not provide the selection of the PXE network. The management platform defaults to connecting the network card of the physical machine to the into the PXE network.

230、根据操作系统安装指令以及预先收集的一个或多个物理机的信息选择目标物理机。指示SDN控制器将与物理机对应的PXE网卡接入到PXE网络中。230. Select a target physical machine according to the operating system installation instruction and the pre-collected information of one or more physical machines. Instruct the SDN controller to connect the PXE NIC corresponding to the physical machine to the PXE network.

其中,根据操作系统安装指令中携带的信息,选择一个符合要求的物理机。例如,管理平台可以将操作系统安装指令携带的规则参数与管理平台获取的物理机的信息中的一个或多个物理机的规格参数匹配,匹配成功的物理机为目标物理机。Wherein, according to the information carried in the operating system installation instruction, a physical machine that meets the requirements is selected. For example, the management platform can match the rule parameters carried in the operating system installation instruction with the specification parameters of one or more physical machines in the physical machine information obtained by the management platform, and the matched physical machine is the target physical machine.

当操作系统安装指令中未携带信息时,可以随机分配一个物理机作为目标物理机,换句话说,当管理接口模块未提供物理机的信息的选项,或者用户并未进行选择时,管理接口模块只接收到一个物理机发放请求时,可以随机分配一个物理机作为目标物理机。When no information is carried in the operating system installation instruction, a physical machine can be randomly assigned as the target physical machine. When only one physical machine provisioning request is received, a physical machine may be randomly allocated as the target physical machine.

管理平台选定目标物理机后,还可以获取该目标物理机的信息中的PXE网卡的标识。After the management platform selects the target physical machine, it can also obtain the identifier of the PXE network card in the information of the target physical machine.

管理平台可以向SDN控制器发送接入命令,该接入命令可以携带选定的物理机的PXE网卡的标识,以及PXE网络的标识,该接入命令用于指示SDN控制器,将目标物理机的PXE网卡接入PXE网络中。例如,管理平台可以通过网络管理模块调用SDN控制接口,通过SDN控制接口将接入命令发送给SDN控制器。The management platform can send an access command to the SDN controller. The access command can carry the identifier of the PXE network card of the selected physical machine and the identifier of the PXE network. The access command is used to instruct the SDN controller to connect the target physical machine The PXE NIC connected to the PXE network. For example, the management platform can call the SDN control interface through the network management module, and send the access command to the SDN controller through the SDN control interface.

SDN控制器接收到管理平台发送的接入命令后,可以根据命令中携带的PXE网卡的标识查询到对应的交换机、交换机的端口、以及PXE网络分配的网络信息,例如,VLAN号、VxLAN号、其他物理网络或虚拟网络号等。SDN控制器向交换机发送接入命令,可以将上述信息生成端口以及网络配置信息携带在接入命令上发送给交换机,该接入命令用于指示交换机将目标物理机的PXE网卡接入PXE网络中,具体地,将目标物理机的PXE网卡接入的交换机的端口,接入PXE网络。After receiving the access command sent by the management platform, the SDN controller can query the corresponding switch, the port of the switch, and the network information allocated by the PXE network according to the identifier of the PXE network card carried in the command, such as VLAN number, VxLAN number, Other physical or virtual network numbers, etc. The SDN controller sends an access command to the switch, and the above-mentioned information generation port and network configuration information can be carried on the access command and sent to the switch. The access command is used to instruct the switch to connect the PXE network card of the target physical machine to the PXE network , specifically, connect the port of the switch to which the PXE network card of the target physical machine is connected to the PXE network.

交换机接收到SDN控制器发送的接入命令后,根据该接入命令中携带的内容,进行配置,将PXE网卡接入到PXE网络中,具体地,交换机可以根据SDN控制器发送的接入命令中携带的内容,将目标物理机的PXE网卡对应通信连接的端口接入PXE网络。After receiving the access command sent by the SDN controller, the switch performs configuration according to the content carried in the access command, and connects the PXE network card to the PXE network. Specifically, the switch can Connect the port corresponding to the communication connection of the PXE network card of the target physical machine to the PXE network.

240、基于PXE网络,通过目标物理机的PXE网卡对目标物理机进行操作系统的安装。240. Based on the PXE network, the operating system is installed on the target physical machine through the PXE network card of the target physical machine.

管理平台可以根据通过管理接口模块接收的操作系统安装指令中携带的操作系统类型选择对应类型的操作系统的镜像,通过PXE网络对物理机进行启动,并使用该镜像安装操作系统。例如,管理平台可以通过镜像管理模块,选择对应的物理机操作系统的镜像,此安装过程可以由管理平台中的PXE安装管理模块进行控制执行。The management platform can select the image of the corresponding type of operating system according to the type of operating system carried in the operating system installation instruction received through the management interface module, start the physical machine through the PXE network, and use the image to install the operating system. For example, the management platform can select the image of the corresponding physical machine operating system through the image management module, and the installation process can be controlled and executed by the PXE installation management module in the management platform.

250、在对目标物理机完成操作系统的安装后,指示SDN控制器断开目标物理机的PXE网卡与PXE网络的网络连接。250. After completing the installation of the operating system on the target physical machine, instruct the SDN controller to disconnect the network connection between the PXE network card of the target physical machine and the PXE network.

管理平台在为物理机的操作系统安装完成后可以释放PXE网卡占用的资源。After the management platform installs the operating system of the physical machine, it can release the resources occupied by the PXE network card.

在具体实现时,在操作系统安装完成后,管理平台可以将目标物理机的PXE网卡的标识发送给SDN控制器。In specific implementation, after the operating system is installed, the management platform can send the identification of the PXE network card of the target physical machine to the SDN controller.

SDN控制器接收到管理平台发送的目标物理机的PXE网卡的标识后,确定目标物理机的PXE网卡对应接入的交换机、交换机的端口、以及PXE网络为该PXE网卡分配的网络信息等。SDN控制器将目标物理机的PXE网卡对应的PXE网络分配的网络信息、交换机的端口以及PXE网卡的标识发送给对应的交换机。After the SDN controller receives the identification of the PXE network card of the target physical machine sent by the management platform, it determines the switch that the PXE network card of the target physical machine is connected to, the port of the switch, and the network information allocated by the PXE network for the PXE network card. The SDN controller sends the network information assigned by the PXE network corresponding to the PXE network card of the target physical machine, the port of the switch, and the identifier of the PXE network card to the corresponding switch.

交换机在接收到上述SDN控制器发送的信息后删除目标物理机的PXE网卡与PXE网络的连接,具体地,交换机删除目标物理机的PXE网卡接入的端口与PXE网络的连接。After receiving the information sent by the SDN controller, the switch deletes the connection between the PXE network card of the target physical machine and the PXE network. Specifically, the switch deletes the connection between the port connected to the PXE network card of the target physical machine and the PXE network.

260、指示SDN控制器将业务网卡接入业务网络。其中,业务网卡可以包括业务网卡和/或PXE网卡。260. Instruct the SDN controller to connect the service network card to the service network. Wherein, the service network card may include a service network card and/or a PXE network card.

其中该过程与将PXE网卡接入PXE网络的过程类似,可参照理解。The process is similar to the process of connecting a PXE network card to a PXE network, which can be understood by referring to it.

需要说明的是,通过步骤260将PXE网卡释放后,还可以将PXE网卡作为业务网卡使用;也就是说,管理平台在利用PXE网卡对目标物理机安装完操作系统后,可以将该PXE网卡断开与PXE网络的连接,并将该PXE网卡接入业务网路中。It should be noted that after the PXE network card is released through step 260, the PXE network card can also be used as a business network card; Open the connection to the PXE network, and connect the PXE network card to the service network.

另外,在管理平台将业务网卡(可以是PXE网卡)接入业务网络时,业务网络可以有多种,管理平台可以根据通过管理接口模块接收的操作系统安装指令中携带的业务网络的类型信息,选择对应类型的业务网络,管理平台指示SDN控制器,将目标物理机的业务网卡接入上述选定的业务网络中。。In addition, when the management platform connects the service network card (which may be a PXE network card) to the service network, there may be multiple service networks, and the management platform may, according to the type information of the service network carried in the operating system installation instruction received by the management interface module, Select the corresponding type of service network, and the management platform instructs the SDN controller to connect the service network card of the target physical machine to the above-mentioned selected service network. .

下面,结合具体的数据的处理流程,对本发明实施例进行详细的介绍。In the following, the embodiment of the present invention will be described in detail in conjunction with a specific data processing flow.

如图3所示,图3为物理机拓扑发现的过程,也就是管理平台获取一个或多个物理机的信息的过程。As shown in FIG. 3 , FIG. 3 is a process of discovering the topology of a physical machine, that is, a process in which the management platform acquires information of one or more physical machines.

301,可以在一个或多个物理机中先预安装简单的操作系统,该简单的操作系统与图2所示的实施例中步骤210中的相关描述类似,可相互参照理解,在将物理机接入交换机后,预先安装的简单的操作系统可以将一个或多个中每个物理机的PXE网卡的MAC地址、物理机的业务网卡的MAC地址等等通过LLDP协议报文通知给接入的交换机。一个或多个交换机分别接收与其连接的一个或多个物理机发送的LLDP报文后,每个交换机各自分别记录与其连接的各个物理机的PXE网卡的MAC地址、业务网卡的MAC地址等等。301. A simple operating system may be pre-installed on one or more physical machines. The simple operating system is similar to the related description in step 210 in the embodiment shown in FIG. After accessing the switch, the pre-installed simple operating system can notify the MAC address of the PXE network card of each physical machine, the MAC address of the service network card of the physical machine, etc. to the connected network through the LLDP protocol message. switch. After one or more switches respectively receive the LLDP packets sent by one or more physical machines connected to it, each switch records the MAC address of the PXE network card and the MAC address of the service network card of each physical machine connected to it.

302,SDN控制器向交换机查询LLDP信息,SDN根据从交换机中获取的LLDP信息生成物理拓扑,并记录LLDP信息。302. The SDN controller queries the switch for LLDP information, and the SDN generates a physical topology according to the LLDP information obtained from the switch, and records the LLDP information.

303,SDN控制器把从交换机查询到的LLDP信息通知管理平台的网络管理模块,管理平台分别一个或多个记录物理机的PXE网卡的MAC地址、业务网卡的MAC地址等等。管理平台还可以获取物理机的规格参数、物理机的标识等的信息,如图2所示的实施例中步骤210中的相关描述。在物理机发放时管理平台可以通过管理接口模块将物理机的规格参数以及物理机的标识等信息呈现给用户或管理员,以便用户或管理员根据呈现的上述信息选择目标物理机。303. The SDN controller notifies the network management module of the management platform of the LLDP information queried from the switch, and the management platform records one or more MAC addresses of the PXE network card of the physical machine, the MAC address of the service network card, and the like. The management platform may also acquire information such as specification parameters of the physical machine, physical machine identifiers, etc., as described in step 210 in the embodiment shown in FIG. 2 . When the physical machine is released, the management platform can present information such as the specification parameters of the physical machine and the identification of the physical machine to the user or administrator through the management interface module, so that the user or administrator can select the target physical machine according to the presented information.

如图4所示,图4为物理机发放的过程,也就是为选定的目标物理机安装操作系统的过程,其中管理平台可以包括管理portal模块(管理接口模块),物理机管理和调度模块,网络管理模块,PXE安装管理模块,镜像管理模块等,具体物理机操作系统的安装过程可以如下所示。As shown in Figure 4, Figure 4 is the process of issuing physical machines, that is, the process of installing an operating system for a selected target physical machine, wherein the management platform can include a management portal module (management interface module), a physical machine management and scheduling module , network management module, PXE installation management module, image management module, etc., the installation process of the specific physical machine operating system can be shown as follows.

401,管理portal模块接收操作系统安装指令,通知物理机管理和调度模块发放物理机,该操作系统安装指令可以携带物理机规格参数、操作系统类型、业务网络的信息(因为PXE网络为固定使用的网络,不需要用户选择)。401, the management portal module receives the operating system installation instruction, and notifies the physical machine management and scheduling module to release the physical machine. The operating system installation instruction can carry the physical machine specification parameters, operating system type, and business network information (because the PXE network is used for fixed network, no user selection is required).

402,物理机管理和调度模块根据操作系统安装指令中携带的物理机规格参数在管理平台预先获取的物理机资源中匹配目标物理机。402. The physical machine management and scheduling module matches the target physical machine among the physical machine resources pre-acquired by the management platform according to the physical machine specification parameters carried in the operating system installation instruction.

403,物理机管理和调度模块可以向网络管理模块发送携带有目标物理机的PXE网卡的MAC地址、PXE网络的标识的命令,指示网络管理模块将PXE网卡加入PXE网络。403. The physical machine management and scheduling module may send a command carrying the MAC address of the PXE network card of the target physical machine and the identifier of the PXE network to the network management module, instructing the network management module to add the PXE network card to the PXE network.

404,网络管理模块可以向SDN控制器发送携带有目标物理机的PXE网卡MAC地址、PXE网络标识的命令,指示SDN控制器将目标物理机的PXE网卡接入PXE网络。404. The network management module may send a command carrying the MAC address of the PXE network card of the target physical machine and the PXE network identifier to the SDN controller, instructing the SDN controller to connect the PXE network card of the target physical machine to the PXE network.

405,SDN控制器接收到管理平台的网络管理模块发送的携带有目标物理机的PXE网卡MAC地址、PXE网络标识的命令后,根据目标物理机的PXE网卡MAC地址查询该PXE网卡接入的交换机、该交换机的端口和PXE网络为该端口分配的PXE网络配置信息,SDN控制器向目标物理机的PXE网卡接入的交换机下发目标物理机的PXE网卡接入的端口与PXE网络配置信息,以指示交换机将目标物理机的PXE网卡接入该交换机的端口,实现将PXE网卡接入到PXE网络中。405. After the SDN controller receives the command carrying the MAC address of the PXE network card of the target physical machine and the PXE network identifier sent by the network management module of the management platform, it queries the switch connected to the PXE network card according to the MAC address of the PXE network card of the target physical machine. , the port of the switch and the PXE network configuration information assigned to the port by the PXE network, the SDN controller sends the port and the PXE network configuration information of the PXE network card access of the target physical machine to the switch connected to the PXE network card of the target physical machine, Instruct the switch to connect the PXE network card of the target physical machine to the port of the switch, so as to connect the PXE network card to the PXE network.

406,物理机管理和调度模块指示PXE安装管理模块接口启动安装操作系统,为目标物理机安装操作系统,其中该指示中携带有管理portal模块接收的操作系统安装指令中携带的操作系统的类型。406, the physical machine management and scheduling module instructs the PXE installation management module interface to start installing the operating system, and install the operating system for the target physical machine, wherein the instruction carries the type of the operating system carried in the operating system installation instruction received by the management portal module.

407,PXE安装管理模块根据物理机管理和调度模块的指示中携带的操作系统的类型,到镜像管理模块中获取操作系统镜像,基于PXE网络将选定的操作系统镜传输给目标物理机,通过PXE网卡重启目标物理机,并为目标物理机安装操作系统。407, the PXE installation management module obtains the operating system image from the image management module according to the type of the operating system carried in the instruction of the physical machine management and scheduling module, and transmits the selected operating system image to the target physical machine based on the PXE network, through The PXE network card restarts the target physical machine and installs the operating system for the target physical machine.

另外,在目标物理机操作系统安装完成后,管理平台可以把PXE网卡从PXE网络中断开。In addition, after the operating system of the target physical machine is installed, the management platform can disconnect the PXE network card from the PXE network.

管理平台可以把业务网卡加入到业务网络(其中,业务网卡可以包括PXE网卡)。The management platform can add the service network card to the service network (the service network card can include a PXE network card).

在本发明实施例的具体实施过程中,物理机可能会被分配给不同的用户,且在一定的条件下,例如,用户或管理员触发释放物理机时,管理平台可以对该物理机进行释放,例如,管理平台接收到用过户输入的释放请求时,可以将该物理机释放。下面将结合具体实例以及附图5对物理机释放的过程进行详细的介绍。In the specific implementation process of the embodiment of the present invention, the physical machine may be assigned to different users, and under certain conditions, for example, when the user or administrator triggers the release of the physical machine, the management platform can release the physical machine , for example, the management platform may release the physical machine when it receives the release request input by user transfer. The process of releasing the physical machine will be described in detail below with reference to specific examples and FIG. 5 .

图5为本发明实施例提供的另一种物理机管理方法的流程图。如图5所示,该方法具体包括:FIG. 5 is a flowchart of another physical machine management method provided by an embodiment of the present invention. As shown in Figure 5, the method specifically includes:

510、管理平台接收释放指令。其中,该释放指令可以包括一个或多个物理机的标识。510. The management platform receives the release instruction. Wherein, the release instruction may include identifiers of one or more physical machines.

管理平台可以通过交互接口接收释放指令。例如,管理平台可以通过管理平台portal接收。The management platform can receive the release instruction through the interactive interface. For example, the management platform can be received through the management platform portal.

520、管理平台释放该释放指令携带的物理机的标识所指定的操作系统。520. The management platform releases the operating system specified by the identifier of the physical machine carried in the release command.

管理平台可以通过PXE安装管理模块清除物理机的信息。例如,可以对物理机重新安装一个简单的操作系统,其中,该简单的操作系统可以如图2所示的实施例中步骤210中的相关描述类似,可以相互参照理解,重新安装过程中原来的操作系统就清除了,具体地,可以通过PXE网卡重新安装操作系统,例如,管理平台可以根据释放请求,从预先获取的物理机的信息中,确定出释放请求对应的一个或多个目标物理机的信息,获取一个或多个目标物理机信息中的PXE网卡的标识,管理平台将释放请求对应的一个或多个PXE网卡接入PXE网络中,基于PXE网络通过PXE网卡对一个或多个物理机重新安装一个简单的操作系统,其中,将PXE网卡接入PXE网络以及基于PXE网络通过PXE网卡对一个或多个物理机进行操作系统的安装与图2所示的步骤230以及步骤240中的相关描述类似,可相互参照理解。其中,在对一个或多个物理机重新安装一个简单的操作系统后,可以删除该一个或多个物理机对应的PXE网卡与PXE网络的连接,对PXE网卡与PXE网络的连接删除的过程与图2所示的步骤250的相关描述类似,可参照理解。另外,若存在释放请求对应的一个或多个PXE网卡与PXE网络的连接,则可以直接为一个或多个物理机重新安装一个简单的操作系统(例如,在发放物理机时,并未删除PXE网卡与PXE网络的连接,在释放物理机时,可以直接利用该PXE网卡与PXE网络的连接,为该物理机重新安装操作系统)。The management platform can install the management module through PXE to clear the information of the physical machine. For example, a simple operating system can be reinstalled on the physical machine, where the simple operating system can be similar to the related description in step 210 in the embodiment shown in FIG. The operating system is cleared. Specifically, the operating system can be reinstalled through the PXE network card. For example, the management platform can determine one or more target physical machines corresponding to the release request from the pre-acquired physical machine information according to the release request. information, obtain the identification of the PXE network card in the information of one or more target physical machines, and the management platform will release one or more PXE network cards corresponding to the request to access the PXE network, based on the PXE network through the PXE network card to one or more physical A simple operating system is reinstalled on the computer, wherein, connecting the PXE network card to the PXE network and installing the operating system on one or more physical machines through the PXE network card based on the PXE network is the same as step 230 shown in Figure 2 and step 240. Related descriptions are similar and can be understood by referring to each other. Among them, after reinstalling a simple operating system on one or more physical machines, the connection between the PXE network card and the PXE network corresponding to the one or more physical machines can be deleted, and the process of deleting the connection between the PXE network card and the PXE network is the same as The relevant description of step 250 shown in FIG. 2 is similar and may be understood by referring to it. In addition, if there is a connection between one or more PXE network cards corresponding to the release request and the PXE network, a simple operating system can be directly reinstalled for one or more physical machines (for example, when the physical machine is issued, the PXE network card is not deleted). The connection between the network card and the PXE network, when releasing the physical machine, can directly utilize the connection between the PXE network card and the PXE network to reinstall the operating system for the physical machine).

530、管理平台指示SDN控制器删除业务网卡与业务网络的连接。。530. The management platform instructs the SDN controller to delete the connection between the service network card and the service network. .

管理平台可以将释放指令对应的需要释放的物理机的业务网卡的标识发送给SDN控制器。例如,管理平台可以向SDN控制器发送释放命令,该命令包括需要释放的物理机的业务网卡的标识。The management platform may send the identification of the service network card of the physical machine to be released corresponding to the release instruction to the SDN controller. For example, the management platform may send a release command to the SDN controller, where the command includes the identifier of the service network card of the physical machine to be released.

SDN控制器接收到管理平台发送的业务网卡的标识后,确定与该业务网卡连接的交换机、交换机的端口、以及该端口的网络信息(例如,网络分配的VLAN号)等。并向对应的交换机发送删除命令,该删除命令可以包括交换机的端口以及该端口的网络信息等。After receiving the identification of the service network card sent by the management platform, the SDN controller determines the switch connected to the service network card, the port of the switch, and the network information of the port (for example, the VLAN number assigned by the network) and the like. And send a delete command to the corresponding switch, where the delete command may include the port of the switch, the network information of the port, and the like.

交换机接收到SDN控制器发送的删除命令后,根据命令中携带的内容,删除业务网卡与业务网络的连接,具体地,根据命令中携带的交换机的端口以及该端口的网络信息,删除业务网卡接入的端口与业务网络的连接。After the switch receives the delete command sent by the SDN controller, it deletes the connection between the service network card and the service network according to the content carried in the command. Specifically, according to the port of the switch carried in the command and the network information of the port, deletes the connection The connection between the incoming port and the service network.

本发明可以实现物理机安装操作系统时PXE网卡和业务网卡自动接入网络,提高物理机发放的效率。本发明可以控制PXE网卡在发放完成后断开PXE网络,可以继续作为业务网卡使用,不会一直占用PXE网卡。本发明可以物理机退订时自动脱离网络,提高效率和安全性。本发明为公有云或私有云实现物理机服务提供了可能。The invention can realize the automatic access of the PXE network card and the service network card to the network when the operating system is installed on the physical machine, thereby improving the efficiency of distribution of the physical machine. The invention can control the PXE network card to disconnect from the PXE network after distribution is completed, and can continue to be used as a service network card without occupying the PXE network card all the time. The invention can automatically disconnect from the network when the physical machine unsubscribes, thereby improving efficiency and safety. The invention provides the possibility for public cloud or private cloud to realize physical machine service.

下面结合附图,对本发明实施例做进一步的介绍。The embodiments of the present invention will be further introduced below in conjunction with the accompanying drawings.

如图6所示,图6为物理机释放过程,也就是释放物理机的操作系统的过程。As shown in FIG. 6 , FIG. 6 is a release process of the physical machine, that is, a process of releasing the operating system of the physical machine.

601,管理portal模块接收释放指令,并通知物理机管理和调度模块释放物理机,该用户指令携带有物理机的标识。601. The management portal module receives a release instruction, and notifies the physical machine management and scheduling module to release the physical machine, and the user instruction carries an identifier of the physical machine.

602,物理机管理和调度模块根据释放指令,指示PXE安装管理模块释放释放指令携带的物理机的标识对应的物理机的操作系统。602. The physical machine management and scheduling module instructs the PXE installation management module to release the operating system of the physical machine corresponding to the physical machine identifier carried in the release command according to the release command.

603,PXE安装管理模块根据物理机管理和调度模块的指示,基于PXE网络释放物理机。其中,该步骤与图5所示的步骤520中的相关描述类似,可相互参照理解。603. The PXE installation management module releases the physical machine based on the PXE network according to the instruction of the physical machine management and scheduling module. Wherein, this step is similar to the relevant description in step 520 shown in FIG. 5 , which can be understood by referring to each other.

604,物理机管理和调度模块可以根据释放指令中携带的物理机的标识,确定该物理机的信息,获取该物理机网卡的MAC地址、以及业务网络标识等,将获取的上述信息携带在指示信息中发送给网络管理模块,指示网络管理模块将释放指令指定的的需要释放的物理机的网卡从网络中删除(可以包括PXE网卡和业务网卡)。604. The physical machine management and scheduling module may determine the information of the physical machine according to the identifier of the physical machine carried in the release instruction, obtain the MAC address of the network card of the physical machine, and the service network identifier, etc., and carry the acquired information in the instruction The information is sent to the network management module to instruct the network management module to delete from the network the network card of the physical machine specified by the release instruction (which may include a PXE network card and a service network card).

605,网络管理模块可以将从物理机管理和调度模块接收的需要释放的物理机网卡的MAC地址、业务网络的标识等信息携带在指示信息中发送给SDN控制器,指示SDN控制器将指示信息指定的物理机的网卡从网络中删除。605. The network management module may carry information such as the MAC address of the physical machine network card that needs to be released and the identifier of the service network received from the physical machine management and scheduling module into the indication information and send it to the SDN controller, instructing the SDN controller to send the indication information to the SDN controller. The NIC of the specified physical machine is removed from the network.

606,SDN控制器接收网络管理模块发送的指示信息,获取该指示信息中携带的物理机网卡的MAC地址查询该网卡接入的交换机、交换机的端口、以及该端口的网络信息等,向该网卡对应的交换机下发删除命令,该命令携带有需要删除的交换机的端口与该端口的网络信息。交换机根据SDN控制器的删除命令将需要删除的交换机的端口与网络的连接断开。606. The SDN controller receives the instruction information sent by the network management module, obtains the MAC address of the physical machine network card carried in the instruction information, queries the switch connected to the network card, the port of the switch, and the network information of the port, etc., and sends a message to the network card The corresponding switch issues a delete command, and the command carries the port of the switch to be deleted and the network information of the port. The switch disconnects the port of the switch to be deleted from the network according to the deletion command of the SDN controller.

图7为本发明实施例提供的一种物理机管理装置的结构示意图。如图7所示,包括:FIG. 7 is a schematic structural diagram of a physical machine management device provided by an embodiment of the present invention. As shown in Figure 7, including:

管理接口模块701,用于接收操作系统安装指令。物理机管理和调度模块702,用于根据所述操作系统安装指令确定一个或多个目标物理机,指示软件定义网络SDN控制器将与所述目标物理机对应的预启动执行环境PXE网卡接入到PXE网络中。PXE安装管理模块703,用于基于所述PXE网络,通过所述目标物理机的PXE网卡对所述目标物理机进行操作系统的安装。The management interface module 701 is configured to receive an operating system installation instruction. The physical machine management and scheduling module 702 is configured to determine one or more target physical machines according to the operating system installation instruction, and instruct the software-defined network SDN controller to access the pre-boot execution environment PXE network card corresponding to the target physical machine into the PXE network. The PXE installation management module 703 is configured to install an operating system on the target physical machine through the PXE network card of the target physical machine based on the PXE network.

可选地,物理机管理和调度模块702还用于,获取至少一个物理机的信息,所述信息包括,所述至少一个物理机中每个物理机的规格参数、每个物理机具有的PXE网卡的标识。根据所述操作系统安装指令确定一个或多个目标物理机,指示SDN控制器将与所述目标物理机对应的PXE网卡接入到PXE网络中,具体包括:将所述操作系统安装指令携带的规则参数与所述管理平台获取的所述信息中的一个或多个物理机的规格参数匹配,匹配成功的物理机为目标物理机,从所述信息中获取所述目标物理机的PXE网卡的标识。所述装置还包括:网络管理模块704,用于向SDN控制器下发接入指令,所述接入指令携带所述目标物理机的PXE网卡的标识,所述接入指令用于指示所述SDN控制器将所述接入指令携带的标识所指定的PXE网卡接入到PXE网络。Optionally, the physical machine management and scheduling module 702 is further configured to obtain information about at least one physical machine, where the information includes specification parameters of each physical machine in the at least one physical machine, and PXE The ID of the network card. Determine one or more target physical machines according to the operating system installation instruction, and instruct the SDN controller to connect the PXE network card corresponding to the target physical machine to the PXE network, specifically including: carrying the operating system installation instruction The rule parameter is matched with the specification parameters of one or more physical machines in the information acquired by the management platform, the successfully matched physical machine is the target physical machine, and the PXE network card of the target physical machine is obtained from the information. logo. The device also includes: a network management module 704, configured to issue an access instruction to the SDN controller, the access instruction carries the identifier of the PXE network card of the target physical machine, and the access instruction is used to indicate the The SDN controller connects the PXE network card specified by the identifier carried in the access instruction to the PXE network.

可选地,所述网络管理模块704还用于,接收所述SDN控制器上传的链路层发现协议LLDP信息,或者,从所述至少一个物理机获取各个物理机的所述LLDP信息,其中,每个所述LLDP信息携带一个物理机所具有的PXE网卡的标识和与该个物理机所具有的PXE网卡通信连接的交换机的端口的端口号。所述SDN控制器将所述接入指令携带的标识所指定的PXE网卡接入到PXE网络,具体为:所述SDN控制器将所述接入指令携带的标识所指定的PXE网卡所对应通信连接的交换机的端口接入PXE网络。Optionally, the network management module 704 is further configured to receive link layer discovery protocol LLDP information uploaded by the SDN controller, or obtain the LLDP information of each physical machine from the at least one physical machine, wherein Each of the LLDP information carries an identifier of a PXE network card of a physical machine and a port number of a port of a switch that is communicatively connected to the PXE network card of the physical machine. The SDN controller connects the PXE network card specified by the identifier carried by the access instruction to the PXE network, specifically: the SDN controller communicates with the PXE network card corresponding to the identifier carried by the access instruction The port of the connected switch is connected to the PXE network.

可选地,所述物理机管理和调度模块702还用于,对所述目标物理机完成操作系统的安装之后,指示所述SDN控制器断开所述目标物理机的PXE网卡与所述PXE网络的网络连接,指示所述SDN控制器将所述目标物理机的PXE网卡接入业务网络。Optionally, the physical machine management and scheduling module 702 is further configured to, after the operating system is installed on the target physical machine, instruct the SDN controller to disconnect the PXE network card of the target physical machine from the PXE The network connection of the network instructs the SDN controller to connect the PXE network card of the target physical machine to the service network.

可选地,所述管理接口模块701,还用于接收释放指令,所述释放指令包括一个或多个目标物理机的标识。所述物理机管理和调度模块702还用于,根据所述释放指令,指示所述释放指令中的标识所指定的目标物理机释放操作系统。Optionally, the management interface module 701 is further configured to receive a release instruction, where the release instruction includes identifiers of one or more target physical machines. The physical machine management and scheduling module 702 is further configured to, according to the release instruction, instruct the target physical machine specified by the identifier in the release instruction to release the operating system.

可选地,所述物理机管理和调度模块702还用于,管理平台在接收到所述释放指令时,指示所述SDN控制器断开所述释放指令中的标识所指定的目标物理机所具有的PXE网卡的网络连接,需断开的网络连接包括:所述释放指令中的标识所指定的目标物理机所具有的PXE网卡与PXE网络的网络连接、所述释放指令中的标识所指定的目标物理机所具有的PXE网卡与业务网络的网络连接。Optionally, the physical machine management and scheduling module 702 is further configured to, when the management platform receives the release instruction, instruct the SDN controller to disconnect the target physical machine specified by the identifier in the release instruction. The network connection of the PXE network card that needs to be disconnected includes: the network connection between the PXE network card and the PXE network of the target physical machine that is specified by the identification in the release command, and the network connection that is specified by the identification in the release command. The PXE NIC of the target physical machine is connected to the service network.

可选地,所述管理接口模块701,还用于接收镜像选择指令,确定所述镜像选择指令所指定的操作系统镜像;对所述目标物理机进行操作系统的安装,具体为:使用确定的操作系统镜像对目标物理机进行操作系统的安装.Optionally, the management interface module 701 is further configured to receive an image selection instruction, determine the operating system image specified by the image selection instruction; install the operating system on the target physical machine, specifically: use the determined The operating system image installs the operating system on the target physical machine.

可选地,所述装置还包括:Optionally, the device also includes:

镜像管理模块705,用于根据PXE安装管理模块704的指令对应的操作系统类型选择对应的操作系统镜像,将选择好的操作系统的镜像发送给PXE安装管理模块704;The image management module 705 is used to select the corresponding operating system image according to the corresponding operating system type of the instruction of the PXE installation management module 704, and sends the image of the selected operating system to the PXE installation management module 704;

所述PXE安装管理模块704还用于,通过所述PXE网络启动所述选定的物理机,根据选定的操作系统镜像进行操作系统安装。The PXE installation management module 704 is further configured to start the selected physical machine through the PXE network, and perform operating system installation according to the selected operating system image.

需要说明的是,本发明实施例与前述管理平台的方法实施例相互对应,可参照理解。It should be noted that, the embodiments of the present invention correspond to the aforementioned method embodiments of the management platform, which can be understood by reference.

图8为本发明实施例提供的另一种物理机管理装置的结构示意图。如图8所示,包括:接收模块801,用于接收管理平台发送的接入命令,所述接入命令携带有所述目标物理机的PXE网卡的标识;处理模块802,用于根据所述接入指令将所述接入指令携带的标识所指定的预启动执行环境PXE网卡接入到PXE网络,以便所述管理平台基于所述PXE网络,通过所述目标物理机的PXE网卡对所述目标物理机进行操作系统的安装。FIG. 8 is a schematic structural diagram of another physical machine management device provided by an embodiment of the present invention. As shown in Figure 8, it includes: a receiving module 801, configured to receive an access command sent by the management platform, the access command carrying the identifier of the PXE network card of the target physical machine; The access instruction connects the PXE network card of the pre-boot execution environment specified by the identifier carried by the access instruction to the PXE network, so that the management platform can control the PXE network card of the target physical machine based on the PXE network. Install the operating system on the target physical machine.

可选地,所述接收模块801还用于,接收所述管理平台发送的接入更改指令,所述接入更改指令携带有所述目标物理机的PXE网卡的标识,所述接入更改指令由所述管理平台完成对所述目标物理机安装操作系统时触发。所述处理模块还用于,根据所述接入更改指令,断开所述接入更改指令携带的标识所指定的PXE网卡与所述PXE网络的网络连接,将所述接入更改指令携带的标识所指定的PXE网卡接入业务网络。Optionally, the receiving module 801 is further configured to receive an access change instruction sent by the management platform, the access change instruction carries the identifier of the PXE network card of the target physical machine, and the access change instruction Triggered when the management platform finishes installing the operating system on the target physical machine. The processing module is further configured to, according to the access modification instruction, disconnect the network connection between the PXE network card specified by the identifier carried in the access modification instruction and the PXE network, and connect the PXE network card carried in the access modification instruction to Indicates that the specified PXE NIC is connected to the service network.

可选地,还包括:发送模块803,用于从交换机获取至少一个链路层发现协议LLDP信息,向所述管理平台转发所述至少一个LLDP信息,其中,每个所述LLDP信息携带一个物理机所具有的PXE网卡的标识和与该个物理机所具有的PXE网卡通信连接的交换机的端口的端口号,其中,每个所述LLDP信息由一个物理机生成并向与该个物理机所具有的PXE网卡通信连接的交换机上传。所述将所述接入指令携带的标识所指定的PXE网卡接入到PXE网络,具体为:将所述接入指令携带的标识所指定的PXE网卡所对应通信连接的交换机的端口接入PXE网络。Optionally, it also includes: a sending module 803, configured to obtain at least one link layer discovery protocol LLDP information from the switch, and forward the at least one LLDP information to the management platform, wherein each LLDP information carries a physical The identification of the PXE network card that the machine has and the port number of the port of the switch that communicates with the PXE network card that the physical machine has, wherein, each of the LLDP information is generated by a physical machine and sent to the physical machine. The switch that has the PXE network card communication connection is uploaded. The accessing the PXE network card specified by the identifier carried by the access instruction to the PXE network is specifically: connecting the port of the switch corresponding to the communication connection of the PXE network card specified by the identifier carried by the access instruction to the PXE network. The internet.

需要说明的是,本发明实施例与前述SDN控制器的方法实施例相互对应,可参照理解。It should be noted that, the embodiment of the present invention corresponds to the foregoing SDN controller method embodiment, which can be understood by reference.

图9为本发明实施例提供的再一种物理机管理装置的结构示意图。如图9所示,包括:FIG. 9 is a schematic structural diagram of another physical machine management device provided by an embodiment of the present invention. As shown in Figure 9, including:

接收模块901,用于接收SDN控制器发送的端口与VLAN配置信息,所述端口与VLAN配置信息包括PXE网卡的标识以及PXE网络的标识;The receiving module 901 is configured to receive port and VLAN configuration information sent by the SDN controller, where the port and VLAN configuration information includes the identification of the PXE network card and the identification of the PXE network;

处理模块902,用于根据所述端口与VLAN配置信息,将所述PXE网卡接入所述PXE网络。The processing module 902 is configured to connect the PXE network card to the PXE network according to the port and VLAN configuration information.

可选地,所述接收模块901还用于,接收所述SDN控制器发送的删除命令包括业务网卡的标识和/或PXE网卡的标识接入的交换机的端口信息与网络分配的VLAN信息;Optionally, the receiving module 901 is further configured to receive the deletion command sent by the SDN controller, including the port information of the service network card and/or the port information of the switch accessed by the identification of the PXE network card and the VLAN information assigned by the network;

处理模块902还用于,根据所述删除命令,删除业务网卡和/或PXE网卡与业务网络的连接。The processing module 902 is further configured to, according to the deletion command, delete the service network card and/or the connection between the PXE network card and the service network.

可选地,接收模块901还用于,物理机接入交换机时,接收物理机发送的物理机的信息,所述物理机的信息包括PXE网卡的标识;Optionally, the receiving module 901 is also configured to, when the physical machine is connected to the switch, receive the information of the physical machine sent by the physical machine, where the information of the physical machine includes the identifier of the PXE network card;

接收模块901还用于,接收所述SDN控制器发送的查询命令;The receiving module 901 is also configured to receive the query command sent by the SDN controller;

发送模块903,用于向所述SDN控制器发送所述物理机的信息。The sending module 903 is configured to send the information of the physical machine to the SDN controller.

需要说明的是,本发明实施例与前述实施例中交换机的方法步骤相互对应,可参照理解。It should be noted that the embodiments of the present invention correspond to the method steps of the switch in the foregoing embodiments, which can be understood by reference.

本发明实施例还提供了一种物理机,包括:The embodiment of the present invention also provides a physical machine, including:

处理器,用于物理机与交换机建立连接;The processor is used to establish a connection between the physical machine and the switch;

发送器,用于通过LLDP协议向所述交换机发送物理机的信息,所述物理机的信息包括PXE网卡的标识。The sender is configured to send the information of the physical machine to the switch through the LLDP protocol, where the information of the physical machine includes the identifier of the PXE network card.

图10为本发明实施例提供的一种管理平台的硬件结构示意图。该装置可以包括处理器1001和收发器1002,图10中还示出了存储器1003和总线1004,该处理器1001、收发器1002和存储器1003通过总线1004连接并完成相互间的通信。收发器1002用于与软件定义网络SDN控制器进行交互,还用于通过业务网络或者预启动执行环境PXE网络与物理机交互;存储器1003用来存储程序,处理器1001通过读取存储器中存放的程序,执行该程序,通过收发器1002进行发送和接收针对外部设备的数据以及指令。FIG. 10 is a schematic diagram of a hardware structure of a management platform provided by an embodiment of the present invention. The device may include a processor 1001 and a transceiver 1002. FIG. 10 also shows a memory 1003 and a bus 1004. The processor 1001, the transceiver 1002, and the memory 1003 are connected through the bus 1004 and complete mutual communication. The transceiver 1002 is used to interact with the software-defined network SDN controller, and is also used to interact with the physical machine through the service network or the pre-boot execution environment PXE network; the memory 1003 is used to store the program, and the processor 1001 reads the data stored in the memory program, execute the program, and send and receive data and instructions for external devices through the transceiver 1002 .

需要说明的是,这里的处理器1001可以是一个处理器,也可以是多个处理元件的统称。例如,该处理器可以是中央处理器(CentralProcessingUnit,CPU),也可以是特定集成电路(ApplicationSpecificIntegratedCircuit,ASIC),或者是被配置成实施本发明实施例的一个或多个集成电路,例如:一个或多个微处理器(digitalsingnalprocessor,DSP),或,一个或者多个现场可编程门阵列(FieldProgrammableGateArray,FPGA)。It should be noted that the processor 1001 here may be one processor, or may be a general term for multiple processing elements. For example, the processor may be a central processing unit (Central Processing Unit, CPU), or a specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention, for example: one or Multiple microprocessors (digitalsingnalprocessor, DSP), or, one or more field programmable gate arrays (Field Programmable Gate Array, FPGA).

存储器1003可以是一个存储装置,也可以是多个存储元件的统称,且用于存储可执行程序代码或接入网管理设备运行所需要参数、数据等。且存储器1003可以包括随机存储器(RAM),也可以包括非易失性存储器(non-volatilememory),例如磁盘存储器,闪存(Flash)等。The memory 1003 may be a storage device, or may be a general term for multiple storage elements, and is used to store executable program codes or parameters and data required for the operation of the access network management device. And the memory 1003 may include random access memory (RAM), and may also include non-volatile memory (non-volatile memory), such as disk memory, flash memory (Flash), and the like.

总线1004可以是工业标准体系结构(IndustryStandardArchitecture,ISA)总线、外部设备互连(PeripheralComponent,PCI)总线或扩展工业标准体系结构(ExtendedIndustryStandardArchitecture,EISA)总线等。该总线1004可以分为地址总线、数据总线、控制总线等。为便于表示,图10中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 1004 may be an Industry Standard Architecture (Industry Standard Architecture, ISA) bus, a Peripheral Component Interconnect (Peripheral Component, PCI) bus, or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus, etc. The bus 1004 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 10 , but it does not mean that there is only one bus or one type of bus.

图11为本发明实施例提供的一种SDN控制器的硬件结构示意图。FIG. 11 is a schematic diagram of a hardware structure of an SDN controller provided by an embodiment of the present invention.

该装置可以包括处理器1101和收发器1102,图中还示出了存储器1103,总线1104。该处理器1101、收发器1102和存储器1103通过总线1104连接并完成相互间的通信。收发器1102用于与物理机、交换机或者管理平台进行交互,还用于与网关和/或交换机交互来组建业务网络或者预启动执行环境PXE网络,存储器1103用来存储程序,处理器1101通过读取存储器中存放的程序,执行该程序,通过收发器1102进行发送和接收针对外部设备的数据以及指令,例如,管理平台、交换机等。The device may include a processor 1101 and a transceiver 1102 , a memory 1103 and a bus 1104 are also shown in the figure. The processor 1101 , the transceiver 1102 and the memory 1103 are connected through a bus 1104 and complete mutual communication. Transceiver 1102 is used to interact with physical machines, switches or management platforms, and is also used to interact with gateways and/or switches to form service networks or pre-boot execution environment PXE networks. Memory 1103 is used to store programs. Processor 1101 reads The program stored in the memory is fetched, the program is executed, and data and instructions for external devices are sent and received through the transceiver 1102, for example, a management platform, a switch, and the like.

图12为本发明实施例提供的一种交换机的硬件结构示意图。如图12所示,本发明实施例还提供了一种交换机,包括收发器1201、处理器1202、存储器1203和交换网芯片1204(英文:switchedfabriccircuit,简称为fabriccircuit)。其中,处理器1202可以为中央处理器(英文:centralprocessingunit,缩写:CPU)。交换网芯片604为可以为硬件芯片,可以是以下一种或多种的组合:专用集成电路(英文:application-specificintegratedcircuit,缩写:ASIC),现场可编程逻辑门阵列(英文:field-programmablegatearray,缩写:FPGA),复杂可编程逻辑器件(英文:complexCN104348737A说明书11www.rainpat.com9/10页12programmablelogicdevice,缩写:CPLD)和网络处理器(英文:networkprocessor,缩写:NP)。存储器603可以是易失性存储器(英文:volatilememory),例如随机存取存储器(英文:random-accessmemory,缩写:RAM),或者非易失性存储器(英文:non-volatilememory),例如快闪存储器(英文:flashmemory),硬盘(英文:harddiskdrive,缩写:HDD)或固态硬盘(英文:solid-statedrive,缩写:SSD)。输入输出接口1201用于实现交换机与其他设备的通信。输入输出接口1201和存储器1203都和处理器1202相连。图12中粗线为总线(英文:bus)。存储器1203,存储程序代码,并将存储的程序代码传输给处理器1202。交换网芯片1204用于接收并转发组播数据报文,交换网芯片1204中存储有组播路由表。处理器1202根据存储器1203存储的程序指令,执行上述交换机中的操作步骤。FIG. 12 is a schematic diagram of a hardware structure of a switch provided by an embodiment of the present invention. As shown in FIG. 12 , the embodiment of the present invention also provides a switch, including a transceiver 1201 , a processor 1202 , a memory 1203 and a switching fabric chip 1204 (English: switched fabric circuit, fabric circuit for short). Wherein, the processor 1202 may be a central processing unit (English: central processing unit, abbreviation: CPU). The switching network chip 604 can be a hardware chip, which can be one or more of the following combinations: application-specific integrated circuit (English: application-specific integrated circuit, abbreviation: ASIC), field programmable logic gate array (English: field-programmable gate array, abbreviation : FPGA), complex programmable logic device (English: complexCN104348737A manual 11www.rainpat.com9/10 page 12programmablelogicdevice, abbreviation: CPLD) and network processor (English: networkprocessor, abbreviation: NP). The memory 603 may be a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviated as RAM), or a non-volatile memory (English: non-volatile memory), such as a flash memory ( English: flashmemory), hard disk (English: harddiskdrive, abbreviation: HDD) or solid state drive (English: solid-statedrive, abbreviation: SSD). The input and output interface 1201 is used to realize the communication between the switch and other devices. Both the input and output interface 1201 and the memory 1203 are connected to the processor 1202 . The thick line in Fig. 12 is a bus (English: bus). The memory 1203 stores program codes, and transmits the stored program codes to the processor 1202 . The switching network chip 1204 is used to receive and forward multicast data packets, and the switching network chip 1204 stores a multicast routing table. The processor 1202 executes the above operation steps in the switch according to the program instructions stored in the memory 1203 .

专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals should further realize that the units and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the relationship between hardware and software Interchangeability. In the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

结合本文中所公开的实施例描述的方法或算法的步骤可以用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.

以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, within the spirit and principles of the present invention, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present invention.

Claims (22)

1.一种物理机管理方法,其特征在于,包括:1. A method for managing a physical machine, comprising: 管理平台接收操作系统安装指令;The management platform receives the operating system installation instruction; 所述管理平台根据所述操作系统安装指令确定一个或多个目标物理机,指示软件定义网络SDN控制器将与所述目标物理机对应的预启动执行环境PXE网卡接入到PXE网络中;The management platform determines one or more target physical machines according to the operating system installation instructions, and instructs the software-defined network SDN controller to connect the pre-boot execution environment PXE network card corresponding to the target physical machine to the PXE network; 所述管理平台基于所述PXE网络,通过所述目标物理机的PXE网卡对所述目标物理机进行操作系统的安装。The management platform installs an operating system on the target physical machine through the PXE network card of the target physical machine based on the PXE network. 2.根据权利要求1所述的方法,其特征在于,2. The method of claim 1, wherein, 所述方法还包括:所述管理平台获取至少一个物理机的信息,所述信息包括,所述至少一个物理机中每个物理机的规格参数、每个物理机具有的PXE网卡的标识;The method also includes: the management platform obtains information of at least one physical machine, the information includes, the specification parameters of each physical machine in the at least one physical machine, and the identification of the PXE network card that each physical machine has; 所述管理平台根据所述操作系统安装指令确定一个或多个目标物理机,指示SDN控制器将与所述目标物理机对应的PXE网卡接入到PXE网络中,具体包括:The management platform determines one or more target physical machines according to the operating system installation instruction, and instructs the SDN controller to connect the PXE network card corresponding to the target physical machine into the PXE network, specifically including: 所述管理平台将所述操作系统安装指令携带的规则参数与所述管理平台获取的所述信息中的一个或多个物理机的规格参数匹配,匹配成功的物理机为目标物理机,从所述信息中获取所述目标物理机的PXE网卡的标识;The management platform matches the rule parameters carried in the operating system installation instruction with the specification parameters of one or more physical machines in the information obtained by the management platform, and the successfully matched physical machine is the target physical machine. Acquire the identification of the PXE network card of the target physical machine in the above information; 所述管理平台向SDN控制器下发接入指令,所述接入指令携带所述目标物理机的PXE网卡的标识,所述接入指令用于指示所述SDN控制器将所述接入指令携带的标识所指定的PXE网卡接入到PXE网络。The management platform issues an access instruction to the SDN controller, the access instruction carries the identifier of the PXE network card of the target physical machine, and the access instruction is used to instruct the SDN controller to transfer the access instruction The PXE NIC specified by the carried identifier is connected to the PXE network. 3.根据权利要求2所述的方法,其特征在于,3. The method of claim 2, wherein, 所述方法包括:所述管理平台接收所述SDN控制器上传的链路层发现协议LLDP信息,或者,所述管理平台从所述至少一个物理机获取各个物理机的所述LLDP信息,其中,每个所述LLDP信息携带一个物理机所具有的PXE网卡的标识和与该个物理机所具有的PXE网卡通信连接的交换机的端口的端口号;The method includes: the management platform receives link layer discovery protocol LLDP information uploaded by the SDN controller, or the management platform acquires the LLDP information of each physical machine from the at least one physical machine, wherein, Each said LLDP information carries the identification of the PXE network card that a physical machine has and the port number of the port of the switch that is connected to the PXE network card that the physical machine has; 所述SDN控制器将所述接入指令携带的标识所指定的PXE网卡接入到PXE网络,具体为:所述SDN控制器将所述接入指令携带的标识所指定的PXE网卡所对应通信连接的交换机的端口接入PXE网络。The SDN controller connects the PXE network card specified by the identifier carried by the access instruction to the PXE network, specifically: the SDN controller communicates with the PXE network card corresponding to the identifier carried by the access instruction The port of the connected switch is connected to the PXE network. 4.根据权利要求1所述的方法,其特征在于,所述方法包括:4. The method according to claim 1, characterized in that the method comprises: 所述管理平台对所述目标物理机完成操作系统的安装之后,指示所述SDN控制器断开所述目标物理机的PXE网卡与所述PXE网络的网络连接,指示所述SDN控制器将所述目标物理机的PXE网卡接入业务网络。After the management platform completes the installation of the operating system on the target physical machine, it instructs the SDN controller to disconnect the network connection between the PXE network card of the target physical machine and the PXE network, and instructs the SDN controller to connect the PXE network The PXE NIC of the target physical machine is connected to the service network. 5.根据权利要求1至4任一项所述的方法,其特征在于,所述方法还包括:5. The method according to any one of claims 1 to 4, wherein the method further comprises: 管理平台接收释放指令,所述释放指令包括一个或多个目标物理机的标识;The management platform receives a release instruction, and the release instruction includes one or more identifiers of target physical machines; 所述管理平台根据所述释放指令,指示所述释放指令中的标识所指定的目标物理机释放操作系统。The management platform instructs the target physical machine specified by the identifier in the release instruction to release the operating system according to the release instruction. 6.根据权利要求5所述的方法,其特征在于,所述方法包括:6. The method according to claim 5, characterized in that the method comprises: 所述管理平台在接收到所述释放指令时,指示所述SDN控制器断开所述释放指令中的标识所指定的目标物理机所具有的PXE网卡的网络连接,需断开的网络连接包括:所述释放指令中的标识所指定的目标物理机所具有的PXE网卡与PXE网络的网络连接、所述释放指令中的标识所指定的目标物理机所具有的PXE网卡与业务网络的网络连接。When the management platform receives the release instruction, it instructs the SDN controller to disconnect the network connection of the PXE network card of the target physical machine specified by the identifier in the release instruction, and the network connection to be disconnected includes : the network connection between the PXE network card of the target physical machine specified by the identifier in the release instruction and the PXE network, and the network connection between the PXE network card of the target physical machine specified by the identifier in the release instruction and the service network . 7.根据权利要求1-6所述的方法,其特征在于,7. The method according to claims 1-6, characterized in that, 所述方法包括:所述管理平台接收镜像选择指令,确定所述镜像选择指令所指定的操作系统镜像;The method includes: the management platform receives an image selection instruction, and determines the operating system image specified by the image selection instruction; 所述管理平台对所述目标物理机进行操作系统的安装,具体为:所述管理平台使用确定的操作系统镜像对目标物理机进行操作系统的安装。The management platform installs the operating system on the target physical machine, specifically: the management platform uses the determined operating system image to install the operating system on the target physical machine. 8.一种物理机管理方法,其特征在于,包括:8. A method for managing a physical machine, comprising: 软件定义网络SDN控制器接收管理平台发送的接入命令,所述接入命令携带有所述目标物理机的PXE网卡的标识;The software-defined network SDN controller receives the access command sent by the management platform, and the access command carries the identification of the PXE network card of the target physical machine; 所述SDN控制器根据所述接入指令将所述接入指令携带的标识所指定的预启动执行环境PXE网卡接入到PXE网络,以便所述管理平台基于所述PXE网络,通过所述目标物理机的PXE网卡对所述目标物理机进行操作系统的安装。The SDN controller connects the PXE network card of the pre-boot execution environment specified by the identifier carried in the access instruction to the PXE network according to the access instruction, so that the management platform can pass the target network based on the PXE network. The PXE network card of the physical machine installs the operating system on the target physical machine. 9.根据权利要求8所述的方法,其特征在于,所述方法包括:9. The method according to claim 8, characterized in that the method comprises: 所述SDN控制器接收所述管理平台发送的接入更改指令,所述接入更改指令携带有所述目标物理机的PXE网卡的标识,所述接入更改指令由所述管理平台完成对所述目标物理机安装操作系统时触发;The SDN controller receives the access modification instruction sent by the management platform, the access modification instruction carries the identifier of the PXE network card of the target physical machine, and the access modification instruction is completed by the management platform for all Triggered when the operating system is installed on the target physical machine; 所述SDN控制器根据所述接入更改指令,断开所述接入更改指令携带的标识所指定的PXE网卡与所述PXE网络的网络连接,将所述接入更改指令携带的标识所指定的PXE网卡接入业务网络。According to the access modification instruction, the SDN controller disconnects the network connection between the PXE network card specified by the identifier carried in the access modification instruction and the PXE network, and connects the PXE network card specified by the identifier carried in the access modification instruction. The PXE NIC connected to the service network. 10.根据权利要求8或9所述的方法,其特征在于,10. The method according to claim 8 or 9, characterized in that, 所述方法包括:所述SDN控制器从交换机获取至少一个链路层发现协议LLDP信息,向所述管理平台转发所述至少一个LLDP信息,其中,每个所述LLDP信息携带一个物理机所具有的PXE网卡的标识和与该个物理机所具有的PXE网卡通信连接的交换机的端口的端口号,其中,每个所述LLDP信息由一个物理机生成并向与该个物理机所具有的PXE网卡通信连接的交换机上传;The method includes: the SDN controller obtains at least one link layer discovery protocol LLDP information from the switch, and forwards the at least one LLDP information to the management platform, wherein each of the LLDP information carries information that a physical machine has The identification of the PXE network card and the port number of the port of the switch that communicates with the PXE network card that this physical machine has, wherein, each of the LLDP information is generated by a physical machine and sent to the PXE network that this physical machine has The switch uploaded by the network card communication connection; 所述SDN控制器将所述接入指令携带的标识所指定的PXE网卡接入到PXE网络,具体为:所述SDN控制器将所述接入指令携带的标识所指定的PXE网卡所对应通信连接的交换机的端口接入PXE网络。The SDN controller connects the PXE network card specified by the identifier carried by the access instruction to the PXE network, specifically: the SDN controller communicates with the PXE network card corresponding to the identifier carried by the access instruction The port of the connected switch is connected to the PXE network. 11.一种物理机管理装置,其特征在于,包括:11. A physical machine management device, comprising: 管理接口模块,用于接收操作系统安装指令;a management interface module, configured to receive an operating system installation instruction; 物理机管理和调度模块,用于根据所述操作系统安装指令确定一个或多个目标物理机,指示软件定义网络SDN控制器将与所述目标物理机对应的预启动执行环境PXE网卡接入到PXE网络中;The physical machine management and scheduling module is used to determine one or more target physical machines according to the operating system installation instruction, and instructs the software-defined network SDN controller to connect the pre-boot execution environment PXE network card corresponding to the target physical machine to the In the PXE network; PXE安装管理模块,用于基于所述PXE网络,通过所述目标物理机的PXE网卡对所述目标物理机进行操作系统的安装。The PXE installation management module is configured to install an operating system on the target physical machine through the PXE network card of the target physical machine based on the PXE network. 12.根据权利要求11所述的装置,其特征在于,所述物理机管理和调度模块还用于,获取至少一个物理机的信息,所述信息包括,所述至少一个物理机中每个物理机的规格参数、每个物理机具有的PXE网卡的标识;12. The device according to claim 11, wherein the physical machine management and scheduling module is further configured to acquire information about at least one physical machine, the information including, each physical machine in the at least one physical machine The specification parameters of the machine and the identification of the PXE network card that each physical machine has; 所述物理机管理和调度模块,用于根据所述操作系统安装指令确定一个或多个目标物理机,指示SDN控制器将与所述目标物理机对应的PXE网卡接入到PXE网络中,具体包括:所述物理机管理和调度模块,用于将所述操作系统安装指令携带的规则参数与所述管理平台获取的所述信息中的一个或多个物理机的规格参数匹配,匹配成功的物理机为目标物理机,从所述信息中获取所述目标物理机的PXE网卡的标识;The physical machine management and scheduling module is configured to determine one or more target physical machines according to the operating system installation instruction, and instruct the SDN controller to connect the PXE network card corresponding to the target physical machine to the PXE network, specifically Including: the physical machine management and scheduling module, configured to match the rule parameters carried in the operating system installation instruction with the specification parameters of one or more physical machines in the information acquired by the management platform, and the matched The physical machine is the target physical machine, and the identification of the PXE network card of the target physical machine is obtained from the information; 所述装置还包括:网络管理模块,用于向SDN控制器下发接入指令,所述接入指令携带所述目标物理机的PXE网卡的标识,所述接入指令用于指示所述SDN控制器将所述接入指令携带的标识所指定的PXE网卡接入到PXE网络。The device also includes: a network management module, configured to issue an access instruction to the SDN controller, the access instruction carrying the identifier of the PXE network card of the target physical machine, and the access instruction is used to indicate that the SDN The controller connects the PXE network card specified by the identifier carried in the access instruction to the PXE network. 13.根据权利要求12所述的装置,其特征在于,13. The device of claim 12, wherein: 所述网络管理模块还用于,接收所述SDN控制器上传的链路层发现协议LLDP信息,或者,从所述至少一个物理机获取各个物理机的所述LLDP信息,其中,每个所述LLDP信息携带一个物理机所具有的PXE网卡的标识和与该个物理机所具有的PXE网卡通信连接的交换机的端口的端口号;The network management module is further configured to receive link layer discovery protocol LLDP information uploaded by the SDN controller, or obtain the LLDP information of each physical machine from the at least one physical machine, wherein each of the The LLDP information carries the identification of the PXE network card that a physical machine has and the port number of the port of the switch that communicates with the PXE network card that the physical machine has; 所述SDN控制器将所述接入指令携带的标识所指定的PXE网卡接入到PXE网络,具体为:所述SDN控制器将所述接入指令携带的标识所指定的PXE网卡所对应通信连接的交换机的端口接入PXE网络。The SDN controller connects the PXE network card specified by the identifier carried by the access instruction to the PXE network, specifically: the SDN controller communicates with the PXE network card corresponding to the identifier carried by the access instruction The port of the connected switch is connected to the PXE network. 14.根据权利要求11所述的装置,其特征在于,所述物理机管理和调度模块还用于,对所述目标物理机完成操作系统的安装之后,指示所述SDN控制器断开所述目标物理机的PXE网卡与所述PXE网络的网络连接,指示所述SDN控制器将所述目标物理机的PXE网卡接入业务网络。14. The device according to claim 11, wherein the physical machine management and scheduling module is further configured to instruct the SDN controller to disconnect the The PXE network card of the target physical machine is connected to the network of the PXE network, and instructs the SDN controller to connect the PXE network card of the target physical machine to the service network. 15.根据权利要求11至14任一项所述的装置,其特征在于,15. Apparatus according to any one of claims 11 to 14, wherein 所述管理接口模块,还用于接收释放指令,所述释放指令包括一个或多个目标物理机的标识;The management interface module is further configured to receive a release instruction, where the release instruction includes one or more identifiers of target physical machines; 所述物理机管理和调度模块还用于,根据所述释放指令,指示所述释放指令中的标识所指定的目标物理机释放操作系统。The physical machine management and scheduling module is further configured to, according to the release instruction, instruct the target physical machine specified by the identifier in the release instruction to release the operating system. 16.根据权利要求15所述的方法,其特征在于,所述物理机管理和调度模块还用于,16. The method according to claim 15, wherein the physical machine management and scheduling module is also used for: 所述管理平台在接收到所述释放指令时,指示所述SDN控制器断开所述释放指令中的标识所指定的目标物理机所具有的PXE网卡的网络连接,需断开的网络连接包括:所述释放指令中的标识所指定的目标物理机所具有的PXE网卡与PXE网络的网络连接、所述释放指令中的标识所指定的目标物理机所具有的PXE网卡与业务网络的网络连接。When the management platform receives the release instruction, it instructs the SDN controller to disconnect the network connection of the PXE network card of the target physical machine specified by the identifier in the release instruction, and the network connection to be disconnected includes : the network connection between the PXE network card of the target physical machine specified by the identifier in the release instruction and the PXE network, and the network connection between the PXE network card of the target physical machine specified by the identifier in the release instruction and the service network . 17.根据权利要求11-16所述的方法,其特征在于,17. The method according to claims 11-16, characterized in that, 所述管理接口模块,还用于接收镜像选择指令,确定所述镜像选择指令所指定的操作系统镜像;The management interface module is further configured to receive an image selection instruction, and determine the operating system image specified by the image selection instruction; 对所述目标物理机进行操作系统的安装,具体为:使用确定的操作系统镜像对目标物理机进行操作系统的安装。Installing the operating system on the target physical machine specifically includes: installing the operating system on the target physical machine using a determined operating system image. 18.一种物理机管理装置,其特征在于,包括:18. A physical machine management device, comprising: 接收模块,用于接收管理平台发送的接入命令,所述接入命令携带有所述目标物理机的PXE网卡的标识;A receiving module, configured to receive an access command sent by the management platform, the access command carrying the identifier of the PXE network card of the target physical machine; 处理模块,用于根据所述接入指令将所述接入指令携带的标识所指定的预启动执行环境PXE网卡接入到PXE网络,以便所述管理平台基于所述PXE网络,通过所述目标物理机的PXE网卡对所述目标物理机进行操作系统的安装。A processing module, configured to connect the PXE network card of the pre-boot execution environment specified by the identifier carried by the access instruction to the PXE network according to the access instruction, so that the management platform can pass the target through the PXE network based on the access instruction. The PXE network card of the physical machine installs the operating system on the target physical machine. 19.根据权利要求18所述的装置,其特征在于,所述接收模块还用于,接收所述管理平台发送的接入更改指令,所述接入更改指令携带有所述目标物理机的PXE网卡的标识,所述接入更改指令由所述管理平台完成对所述目标物理机安装操作系统时触发;19. The device according to claim 18, wherein the receiving module is further configured to receive an access modification instruction sent by the management platform, the access modification instruction carrying the PXE address of the target physical machine The identifier of the network card, the access modification instruction is triggered when the management platform completes the installation of the operating system on the target physical machine; 所述处理模块还用于,根据所述接入更改指令,断开所述接入更改指令携带的标识所指定的PXE网卡与所述PXE网络的网络连接,将所述接入更改指令携带的标识所指定的PXE网卡接入业务网络。The processing module is further configured to, according to the access modification instruction, disconnect the network connection between the PXE network card specified by the identifier carried in the access modification instruction and the PXE network, and connect the PXE network card carried in the access modification instruction to Indicates that the specified PXE NIC is connected to the service network. 20.根据权利要求18或19所述的装置,其特征在于,20. Apparatus according to claim 18 or 19, characterized in that, 所述接收模块还用于,从交换机获取至少一个链路层发现协议LLDP信息,向所述管理平台转发所述至少一个LLDP信息,其中,每个所述LLDP信息携带一个物理机所具有的PXE网卡的标识和与该个物理机所具有的PXE网卡通信连接的交换机的端口的端口号,其中,每个所述LLDP信息由一个物理机生成并向与该个物理机所具有的PXE网卡通信连接的交换机上传;The receiving module is also used to obtain at least one link layer discovery protocol LLDP information from the switch, and forward the at least one LLDP information to the management platform, wherein each of the LLDP information carries the PXE information of a physical machine. The identification of the network card and the port number of the port of the switch connected to the PXE network card of the physical machine, wherein each LLDP information is generated by a physical machine and communicated with the PXE network card of the physical machine The connected switch uploads; 所述将所述接入指令携带的标识所指定的PXE网卡接入到PXE网络,具体为:将所述接入指令携带的标识所指定的PXE网卡所对应通信连接的交换机的端口接入PXE网络。The accessing the PXE network card specified by the identifier carried by the access instruction to the PXE network is specifically: connecting the port of the switch corresponding to the communication connection of the PXE network card specified by the identifier carried by the access instruction to the PXE network. The internet. 21.一种管理平台,其特征在于,所述管理平台包括,处理器、存储器、收发器和总线;其中,所述处理器、所述存储器、以及所述收发器通过所述总线通信;21. A management platform, characterized in that, the management platform includes a processor, a memory, a transceiver, and a bus; wherein, the processor, the memory, and the transceiver communicate through the bus; 所述收发器,用于与软件定义网络SDN控制器进行交互,还用于通过业务网络或者预启动执行环境PXE网络与物理机交互;The transceiver is used to interact with the software-defined network SDN controller, and is also used to interact with the physical machine through the service network or the pre-boot execution environment PXE network; 所述存储器用于存放程序;The memory is used to store programs; 所述处理器用于执行所述存储器存储的程序,使得管理平台执行权利要求1至7任一所述的方法。The processor is configured to execute the program stored in the memory, so that the management platform executes the method described in any one of claims 1-7. 22.一种软件定义网络SDN控制器,其特征在于,所述SDN控制器包括,处理器、存储器、收发器和总线;其中,所述处理器、所述存储器、以及所述收发器通过所述总线通信;22. A software-defined network SDN controller, characterized in that the SDN controller includes a processor, a memory, a transceiver, and a bus; wherein the processor, the memory, and the transceiver pass through the the bus communication; 所述收发器,用于与管理平台进行交互,还用于与网关和/或交换机交互来组建业务网络或者预启动执行环境PXE网络;The transceiver is used to interact with the management platform, and is also used to interact with the gateway and/or switch to form a service network or a pre-boot execution environment PXE network; 所述存储器用于存放程序;The memory is used to store programs; 所述处理器用于执行所述存储器存储的程序,使得所述SDN控制器执行权利要求8至10任一所述的方法。The processor is configured to execute the program stored in the memory, so that the SDN controller executes the method described in any one of claims 8 to 10.
CN201610018656.5A 2016-01-12 2016-01-12 Physical machine management method and device Active CN105681081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610018656.5A CN105681081B (en) 2016-01-12 2016-01-12 Physical machine management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610018656.5A CN105681081B (en) 2016-01-12 2016-01-12 Physical machine management method and device

Publications (2)

Publication Number Publication Date
CN105681081A true CN105681081A (en) 2016-06-15
CN105681081B CN105681081B (en) 2019-06-21

Family

ID=56300215

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610018656.5A Active CN105681081B (en) 2016-01-12 2016-01-12 Physical machine management method and device

Country Status (1)

Country Link
CN (1) CN105681081B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899477A (en) * 2017-03-09 2017-06-27 北京百悟科技有限公司 The construction method and device of physical machine in cloud computing platform
CN107766062A (en) * 2017-12-08 2018-03-06 北京小米移动软件有限公司 For installing the method, system and first terminal of software
CN107820262A (en) * 2016-09-13 2018-03-20 华为技术有限公司 Method for parameter configuration, apparatus and system
CN107995068A (en) * 2017-12-20 2018-05-04 北京百度网讯科技有限公司 Network port testing method and equipment
CN108388433A (en) * 2017-12-28 2018-08-10 创新科软件技术(深圳)有限公司 The management platform dispositions method of super emerging system
CN109379267A (en) * 2018-10-18 2019-02-22 郑州云海信息技术有限公司 A method and device for physical machine to join virtual local area network
CN109698773A (en) * 2018-12-21 2019-04-30 浪潮电子信息产业股份有限公司 Recognition methods, device, equipment and the medium of node network interface card belonging network
CN110147344A (en) * 2019-05-21 2019-08-20 优刻得科技股份有限公司 Method, apparatus, storage medium and the system communicated between multiple physical machines
CN110413328A (en) * 2019-07-24 2019-11-05 苏州浪潮智能科技有限公司 A kind of PXE function enabled method, device and the relevant device of network interface card port
CN110766522A (en) * 2019-10-18 2020-02-07 北京浪潮数据技术有限公司 Cross-tenant transfer method of cloud physical machine
CN113312064A (en) * 2021-06-01 2021-08-27 中国民航信息网络股份有限公司 Installation configuration method and device of physical machine and computer readable medium
CN113867738A (en) * 2020-06-12 2021-12-31 中移(苏州)软件技术有限公司 Installation method, device and equipment of operating system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699401A (en) * 2009-10-20 2010-04-28 中兴通讯股份有限公司 Blade server, method for installing operating system thereof and system
CN103297504A (en) * 2013-05-09 2013-09-11 浙江大学 Method for quickly deploying operating systems in physical bare computers in cloud data center
CN104079434A (en) * 2014-07-07 2014-10-01 用友软件股份有限公司 Device and method for managing physical devices in cloud computing system
CN104639378A (en) * 2015-03-10 2015-05-20 浪潮集团有限公司 Automatic server deployment method based on PXE (pre-boot execution environment)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699401A (en) * 2009-10-20 2010-04-28 中兴通讯股份有限公司 Blade server, method for installing operating system thereof and system
CN103297504A (en) * 2013-05-09 2013-09-11 浙江大学 Method for quickly deploying operating systems in physical bare computers in cloud data center
CN104079434A (en) * 2014-07-07 2014-10-01 用友软件股份有限公司 Device and method for managing physical devices in cloud computing system
CN104639378A (en) * 2015-03-10 2015-05-20 浪潮集团有限公司 Automatic server deployment method based on PXE (pre-boot execution environment)

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘俊朋、张东、刘正伟等: "云数据中心Linux操作系统快速部署的方法研究", 《信息技术与标准化》 *
闫凤喜: "跨域云平台的安装部署技术和在线迁移性能研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107820262A (en) * 2016-09-13 2018-03-20 华为技术有限公司 Method for parameter configuration, apparatus and system
WO2018050041A1 (en) * 2016-09-13 2018-03-22 华为技术有限公司 Parameter configuration method, device, and system
CN106899477A (en) * 2017-03-09 2017-06-27 北京百悟科技有限公司 The construction method and device of physical machine in cloud computing platform
CN107766062A (en) * 2017-12-08 2018-03-06 北京小米移动软件有限公司 For installing the method, system and first terminal of software
CN107995068B (en) * 2017-12-20 2020-04-07 北京百度网讯科技有限公司 Network port testing method, equipment and computer readable storage medium
CN107995068A (en) * 2017-12-20 2018-05-04 北京百度网讯科技有限公司 Network port testing method and equipment
CN108388433A (en) * 2017-12-28 2018-08-10 创新科软件技术(深圳)有限公司 The management platform dispositions method of super emerging system
CN108388433B (en) * 2017-12-28 2021-09-17 深圳创新科软件技术有限公司 Management platform deployment method of super-fusion system
CN109379267B (en) * 2018-10-18 2021-07-02 郑州云海信息技术有限公司 A method and device for physical machine to join virtual local area network
CN109379267A (en) * 2018-10-18 2019-02-22 郑州云海信息技术有限公司 A method and device for physical machine to join virtual local area network
CN109698773A (en) * 2018-12-21 2019-04-30 浪潮电子信息产业股份有限公司 Recognition methods, device, equipment and the medium of node network interface card belonging network
CN110147344A (en) * 2019-05-21 2019-08-20 优刻得科技股份有限公司 Method, apparatus, storage medium and the system communicated between multiple physical machines
CN110147344B (en) * 2019-05-21 2022-02-11 优刻得科技股份有限公司 Method, apparatus, storage medium, and system for communicating between multiple physical machines
CN110413328A (en) * 2019-07-24 2019-11-05 苏州浪潮智能科技有限公司 A kind of PXE function enabled method, device and the relevant device of network interface card port
CN110413328B (en) * 2019-07-24 2022-05-24 苏州浪潮智能科技有限公司 PXE function enabling method and device for network card port and related equipment
CN110766522A (en) * 2019-10-18 2020-02-07 北京浪潮数据技术有限公司 Cross-tenant transfer method of cloud physical machine
CN113867738A (en) * 2020-06-12 2021-12-31 中移(苏州)软件技术有限公司 Installation method, device and equipment of operating system and storage medium
CN113312064A (en) * 2021-06-01 2021-08-27 中国民航信息网络股份有限公司 Installation configuration method and device of physical machine and computer readable medium
CN113312064B (en) * 2021-06-01 2024-03-26 中国民航信息网络股份有限公司 Method and device for installing and configuring physical machine and computer readable medium

Also Published As

Publication number Publication date
CN105681081B (en) 2019-06-21

Similar Documents

Publication Publication Date Title
CN105681081A (en) Physical machine management method and device
CN114070723B (en) Virtual network configuration method and system of bare metal server and intelligent network card
CN113452830B (en) Batch control method of android cloud mobile phone, computer readable medium and electronic device
US7649851B2 (en) Virtual network management method, virtual network management program, virtual network management system, and virtual network means
EP3316532A1 (en) Computer device, system and method for implementing load balancing
CN106790467B (en) A method for automatic discovery and automatic deployment of cloud hosts
WO2019184164A1 (en) Method for automatically deploying kubernetes worker node, device, terminal apparatus, and readable storage medium
WO2020024413A1 (en) Method for controlling deployment of cloud computing platform, server, and storage medium
CN108322325B (en) Virtual machine management method and device
EP3332325B1 (en) Methods, apparatus, and systems for providing access to serial ports of virtual machines in self-deployed virtual applications
WO2014032519A1 (en) Method, system and device for managing virtual machine software in cloud environment
CN106549789B (en) Method and system for realizing server installation
CN105391568A (en) SDN (Software Defined Network) implementation method, device and system
CN109445801A (en) A kind of method and apparatus detecting bare machine network interface card information
CN104572372A (en) System and method for building server performance testing environment
CN104394223A (en) Automatic rapid deployment method for large-scale computer cluster system nodes
WO2014101514A1 (en) Method for obtaining resource information of server, resource pool management system and server
CN110716787A (en) Container address setting method, apparatus, and computer-readable storage medium
CN108259305A (en) A kind of physical machine remote dummy lan handover method and device based on openstack
CN118075107A (en) Cloud service deployment method and cloud management platform based on cloud computing technology
CN113127144A (en) Processing method, processing device and storage medium
CN108664274A (en) Implementation method, system and the device of operating system initialization configuration
CN108989123A (en) A kind of server configuration method and device
CN103905226B (en) The automatic deployment method and device of a kind of business platform
CN110519147A (en) Data frame transmission method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220210

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technologies Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right