CN109144607A - A kind of large-scale server automatic deployment and configuration method - Google Patents

A kind of large-scale server automatic deployment and configuration method Download PDF

Info

Publication number
CN109144607A
CN109144607A CN201810886323.3A CN201810886323A CN109144607A CN 109144607 A CN109144607 A CN 109144607A CN 201810886323 A CN201810886323 A CN 201810886323A CN 109144607 A CN109144607 A CN 109144607A
Authority
CN
China
Prior art keywords
server
configuration
cfg
file
pxelinux
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
CN201810886323.3A
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.)
Chengdu Zhidaochuangyu Information Technology Co Ltd
Original Assignee
Chengdu Zhidaochuangyu 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 Chengdu Zhidaochuangyu Information Technology Co Ltd filed Critical Chengdu Zhidaochuangyu Information Technology Co Ltd
Priority to CN201810886323.3A priority Critical patent/CN109144607A/en
Publication of CN109144607A publication Critical patent/CN109144607A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4416Network booting; Remote initial program loading [RIPL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Abstract

The invention discloses a kind of large-scale server automatic deployment and configuration methods, traditional server will reach can online state, it needs through system CD or USB flash disk under imprinting, then it is inserted on server, starting up's server, into installation interface, some changes are done by clicking the place in next step and needed to configure, until operating system installs.The present invention adapts to rapid deployment while high-volume node, automatic deployment is realized in conjunction with PXE, and after automatic deployment is good, simultaneously by server update system and business configuration, reach can online state, finally notify dispatch server, tell the server has been disposed and configuration finishes, it carries out online, realizes server from being deployed to and online rapid automatized can solve.

Description

A kind of large-scale server automatic deployment and configuration method
Technical field
The present invention relates to server disposition and upgrade technique field, especially a kind of large-scale server automatic deployment and match Set method.
Background technique
With popularizing for current internet, cloud service is seen everywhere, but essence still relies on these entity physical machines.And Newly-increased server now, hundreds of thousands of easily, if according to traditional implementation staffing system, then to consigning to business department Door installation service and configuration service, last placed into service device, not only human cost is big, but also needs by very long week time Phase.
Traditional server to reach can online state, need then to be inserted into clothes by system CD or USB flash disk under imprinting It is engaged on device, starting up's server does some changes by clicking the place in next step and needed to configure into installation interface More, until operating system installs.Business department is consigned to after deployment, and necessary infrastructure service and business clothes are installed Business, and by hand for the corresponding configuration of each service, reach can online state, it is last online.
During operating system is installed above, next step and repeated configuration are clicked along with a large amount of, than Such as great space of disk partition and each area etc..After allocating operating system is complete, require to install along with every machine Same infrastructure service and business service software, and do configuration modification.In this case, if only disposing one two is one Acceptable scheme, but as the deployment scale of present server is increasing, it is real that this conventional scheme will lead to deployment The personnel of applying do the operation of a large amount of repeatability, and manpower and time cost are all too high.And after server disposition, it needs by disposing Implementation personnel consign to business operation maintenance personnel again, dispose and configure relevant business service, placed into service device after configuration.It hands over The period is paid also because communication docking needs certain time.
Relevant technical terms
SaltStack: being the configuration management tool of a C/S structure, managed by writing configuration template in server-side Client can execute Client command (salt-call) installation specified services, update client-server on specify match Set and show changed content, the operation such as cryptographic Hash of documents;
PXE: i.e. Preboot Execution Environment, a kind of mechanism using network interface starting computer, By pxelinux.0 and the pxelinux.cfg and kernel file vmlinuz and root file system initrd that write, by finger The system that fixed mode starts a minimum, loads among memory, is generally used on installation system to disk;
DHCP service: agreement (Dynamic Host Configuration Protocol, DHCP) is arranged in DynamicHost, For internal network automatic IP address allocation to user;The specified starting guidance file of filename configuration item can be configured simultaneously, Allow to download this file by the host of network startup come Boot Server starting;
TFTP: i.e. Trivial File Transfer Protocol, Simple File Transfer Protocol cooperates PXE and DHCP, The downloading of starting guidance file is provided;
Kickstart: cooperation PXE provides unattended installation system, and when by installing system such as Ubuntu is installed, It needs that the operations such as country, disk partition, installation service is selected to be written as script, realizes automation installation without human intervention;
Ipmi:Intelligent Platform Management Interface, wisdom platform management interface are based on The opening free standard of Intel Architecture, can allow user's remote service server (such as switching on and shutting down and obtain server base Plinth information such as fan operating state etc.);
API: application programming interfaces, i.e. platform provide interface, and access interface triggers corresponding operation;
Operation platform: the information of safeguard service device obtains corresponding information for inquiry;Management server is upper offline simultaneously Deng.
Summary of the invention
Technical problem to be solved by the invention is to provide a kind of large-scale server automatic deployment and configuration method, in conjunction with PXE realizes automatic deployment, and after automatic deployment is good, while by server update system and business configuration, threadiness can be gone up by reaching State;Finally notify dispatch server, tell the server has been disposed and configuration finishes, and is carried out online.
In order to solve the above technical problems, the technical solution adopted by the present invention is that:
A kind of large-scale server automatic deployment and configuration method, comprising the following steps:
Step 1: starting whole servers to be disposed under the same local area network, be booted up automatically by PXE;
Step 2: server is started by PXE, actively the DHCP service request IP and pxelinux.0 into local area network The address of netboot file;
Step 3: according to the address of the pxelinux.0 netboot file got, being requested to tftp server Pxelinux.0 guidance file and pxelinux.cfg configuration file pass through then according to pxelinux.cfg configuration file TFTP obtains kernel file and carries out boot kernel, starts the simplified system of an operation in memory;
Step 4: ks.cfg being obtained to HTTP server according to pxelinux.cfg configuration file, according to the finger in ks.cfg Content is enabled to automate installation system, the ks.cfg is kickstart configuration file;
Step 5: in the subsequent operation of the complete basic system of designated mounting after being installed instruction of ks.cfg, passing through O&M Platform inquiry executes salt-call order and asks to SaltStack server-side according to the MAC Address of Network Card to deployment services device It asks, salt-call order can install corresponding service and more new system and service according to the configuration of StackStack server-side Configuration reaches consistent state to the server on all softwares and configuration and line on deployment services device at this time.
Further, the step 1 further include: if being managed server supports ipmi, work is managed by ipmitool Has remote opening starting.
It further, further include sending and requesting to operation platform after step 6:salt-call order is finished, request Content, that is, tell the server, which has been disposed, to be finished, and operation platform is then by server automatic wire charging.
Compared with prior art, the beneficial effects of the present invention are: 1) being suitble to be directed to large batch of machine, pass through PXE mode It realizes automatically dispose server, reduces duplicate human cost and time cost;2) because after the completion of automatically dispose, lead to Saltstack configuration management platform is crossed, accomplishes the configuration server of automation;3) after configuration is complete, flat by operation management Platform, machine to be disposed report itself, show that oneself can configure completion, can be online;4) whole to reduce from implementation again Department's time for communication cost very long to business department, realize from be deployed to can be online a rapid automatized solution.
Detailed description of the invention
Fig. 1 is a kind of large-scale server automatic deployment of the present invention and configuration method flow diagram.
Specific embodiment
The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments, specific as follows:
1, under the same local area network to deployment services devices all booting (if being managed server supports ipmi, can be with Started by ipmitool management tool remote opening) because disk without system, can automatically attempt to be booted up by PXE.
2, server is started by PXE, actively DHCP service request IP and pxelinux.0 network into local area network Guide the address of file.
3, according to the pxelinux.0 guidance file address got, as tftp server request pxelinux.0 guidance text Part and pxelinux.cfg configuration file, then configure according to pxelinux.cfg, are obtained in kernel file progress by TFTP Core guidance starts the simplified system of an operation in memory.
4, ks.cfg (kickstart configuration file) is obtained to HTTP server according to pxelinux.cfg configuration file, Installation system is automated according to the command content in ks.cfg.
5, ks.cfg be installed instruction after can specify and install the subsequent operation of basic system, pass through at this time Operation platform inquiry executes salt-call order to SaltStack server-side according to the MAC Address of Network Card to deployment services device Request, salt-call order can install corresponding service and more new system kimonos according to the configuration of StackStack server-side Business configuration reaches consistent state wait dispose all softwares on machine and the machine on configuration and line at this time.
6, it after salt-call order is finished, sends and requests to operation platform, request content, that is, tell the server portion Administration finishes, and operation platform then can be by server automatic wire charging.
The content of some core documents is given below:
pxelinux.cfg:
DEFAULT menu.c32
MENU TITLE PXE
prompt 0
#Timeout in units of 1/10s
TIMEOUT 100
LABEL Ubuntu/12.04
MENU LABEL Ububtu/12.04
KERNEL linux
APPEND vga=normal initrd=initrd.gz ks=http: // 192.168.0.1/ubuntu/ 12.04/ks.cfg
ks.cfg:
# selects language
lang en_US.UTF-8
# selects keyboard mode
keyboard us
# configures root user password
rootpw--iscrypted***
...
The operating system mirror image address of # selection installation
install
url--url http://192.168.0.1/ubuntu/12.04/
# guidance mode
Bootloader--location=mbr
...
# subregion
Part/--fstype=ext3--size=20480--asprimary
reboot
...
The specified software package of # installation
%packages
openssh-server
ubuntu-minimal
...
The operation that # is executed after the installation is completed
%post
salt-call state.highstate
curl http://ops-opserver/api/token/online
Wherein, last salt-call state.highstate requests configuration management to saltstack server, Saltstack server can judge the corresponding configuration provided according to the address mac of current request server.
The api interface provided to operation platform initiates request, and operation platform can identify the machine at present according to request Configuration finishes, can be online.For example, operation platform passes through the upper down status of database maintenance server, each server one Item record, one of field safeguard service device be it is online or offline, initial situation be all it is offline, to online API initiation ask After asking, application program is this field of respective record in renewable database, makes server-tag can online state.

