1. TFTP 설치
http://ctrlcv.co.cc/entry/TFTP-설치
2. DHCP 설치
http://ctrlcv.co.cc/entry/DHCP-설치
3. TFTP 추가 설정
# mkdir /var/lib/tftpboot/pxelinux.cfg
# cp /usr/share/syslinux/pxelinux.0 /var/lib/tftpboot/
# service xinetd restart
4. DHCP 추가 설정
# vi /etc/dhcp/dhcpd.conf
filename "pxelinux.0";
next-server pxe.kobic.kr;
# service dhcpd restart
5. PXE Server 설정
# mkdir -p /var/pxe/centos6
# mkdir /var/lib/tftpboot/centos6
# mount -t iso9660 -o loop CentOS-6.2-x86_64-bin-DVD1.iso /var/pxe/centos6
# cp /var/pxe/centos6/images/pxeboot/vmlinuz /var/lib/tftpboot/centos6/
# cp /var/pxe/centos6/images/pxeboot/initrd.img /var/lib/tftpboot/centos6/
# cp /usr/share/syslinux/menu.c32 /var/lib/tftpboot/
# vi /var/lib/tftpboot/pxelinux.cfg/default
timeout 100
default menu.c32
menu title ########## PXE Boot Menu ##########
label 1
menu label ^1) Install CentOS 6
kernel centos6/vmlinuz
append initrd=centos6/initrd.img method=http://pxe.kobic.kr/centos6 devfs=nomount
label 2
menu label ^2) Boot from local drive
localboot
# vi /etc/httpd/conf.d/pxeboot.conf
Alias /centos6 /var/pxe/centos6
<Directory /var/pxe/centos6>
Options Indexes FollowSymLinks
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 xxx.xxx.xxx.0/24
</Directory>
# service httpd restart
# chkconfig httpd on
6. 클라이언트에서 PXE 부팅 후 네트워크 설치
'Linux > PXE' 카테고리의 다른 글
Kick-Start install (0) | 2012.06.12 |
---|
최근댓글