[go: up one dir, main page]

CN106250174A - The method and system of LINUX system are installed based on PXE technology batch - Google Patents

The method and system of LINUX system are installed based on PXE technology batch Download PDF

Info

Publication number
CN106250174A
CN106250174A CN201610580904.5A CN201610580904A CN106250174A CN 106250174 A CN106250174 A CN 106250174A CN 201610580904 A CN201610580904 A CN 201610580904A CN 106250174 A CN106250174 A CN 106250174A
Authority
CN
China
Prior art keywords
pxe
server
configuration
destination server
configuration 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
CN201610580904.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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201610580904.5A priority Critical patent/CN106250174A/en
Publication of CN106250174A publication Critical patent/CN106250174A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

本发明公开了一种基于PXE技术批量安装LINUX系统的方法及系统,包括:选取已经安装LINUX系统的目标服务器;向所述目标服务器安装预设服务,并添加启动镜像及配置文件,生成PXE服务器,使本地计算机从所述PXE服务器下载安装映像及配置文件,并通过所述安装映像及配置文件自动安装LINUX系统;可见,在本实施例中,通过PXE技术,使本地计算机通过PXE网络启动操作系统,从远端的PXE服务器下载安装映像,实现快速批量为局域网计算机安装操作系统,自动化的安装过程使得系统安装变得十分简单,并且由于基于同一配置文件安装的操作系统,相当于克隆操作系统,系统环境完全一致。

The invention discloses a method and system for installing LINUX systems in batches based on PXE technology, comprising: selecting a target server on which the LINUX system has been installed; installing preset services to the target server, adding a startup image and a configuration file, and generating a PXE server , so that the local computer downloads the installation image and the configuration file from the PXE server, and automatically installs the LINUX system through the installation image and the configuration file; it can be seen that in this embodiment, the PXE technology is used to enable the local computer to start the operation through the PXE network The system downloads the installation image from the remote PXE server to quickly install the operating system for the LAN computers in batches. The automated installation process makes the system installation very simple, and because the operating system installed based on the same configuration file is equivalent to cloning the operating system , the system environment is exactly the same.

Description

基于PXE技术批量安装LINUX系统的方法及系统Method and system for batch installation of LINUX systems based on PXE technology

技术领域technical field

本发明涉及系统安装技术领域,更具体地说,涉及一种基于PXE技术批量安装LINUX系统的方法及系统。The present invention relates to the technical field of system installation, and more specifically, relates to a method and system for batch-installing LINUX systems based on PXE technology.

背景技术Background technique

随着计算机技术的飞速发展,局域网环境越来越收到欢迎,部署局域网系统环境的问题也就受到关注。目前,在部署局域网系统时,均是通过CD-ROM光驱、U盘等移动设备逐台安装操作系统,这种安装过程方式,浪费了大量的人力精力,效率非常低。With the rapid development of computer technology, the LAN environment is becoming more and more popular, and the issue of deploying the LAN system environment has also attracted attention. At present, when deploying LAN systems, operating systems are installed one by one through mobile devices such as CD-ROM drives and U disks. This installation process wastes a lot of manpower and energy, and the efficiency is very low.

因此,如何高效率的安装操作系统,是本领域技术人员需要解决的问题。Therefore, how to efficiently install an operating system is a problem to be solved by those skilled in the art.

发明内容Contents of the invention

本发明的目的在于提供一种基于PXE技术批量安装LINUX系统的方法及系统,以实现高效率的安装操作系统。The purpose of the present invention is to provide a method and system for batch installing LINUX systems based on PXE technology, so as to realize efficient installation of operating systems.

为实现上述目的,本发明实施例提供了如下技术方案:In order to achieve the above object, the embodiment of the present invention provides the following technical solutions:

一种基于PXE技术批量安装LINUX系统的方法,包括:A method for installing LINUX systems in batches based on PXE technology, including:

选取已经安装LINUX系统的目标服务器;Select the target server that has already installed the LINUX system;