Claims (3)

1. a kind of large-scale server automatic deployment and configuration method, which comprises the following steps:
Step 1: starting whole servers to be disposed under the same local area network, be booted up automatically by PXE;
Step 2: server is started by PXE, actively DHCP service request IP and pxelinux.0 network into local area network Guide the address of file;
Step 3: according to the address of the pxelinux.0 netboot file got, requesting pxelinux.0 to tftp server File and pxelinux.cfg configuration file is guided to obtain kernel by TFTP then according to pxelinux.cfg configuration file File carries out boot kernel, starts the simplified system of an operation in memory;
Step 4: ks.cfg being obtained to HTTP server according to pxelinux.cfg configuration file, according in the instruction in ks.cfg Hold automation installation system, the ks.cfg is kickstart configuration file;
Step 5: in the subsequent operation of the complete basic system of designated mounting after being installed instruction of ks.cfg, passing through operation platform Inquiry executes salt-call order and requests to SaltStack server-side according to the MAC Address of Network Card to deployment services device, Salt-call order corresponding service and more new system can be installed according to the configuration of StackStack server-side and service is matched It sets, reaches consistent state to the server on all softwares and configuration and line on deployment services device at this time.
2. a kind of large-scale server automatic deployment as described in claim 1 and configuration method, which is characterized in that the step 1 further include: if being managed server supports ipmi, started by ipmitool management tool remote opening.
3. a kind of large-scale server automatic deployment as described in claim 1 and configuration method, which is characterized in that further include step Rapid 6:
It after salt-call order is finished, sends and requests to operation platform, request content, that is, tell the server has been disposed Finish, operation platform is then by server automatic wire charging.
CN201810886323.3A 2018-08-06 2018-08-06 A kind of large-scale server automatic deployment and configuration method Pending CN109144607A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810886323.3A CN109144607A (en) 2018-08-06 2018-08-06 A kind of large-scale server automatic deployment and configuration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810886323.3A CN109144607A (en) 2018-08-06 2018-08-06 A kind of large-scale server automatic deployment and configuration method

