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.
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/
沒有留言:
張貼留言