向所述目标服务器安装预设服务,并添加启动镜像及配置文件,生成PXE服务器,使本地计算机从所述PXE服务器下载安装映像及配置文件,并通过所述安装映像及配置文件自动安装LINUX系统。Install preset services to the target server, and add boot images and configuration files, generate a PXE server, make the local computer download the installation images and configuration files from the PXE server, and automatically install the LINUX system through the installation images and configuration files .

其中,向所述目标服务器安装预设服务,包括:Wherein, installing preset services to the target server includes:

向所述目标服务器安装及配置DNSMASQ服务,TFTP-Server服务和VSFTPD服务,向所述目标服务器配置SYSLINUX加载启动器。Install and configure DNSMASQ service, TFTP-Server service and VSFTPD service to the target server, and configure SYSLINUX loading initiator to the target server.

其中,向所述目标服务器配置DNSMASQ服务时,将配置中的IP地址修改为所在局域网的IP地址。Wherein, when configuring the DNSMASQ service to the target server, the IP address in the configuration is changed to the IP address of the local area network.

其中,所述添加启动镜像及配置文件包括:Wherein, the adding boot image and configuration file includes:

向所述目标服务器添加CentOS 7启动镜像,并创建CentOS 7本地镜像安装源;Add the CentOS 7 boot image to the target server, and create a CentOS 7 local image installation source;

将所述目标服务器自动生成的ks.cfg文件作为配置文件,并修改ks.cfg文件的安装媒体。Use the ks.cfg file automatically generated by the target server as a configuration file, and modify the installation media of the ks.cfg file.

一种基于PXE技术批量安装LINUX系统的系统,包括:A system for installing LINUX systems in batches based on PXE technology, including:

目标服务器选取模块,用于选取已经安装LINUX系统的目标服务器;The target server selection module is used to select the target server that has installed the LINUX system;

配置模块,用于向所述目标服务器安装预设服务,并添加启动镜像及配置文件,生成PXE服务器,使本地计算机从所述PXE服务器下载安装映像及配置文件,并通过所述安装映像及配置文件自动安装LINUX系统。The configuration module is used to install preset services to the target server, and add a boot image and configuration files to generate a PXE server, so that the local computer downloads the installation image and configuration files from the PXE server, and passes the installation image and configuration The file automatically installs the LINUX system.

其中,所述配置模块向所述目标服务器安装及配置DNSMASQ服务,TFTP-Server服务和VSFTPD服务,向所述目标服务器配置SYSLINUX加载启动器。Wherein, the configuration module installs and configures DNSMASQ service, TFTP-Server service and VSFTPD service to the target server, and configures a SYSLINUX loading initiator to the target server.

其中,向所述目标服务器配置DNSMASQ服务时,将配置中的IP地址修改为所在局域网的IP地址。Wherein, when configuring the DNSMASQ service to the target server, the IP address in the configuration is changed to the IP address of the local area network.

其中,所述配置模块包括:Wherein, the configuration module includes:

启动镜像添加单元,用于向所述目标服务器添加CentOS 7启动镜像,并创建CentOS 7本地镜像安装源;Start image adding unit, for adding CentOS 7 boot image to described target server, and create CentOS 7 local image installation source;

配置文件生成单元,用于将所述目标服务器自动生成的ks.cfg文件作为配置文件,并修改ks.cfg文件的安装媒体。The configuration file generating unit is configured to use the ks.cfg file automatically generated by the target server as a configuration file, and modify the installation media of the ks.cfg file.

