[go: up one dir, main page]

CN108900656A - A kind of method and device of batch deployment - Google Patents

A kind of method and device of batch deployment Download PDF

Info

Publication number
CN108900656A
CN108900656A CN201810964500.5A CN201810964500A CN108900656A CN 108900656 A CN108900656 A CN 108900656A CN 201810964500 A CN201810964500 A CN 201810964500A CN 108900656 A CN108900656 A CN 108900656A
Authority
CN
China
Prior art keywords
calculating equipment
address
server
computing device
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810964500.5A
Other languages
Chinese (zh)
Inventor
蒋晨晓
王幸福
刘洋
袁艳涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810964500.5A priority Critical patent/CN108900656A/en
Publication of CN108900656A publication Critical patent/CN108900656A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • 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
    • 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/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5053Lease time; Renewal aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)
  • Stored Programmes (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明公开了一种批量部署的方法,应用于云平台虚拟化系统,所述方法包括:将各待配置的计算设备按照产品序列号SN码顺序排列;对于任一待配置的计算设备,获取该计算设备的配置信息,配置信息包括该计算设备的SN码和动态主机配置协议DHCP服务器为该计算设备分配的网络互联协议IP地址;将DHCP服务器分配的IP地址修改为该计算设备对应的静态IP地址后重启该计算设备;其中,计算设备对应的静态IP地址根据该计算设备的SN码以及该计算设备在各待配置的计算设备中的排列位置确定。本发明无需人工配置MAC地址,从而减少人工操作,既提高了配置效率,也保证了配置的准确率。

The invention discloses a method for batch deployment, which is applied to a cloud platform virtualization system. The method includes: arranging each computing device to be configured according to the product serial number SN code sequence; for any computing device to be configured, obtain The configuration information of the computing device, the configuration information includes the SN code of the computing device and the network interconnection protocol IP address assigned by the DHCP server for the computing device; modify the IP address assigned by the DHCP server to the static IP address corresponding to the computing device restart the computing device after the IP address; wherein, the static IP address corresponding to the computing device is determined according to the SN code of the computing device and the arrangement position of the computing device in each computing device to be configured. The invention does not need to manually configure the MAC address, thereby reducing manual operations, not only improving the configuration efficiency, but also ensuring the accuracy of the configuration.

Description

一种批量部署的方法及装置A method and device for batch deployment

技术领域technical field

本发明涉及系统部署,尤其涉及批量部署的方法及装置。The present invention relates to system deployment, in particular to a batch deployment method and device.

背景技术Background technique

PXE(Pre-boot Execute Environment,预启动执行环境)由Intel公司开发,是目前比较主流的技术,其通过C/S(Client/Server,客户端/服务器)网络模式工作,支持服务器通过网络从远端服务器下载系统镜像和配置文件,并由此支持操作系统通过网络实现自动化启动和安装。PXE (Pre-boot Execute Environment, pre-boot execution environment) is developed by Intel Corporation and is currently a relatively mainstream technology. It works through the C/S (Client/Server, client/server) network mode and supports servers from remote The terminal server downloads the system image and configuration files, and thus supports the automatic startup and installation of the operating system through the network.

对于拥有PXE网卡的服务器,可以作为PXE客户端,通过网络从PXE服务器下载安装操作系统所需的文件,并通过TFTP(Trivial File Transfer Protocol,普通文本传输协议)服务器加载内核和文件系统后进行安装,这种基于PXE方式安装操作系统的效率要远远高于采用光驱、BMC、USB等方式,尤其适用于云数据操作中心拥有大量服务器的初始环境安装配置。For a server with a PXE network card, it can be used as a PXE client to download the files required to install the operating system from the PXE server through the network, and install the kernel and file system after loading the kernel and file system through the TFTP (Trivial File Transfer Protocol) server , the efficiency of installing the operating system based on PXE is much higher than that of using CD-ROM, BMC, USB, etc., and it is especially suitable for the initial environment installation and configuration of the cloud data operation center with a large number of servers.

随着云技术的飞速发展,云数据操作中心应用而生。云数据操作中心为云计算以及云存储的整合性方案,能够实现计算、存储、网络的全面逻辑化资源整合。支持硬件在线扩展,即插即用,能够同时管理5000台以上的服务器,池化50000TB以上的存储空间,支持50000个以上的虚拟资源节点,支持不间断的资源进化;此外,云数据操作中心可对数据中心进行一体化自动化管理,大幅度提高运营水平。With the rapid development of cloud technology, the application of cloud data operation center is born. The cloud data operation center is an integrated solution of cloud computing and cloud storage, which can realize the comprehensive logical resource integration of computing, storage and network. Support online expansion of hardware, plug and play, can manage more than 5,000 servers at the same time, pool storage space of more than 50,000TB, support more than 50,000 virtual resource nodes, and support uninterrupted resource evolution; in addition, the cloud data operation center can Integrated and automated management of the data center greatly improves the operational level.

在云数据操作中心中添加大量的服务器,按照传统的工作方式工作人员需要依次手动对各个服务器进行虚拟化操作系统安装部署。当服务器数量庞大时,人工单机手动安装配置虚拟化操作系统,不仅费时费力,人工操作还会带来不可避免的失误,导致整个数据中心的工作效率以及准确率低下。通常情况下,当有大量客户端需要安装和配置时,需要在PXE服务器上手动配置客户端的MAC(Media Access Control,媒体访问控制)地址与IP地址(Internet Protocol Address,互联网协议地址)地址的对应关系,而MAC地址一般是由12位16进制数组成,人工配置显得过于冗长和复杂,在输入时也容易出错,造成后续管理和维护困难。A large number of servers are added to the cloud data operation center. According to the traditional working method, the staff need to manually install and deploy the virtualized operating system on each server in turn. When the number of servers is huge, it is not only time-consuming and labor-intensive to manually install and configure a virtualized operating system on a single machine, but manual operations will also lead to inevitable mistakes, resulting in low work efficiency and accuracy of the entire data center. Usually, when a large number of clients need to be installed and configured, it is necessary to manually configure the correspondence between the client's MAC (Media Access Control, Media Access Control) address and IP address (Internet Protocol Address, Internet Protocol address) address on the PXE server relationship, and the MAC address is generally composed of 12-digit hexadecimal numbers, manual configuration is too long and complicated, and it is also prone to errors during input, resulting in difficulties in subsequent management and maintenance.

发明内容Contents of the invention

本申请所要解决的技术是提供一种批量部署的方法及装置,可以减少人工操作,提高配置效率。The technology to be solved in this application is to provide a batch deployment method and device, which can reduce manual operations and improve configuration efficiency.

为了解决上述技术问题,本申请提供了一种批量部署的方法,应用于云平台虚拟化系统,所述方法包括:In order to solve the above technical problems, the present application provides a batch deployment method, which is applied to a cloud platform virtualization system, and the method includes:

将各待配置的计算设备按照产品序列号SN码顺序排列;Arrange the computing devices to be configured according to the serial number and SN code of the product;

对于任一待配置的计算设备,获取该计算设备的配置信息,所述配置信息包括该计算设备的SN码和动态主机配置协议DHCP服务器为该计算设备分配的网络互联协议IP地址;For any computing device to be configured, the configuration information of the computing device is obtained, and the configuration information includes the SN code of the computing device and the Internet Protocol IP address assigned by the Dynamic Host Configuration Protocol DHCP server for the computing device;

将所述DHCP服务器分配的IP地址修改为该计算设备对应的静态IP地址后重启该计算设备;Restarting the computing device after modifying the IP address assigned by the DHCP server to a static IP address corresponding to the computing device;

其中,计算设备对应的静态IP地址根据该计算设备的SN码以及该计算设备在所述各待配置的计算设备中的排列位置确定。Wherein, the static IP address corresponding to the computing device is determined according to the SN code of the computing device and the arrangement position of the computing device among the computing devices to be configured.

进一步,在所述获取该计算设备的配置信息之后,在所述将所述DHCP服务器分配的IP地址修改为该服务器对应的静态IP地址之前,所述方法还包括:Further, after the configuration information of the computing device is acquired, before the IP address assigned by the DHCP server is changed to a static IP address corresponding to the server, the method further includes:

根据获取的配置信息生成该计算设备的配置文件。A configuration file of the computing device is generated according to the acquired configuration information.

进一步,在所述根据获取的配置信息生成配置文件之后,在所述重启该计算设备之前,所述方法还包括:Further, after the configuration file is generated according to the acquired configuration information, before the computing device is restarted, the method further includes:

修改该计算设备的基本信息,所述基本信息包括主机名称。The basic information of the computing device is modified, the basic information includes the host name.

进一步,在所述将各待配置的服务器按照产品序列号SN码顺序排列之后,在获取该服务器的配置信息之前,所述方法还包括:Further, after the servers to be configured are arranged in order according to the product serial number SN code, before obtaining the configuration information of the server, the method further includes:

通过DHCP服务器完成该计算设备的系统自动化安装。The automatic system installation of the computing device is completed through the DHCP server.

进一步,所述通过DHCP服务器完成系统自动化安装包括:Further, the completion of system automation installation through the DHCP server includes:

从DHCP服务器获取所述DHCP服务器为该计算设备分配的IP地址以及引导文件的位置;Obtain the IP address assigned by the DHCP server to the computing device and the location of the boot file from the DHCP server;

根据所述引导文件的位置获取引导文件后,执行所述引导文件;After obtaining the boot file according to the location of the boot file, execute the boot file;

根据所述引导文件的执行结果加载内核和文件系统后进入安装界面。After loading the kernel and the file system according to the execution result of the boot file, the installation interface is entered.

本申请还提供一种批量部署的装置,应用于云平台虚拟化系统,所述装置包括:The present application also provides a device for batch deployment, which is applied to a cloud platform virtualization system, and the device includes:

排序模块,用于将各待配置的计算设备按照产品序列号SN码顺序排列;The sorting module is used to arrange the computing devices to be configured according to the order of the product serial number and SN code;

处理模块,用于对于任一待配置的计算设备,获取该计算设备的配置信息,所述配置信息包括该计算设备的SN码和动态主机配置协议DHCP服务器为该计算设备分配的网络互联协议IP地址;将所述DHCP服务器分配的IP地址修改为该计算设备对应的静态IP地址后重启该计算设备;A processing module, configured to obtain configuration information of any computing device to be configured, the configuration information including the SN code of the computing device and the network interconnection protocol IP assigned to the computing device by a Dynamic Host Configuration Protocol (DHCP) server address; restarting the computing device after modifying the IP address assigned by the DHCP server to a static IP address corresponding to the computing device;

其中,计算设备对应的静态IP地址根据该计算设备的SN码以及该计算设备在所述各待配置的计算设备中的排列位置确定。Wherein, the static IP address corresponding to the computing device is determined according to the SN code of the computing device and the arrangement position of the computing device among the computing devices to be configured.

进一步,所述处理模块,还用于在获取该计算设备的配置信息之后,在所述将所述DHCP服务器分配的IP地址修改为该服务器对应的静态IP地址之前,根据获取的配置信息生成该计算设备的配置文件。Further, the processing module is further configured to, after obtaining the configuration information of the computing device and before modifying the IP address assigned by the DHCP server to a static IP address corresponding to the server, generate the IP address according to the obtained configuration information. Configuration files for computing devices.

进一步,所述处理模块,还用于在根据获取的配置信息生成配置文件之后,在所述重启该计算设备之前,修改该计算设备的基本信息,所述基本信息包括主机名称。Further, the processing module is further configured to modify the basic information of the computing device after generating the configuration file according to the acquired configuration information and before restarting the computing device, the basic information including the host name.

进一步,所述处理模块,还用于在将各待配置的服务器按照产品序列号SN码顺序排列之后,在获取该服务器的配置信息之前,通过动态主机配置协议DHCP服务器完成该计算设备的系统自动化安装。Further, the processing module is also used to complete the system automation of the computing device through the Dynamic Host Configuration Protocol (DHCP) server after arranging the servers to be configured according to the order of the product serial number and SN code, and before obtaining the configuration information of the server Install.

进一步,所述通过DHCP服务器完成系统自动化安装是指:Further, the completion of system automation installation through the DHCP server refers to:

从DHCP服务器获取所述DHCP服务器为该计算设备分配的IP地址以及引导文件的位置;Obtain the IP address assigned by the DHCP server to the computing device and the location of the boot file from the DHCP server;

根据所述引导文件的位置获取引导文件后,执行所述引导文件;After obtaining the boot file according to the location of the boot file, execute the boot file;

根据所述引导文件的执行结果加载内核和文件系统后进入安装界面。After loading the kernel and the file system according to the execution result of the boot file, the installation interface is entered.

上述方案无需人工配置MAC地址,从而减少人工操作,既提高了配置效率,也保证了配置的准确率。The above solution does not need to manually configure the MAC address, thereby reducing manual operations, which not only improves the configuration efficiency, but also ensures the accuracy of the configuration.

附图说明Description of drawings

图1是本申请实施例一的批量部署的方法的流程示意图;FIG. 1 is a schematic flowchart of a method for batch deployment in Embodiment 1 of the present application;

图2是本申请实施例一的批量部署的方法的又一流程示意图;FIG. 2 is another schematic flowchart of the batch deployment method in Embodiment 1 of the present application;

图3是本申请实施例一的批量部署的装置的结构示意图;FIG. 3 is a schematic structural diagram of a device deployed in batches according to Embodiment 1 of the present application;

图4是本申请实施例二的批量部署的方法的流程示意图。FIG. 4 is a schematic flowchart of a method for batch deployment according to Embodiment 2 of the present application.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚明白,下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the application clearer, the embodiments of the application will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

实施例一Embodiment one

如图1所示,本实施例提供一种批量部署的方法,应用于云平台虚拟化系统,所述方法包括:As shown in Figure 1, this embodiment provides a method for batch deployment, which is applied to a cloud platform virtualization system, and the method includes:

步骤S100、将各待配置的计算设备按照SN码(Serial Number,产品序列号)顺序排列;Step S100, arranging each computing device to be configured according to SN code (Serial Number, product serial number);

步骤S102、对于任一待配置的计算设备,获取该计算设备的配置信息,所述配置信息包括该计算设备的SN码和DHCP(Dynamic Host Configuration Protocol,动态主机配置协议)服务器为该计算设备分配的网络互联协议IP地址;Step S102, for any computing device to be configured, obtain the configuration information of the computing device, the configuration information includes the SN code of the computing device and the DHCP (Dynamic Host Configuration Protocol, Dynamic Host Configuration Protocol) server for the computing device. Internet Protocol IP address;

步骤S104、将所述DHCP服务器分配的IP地址修改为该计算设备对应的静态IP地址后重启该计算设备;Step S104, modifying the IP address assigned by the DHCP server to a static IP address corresponding to the computing device and restarting the computing device;

其中,计算设备对应的静态IP地址根据该计算设备的SN码以及该计算设备在所述各待配置的计算设备中的排列位置确定。Wherein, the static IP address corresponding to the computing device is determined according to the SN code of the computing device and the arrangement position of the computing device among the computing devices to be configured.

本实施例中,计算设备可以是服务器,也可以是计算机、普通个人电脑等,都是用于本申请的技术方案。In this embodiment, the computing device may be a server, or a computer, an ordinary personal computer, etc., all of which are used in the technical solutions of this application.

进一步,如图2所示,在所述获取该计算设备的配置信息之后,在所述将所述DHCP服务器分配的IP地址修改为该服务器对应的静态IP地址之前,所述方法还可以包括:Further, as shown in FIG. 2, after the acquisition of the configuration information of the computing device and before the modification of the IP address assigned by the DHCP server to the static IP address corresponding to the server, the method may further include:

步骤S103、根据获取的配置信息生成该计算设备的配置文件。Step S103, generating a configuration file of the computing device according to the acquired configuration information.

进一步,在所述根据获取的配置信息生成配置文件之后,在所述重启该计算设备之前,所述方法还可以包括:Further, after the configuration file is generated according to the acquired configuration information and before the computing device is restarted, the method may further include:

步骤S105、修改该计算设备的基本信息,所述基本信息包括主机名称。Step S105. Modify the basic information of the computing device, where the basic information includes the name of the host.

需要说明的是,修改信息后需要重启计算设备,然后这些修改后信息才能生效。It should be noted that after modifying the information, the computing device needs to be restarted, and then the modified information will take effect.

进一步,在所述将各待配置的服务器按照产品序列号SN码顺序排列之后,在获取该服务器的配置信息之前,所述方法还可以包括:Further, after the servers to be configured are arranged in order according to the product serial number SN code, before obtaining the configuration information of the server, the method may further include:

步骤S101、通过动态主机配置协议DHCP服务器完成该计算设备的系统自动化安装。Step S101, complete the automatic system installation of the computing device through the DHCP server.

进一步,所述通过DHCP服务器完成系统自动化安装可以包括:Further, the completion of system automation installation through the DHCP server may include:

从DHCP服务器获取所述DHCP服务器为该计算设备分配的IP地址以及引导文件的位置;Obtain the IP address assigned by the DHCP server to the computing device and the location of the boot file from the DHCP server;

根据所述引导文件的位置获取引导文件后,执行所述引导文件;After obtaining the boot file according to the location of the boot file, execute the boot file;

根据所述引导文件的执行结果加载内核和文件系统后进入安装界面。After loading the kernel and the file system according to the execution result of the boot file, the installation interface is entered.

通过上述技术方案,可以绕过人工配置MAC地址与IP地址之间的对应关系,从而减少人工操作,实现大批量机器的自动化部署。同时,本申请的技术方案还可以提高云数据操作中心中服务器虚拟化系统IP地址等基础配置的效率与准确率。Through the above technical solution, manual configuration of the corresponding relationship between MAC addresses and IP addresses can be bypassed, thereby reducing manual operations and realizing automatic deployment of a large number of machines. At the same time, the technical solution of the present application can also improve the efficiency and accuracy of the basic configuration such as the IP address of the server virtualization system in the cloud data operation center.

如图3所示,本实施例还提供一种批量部署的装置,应用于云平台虚拟化系统,所述装置包括:As shown in FIG. 3, this embodiment also provides a device for batch deployment, which is applied to a cloud platform virtualization system, and the device includes:

排序模块10,用于将各待配置的计算设备按照产品序列号SN码顺序排列;The sorting module 10 is used to arrange each computing device to be configured according to the order of the product serial number SN code;

处理模块11,用于对于任一待配置的计算设备,获取该计算设备的配置信息,所述配置信息包括该计算设备的SN码和所述DHCP服务器为该计算设备分配的网络互联协议IP地址;将所述DHCP服务器分配的IP地址修改为该计算设备对应的静态IP地址后重启该计算设备;The processing module 11 is configured to obtain, for any computing device to be configured, the configuration information of the computing device, the configuration information including the SN code of the computing device and the network interconnection protocol IP address assigned to the computing device by the DHCP server ; Restart the computing device after modifying the IP address assigned by the DHCP server to the static IP address corresponding to the computing device;

其中,计算设备对应的静态IP地址根据该计算设备的SN码以及该计算设备在所述各待配置的计算设备中的排列位置确定。Wherein, the static IP address corresponding to the computing device is determined according to the SN code of the computing device and the arrangement position of the computing device among the computing devices to be configured.

进一步,所述处理模块,还可以用于在获取该计算设备的配置信息之后,在所述将所述DHCP服务器分配的IP地址修改为该服务器对应的静态IP地址之前,根据获取的配置信息生成该计算设备的配置文件。Further, the processing module may also be configured to generate an IP address according to the obtained configuration information after obtaining the configuration information of the computing device and before modifying the IP address assigned by the DHCP server to a static IP address corresponding to the server. The configuration file for the computing device.

进一步,所述处理模块,还可以用于在根据获取的配置信息生成配置文件之后,在所述重启该计算设备之前,修改该计算设备的基本信息,所述基本信息包括主机名称。Further, the processing module may also be configured to modify basic information of the computing device after generating the configuration file according to the acquired configuration information and before restarting the computing device, the basic information including the host name.

进一步,所述处理模块,还可以用于在将各待配置的服务器按照产品序列号SN码顺序排列之后,在获取该服务器的配置信息之前,通过动态主机配置协议DHCP服务器完成该计算设备的系统自动化安装。Further, the processing module can also be used to complete the system configuration of the computing device through the Dynamic Host Configuration Protocol (DHCP) server after arranging the servers to be configured according to the order of the product serial number and SN code, and before obtaining the configuration information of the server. Automated installation.

进一步,所述通过DHCP服务器完成系统自动化安装是指:Further, the completion of system automation installation through the DHCP server refers to:

从DHCP服务器获取所述DHCP服务器为该计算设备分配的IP地址以及引导文件的位置;Obtain the IP address assigned by the DHCP server to the computing device and the location of the boot file from the DHCP server;

根据所述引导文件的位置获取引导文件后,执行所述引导文件;After obtaining the boot file according to the location of the boot file, execute the boot file;

根据所述引导文件的执行结果加载内核和文件系统后进入安装界面。After loading the kernel and the file system according to the execution result of the boot file, the installation interface is entered.

上述技术方案,可以绕过人工配置MAC地址与IP地址之间的对应关系,从而减少人工操作,实现大批量机器的自动化部署。同时,本申请的技术方案还可以提高云数据操作中心中服务器虚拟化系统IP地址等基础配置的效率与准确率。The above technical solution can bypass the manual configuration of the corresponding relationship between the MAC address and the IP address, thereby reducing manual operations and realizing automatic deployment of a large number of machines. At the same time, the technical solution of the present application can also improve the efficiency and accuracy of the basic configuration such as the IP address of the server virtualization system in the cloud data operation center.

实施例二Embodiment two

下面以服务器为例说明本申请的批量部署的方法。The following uses a server as an example to illustrate the batch deployment method of this application.

如图4所示,本实施里提供一种批量部署的方法,所述方法包括:As shown in Figure 4, a batch deployment method is provided in this implementation, and the method includes:

步骤201、将物理服务器上架时做好规划,同一批次服务器需要按照SN号顺序排列;Step 201, plan well when putting the physical servers on the shelves, and the servers of the same batch need to be arranged in the order of SN numbers;

步骤202、待配置服务器从自身的PXE网卡启动,向本网络中的DHCP服务器索取IP地址,并搜寻引导bootstrap文件的位置;Step 202, the server to be configured starts from its own PXE network card, requests an IP address from the DHCP server in the network, and searches for the location of the bootstrap file;

步骤203、DHCP服务器返回分给待配置服务器IP以及bootstrap文件的放置位置;Step 203, the DHCP server returns the placement location assigned to the server IP to be configured and the bootstrap file;

本实施例中,bootstrap文件一般是放在一台TFTP服务器上。In this embodiment, the bootstrap file is generally placed on a TFTP server.

步骤204、待配置服务器向本网络中的TFTP服务器索取bootstrap文件;Step 204, the server to be configured requests the bootstrap file from the TFTP server in the network;

步骤205、待配置服务器取得bootstrap文件后之执行该文件;Step 205, execute the file after the configuration server obtains the bootstrap file;

步骤206、根据bootstrap的执行结果,通过TFTP服务器加载内核和文件系统;Step 206, according to the execution result of bootstrap, load kernel and file system through TFTP server;

步骤207、进入安装画面,此时待配置服务器通过预先设定好的安装配置文件进入系统自动化安装过程;Step 207, enter the installation screen, at this time the server to be configured enters the system automatic installation process through the pre-set installation configuration file;

步骤208、收集已完成系统自动化安装的服务器的信息;Step 208, collecting information on servers that have completed system automation installation;

本实施例中,所收集的信息包含SN号以及服务器DHCP为该服务器分配的IP地址等信息。In this embodiment, the collected information includes information such as the SN number and the IP address assigned to the server by the server DHCP.

步骤209、根据收集的信息生成各个服务器的配置文件,将各服务器的IP地址(DHCP分配的IP地址)修改为规划的静态地址;Step 209, generate configuration files for each server according to the collected information, and modify the IP address (IP address assigned by DHCP) of each server to a planned static address;

本实施例中,除了修改DHCP分配的IP地址外,还可以修改服务器的基本信息,例如主机名称Hostname等。In this embodiment, in addition to modifying the IP address assigned by the DHCP, the basic information of the server, such as the host name Hostname, can also be modified.

步骤210、重启服务器,完成设定。Step 210, restart the server, and complete the setting.

上述技术方案,可以绕过人工配置MAC地址与IP地址之间的对应关系,从而减少人工操作,实现大批量机器的自动化部署。同时,本申请的技术方案还可以提高云数据操作中心中服务器虚拟化系统IP地址等基础配置的效率与准确率。The above technical solution can bypass the manual configuration of the corresponding relationship between the MAC address and the IP address, thereby reducing manual operations and realizing automatic deployment of a large number of machines. At the same time, the technical solution of the present application can also improve the efficiency and accuracy of the basic configuration such as the IP address of the server virtualization system in the cloud data operation center.

本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现,相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本申请不限制于任何特定形式的硬件和软件的结合。Those skilled in the art can understand that all or part of the steps in the above method can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, and the like. Optionally, all or part of the steps in the above embodiments can also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiments can be implemented in the form of hardware, or can be implemented in the form of software function modules. The form is realized. This application is not limited to any specific form of combination of hardware and software.

以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, there may be various modifications and changes in the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the protection scope of this application.

Claims (10)

1. a kind of method of batch deployment, is applied to cloud platform virtualization system, which is characterized in that the method includes:
Each calculating equipment to be configured is arranged according to product ID SN code sequence;
For any calculating equipment to be configured, the configuration information of the calculating equipment is obtained, the configuration information includes the calculating The SN code and dynamic host configuration protocol DHCP server of equipment are the network interconnection Protocol IP address of calculating equipment distribution;
The calculating is restarted after the IP address that the Dynamic Host Configuration Protocol server distributes is revised as the corresponding static ip address of calculating equipment Equipment;
Wherein, calculate the corresponding static ip address of equipment according to the SN code of the calculating equipment and the calculating equipment it is described respectively to Arrangement position in the calculating equipment of configuration determines.
2. the method as described in claim 1, which is characterized in that after the configuration information for obtaining the calculating equipment, The IP address that the Dynamic Host Configuration Protocol server is distributed is revised as before the corresponding static ip address of the server, and the method is also Including:
The configuration file of the calculating equipment is generated according to the configuration information of acquisition.
3. method according to claim 2, which is characterized in that it is described according to the configuration information of acquisition generate configuration file it Afterwards, it is described restart the calculating equipment before, the method also includes:
The essential information of the calculating equipment is modified, the essential information includes Hostname.
4. the method as described in claim 1, which is characterized in that it is described by each server to be configured according to product ID After SN code sequence arranges, before the configuration information for obtaining the server, the method also includes:
The system automation installation of the calculating equipment is completed by Dynamic Host Configuration Protocol server.
5. the method as described in claim 1, which is characterized in that described to complete system automation installation kit by Dynamic Host Configuration Protocol server It includes:
Obtaining the Dynamic Host Configuration Protocol server from Dynamic Host Configuration Protocol server is the IP address and the position for guiding file that the calculating equipment is distributed;
After the position acquisition guidance file of the guidance file, the guidance file is executed;
Enter installation interface after loading kernel and file system according to the implementing result of the guidance file.
6. a kind of device of batch deployment, is applied to cloud platform virtualization system, which is characterized in that described device includes:
Sorting module, for arranging each calculating equipment to be configured according to product ID SN code sequence;
Processing module, it is described to match confidence for obtaining the configuration information of the calculating equipment for any calculating equipment to be configured Breath includes that SN code and the dynamic host configuration protocol DHCP server of the calculating equipment are the network interconnection of calculating equipment distribution Protocol IP address;Restart after the IP address that the Dynamic Host Configuration Protocol server distributes is revised as the corresponding static ip address of calculating equipment The calculating equipment;
Wherein, calculate the corresponding static ip address of equipment according to the SN code of the calculating equipment and the calculating equipment it is described respectively to Arrangement position in the calculating equipment of configuration determines.
7. device as claimed in claim 6, it is characterised in that:
The processing module is also used to after the configuration information for obtaining the calculating equipment, described by the Dynamic Host Configuration Protocol server The IP address of distribution is revised as before the corresponding static ip address of the server, is generated the calculating according to the configuration information of acquisition and is set Standby configuration file.
8. device as claimed in claim 7, it is characterised in that:
The processing module is also used to after generating configuration file according to the configuration information of acquisition, restarts the calculating described Before equipment, the essential information of the calculating equipment is modified, the essential information includes Hostname.
9. device as claimed in claim 6, it is characterised in that:
The processing module is also used to after arranging each server to be configured according to product ID SN code sequence, Before the configuration information for obtaining the server, system which is completed by dynamic host configuration protocol DHCP server Automation installation.
10. device as claimed in claim 6, which is characterized in that described to complete system automation installation by Dynamic Host Configuration Protocol server Refer to:
Obtaining the Dynamic Host Configuration Protocol server from Dynamic Host Configuration Protocol server is the IP address and the position for guiding file that the calculating equipment is distributed;
After the position acquisition guidance file of the guidance file, the guidance file is executed;
Enter installation interface after loading kernel and file system according to the implementing result of the guidance file.
CN201810964500.5A 2018-08-23 2018-08-23 A kind of method and device of batch deployment Pending CN108900656A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810964500.5A CN108900656A (en) 2018-08-23 2018-08-23 A kind of method and device of batch deployment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810964500.5A CN108900656A (en) 2018-08-23 2018-08-23 A kind of method and device of batch deployment

Publications (1)

Publication Number Publication Date
CN108900656A true CN108900656A (en) 2018-11-27

Family

ID=64358318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810964500.5A Pending CN108900656A (en) 2018-08-23 2018-08-23 A kind of method and device of batch deployment

Country Status (1)

Country Link
CN (1) CN108900656A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677509A (en) * 2019-09-09 2020-01-10 无锡江南计算技术研究所 Automatic address configuration system suitable for high-performance computer
CN110677505A (en) * 2019-08-14 2020-01-10 苏州浪潮智能科技有限公司 Method and device for configuring static IP in batch
CN111061496A (en) * 2019-12-27 2020-04-24 浪潮电子信息产业股份有限公司 PXE installation method and device for Linux operating system
CN111934953A (en) * 2020-08-07 2020-11-13 北京计算机技术及应用研究所 Batch testing method based on domestic processor computer platform
CN112492061A (en) * 2020-11-20 2021-03-12 浪潮电子信息产业股份有限公司 IP address modification method, device and equipment of BMC (baseboard management controller) and readable storage medium
WO2022148291A1 (en) * 2021-01-08 2022-07-14 苏州浪潮智能科技有限公司 Method and system for configuring bmc ip addresses of bare metal servers, medium and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102335A (en) * 2006-07-07 2008-01-09 富士施乐株式会社 Network system, image-processing device, image-processing method, computer-readable medium, and network-setting device
US8606940B2 (en) * 2008-02-06 2013-12-10 Alcatel Lucent DHCP address conflict detection/enforcement
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)
CN105867356A (en) * 2016-06-03 2016-08-17 温州大学 Water pump controller test system and IP address setting method
CN107404544A (en) * 2016-05-19 2017-11-28 联想企业解决方案(新加坡)有限公司 Method and device for IP address assignment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102335A (en) * 2006-07-07 2008-01-09 富士施乐株式会社 Network system, image-processing device, image-processing method, computer-readable medium, and network-setting device
US8606940B2 (en) * 2008-02-06 2013-12-10 Alcatel Lucent DHCP address conflict detection/enforcement
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)
CN107404544A (en) * 2016-05-19 2017-11-28 联想企业解决方案(新加坡)有限公司 Method and device for IP address assignment
CN105867356A (en) * 2016-06-03 2016-08-17 温州大学 Water pump controller test system and IP address setting method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677505A (en) * 2019-08-14 2020-01-10 苏州浪潮智能科技有限公司 Method and device for configuring static IP in batch
CN110677509A (en) * 2019-09-09 2020-01-10 无锡江南计算技术研究所 Automatic address configuration system suitable for high-performance computer
CN110677509B (en) * 2019-09-09 2022-04-12 无锡江南计算技术研究所 Automatic address configuration system suitable for high-performance computer
CN111061496A (en) * 2019-12-27 2020-04-24 浪潮电子信息产业股份有限公司 PXE installation method and device for Linux operating system
CN111934953A (en) * 2020-08-07 2020-11-13 北京计算机技术及应用研究所 Batch testing method based on domestic processor computer platform
CN111934953B (en) * 2020-08-07 2024-02-02 北京计算机技术及应用研究所 Batch test method based on domestic processor computer platform
CN112492061A (en) * 2020-11-20 2021-03-12 浪潮电子信息产业股份有限公司 IP address modification method, device and equipment of BMC (baseboard management controller) and readable storage medium
WO2022148291A1 (en) * 2021-01-08 2022-07-14 苏州浪潮智能科技有限公司 Method and system for configuring bmc ip addresses of bare metal servers, medium and device
US12224900B2 (en) 2021-01-08 2025-02-11 Inspur Suzhou Intelligent Technology Co., Ltd. Method and system for configuring BMC IP addresses of bare metal servers, medium and device

