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

推荐订阅源

N
News | PayPal Newsroom
P
Proofpoint News Feed
Cyberwarzone
Cyberwarzone
C
Cisco Blogs
SecWiki News
SecWiki News
Know Your Adversary
Know Your Adversary
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Vercel News
Vercel News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
NISL@THU
NISL@THU
WordPress大学
WordPress大学
Hacker News - Newest:
Hacker News - Newest: "LLM"
T
Threat Research - Cisco Blogs
AI
AI
Simon Willison's Weblog
Simon Willison's Weblog
Security Archives - TechRepublic
Security Archives - TechRepublic
有赞技术团队
有赞技术团队
L
LINUX DO - 热门话题
Hacker News: Ask HN
Hacker News: Ask HN
V
V2EX
G
GRAHAM CLULEY
TaoSecurity Blog
TaoSecurity Blog
Hugging Face - Blog
Hugging Face - Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
F
Fortinet All Blogs
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
云风的 BLOG
云风的 BLOG
Recorded Future
Recorded Future
Latest news
Latest news
The Hacker News
The Hacker News
aimingoo的专栏
aimingoo的专栏
T
Troy Hunt's Blog
S
Schneier on Security
I
Intezer
Google DeepMind News
Google DeepMind News
A
Arctic Wolf
Apple Machine Learning Research
Apple Machine Learning Research
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Threatpost
爱范儿
爱范儿
The Register - Security
The Register - Security
S
SegmentFault 最新的问题
Blog — PlanetScale
Blog — PlanetScale
博客园 - 聂微东
宝玉的分享
宝玉的分享
Recent Commits to openclaw:main
Recent Commits to openclaw:main
美团技术团队
B
Blog RSS Feed

博客园 - xiaoyixy

WeakHashMap相关 Java常见问题[转] MONO,原来你是水中月 Lucene 搜索引擎倒排索引原理 让进程在后台运行方法汇总 用 Spreadsheet::ParseExcel处理中文excel文件 IBM terminology abstraction Perl Note(2) 亲爱的,我想念你 Perl命令行应用 深入PAM Perl Note(1) Shell技巧 GRUB awk学习 高手好习惯 Shell脚本 用户管理 re notes
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