CN106452890A - 一种基于Ubuntu系统下自动配置PXE服务器方法 - Google Patents

一种基于Ubuntu系统下自动配置PXE服务器方法 Download PDF

Info

Publication number
CN106452890A
CN106452890A CN201610933770.0A CN201610933770A CN106452890A CN 106452890 A CN106452890 A CN 106452890A CN 201610933770 A CN201610933770 A CN 201610933770A CN 106452890 A CN106452890 A CN 106452890A
Authority
CN
China
Prior art keywords
pxe
ubuntu
pxe server
client
server
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
CN201610933770.0A
Other languages
English (en)
Inventor
李萌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Inspur Smart Computing Technology Co Ltd
Original Assignee
Guangdong Inspur Big Data Research 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 Guangdong Inspur Big Data Research Co Ltd filed Critical Guangdong Inspur Big Data Research Co Ltd
Priority to CN201610933770.0A priority Critical patent/CN106452890A/zh
Publication of CN106452890A publication Critical patent/CN106452890A/zh
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

本发明特别涉及一种基于Ubuntu系统下自动配置PXE服务器方法。该基于Ubuntu系统下自动配置PXE服务器方法,首先配置网络,为网卡设置IP地址;然后,先配置DHCP服务,实现客户端与PXE服务器的数据交换,再配置TFTP服务,通过TFTP服务加载内核以及文件系统;最后,配置PXE启动文件并设置pxelinux配置文件,将Ubuntu启动镜像添加进PXE服务器,即可用于向客户端灌装Ubuntu系统。该基于Ubuntu系统下自动配置PXE服务器方法,可以实现Ubuntu系统下自动配置PXE服务器,既方便又可以节省大量时间,并且能够完全避免因配置出现错误导致PXE服务器不可用的问题。

Description