通过以上方案可知,本发明实施例提供的一种基于PXE技术批量安装LINUX系统的方法及系统,包括:选取已经安装LINUX系统的目标服务器;向所述目标服务器安装预设服务,并添加启动镜像及配置文件,生成PXE服务器,使本地计算机从所述PXE服务器下载安装映像及配置文件,并通过所述安装映像及配置文件自动安装LINUX系统;可见,在本实施例中,通过PXE技术,使本地计算机通过PXE网络启动操作系统,从远端的PXE服务器下载安装映像,实现快速批量为局域网计算机安装操作系统,自动化的安装过程使得系统安装变得十分简单,并且由于基于同一配置文件自动安装的操作系统,相当于克隆操作系统,系统环境完全一致。It can be seen from the above scheme that a method and system for batch installing LINUX systems based on PXE technology provided by the embodiments of the present invention includes: selecting a target server on which the LINUX system has been installed; installing preset services to the target server, and adding a boot image And configuration file, generate PXE server, make local computer download installation image and configuration file from described PXE server, and install LINUX system automatically by described installation image and configuration file; Visible, in the present embodiment, by PXE technology, make The local computer starts the operating system through the PXE network, downloads the installation image from the remote PXE server, and realizes fast batch installation of the operating system for the LAN computers. The automatic installation process makes the system installation very simple, and because the automatic installation based on the same configuration file The operating system is equivalent to cloning the operating system, and the system environment is exactly the same.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明实施例公开的一种基于PXE技术批量安装LINUX系统的方法流程示意图;Fig. 1 is a schematic flow diagram of a method for batch-installing LINUX systems based on PXE technology disclosed by an embodiment of the present invention;

图2为本发明实施例公开的一种基于PXE技术批量安装LINUX系统的系统结构示意图。FIG. 2 is a schematic structural diagram of a system for batch-installing LINUX systems based on PXE technology disclosed in an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

本发明实施例公开了一种基于PXE技术批量安装LINUX系统的方法及系统,以实现高效率的安装操作系统。The embodiment of the present invention discloses a method and system for installing LINUX systems in batches based on PXE technology, so as to realize efficient installation of operating systems.

参见图1,本发明实施例提供的一种基于PXE技术批量安装LINUX系统的方法,包括:Referring to Fig. 1, a kind of method based on PXE technology batch installation LINUX system that the embodiment of the present invention provides, comprises:

S101、选取已经安装LINUX系统的目标服务器;S101, selecting a target server on which the LINUX system has been installed;

S102、向所述目标服务器安装预设服务,并添加启动镜像及配置文件,生成PXE服务器,使本地计算机从所述PXE服务器下载安装映像及配置文件,并通过所述安装映像及配置文件自动安装LINUX系统。S102. Install preset services to the target server, and add a boot image and configuration file to generate a PXE server, so that the local computer downloads the installation image and configuration file from the PXE server, and automatically installs it through the installation image and configuration file Linux system.

其中,向所述目标服务器安装预设服务,包括:Wherein, installing preset services to the target server includes:

向所述目标服务器安装及配置DNSMASQ服务,TFTP-Server服务和VSFTPD服务,向所述目标服务器配置SYSLINUX加载启动器。其中,向所述目标服务器配置DNSMASQ服务时,将配置中的IP地址修改为所在局域网的IP地址。Install and configure DNSMASQ service, TFTP-Server service and VSFTPD service to the target server, and configure SYSLINUX loading initiator to the target server. Wherein, when configuring the DNSMASQ service to the target server, the IP address in the configuration is changed to the IP address of the local area network.

其中,所述添加启动镜像及配置文件包括:Wherein, the adding boot image and configuration file includes:

向所述目标服务器添加CentOS 7启动镜像,并创建CentOS 7本地镜像安装源;将所述目标服务器自动生成的ks.cfg文件作为配置文件,并修改ks.cfg文件的安装媒体。Add the CentOS 7 boot image to the target server, and create a local image installation source for CentOS 7; use the ks.cfg file automatically generated by the target server as a configuration file, and modify the installation media of the ks.cfg file.

具体的,本实施例提供一具体的实施例,假设有若干计算机A、B、C…,Specifically, this embodiment provides a specific embodiment, assuming that there are several computers A, B, C...,

步骤1:用一般安装系统的方法(U盘、光盘等)为A计算机安装系统,本文以U盘装centos7为例,将计算机A将作为PXE服务器,为其他计算机提供服务器环境;Step 1: Use the general method of installing the system (U disk, CD, etc.) to install the system for computer A. This article uses U disk to install centos7 as an example, and computer A will be used as a PXE server to provide a server environment for other computers;

步骤2:安装并配置DNSMASQ,TFTP-Server,VSFTPD等服务;Step 2: Install and configure DNSMASQ, TFTP-Server, VSFTPD and other services;

