2011年8月8日 星期一

freebsd pxeboot

- prepare tftp dir. copy pxeboot into it.
- prepare nfs root. use make DESTDIR=nfsroot install{kernel,world}
- setup dhcp server to send pxeboot to client
-- filename point to pxeboot
-- option root-path point to (exported) nfs root dir
- export nfs root dir
-- edit /etc/exports
-- /etc/rc.d/nfsd onestart
-- /etc/rc.d/mountd onereload

client boot sequence
- power on
- pxe use bootp/dhcp to load first binary to run
-- provide root path & pxeboot filename via dhcp option
-- provide pxeboot via tftp
- pxeboot runs and loads kernel from nfs root
- pxeboot boots kernel
- kernel initialized and mount root from nfs

pxe rom --tftp--> pxeboot --nfs--> kernel --nfs--> nfsroot

沒有留言:

張貼留言