Similar Documents

Publication Publication Date Title
CN108900656A (en) A kind of method and device of batch deployment
CN101794235B (en) Diskless computer starting method based on operating system network drive
US8019837B2 (en) Providing network identity for virtual machines
CN100410880C (en) Automated Deployment Methods for Operating Systems
US10303458B2 (en) Multi-platform installer
US7451443B2 (en) Online computer maintenance utilizing a virtual machine monitor
US9465625B2 (en) Provisioning of operating environments on a server in a networked environment
CN108089913B (en) Virtual machine deployment method of super-fusion system
CN113495732A (en) Server deployment method, device, equipment and readable storage medium
JP2014038610A (en) Method of high-speed automation of cluster system construction using virtual disk
CN104572372A (en) System and method for building server performance testing environment
CN112445495B (en) Mirror image and recovery method of high-performance computing cluster node
CN105242875A (en) Server raid batch configuration method
US11861357B2 (en) Selecting and sending subset of components to computing device prior to operating system install
CN106789327A (en) The automatic method and system that host is added for cloud platform
US12197939B2 (en) Provisioning DPU management operating systems
CN107943496A (en) A kind of device and method of whole machine cabinet server batch updating firmware
CN111371610A (en) Network card firmware batch refreshing method, system, terminal and storage medium
CN105183528A (en) Server bios upgrading method and system
US11256519B2 (en) Using a single process to install a UEFI-supported OS or a non-UEFI supported OS on a hardware platform
CN108989123A (en) A kind of server configuration method and device
US20060047927A1 (en) Incremental provisioning of software
CN111124437A (en) A method, system and device for acquiring bare metal resource configuration information based on OpenStack
CN106557354A (en) The method and computer equipment of the property parameters of privately owned mirror image are set
US20170034120A1 (en) Network device setting method and information processing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181127