1)配置DNSMASQ:vim/etc/dnsmasq.conf:1) Configure DNSMASQ: vim/etc/dnsmasq.conf:

interface=eno16777736,lo #服务器A需要监听并提供服务的网络接口。interface=eno16777736,lo #The network interface that server A needs to monitor and provide services.

#bind-interfaces#bind-interfaces

domain=inspur #服务器A的域名domain=inspur #Domain name of server A

#DHCP range-leases#DHCP range-leases

dhcp-range=eno16777736,192.168.37.2,192.168.37.253,255.255.255.0,1hdhcp-range=eno16777736,192.168.37.2,192.168.37.253,255.255.255.0,1h

#PXE#PXE

dhcp-boot=pxelinux.0,pxeserver,192.168.37.134dhcp-boot=pxelinux.0,pxeserver,192.168.37.134

#Gateway#Gateway

dhcp-option=3,192.168.37.1dhcp-option=3,192.168.37.1

#DNS#DNS

dhcp-option=6,92.168.37.1,8.8.8.8dhcp-option=6,92.168.37.1,8.8.8.8

server=8.8.4.4server=8.8.4.4

#Broadcast Address#Broadcast Address

dhcp-option=28,10.0.0.255dhcp-option=28,10.0.0.255

#NTP Server#NTP Server

dhcp-option=42,0.0.0.0dhcp-option=42,0.0.0.0

pxe-prompt="Press F8for menu.",60pxe-prompt="Press F8 for menu.",60

pxe-service=x86PC,"Install CentOS 7from network server192.168.1.20",pxe-service=x86PC,"Install CentOS 7from network server192.168.1.20",

pxelinuxpxelinux

enable-tftpenable-tftp

tftp-root=/var/lib/tftpboottftp-root=/var/lib/tftpboot

具体的,该配置中的IP地址换成所在局域网的IP,DNSMASQ为局域网提供DHCP,和DNS服务。Specifically, the IP address in this configuration is replaced with the IP of the local area network, and DNSMASQ provides DHCP and DNS services for the local area network.

2)配置SYSLINUX加载启动器:2) Configure SYSLINUX to load the launcher:

cp-r/usr/share/syslinux/*/var/lib/tftpboot;cp -r /usr/share/syslinux/*/var/lib/tftpboot;

3)配置PXE服务器:vim/var/lib/tftpboot/pxelinux.cfg/default:3) Configure the PXE server: vim/var/lib/tftpboot/pxelinux.cfg/default:

default menu.c32default menu.c32

prompt 0prompt 0

timeout 300timeout 300

ONTIMEOUT localONTIMEOUT local

menu title##########PXE Boot Menu##########menu title##########PXE Boot Menu##########

label 1label 1

menu label^1)Install CentOS 7x64with Local Repomenu label^1)Install CentOS 7x64with Local Repo

kernel centos7/vmlinuzkernel centos7/vmlinuz

append initrd=centos7/initrd.img ks=ftp://192.168.37.134/pub/ks.cfgappend initrd=centos7/initrd.img ks=ftp://192.168.37.134/pub/ks.cfg

devfs=nomountdevfs=nomount

步骤3:添加CentOS 7启动镜像到PXE服务器Step 3: Add CentOS 7 boot image to PXE server

挂载U盘mount-o loop-t/dev/cdrom/mnt,如果没有U盘,也可以使用ISO镜像mount-o loop-t iso9660path/centos-dvd.iso/mnt:Mount the U disk mount-o loop-t/dev/cdrom/mnt, if there is no U disk, you can also use the ISO image mount-o loop-t iso9660path/centos-dvd.iso/mnt:

mkdir/var/lib/tftpboot/centos7mkdir /var/lib/tftpboot/centos7

cp/mnt/images/pxeboot/vmlinuz/var/lib/tftpboot/centos7cp /mnt/images/pxeboot/vmlinuz/var/lib/tftpboot/centos7

cp/mnt/images/pxeboot/initrd.img/var/lib/tftpboot/centos7cp /mnt/images/pxeboot/initrd.img/var/lib/tftpboot/centos7

步骤4:创建CentOS 7本地镜像安装源:Step 4: Create a CentOS 7 local image installation source:

