查看nfs输出
[root@kcw ~]# showmount -e localhost Export list for localhost: /media *
生成ks.cfg文件安装工具
[root@kcw ~]# yum install system-config-kickstart
然后运行
system-config-kickstart
来修改页面得到自己安装的客户端
我这里省略。。
这有个做好的ks.cfg
内容如下:
#platform=x86, AMD64, or Intel EM64T #version=DEVEL key --skip # Firewall configuration firewall --disabled # Install OS instead of upgrade install # Use network installation nfs --server=192.168.1.101 --dir=/media # Root password rootpw --iscrypted $1$9ElloIHk$pO.NfjND/6K88z3CiIvPc. # Network information network --bootproto=dhcp --device=eth0 --onboot=on # System authorization information auth --useshadow --passalgo=md5 # Use text mode install text # System keyboard keyboard us # System language lang zh_CN # SELinux configuration selinux --disabled # Do not configure the X Window System skipx # Installation logging level logging --level=info # Reboot after installation reboot # System timezone timezone Asia/Shanghai # System bootloader configuration bootloader --location=mbr # Clear the Master Boot Record zerombr # Partition clearing information clearpart --all # Disk partitioning information part swap --size 2048 part /boot --size 200 part pv.01 --size 30000 volgroup vol0 pv.01 logvol / --vgname=vol0 --size=25000 --name=root #logvol /home --vgname=vol0 --size=500 --name=home %post #wget ftp://192.168.1.101/pub/yum.repo -P /etc/yum.repos.d/ %packages @ Desktop @ Console internet tools @ Desktop Platform @ Development Tools @ General Purpose Desktop @ Graphical Administration Tools @ Internet Browser @ Network file system client @ Printing client @ X Window System @ Chinese Support
注意我这块root密码是redhat
我这里分区时lvm分区根据你的需求也可以修改
然后把ks.cfg放到你的vsftpd默认可以访问的目录里
即:
[root@kcw ~]# cd /var/ftp/pub/ [root@kcw pub]# ls ks.cfg [root@kcw pub]# pwd /var/ftp/pub
注意先测试你的这个文件能不能访问打开IE
输入ftp://192.168.1.101/pub/ks.cfg
看能否看到内容!
做完重启dhcp vsftpd xine xinetd nfs
然后重新开台电脑开机设置从网卡引导看能否启动成功并且自动安装
我这块等待默认600秒 自动安装
开机引导到boot:时按回车安装








