PXELINUX的执行过程之1

原创 2011年01月25日 14:36:00

通过PXE方式引导的服务器从网卡引导的第一步是获取一个ip地址,并获得nextserver 和pxelinux.0这个引导程序,pxelinux.0会以下列的方式寻找他的配置文件

PXELINUX operates in many ways like SYSLINUX. If you are not familiar with SYSLINUX, read the SYSLINUX FAQ first, since this documentation only explains the differences.

On the TFTP server, create the directory "/tftpboot", and copy pxelinux.0 (from the SYSLINUX distribution) and any kernel or initrd images that you want to boot.

Finally, create the directory "/tftpboot/pxelinux.cfg". The configuration file (equivalent of syslinux.cfg -- see the SYSLINUX FAQ for the options here) will live in this directory. Because more than one system may be booted from the same server, the configuration file name depends on the IP address of the booting machine. PXELINUX will search for its config file on the boot server in the following way:

  • First, it will search for the config file using the hardware type (using its ARP type code) and address, all in lower case hexadecimal with dash separators; for example, for an Ethernet (ARP type 1) with address 88:99:AA:BB:CC:DD it would search for the filename 01-88-99-aa-bb-cc-dd.
  • Next, it will search for the config file using its own IP address in upper case hexadecimal, e.g. 192.0.2.91 -> C000025B (you can use the included progam gethostip to compute the hexadecimal IP address for any host). If that file is not found, it will remove one hex digit and try again. Ultimately, it will try looking for a file named default (in lower case). As an example, if the boot file name is /mybootdir/pxelinux.0, the Ethernet MAC address is `88:99:AA:BB:CC:DD` and the IP address 192.0.2.91, it will try following files (in that order):

    /mybootdir/pxelinux.cfg/01-88-99-aa-bb-cc-dd
    /mybootdir/pxelinux.cfg/C000025B
    /mybootdir/pxelinux.cfg/C000025
    /mybootdir/pxelinux.cfg/C00002
    /mybootdir/pxelinux.cfg/C0000
    /mybootdir/pxelinux.cfg/C000
    /mybootdir/pxelinux.cfg/C00
    /mybootdir/pxelinux.cfg/C0
    /mybootdir/pxelinux.cfg/C
    /mybootdir/pxelinux.cfg/default

Note that all filename references are relative to the directory pxelinux.0 lives in. PXELINUX generally requires that filenames (including any relative path) are 127 characters or shorter in length.

PXELINUX does not support MTFTP, and I have no immediate plans of doing so. It is of course possible to use MTFTP for the initial boot, if you have such a setup. MTFTP server setup is beyond the scope of this document.

相关文章推荐

优化pxe网启动时tftp的传输速度 --- 针对pxelinux和bootmgr

作为一名IT人士,一般的计算机维护当然不好意思找别人。 于是自己用pxelinux搭了个网络启动环境,可以启动各种WinPE,以供折腾电脑系统,刷新固件的需要。       只是一般的网络启动都是...
  • whoo
  • whoo
  • 2013年02月05日 15:33
  • 9437

ELF文件格式及程序加载执行过程总汇(1)

好文转自: http://www.linuxsir.org/bbs/printthread.php?t=206356 这是我这段时间学习elf文件格式搜集的资料,其中的一些重量级文档,比如lin...

第17周 项目1-体会函数参数传值 (运行结果及单步执行过程)

代码: #include using namespace std; void fun1(int &x,int &y); void fun2(int *x, int *y); int main() ...

hadoop2提交到Yarn: Mapreduce执行过程分析1

转载网址:http://www.aboutyun.com/forum.php?mod=viewthread&tid=9366&highlight=hadoop2%CC%E1%BD%BB%B5%BDYa...

centos6.7 PXE启动需要的pxelinux.0

  • 2015年11月13日 00:56
  • 23KB
  • 下载

MAXDOS 7.1 pxelinux 版

  • 2009年10月29日 17:39
  • 4.46MB
  • 下载

详解MySQL查询语句执行过程1

逻辑查询步骤 查询操作是关系数据库中使用最为频繁的操作,也是构成其他MySQL语(如DELETE、UPDATE)的基础。查询处理的顺序如下: (7) SELECT (8) DISTINCT...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:PXELINUX的执行过程之1
举报原因:
原因补充:

(最多只允许输入30个字)