一种基于Ubuntu系统下自动配置PXE服务器方法
技术领域
本发明涉及服务器配置技术领域,特别涉及一种基于Ubuntu系统下自动配置PXE服务器方法。
背景技术
所谓的PXE(preboot execute environment),是由Intel开发的技术。简单来说,PXE服务器就是DHCP服务器+TFTP服务器,需要安装操作系统的机器,通过DHCP获取IP地址,并通过TFTP服务器进行操作系统的安装。
由于通过PXE灌装操作系统既方便又省时,可以在最短时间内,为几百台计算机或者服务器灌装系统。,工厂以及各种大型机房大批量灌装系统均会使用PXE服务器,使得PXE服务器应用极其广泛。
随着技术的进步,相当一部分计算机或者服务器,均不再提供光驱,但却一定会支持PXE功能。通过网卡以及BIOS配合,将裸机通过网线与PXE服务器连接,即可以在最短时间内,安装大量操作系统。但是,由于PXE服务器的配置,需要手工进行,配置起来也比较复杂,相关命令均需要手工输入,不仅工作量大,安装效率低,且极易出错,实用性很差。
基于上述情况,本发明提出了一种基于Ubuntu系统下自动配置PXE服务器方法。
发明内容
本发明为了弥补现有技术的缺陷,提供了一种简单高效的基于Ubuntu系统下自动配置PXE服务器方法。
本发明是通过如下技术方案实现的:
一种基于Ubuntu系统下自动配置PXE服务器方法,其特征在于包括以下步骤:
(1)首先配置网络,为网卡设置IP地址;
(2)然后,先配置DHCP服务,实现客户端与PXE服务器的数据交换,再配置TFTP服务,通过TFTP服务加载内核以及文件系统;
(3)最后,配置PXE启动文件并设置pxelinux配置文件,将Ubuntu启动镜像添加进PXE服务器,即可用于向客户端灌装Ubuntu系统。
所述步骤(2)中,在Ubuntu系统下需要先安装DHCP服务,通过DHCP服务,向客户端分配IP地址,实现客户端与PXE 服务器的数据交换;通过TFTP服务,客户端从PXE服务器获取PXE启动文件,pxelinux配置文件和系统镜像。
所述步骤(3)中,完成PXE服务器的配置后,进入客户端BIOS setup界面,选择bootfrom network,设置为enable,保存配置后重新启动,客户端即可以进入PXE安装界面,完成PXE 服务器的安装。
本发明的有益效果是:该基于Ubuntu系统下自动配置PXE服务器方法,可以实现Ubuntu系统下自动配置PXE服务器,既方便又可以节省大量时间,并且能够完全避免因配置出现错误导致PXE服务器不可用的问题。
具体实施方式
为了使本发明所要解决的技术问题、技术方案及有益效果更加清楚明白,以下结合实施例,对本发明进行详细的说明。应当说明的是,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。
该基于Ubuntu系统下自动配置PXE服务器方法,包括以下步骤:
(1)首先配置网络,为网卡设置IP地址;
(2)然后,在Ubuntu系统下先配置DHCP服务,通过DHCP服务,向客户端分配IP地址,实现客户端与PXE服务器的数据交换;再配置TFTP服务,通过TFTP服务,客户端从PXE服务器获取PXE启动文件,pxelinux配置文件和系统镜像等文件系统;
(3)最后,配置PXE启动文件并设置pxelinux配置文件,将Ubuntu启动镜像添加进PXE服务器,即可用于向客户端灌装Ubuntu系统。
该基于Ubuntu系统下自动配置PXE服务器方法,执行的相关脚本内容主要由以下几部分组成:
1)配置网络,为网卡设置ip地址,通过该ip地址,实现DHCP以及TFTP服务。
编辑/etc/network/interfaces文件
auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 1.1.1.1
sudo /etc/init.d/networking restart
2)配置DHCP服务,ubuntu系统下,需要先安装DHCP服务,通过DHCP服务,向客户端分配IP地址,实现客户端与PXE服务器之间的数据交换。
安装DHCP服务
sudo apt-get update
sudo apt-get install isc-dhcp-Server inetutils-inetd tftpd-hpa syslinuxnfs-kernel-Server
配置用于PXE服务的网络接口
sudo nano /etc/default/dhcp3-server
配置DHCP服务器IP地址范围
sudo nano /etc/dhcp/dhcpd.conf
sudo /etc/init.d/isc-dhcp-server start
3)配置TFTP服务,通过TFTP服务,客户端可以从PXE服务器获取PXE启动文件,配置文件,以及系统镜像等相关信息。
sudo nano /etc/inetd.conf
sudo nano /etc/default/tftpd-hpa
sudo update-inetd --enable BOOT
sudo service tftpd-hpa start
4)配置PXE启动文件
sudo mkdir /var/lib/tftpboot
sudo mkdir /var/lib/tftpboot/pxelinux.cfg
sudo mkdir -p /var/lib/tftpboot/Ubuntu/14.04/amd64/
sudo cp /usr/lib/syslinux/vesamenu.c32 /var/lib/tftpboot/
sudo cp /usr/lib/syslinux/pxelinux.0 /var/lib/tftpboot/
5)设置pxelinux配置文件
sudo nano /var/lib/tftpboot/pxelinux.cfg/default
6)将Ubuntu启动镜像添加进PXE服务器,用于向客户端灌装ubuntu系统
sudo mount -o loop /mnt/ubuntu.iso /media/
sudo cp -r /media/* /var/lib/tftpboot/Ubuntu/14.04/amd64/
sudo cp -r /media/.disk /var/lib/tftpboot/Ubuntu/14.04/amd64/
sudo cp /media/casper/initrd.lz /media/casper/vmlinuz /var/lib/tftpboot/Ubuntu/
完成PXE服务器的配置,并将Ubuntu启动镜像添加进PXE服务器后,进入客户端BIOSsetup界面,选择boot from network,设置为enable,保存配置后重新启动,客户端即可以进入PXE安装界面,完成PXE服务器的安装。
该基于Ubuntu系统下自动配置PXE服务器方法,只需将系统镜像拷贝进PXE服务器,执行上述脚本即可以实现PXE服务器的自动化配置,既方便又可以节省大量时间,并且能够免除人工配置出现错误导致PXE服务器不可用的问题。且通过脚本代替人工操作,并且操作简单,无需掌握专业知识也可完成操作,为工厂以及机房灌装系统提供方便。

Claims (3)

1.一种基于Ubuntu系统下自动配置PXE服务器方法,其特征在于包括以下步骤:
(1)首先配置网络,为网卡设置IP地址;
(2)然后,先配置DHCP服务,实现客户端与PXE服务器的数据交换,再配置TFTP服务,通过TFTP服务加载内核以及文件系统;
(3)最后,配置PXE启动文件并设置pxelinux配置文件,将Ubuntu启动镜像添加进PXE服务器,即可用于向客户端灌装Ubuntu系统。
2.根据权利要求1所述的基于Ubuntu系统下自动配置PXE服务器方法,其特征在于:所述步骤(2)中,在Ubuntu系统下需要先安装DHCP服务,通过DHCP服务,向客户端分配IP地址,实现客户端与PXE 服务器的数据交换;通过TFTP服务,客户端从PXE服务器获取PXE启动文件,pxelinux配置文件和系统镜像。
3.根据权利要求1所述的基于Ubuntu系统下自动配置PXE服务器方法,其特征在于:所述步骤(3)中,完成PXE服务器的配置后,进入客户端BIOS setup界面,选择boot fromnetwork,设置为enable,保存配置后重新启动,客户端即可以进入PXE安装界面,完成PXE服务器的安装。
CN201610933770.0A 2016-10-25 2016-10-25 一种基于Ubuntu系统下自动配置PXE服务器方法 Pending CN106452890A (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610933770.0A CN106452890A (zh) 2016-10-25 2016-10-25 一种基于Ubuntu系统下自动配置PXE服务器方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610933770.0A CN106452890A (zh) 2016-10-25 2016-10-25 一种基于Ubuntu系统下自动配置PXE服务器方法

Publications (1)

Publication Number Publication Date
CN106452890A true CN106452890A (zh) 2017-02-22

Family

ID=58179003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610933770.0A Pending CN106452890A (zh) 2016-10-25 2016-10-25 一种基于Ubuntu系统下自动配置PXE服务器方法

Country Status (1)

Country Link
CN (1) CN106452890A (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566174A (zh) * 2017-09-05 2018-01-09 郑州云海信息技术有限公司 一种网卡识别及批量灌装系统的实现方法及系统
CN112130917A (zh) * 2020-09-22 2020-12-25 北京计算机技术及应用研究所 远程加载系统镜像方法
CN114647454A (zh) * 2022-03-18 2022-06-21 苏州浪潮智能科技有限公司 一种基于pxe服务的装机方法及系统

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160216980A1 (en) * 2013-07-19 2016-07-28 Dell Products L.P. Switching between network interface controllers during different stages of operation
CN105959134A (zh) * 2016-04-22 2016-09-21 汉柏科技有限公司 基于pxe的自动安装部署方法、pxe服务器

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160216980A1 (en) * 2013-07-19 2016-07-28 Dell Products L.P. Switching between network interface controllers during different stages of operation
CN105959134A (zh) * 2016-04-22 2016-09-21 汉柏科技有限公司 基于pxe的自动安装部署方法、pxe服务器

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LINUX: "《在Ubuntu14.04中配置PXE服务器》", 《HTTPS://WWW.LINUXIDC.COM/LINUX/2015-11/124969.HTM》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566174A (zh) * 2017-09-05 2018-01-09 郑州云海信息技术有限公司 一种网卡识别及批量灌装系统的实现方法及系统
CN112130917A (zh) * 2020-09-22 2020-12-25 北京计算机技术及应用研究所 远程加载系统镜像方法
CN114647454A (zh) * 2022-03-18 2022-06-21 苏州浪潮智能科技有限公司 一种基于pxe服务的装机方法及系统
CN114647454B (zh) * 2022-03-18 2023-08-04 苏州浪潮智能科技有限公司 一种基于pxe服务的装机方法及系统

Similar Documents

Publication Publication Date Title
US11444765B2 (en) Methods and apparatus to manage credentials in hyper-converged infrastructures
US10986174B1 (en) Automatic discovery and configuration of server nodes
US7600005B2 (en) Method and apparatus for provisioning heterogeneous operating systems onto heterogeneous hardware systems
US20180267786A1 (en) Autonomous server installation
WO2016112825A1 (zh) 远程控制方法、终端设备、管理服务器及远程控制系统
US10917291B2 (en) RAID configuration
US7506151B2 (en) System for managing boot-up of target computers
US7953830B2 (en) Automatic network reconfiguration upon changes in DHCP IP addresses
US7761613B2 (en) Electrical device configuration system and method
CN101820387B (zh) 一种易扩展的快速机群部署方法
US11055125B2 (en) Virtual machine client-side virtual network change
CN105867975A (zh) 一种基于linux平台的批量刷新bmc的方法
US8782185B2 (en) Network booting a machine coupled to the network by a link aggregation group
CN102662884B (zh) 一种基于网络的设备驱动程序配置方法
CN106572200A (zh) 一种基板控制器bmc的ip地址配置方法及装置
CN106452890A (zh) 一种基于Ubuntu系统下自动配置PXE服务器方法
WO2014101514A1 (zh) 获取服务器资源信息的方法、资源池管理系统和服务器
US20130262700A1 (en) Information processing system and virtual address setting method
US11226827B2 (en) Device and method for remote management of information handling systems
US9912534B2 (en) Computer system, method for starting a server computer, server computer, management station, and use
US20080130646A1 (en) Method and system for configuring a device that has failed to obtain network address
JP6764489B2 (ja) ネットワーク機器のスタッキング
CN112948008A (zh) 一种基于Ironic管理物理裸机的方法
WO2014105027A1 (en) Reservation and execution image writing of native computing devices
CN113076171B (zh) 虚拟机装机方法及装置

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

Application publication date: 20170222

RJ01 Rejection of invention patent application after publication