标签:ack vsftp next shadow word develop blog partition app
PXE(Pre-boot Execution Environment,预启动执行环境)是Intel公司开发的最新技术,工作于Client/Server模式。PXE是一种远程引导方式,要求计算机网卡支持PXE协议,即网卡ROM中有PXEClient。计算机引导时,BIOS将PXEClient调入内存,PXEClient其实主要包括DHCPClient和TFTPClient两部分,PXEClient请求DHCP服务器分配IP,然后请求TFTP服务器下载引导文件和内核。
[root@test88 ~]# cat /etc/redhat-release CentOS release 6.6 (Final) [root@test88 ~]# uname -rm 2.6.32-504.el6.x86_64 x86_64 [root@test88 ~]# yum install -y dhcp [root@test88 ~]# vim /etc/dhcp/dhcpd.conf log-facility local7; subnet 172.16.1.0 netmask 255.255.255.0 { range 172.16.1.200 172.16.1.220; default-lease-time 600; max-lease-time 7200; next-server 172.16.1.88; filename "pxelinux.0"; } [root@test88 ~]# /etc/init.d/dhcpd start [root@test88 ~]# chkconfig dhcpd on [root@test88 ~]# netstat -nutlp | grep dhcp udp 0 0 0.0.0.0:67 0.0.0.0:* 24960/dhcpd
[root@test88 ~]# yum install -y tftp-server xinetd [root@test88 ~]# vim /etc/xinetd.d/tftp 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 } [root@test88 ~]# yum install -y syslinux // 通过安装该软件包获得引导文件 [root@test88 ~]# cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/ [root@test88 ~]# mount /dev/cdrom /opt/ [root@test88 ~]# cp /opt/isolinux/* /var/lib/tftpboot/ [root@test88 ~]# mkdir /var/lib/tftpboot/pxelinux.cfg [root@test88 ~]# cp /opt/isolinux/isolinux.cfg /var/lib/tftpboot/pxelinux.cfg/default [root@test88 ~]# chmod 644 /var/lib/tftpboot/pxelinux.cfg/default [root@test88 ~]# vim /var/lib/tftpboot/pxelinux.cfg/default default vesamenu.c32 timeout 60 display boot.msg ...... label linux // 每一个label定义了一个启动菜单项目 menu label ^Install CentOS 6 menu default kernel vmlinuz append initrd=initrd.img inst.ks=ftp://172.16.1.88/ks.cfg ip=dhcp quiet label check menu label Test this ^media & install CentOS 6 kernel vmlinuz append initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 rd.live.check quiet [root@test88 ~]# /etc/init.d/xinetd start [root@test88 ~]# chkconfig xinetd on [root@test88 ~]# netstat -nutlp | grep xinetd udp 0 0 0.0.0.0:69 0.0.0.0:* 25209/xinetd
[root@test88 ~]# yum install -y vsftpd [root@test88 ~]# yum install -y system-config-kickstart #使用 system-config-kickstart 工具生成kickstart文件,需要图形界面 [root@test88 ~]# cp /tmp/ks.cfg /var/ftp/ks.cfg [root@test88 ~]# ksvalidator /var/ftp/ks.cfg // 检查ks文件语法 [root@test88 ~]# umount /opt/ [root@test88 ~]# mount /dev/cdrom /var/ftp/pub/ mount: /dev/sr0 is write-protected, mounting read-only [root@test88 ~]# /etc/init.d/vsftpd start [root@test88 ~]# chkconfig vsftpd on
#platform=x86, AMD64, or Intel EM64T #version=DEVEL # Firewall configuration firewall --disabled # Install OS instead of upgrade install # Use network installation url --url="ftp://172.16.1.88/pub" # Root password rootpw --iscrypted $1$j2xUB1S7$9MW5sEYgcn3P/dqgF0/8L. # System authorization information auth --useshadow --passalgo=sha512 # Use graphical install graphical # System keyboard keyboard us # System language lang en_US # 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 --initlabel # Disk partitioning information part /boot --asprimary --fstype="ext4" --size=200 part swap --asprimary --fstype="swap" --size=1024 part / --asprimary --fstype="ext4" --grow --size=1 %packages @base @compat-libraries @debugging @development %end
标签:ack vsftp next shadow word develop blog partition app
原文地址:http://www.cnblogs.com/Peter2014/p/7517558.html