惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - xiaoyixy

WeakHashMap相关 Java常见问题[转] MONO,原来你是水中月 Lucene 搜索引擎倒排索引原理 让进程在后台运行方法汇总 用 Spreadsheet::ParseExcel处理中文excel文件 IBM terminology abstraction Perl Note(2) 亲爱的,我想念你 Perl命令行应用 深入PAM - xiaoyixy Perl Note(1) Shell技巧 GRUB awk学习 高手好习惯 Shell脚本 用户管理 - xiaoyixy re notes - xiaoyixy
PXE Network Boot and Install Linux over NFS server
xiaoyixy · 2008-12-22 · via 博客园 - xiaoyixy

PXE Network Boot is an Intel technology that can boot a system and install OS from remote image source. The prerequisites to achieve this include: a ROM embedded into a network card confroming Intel PXE specification, a DHCP server that can serve as a responser of the request sent by NIC card and assign an IP for it, a remote boottrap and kernel over TFTP protocol. In this demo, additionally we will use a NFS server that provides the actual image source.

Set up NFS Server

Served as a remote image source provider, we set up a NFS server that the images locates and will be remotely attached to a client. NFS is a cluster file system relatively simple and is readily provided in almost all the Linux distributions. So the first thing to do is to enable the NFS daemo. The NFS server processes are started from the /etc/init.d/nfs and /etc/init.d/nfslock files. Both of these files may be enabled with the customer chkconfig commands:

Code

The behavior of NFS on your server may be controlled by the /etc/sysconfig/nfs file. This file contains the options used by the /etc/init.d/nfs file, and usually does not exist by default. So, firstly, start NFS daemon and tell the NFS process where the image source locates and can be mounted remotely by a client server. The more detailed behavior information of NFS process can be seen below:

NFS detailed info

Set up TFTP Server

TFTP is a file transfer protocal silimar to FTP but a lot more simpler. Install TFTP packages on the NFS server (or any other server). Further configure the root of the TFTP service via config file /etc/xinetd.d/tftp, a typical specification will look like:

tftp service

 Configure PXELINUX on TFTP server

Now configure PXELINUX on TFTP server so that the PXE client can know where to load an OS bootstrap and start the installation process. The necessary files include:

Code

A sample configuration file looks like:

Sample cfg

 Configure DHCP server 

A typical DHCP configuration looks like the following. Note that in the configuration file, it specifies the NIC address of the client, designates an IP for the client, and specifies the location of the TFTP server and bootstrap location. 

Code

 A demo reference can de found on IBM developer network: 如何远程安装Linux