cp-a/mnt/./var/ftp/pub/cp -a /mnt/./var/ftp/pub/

步骤5:添加无人职守ks.cfg配置文件Step 5: Add unattended ks.cfg configuration file

在本实施例中使用计算机A安装后自动生成的aconda-ks.cfg文件作为无人职守配置,故而使用其安装的操作系统环境与计算机A一模一样:In this embodiment, the aconda-ks.cfg file automatically generated after computer A is installed is used as an unattended configuration, so the operating system environment installed using it is exactly the same as that of computer A:

cp~/anaconda-ks.cfg/var/ftp/pub/ks.cfgcp~/anaconda-ks.cfg/var/ftp/pub/ks.cfg

chmod-R 755/var/ftp/pubchmod -R 755 /var/ftp/pub

修改ks.cfg文件,将安装媒体由cdrom改为url--urlftp://192.168.37.134/pub/至此PXE服务器配置完成。Modify the ks.cfg file, and change the installation media from cdrom to url--urlftp://192.168.37.134/pub/. Now the PXE server configuration is complete.

启动DNSMASQ和VSFTPD服务器:Start the DNSMASQ and VSFTPD servers:

systemctl start dnsmasq;systemctl start dnsmasq;

systemctl start vsftpd;systemctl start vsftpd;

DNSMASQ和VSFTPD服务配置为开机启动:DNSMASQ and VSFTPD services are configured to start on boot:

systemctl enable dnsmasq;systemctl enable dnsmasq;

systemctl enable vsftpd;systemctl enable vsftpd;

关闭firewall服务并禁用SELINUX,测试FTP安装源,最后,卸载CentOS 7DVD,并移除物理介质。Close the firewall service and disable SELINUX, test the FTP installation source, and finally, unmount the CentOS 7DVD and remove the physical media.

步骤6:配置客户端从网络启动:Step 6: Configure the client to boot from the network:

计算机B和计算机C等需要安装系统的计算机通过系统BIOS设置为从网络启动,在第一次PXE提示符出现时,请按下F8键进入到PXE安装界面,然后敲回车键继续进入PXE菜单,按回车键进入自动装机过程。Computers such as computer B and computer C that need to install the system are set to boot from the network through the system BIOS. When the PXE prompt appears for the first time, please press the F8 key to enter the PXE installation interface, and then press the Enter key to continue entering the PXE menu. , press Enter to enter the automatic installation process.

具体的,本方案利用Intel公司开发的PXE技术,通过本地计算机通过网络从远端服务器下载映像,并由此支持通过网络启动操作系统,在启动过程中,终端要求服务器分配IP地址,再用TFTP或MTFTP协议下载一个启动软件包到本机内存中执行,由这个启动软件包完成终端基本软件设置,从而引导预先安装在服务器中的终端操作系统。并且,本方案结合了KICKSTART无人职守安装方式,实现在局域网中批量安装LINUX系统的方法,从而可以快速布置服务器环境,为大量计算机安装操作系统节省了大量时间,自动化的安装过程使得系统安装变得十分简单。Specifically, this solution uses the PXE technology developed by Intel Corporation to download the image from the remote server through the local computer through the network, and thus supports the startup of the operating system through the network. During the startup process, the terminal requires the server to assign an IP address, and then uses TFTP to Or the MTFTP protocol downloads a startup software package to the local memory for execution, and the startup software package completes the terminal basic software settings, thereby booting the terminal operating system pre-installed in the server. Moreover, this solution combines the KICKSTART unattended installation method to realize the batch installation of LINUX systems in the LAN, so that the server environment can be quickly arranged, and a lot of time is saved for installing operating systems on a large number of computers. The automated installation process makes the system installation easier. It's very simple.

下面对本发明实施例提供的基于PXE技术批量安装LINUX系统的系统进行介绍,下文描述的基于PXE技术批量安装LINUX系统的系统与上文描述的基于PXE技术批量安装LINUX系统的方法可以相互参照。The system for batch installation of LINUX systems based on PXE technology provided by the embodiment of the present invention is introduced below. The system for batch installation of LINUX systems based on PXE technology described below and the method for batch installation of LINUX systems based on PXE technology described above can be cross-referenced.

