Wi Linux pxe安裝手冊
首先安裝所需要包
yum -y install httpd*tftp-server system-config-kickstart dhcp syslinux
掛載WiLinux的DVD光碟,並複製第一張光碟下的所有內容(檔案和資料夾)到到/var/wwwhtml/下cp –rf /mnt/cdrom/* /var/www/html/
配置dhcp服務
vi /etc/dhcp/dhcpd.conf
servicedhcpd restart
chkconfigdhcpd on
更改配置檔案
1.#option domain-name-servers 10.0.0.1;
2.max-lease-time 7200;
3.authoritative;
4.
5.subnet 10.0.0.0 netmask 255.255.255.0 {
6. range 10.0.0.1 10.0.0.253;
7. next-server 10.0.0.8;
8. filename "pxelinux.0";
9. }
配置nfs伺服器
vi /etc/exports
/os * (ro) 根據實際放ISO映象目錄
/tftpboot * (ro)
servicenfs restart
chkconfignfs on
配置tftp伺服器
vi /etc/xinted.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /var/lib/tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
[[email protected] html]#
servicexinetd restart
chkconfigxinetd on
然後是system-config-kickstart圖形介面下配置(如圖1)
本次配置是NFS,所以選擇NFS(如圖2)
選擇安裝分割槽(如圖3)
配置完成後,儲存為ks.cfg檔案
建立tftpboot資料夾,並把配置檔案複製過去
進入tftpboot 資料夾沒有就重建一個
#Cd /var/lib/tftpboot
#Mkdir/var/lib/tftpboot
mkdir /tftpboot
cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot
3.cp/usr/share/syslinux/vesamenu.c32/var/lib/tftpboot
cd /var/www/html/p_w_picpath/pxeboot/
cp initrd.img var/lib/tftpboot
cp vmlinux /var/lib/tftpboot
cp /var/www/html/isolinux/*.msg var/lib/tftpboot
mkdir /tftpboot/pxelinux.cfg
cp /var/www/html/isolinux/isolinux.cfg /var/lib/tftpboot/pxelinux.cfg/default
複製kickstart儲存的檔案到OS下
cp /ks.cfg /os
更改/tftpboot/pxelinux.cfg/deafault檔案增加nfs目錄
ks=nfs:192.168.1.221:/iso/ks.cfg
儲存後即可新增新的裝置網路安裝
轉載於:https://blog.51cto.com/waycooler/1211334