Publications (1)

Publication Number Publication Date
CN109144607A true CN109144607A (en) 2019-01-04

Family

ID=64791964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810886323.3A Pending CN109144607A (en) 2018-08-06 2018-08-06 A kind of large-scale server automatic deployment and configuration method

Country Status (1)

Country Link
CN (1) CN109144607A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885398A (en) * 2019-01-16 2019-06-14 上海云轴信息科技有限公司 The distribution method and equipment of distributed PXE server
CN109992311A (en) * 2019-03-25 2019-07-09 新华三技术有限公司 Starting method, apparatus, storage medium and the client of operating system
CN110098952A (en) * 2019-03-25 2019-08-06 同盾控股有限公司 A kind of management method and device of server
CN110399144A (en) * 2019-08-01 2019-11-01 山东超越数控电子股份有限公司 The configuration method of PXE server under a kind of milky way kylin V4 operating system
CN111683145A (en) * 2020-06-08 2020-09-18 中国工商银行股份有限公司 Configuration method of client device, electronic device and medium
CN112152845A (en) * 2020-09-11 2020-12-29 苏州浪潮智能科技有限公司 Method for automatically loading system through network based on PMON
CN112181533A (en) * 2020-10-16 2021-01-05 富盛科技股份有限公司 Method and system for automatically deploying security server
CN113407202A (en) * 2021-06-29 2021-09-17 浪潮软件科技有限公司 PXE heterogeneous cluster installation method based on cloud computing platform
CN113568791A (en) * 2021-07-14 2021-10-29 麒麟软件有限公司 Automatic testing tool and method for server operating system based on multi-CPU architecture
CN113900722A (en) * 2021-10-21 2022-01-07 深圳忆联信息系统有限公司 Automatic deployment method and device of trust and creation platform, computer equipment and storage medium
CN115037723A (en) * 2022-06-06 2022-09-09 中邮信息科技(北京)有限公司 Full-link system autonomous delivery method and device, electronic equipment and storage medium
CN116431230A (en) * 2023-04-11 2023-07-14 合芯科技有限公司 Operating system deployment method and device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101546270A (en) * 2009-05-08 2009-09-30 阿里巴巴集团控股有限公司 Automatic installation method for Linux operation system, device and system
CN101820387A (en) * 2010-02-08 2010-09-01 北京航空航天大学 Method for rapidly deploying extensible cluster
CN104113430A (en) * 2014-02-13 2014-10-22 西安未来国际信息股份有限公司 Cloud computing data center automatic deployment software framework design
CN104639378A (en) * 2015-03-10 2015-05-20 浪潮集团有限公司 Automatic server deployment method based on PXE (pre-boot execution environment)
CN105959134A (en) * 2016-04-22 2016-09-21 汉柏科技有限公司 Automatic installation deployment method based on PXE, and PXE server
CN107391092A (en) * 2016-05-16 2017-11-24 北京京东尚科信息技术有限公司 The method and system of automatic deployment associated software
CN107707415A (en) * 2017-11-23 2018-02-16 成都知道创宇信息技术有限公司 A kind of automatic monitoring of server configuration and alarm method based on SaltStack

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101546270A (en) * 2009-05-08 2009-09-30 阿里巴巴集团控股有限公司 Automatic installation method for Linux operation system, device and system
CN101820387A (en) * 2010-02-08 2010-09-01 北京航空航天大学 Method for rapidly deploying extensible cluster
CN104113430A (en) * 2014-02-13 2014-10-22 西安未来国际信息股份有限公司 Cloud computing data center automatic deployment software framework design
CN104639378A (en) * 2015-03-10 2015-05-20 浪潮集团有限公司 Automatic server deployment method based on PXE (pre-boot execution environment)
CN105959134A (en) * 2016-04-22 2016-09-21 汉柏科技有限公司 Automatic installation deployment method based on PXE, and PXE server
CN107391092A (en) * 2016-05-16 2017-11-24 北京京东尚科信息技术有限公司 The method and system of automatic deployment associated software
CN107707415A (en) * 2017-11-23 2018-02-16 成都知道创宇信息技术有限公司 A kind of automatic monitoring of server configuration and alarm method based on SaltStack

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谢涛: "云环境下数据中心自动部署系统", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885398B (en) * 2019-01-16 2020-10-13 上海云轴信息科技有限公司 Distribution method and device of distributed PXE server
CN109885398A (en) * 2019-01-16 2019-06-14 上海云轴信息科技有限公司 The distribution method and equipment of distributed PXE server
CN110098952B (en) * 2019-03-25 2021-08-20 同盾控股有限公司 Server management method and device
CN109992311A (en) * 2019-03-25 2019-07-09 新华三技术有限公司 Starting method, apparatus, storage medium and the client of operating system
CN110098952A (en) * 2019-03-25 2019-08-06 同盾控股有限公司 A kind of management method and device of server
CN110399144A (en) * 2019-08-01 2019-11-01 山东超越数控电子股份有限公司 The configuration method of PXE server under a kind of milky way kylin V4 operating system
CN111683145A (en) * 2020-06-08 2020-09-18 中国工商银行股份有限公司 Configuration method of client device, electronic device and medium
CN112152845A (en) * 2020-09-11 2020-12-29 苏州浪潮智能科技有限公司 Method for automatically loading system through network based on PMON
CN112181533A (en) * 2020-10-16 2021-01-05 富盛科技股份有限公司 Method and system for automatically deploying security server
CN113407202A (en) * 2021-06-29 2021-09-17 浪潮软件科技有限公司 PXE heterogeneous cluster installation method based on cloud computing platform
CN113568791A (en) * 2021-07-14 2021-10-29 麒麟软件有限公司 Automatic testing tool and method for server operating system based on multi-CPU architecture
CN113900722A (en) * 2021-10-21 2022-01-07 深圳忆联信息系统有限公司 Automatic deployment method and device of trust and creation platform, computer equipment and storage medium
CN115037723A (en) * 2022-06-06 2022-09-09 中邮信息科技(北京)有限公司 Full-link system autonomous delivery method and device, electronic equipment and storage medium
CN116431230A (en) * 2023-04-11 2023-07-14 合芯科技有限公司 Operating system deployment method and device, computer equipment and storage medium
CN116431230B (en) * 2023-04-11 2023-11-24 合芯科技有限公司 Operating system deployment method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109144607A (en) A kind of large-scale server automatic deployment and configuration method
US9928041B2 (en) Managing a software appliance
US9798881B2 (en) Dynamic feature enhancement in client server applications and high volume server deployment with dynamic app store integration
US8458658B2 (en) Methods and systems for dynamically building a software appliance
US9465625B2 (en) Provisioning of operating environments on a server in a networked environment
JP6058628B2 (en) Multi-node application deployment system
US8402123B2 (en) Systems and methods for inventorying un-provisioned systems in a software provisioning environment
CN103297504B (en) The method of physics bare machine rapid deployment operating system in a kind of cloud data center
US8935687B2 (en) Incrementally updating a software appliance
EP0592079A2 (en) Automated software installation and operating environment configuration on a computer system
CN106911729B (en) Remote installation method of operating system suitable for domestic processor
US20100217843A1 (en) Systems and methods for collecting and altering firmware configurations of target machines in a software provisioning environment
US20120102103A1 (en) Running legacy applications on cloud computing systems without rewriting
US20150271014A1 (en) Automatic configuration of new components by infrastructure management software
CN104113430A (en) Cloud computing data center automatic deployment software framework design
CN102662884B (en) Device driving program configuration method based on network
CN104572372A (en) System and method for building server performance testing environment
CN107483243A (en) A kind of automatic deployment method and equipment of OpenStack platforms
US7882232B2 (en) Rapid resource provisioning with automated throttling
CN112130917A (en) Remote loading system mirroring method
CN107766055A (en) A kind of client linux system installation method based on GUI module
CN106776347A (en) A kind of virtualization system mirror image mounting test system and method
CN110266540A (en) A method of realizing that automation installation is configured with cloud computing platform
CN106802790B (en) Method, equipment and system for managing application user use information based on cloud platform
CN112968929A (en) Server management method and system

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: 20190104