参见图2,本发明实施例提供的一种基于PXE技术批量安装LINUX系统的系统,包括:Referring to Fig. 2, a kind of system that installs LINUX system in batches based on PXE technology that the embodiment of the present invention provides, comprises:

目标服务器选取模块100,用于选取已经安装LINUX系统的目标服务器;The target server selection module 100 is used to select the target server that has installed the LINUX system;

配置模块200,用于向所述目标服务器安装预设服务,并添加启动镜像及配置文件,生成PXE服务器,使本地计算机从所述PXE服务器下载安装映像及配置文件,并通过所述安装映像及配置文件自动安装LINUX系统。The configuration module 200 is used to install preset services to the target server, and add a boot image and a configuration file to generate a PXE server, so that the local computer downloads the installation image and the configuration file from the PXE server, and passes the installation image and configuration file. The configuration file automatically installs the LINUX system.

基于上述技术方案,所述配置模块向所述目标服务器安装及配置DNSMASQ服务,TFTP-Server服务和VSFTPD服务,向所述目标服务器配置SYSLINUX加载启动器。Based on the above technical solution, the configuration module installs and configures DNSMASQ service, TFTP-Server service and VSFTPD service to the target server, and configures a SYSLINUX loading initiator to the target server.

基于上述技术方案,向所述目标服务器配置DNSMASQ服务时,将配置中的IP地址修改为所在局域网的IP地址。Based on the above technical solution, when configuring the DNSMASQ service to the target server, the IP address in the configuration is changed to the IP address of the local area network.

基于上述技术方案,所述配置模块包括:Based on the above technical solution, the configuration module includes:

启动镜像添加单元,用于向所述目标服务器添加CentOS 7启动镜像,并创建CentOS 7本地镜像安装源;Start image adding unit, for adding CentOS 7 boot image to described target server, and create CentOS 7 local image installation source;

配置文件生成单元,用于将所述目标服务器自动生成的ks.cfg文件作为配置文件,并修改ks.cfg文件的安装媒体。The configuration file generating unit is configured to use the ks.cfg file automatically generated by the target server as a configuration file, and modify the installation media of the ks.cfg file.

