欢迎来到天天文库
浏览记录
ID:7776875
大小:47.00 KB
页数:4页
时间:2018-02-25
《网络引导nfs自动安装linux系统》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、PXE+TFTP+DHCP+NFS+KICKSTART1、安装配置TFTP:查询TFTP是否安装:[root@RAC1~]#rpm-qtftp-servertftp-server-0.39-2[root@RAC1tftpboot]#vi/etc/xinetd.d/tftp#default:off#description:Thetftpserverservesfilesusingthetrivialfiletransfer#protocol.Thetftpprotocolisoftenusedtobootdiskless#workstations,
2、downloadconfigurationfilestonetwork-awareprinters,#andtostarttheinstallationprocessforsomeoperatingsystems.servicetftp{disable=nosocket_type=dgramprotocol=udpwait=yesuser=rootserver=/usr/sbin/in.tftpdserver_args=-s/tftpbootper_source=11cps=1002flags=IPv4}[root@RAC1tftpboot]#se
3、rvicexinetdrestart配置PXE模块:[root@RAC1tftpboot]#cd/usr/lib/syslinux/[root@RAC1syslinux]#lscopybs.comkeytab-lilo.plpxelinux.0syslinux.exeisolinux.binmemdisksys2ansi.plsyslinux-nomtoolsisolinux-debug.binmkdiskimagesyslinux.com[root@RAC1syslinux]#cppxelinux.0/tftpboot/pxelinux.0把Lin
4、ux第一张安装光盘上/image/pxeboot/initrd.img和vmlinux以及isolinux/*.msg和isolinux.cfg拷贝到/tftpboot目录下:[root@RAC1tftpboot]#lsboot.msginitrd.imgoptions.msgpxelinux.0rescue.msgvmlinuzgeneral.msgisolinux.cfgparam.msgpxelinux.cfgsnake.msg[root@RAC1tftpboot]#cpisolinux.cfgpxelinux.cfg/default[root
5、@RAC1pxelinux.cfg]#videfaultdefaultkstestprompt1timeout10displayboot.msgF1boot.msgF2options.msgF3general.msgF4param.msgF5rescue.msgF7snake.msglabelkstestkernelvmlinuzappendks=nfs:192.168.79.100:/nfs/as/kf/ks.cfginitrd=initrd.imgramdisk_size=8192labeltextkernelvmlinuzappendinitr
6、d=initrd.imgtextramdisk_size=8192labelexpertkernelvmlinuzappendexpertinitrd=initrd.imgramdisk_size=8192labelkskernelvmlinuzappendksinitrd=initrd.imgramdisk_size=8192labellowreskernelvmlinuzappendinitrd=initrd.imglowresramdisk_size=8192labellocallocalboot1labelmemtest86kernelmem
7、testappend-2、安装配置DHCP:[root@RAC1~]#rpm-qdhcpdhcp-3.0.1-59.EL4[root@RAC1/]#vi/etc/dhcpd.conf#DHCPServerConfigurationfile.#see/usr/share/doc/dhcp*/dhcpd.conf.sampleddns-update-styleinterim;ignoreclient-updates;subnet192.168.79.0netmask255.255.255.0{range192.168.79.10192.168.79.99
8、;optionrouters192.168.79.1;optionsubnet-mask255.255.25
此文档下载收益归作者所有