�������һ�����⣬��˾�ڲ���Linux���������ڱȽ��ϣ��������ˣ�Ҳ��֧��U������������û�취��ֻ����pxe����װ����ϵͳ�����Ͻ̳̺ܶ࣬���Dz�����������������дһ���ҵİ�װ���̡�
A.��װdhcp������
yum install dhcp
vim /etc/dhcp/dhcpd.conf
#����ֱ�ӿ����ҵ��������ã�����������
ddns-update-style interim;
ignore client-updates;
allow booting;
allow bootp;
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.250 192.168.2.253;
option routers 192.168.2.1;
option subnet-mask 255.255.255.0;
default-lease-time 21600;
max-lease-time 43200;
next-server 192.168.2.136;
filename "pxelinux.0";
}
��ע��
next-server��ָ���ĵ�ַ���������ļ���ŵ��Ǹ���������һ����tftp��������ַ��
����dhcp������������������鿴/var/log/message
chkconfig --add dhcpd
service dhcpd start
B.��װtftp������
yum install tftp-server
/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
}
����
/etc/init.d/xinetd restart
C.��װһ��http/nfs/ftp �е�����һ�����ɣ��������ks.cfg��iso�����ļ���
��ѡ��http
yum install httpd
/etc/init.d/httpd start
chkconfig httpd on
D.����tftp����������ļ�
#�����ļ�
yum install syslinux
cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot
#�ں��ļ����ѹ��̹�����/mnt���ɡ�
cp /mnt/images/pxeboot/{vmlinuz,initrd.img} /var/lib/tftpboot
mkdir /var/lib/tftpboot/pxelinux.cfg
cp /mnt/isolinux/isolinux.cfg /var/lib/tftpboot/pxelinux.cfg/default
vim /var/lib/tftpboot/pxelinux.cfg/default
#��Ϊ���£����Լ��ķ�������ַ���ɡ�
default linux
prompt 1
timeout 600
display boot.msg
menu background splash.jpg
menu title Welcome to CentOS 6.6!
menu color border 0 #ffffffff #00000000
menu color sel 7 #ffffffff #ff000000
menu color title 0 #ffffffff #00000000
menu color tabmsg 0 #ffffffff #00000000
menu color unsel 0 #ffffffff #00000000
menu color hotsel 0 #ff000000 #ffffffff
menu color hotkey 7 #ffffffff #ff000000
menu color scrollbar 0 #ffffffff #00000000
label linux
menu label ^Install or upgrade an existing system
menu default
kernel vmlinuz
append ks=http://192.168.2.136/ks.cfg initrd=initrd.img
label vesa
menu label Install system with ^basic video driver
kernel vmlinuz
append initrd=initrd.img xdriver=vesa nomodeset
label rescue
menu label ^Rescue installed system
kernel vmlinuz
append initrd=initrd.img rescue
label local
menu label Boot from ^local drive
localboot 0xffff
label memtest86
menu label ^Memory test
kernel memtest
append -
E.����kickstart
#��װ����λ��
mkdir /var/www/html/dvd
cp -r /mnt/* /var/www/html/dvd
#����kickstart�ļ�
yum install system-config-kickstart
cp /root/anaconda-ks.cfg /var/www/html/ks.cfg
vi ks.cfg
#����ֱ�ӿ��������ļ���ע��http��������Ϊ�Լ��ļ��ɡ�
# Install OS instead of upgrade
install
# Use network installation
url --url="http://192.168.2.136/dvd"
# Root password
rootpw --iscrypted $1$t8TZKP5c$0OdX9sWkdoYuZlIXBkU8R.
# System authorization information
auth --useshadow --passalgo=sha512
# Use graphical install
graphical
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# SELinux configuration
selinux --disabled
# Installation logging level
logging --level=info
# Reboot after installation
reboot
# System timezone
timezone --isUtc Asia/Shanghai
# System bootloader configuration
bootloader --location=mbr
# Partition clearing information
clearpart --all
%packages
@base
%end
F.���ý�����������һ̨�������pxe�Ĺ��ܻ��Ӳ��Լ��ɡ�
������֪��Ŀǰ��PC����֧�ֵġ�
RHEL/CentOS 7������PXE����������������//m.ajphoenix.com/linux/10161.html
�Խ�DHCP TFTP���� ��PXE����ʵ������ֵ�ذ�װCentOS6��//m.ajphoenix.com/linux/10519.html