2011年3月10日 星期四

Setting up a PXE install for Linux (CentOS-5.4)

We need
A linux server with the following setup.
  • A DHCP server.
  • A TFTP server
  • vmlinuz and initrd.img from your distribution of choice
  • The PXELINUX.0 boot loader and a suitable config file
  • NFSD, and iso source(CentOS-5.4) to be exported.
1. and 2. ignored, suppose ok.

3. get vmlinuz and initrd according to distro(CentOS-5.4), from http://ftp.cse.yzu.edu.tw/pub/Linux/CentOS/5.4/os/x86_64/images/pxeboot/  , put to /tftpboot/linux-install/distros/centos-5.4/

4. vim /tftpboot/pxelinux.cfg/01-88-88-88-88-87-44, add lines
kernel linux-install/distros/centos-5.4/vmlinuz
append initrd=linux-install/distros/centos-5.4/initrd.img  console=ttyS1,115200n8(if client machine have no video card, and use serial port to output)

5. vim /etc/exports, add line
/work/exports/dvdrom                    *(ro,no_root_squash,no_all_squash)
/work/exports/dvdrom is the install source.

Server setup done. Boot client machine, setup ip, nfs, should be ok,
Surprise, we can use vnc to install, that's great.


ref
http://ftp.cse.yzu.edu.tw/pub/Linux/CentOS/5.4/os/x86_64/images/pxeboot/
http://www.pyrosoft.co.uk/blog/2008/04/03/setting-up-a-pxe-install-for-linux/
http://www.syntaxtechnology.com/2010/06/setting-up-a-pxe-boot-server-on-centos-5-5/

沒有留言:

張貼留言

kgdb

--0313-- ken 不好意思 请教一下 之前你有交过我 在没有coredump的情况下 可以用gdb直接载入ko.debug, 然后dis -l register_bcache, 我记得使用方式是不是这样, 不过我现在dis -l出现错误^^" [root@...