本发明实施例提供的一种基于PXE技术批量安装LINUX系统的方法及系统,包括:选取已经安装LINUX系统的目标服务器;向所述目标服务器安装预设服务,并添加启动镜像及配置文件,生成PXE服务器,使本地计算机从所述PXE服务器下载安装映像及配置文件,并通过所述安装映像及配置文件自动安装LINUX系统;可见,在本实施例中,通过PXE技术,使本地计算机通过PXE网络启动操作系统,从远端的PXE服务器下载安装映像,实现快速批量为局域网计算机安装操作系统,自动化的安装过程使得系统安装变得十分简单,并且由于基于同一配置文件安装的操作系统,相当于克隆操作系统,系统环境完全一致。本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。A method and system for installing LINUX systems in batches based on PXE technology provided by the embodiments of the present invention includes: selecting a target server on which the LINUX system has been installed; installing preset services to the target server, and adding a startup image and a configuration file to generate The PXE server makes the local computer download the installation image and the configuration file from the PXE server, and automatically installs the LINUX system through the installation image and the configuration file; it can be seen that in this embodiment, the local computer is passed through the PXE network through the PXE technology. Start the operating system, download the installation image from the remote PXE server, and quickly install the operating system for the LAN computers in batches. The automated installation process makes the system installation very simple, and because the operating system installed based on the same configuration file is equivalent to cloning The operating system and system environment are completely consistent. Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. the method installing LINUX system based on PXE technology batch, it is characterised in that including:
Choose the destination server having installed LINUX system;
To described destination server, preset service is installed, and adds startup mirror image and configuration file, generate PXE server, make this Ground computer from described PXE server download install reflection and configuration file, and by described install reflection and configuration file from Dynamic installation LINUX system.
The method installing LINUX system based on PXE technology batch the most according to claim 1, it is characterised in that to described Destination server installs preset service, including:
Installing to described destination server and configuration DNSMASQ service, TFTP-Server service and VSFTPD service, to described Destination server configuration SYSLINUX loads trigger.
The method installing LINUX system based on PXE technology batch the most according to claim 2, it is characterised in that to described During destination server configuration DNSMASQ service, the IP address in configuration is revised as the IP address of place LAN.
The most according to claim 3 based on PXE technology batch install LINUX system method, it is characterised in that described in add Add startup mirror image and configuration file include:
Add CentOS 7 to described destination server and start mirror image, and create CentOS 7 local mirror image installation source;
The ks.cfg file automatically generated by described destination server is as configuration file, and revises the installation matchmaker of ks.cfg file Body.
5. the system installing LINUX system based on PXE technology batch, it is characterised in that including:
Destination server chooses module, for choosing the destination server having installed LINUX system;
Configuration module, for installing preset service to described destination server, and adds startup mirror image and configuration file, generates PXE server, is made local computer download from described PXE server and installs reflection and configuration file, and reflected by described installation Picture and configuration file install LINUX system automatically.
The most according to claim 5 based on PXE technology batch install LINUX system system, it is characterised in that described in join Putting module to install to described destination server and configuration DNSMASQ service, TFTP-Server service and VSFTPD service, to institute State destination server configuration SYSLINUX and load trigger.
The system installing LINUX system based on PXE technology batch the most according to claim 6, it is characterised in that to described During destination server configuration DNSMASQ service, the IP address in configuration is revised as the IP address of place LAN.
The most according to claim 7 based on PXE technology batch install LINUX system system, it is characterised in that described in join Put module to include:
Start mirror image adding device, start mirror image for adding CentOS 7 to described destination server, and create CentOS 7 Local mirror image installs source;
Configuration file signal generating unit, for ks.cfg file that described destination server is automatically generated as configuration file, and The installation media of amendment ks.cfg file.
CN201610580904.5A 2016-07-21 2016-07-21 The method and system of LINUX system are installed based on PXE technology batch Pending CN106250174A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610580904.5A CN106250174A (en) 2016-07-21 2016-07-21 The method and system of LINUX system are installed based on PXE technology batch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610580904.5A CN106250174A (en) 2016-07-21 2016-07-21 The method and system of LINUX system are installed based on PXE technology batch

Publications (1)

Publication Number Publication Date
CN106250174A true CN106250174A (en) 2016-12-21

Family

ID=57603501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610580904.5A Pending CN106250174A (en) 2016-07-21 2016-07-21 The method and system of LINUX system are installed based on PXE technology batch

Country Status (1)

Country Link
CN (1) CN106250174A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648800A (en) * 2016-12-30 2017-05-10 郑州云海信息技术有限公司 Linux system installing method and system
CN106713516A (en) * 2017-03-31 2017-05-24 山东超越数控电子有限公司 Method for quickly making mirror image of oVirt cloud platform computing node
CN107066287A (en) * 2017-01-14 2017-08-18 郑州云海信息技术有限公司 The method and system of ESXI virtual machine automatic deployment installation systems
CN108063822A (en) * 2017-12-20 2018-05-22 郑州云海信息技术有限公司 A kind of method that kernel is automatically updated under whole machine cabinet server system
CN108897679A (en) * 2018-06-20 2018-11-27 郑州云海信息技术有限公司 A kind of method and system of deployment services device operating system testing environment
CN109445803A (en) * 2018-10-17 2019-03-08 郑州云海信息技术有限公司 A kind of method of automated quick deployment installation K-UX operating system
CN111949278A (en) * 2020-07-24 2020-11-17 苏州浪潮智能科技有限公司 A method, system, terminal and storage medium for automatically installing MCS system
CN112130917A (en) * 2020-09-22 2020-12-25 北京计算机技术及应用研究所 Remote loading system image method
CN113703788A (en) * 2021-07-26 2021-11-26 新华三技术有限公司成都分公司 System installation method and device
CN114385194A (en) * 2021-12-09 2022-04-22 四川华鲲振宇智能科技有限责任公司 PXE-based installation of various operating systems and method

Citations (3)

