geexbox pxe playing
參考資料 : Jamyy's Weblog
SettingUp PXE Boot Server
- GeeXboX
SettingUp Client PC
- 啟用網卡 Boot ROM 進行網路開機
Server 端環境
- CentOS 5.2
- NFS Server (nfs-utils、portmap)
- DHCP Server (dhcp)
- TFTP Server (tftp-server)
啟用 TFTP Server:
vi /etc/xinetd.d/tftp
disable = no
/etc/init.d/xinetd start
Client 端環境
- 含 Boot ROM 的網卡 或 ROM-o-matic 支援的網卡
建置 GeeXboX 網路開機環境 (Server 端操作)
mount -o loop geexbox.iso /mnt
cp -r /mnt/* /tftpboot
vi /tftpboot/GEEXBOX/boot/pxelinux.cfg/default
將 nfsroot=192.168.0.2:/tftpboot/GEEXBOX.i386 改為
nfsroot=your.nfs.server.ip:/tftpboot/GEEXBOX
vi /etc/dhcpd.conf
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.199;
option subnet-mask 255.255.255.0;如果己經有dhcp的只要加入以下兩行即可
next-server your.tftp.server.ip;
filename "/tftpboot/GEEXBOX/boot/pxelinux.0";
}註: 若 /etc/xinetd.d/tftp 的 server_args 為 "-s /tftpboot", 則上述 filename 的 root ( / ) 為 /tftpboot. 詳細說明請見:
所以要改成 filename "GEEXBOX/boot/pexlinux.0"; 不要改錯了!!
一直跑不出來的話記得重新 /etc/init.d/xinetd restart
man tftpd
vi /etc/exports
#/share 192.168.2.0/24(ro)
/tftpboot/GEEXBOX *(ro)
/etc/init.d/dhcpd restart
exportfs -a
若 NFS Server 已啟動, 執行 exportfs -a 即可重新讀取 /etc/exports
try it ~