网络无人值守案装CentOS5 网络无人值守案装CentOS5.3 前提条件是要安装的计算机的网卡必须支持网络启动(就是PXE协议)。 1、 配置无人值守安装服务器 1) 服务器中必须安装tftp,dhcp,nfs服务 2) 安装tftp,使之处于启动状态,修改/etc/xinetd.d/tftp 把disable =yes改为no,然后重启xinetd服务(tftp依赖于xinetd,安装时也要先安装xinetd) 3) 安装dhcp,并配置。修改/etc/dhcpd.conf
内容
财务内部控制制度的内容财务内部控制制度的内容人员招聘与配置的内容项目成本控制的内容消防安全演练内容
如下 文件/etc/dhcpd.conf配置与正常的dhcp配置一样,只是在选项中添加了如下: next-server 192.168.0.2; #是nfs的服务器地址 filename “pxelinux.0”; #指定引导文件是哪个 4) 安装nfs,并配置 输出安装文件的位置 /mnt 10.0.0.0/8(ro,sync) 输出kickstart文件的位置 /disk 10.0.0.0/8(ro,sync) 5) 配置完服务后,把所有服务都设置为开机自启动 2、 配置tftp应用 1) 拷贝/usr/lib/syslinux/pxelinux.0到/tftpboot下 2) 把光盘中的image/pxeboot下的initrd.img和vmlinuz拷贝到/tftpboot下 3) 拷贝isolinux下的*.msg到/tftpboot下 4) 在/tftpboot下创建目录 pxelinux.cfg,拷贝isolinux下的isolinux.cfg到 /tftpboot/pxelinux.cfg目录下并改名为default 5) 创建ks.cfg文件(ks.cf文件最好是通过网络手工安装来获取) 文件名为 ks.cfg。内容如下 install nfs --server=10.0.0.1 --dir=/mnt lang en_US.UTF-8 keyboard us xconfig --startxonboot network --device eth0 --bootproto dhcp rootpw --iscrypted $1$d8lhSish$QXTGX1xAS/dELjQq8RGZr1 firewall --enabled --port=22:tcp authconfig --enableshadow --enablemd5 selinux --enforcing timezone Asia/Shanghai bootloader --location=mbr --driveorder=sda --append="rhgb quiet" # The following is the partition information you requested # Note that any partitions you deleted are not expressed # here so unless you clear all partitions first, this is # not guaranteed to work clearpart –all --initlabel part / --fstype ext3 --size=16384 part swap --size=100 –grow %packages @office @editors @text-internet @gnome-desktop @dialup @core @base @games @base-x @chinese-support @graphics @printing @sound-and-video @graphical-internet device-mapper-multipath xorg-x11-server-Xnest 6) libsane-hpaio 7) 编写启动引导文件 /tftpboot/pxelinux.cfg/default default linux prompt 1 timeout 6 display boot.msg F1 boot.msg F2 options.msg F3 general.msg F4 param.msg F5 rescue.msg label linux kernel vmlinuz append ks=nfs:10.0.0.1:/disk/ks.cfg initrd=initrd.img #添加ks=nfs label text kernel vmlinuz append initrd=initrd.img text label ks kernel vmlinuz append ks initrd=initrd.img label local localboot 1 8) 重启客户机,选择网络启动,就可以无人值守安装系统