* 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
US20120151470A1 (en) * 2007-05-14 2012-06-14 Red Hat, Inc. Method and system for provisioning software
CN105094929A (en) * 2015-09-07 2015-11-25 浪潮(北京)电子信息产业有限公司 PXE based linux operating system installation method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120151470A1 (en) * 2007-05-14 2012-06-14 Red Hat, Inc. Method and system for provisioning software
CN101546270A (en) * 2009-05-08 2009-09-30 阿里巴巴集团控股有限公司 Automatic installation method for Linux operation system, device and system
CN105094929A (en) * 2015-09-07 2015-11-25 浪潮(北京)电子信息产业有限公司 PXE based linux operating system installation method and system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648800A (en) * 2016-12-30 2017-05-10 郑州云海信息技术有限公司 Linux system installing method and system
CN107066287A (en) * 2017-01-14 2017-08-18 郑州云海信息技术有限公司 The method and system of ESXI virtual machine automatic deployment installation systems
CN106713516A (en) * 2017-03-31 2017-05-24 山东超越数控电子有限公司 Method for quickly making mirror image of oVirt cloud platform computing node
CN108063822A (en) * 2017-12-20 2018-05-22 郑州云海信息技术有限公司 A kind of method that kernel is automatically updated under whole machine cabinet server system
CN108897679A (en) * 2018-06-20 2018-11-27 郑州云海信息技术有限公司 A kind of method and system of deployment services device operating system testing environment
CN109445803A (en) * 2018-10-17 2019-03-08 郑州云海信息技术有限公司 A kind of method of automated quick deployment installation K-UX operating system
CN111949278A (en) * 2020-07-24 2020-11-17 苏州浪潮智能科技有限公司 A method, system, terminal and storage medium for automatically installing MCS system
CN111949278B (en) * 2020-07-24 2022-10-18 苏州浪潮智能科技有限公司 A method, system, terminal and storage medium for automatically installing MCS system
CN112130917A (en) * 2020-09-22 2020-12-25 北京计算机技术及应用研究所 Remote loading system image method
CN113703788A (en) * 2021-07-26 2021-11-26 新华三技术有限公司成都分公司 System installation method and device
CN114385194A (en) * 2021-12-09 2022-04-22 四川华鲲振宇智能科技有限责任公司 PXE-based installation of various operating systems and method

Similar Documents

Publication Publication Date Title
CN106250174A (en) The method and system of LINUX system are installed based on PXE technology batch
RU2421785C2 (en) Automated control of device drivers
CN107534647B (en) Systems, computing devices, and storage media for delivering startup scripts
CN105335171B (en) Method and device for application program resident in operating system background
US7546450B2 (en) Method and apparatus for operating system deployment
US9280360B2 (en) Bootstrapping from a remote disk image via a network
CN100410880C (en) Automated Deployment Methods for Operating Systems
AU2003257885B2 (en) Method and System for Network Switch Configuration
US9292312B2 (en) Simulated network boot environment for bootstrap redirection
US10853087B2 (en) UEFI boot mode OS provisioning system
CN101820387B (en) Method for rapidly deploying extensible cluster
US20030126426A1 (en) Embedded OS PXE server
CN104639378A (en) Automatic server deployment method based on PXE (pre-boot execution environment)
US10713062B2 (en) System and method for configuring an information handling system
US10146556B2 (en) System and method to perform an OS boot using service location protocol and launching OS using a dynamic update of network boot order without a reboot
US20100082969A1 (en) Embedded device for implementing a boot process on a host
CN104572372A (en) System and method for building server performance testing environment
CN114115917B (en) Operating system installation method and device
US20060271665A1 (en) IP telephone auto configuration system and method
WO2004025486A2 (en) Use of off-motherboard resources in a computer system
JP5549038B2 (en) Method for booting network computing device, server and computer system for implementing the method
CN107066287A (en) The method and system of ESXI virtual machine automatic deployment installation systems
US20050132360A1 (en) Network boot sequence in the absence of a DHCP server
CN105094929A (en) PXE based linux operating system installation method and system
EP3848825A1 (en) Application client launch method, service server, and client device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20161221