Wizard : http://www.instalinux.com/
1. Network Install 구축 및 설정
http://ctrlcv.co.cc/entry/Network-Install
2. Kick-Start 설정
# mkdir /var/www/html/ks
# cp /root/anaconda-ks.cfg /var/www/html/ks/centos6-ks.cfg
# chmod 644 /var/www/html/ks/centos6-ks.cfg
# openssl passwd -1
Password:
Verifying - Password:
$1$e98NUsAF$PJlHbjDn62JSA2HsfTEPO1
# vi /var/www/html/ks/centos6-ks.cfg
# Kickstart file automatically generated by anaconda.
#version=DEVEL
install
autostep
reboot
url --url=http://pxe.kobic.kr/centos6/
lang en_US.UTF-8
keyboard us
##network --onboot yes --device eth0 --noipv4 --noipv6
network --device eth0 --bootproto dhcp
rootpw --iscrypted $1$e98NUsAF$PJlHbjDn62JSA2HsfTEPO1
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512
selinux --disabled
timezone --utc Asia/Seoul
bootloader --location=mbr --driveorder=sda --append=" rhgb crashkernel=auto 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 --linux --drives=sda
zerombr
clearpart --all --initlabel
#part /boot --fstype=ext4 --size=500
#part pv.008002 --grow --size=1
#volgroup vg_pxe --pesize=4096 pv.008002
#logvol / --fstype=ext4 --name=lv_root --vgname=vg_pxe --grow --size=1024 --maxsize=51200
#logvol swap --name=lv_swap --vgname=vg_pxe --grow --size=2016 --maxsize=4032
#repo --name="CentOS" --baseurl=cdrom:sr0 --cost=100
%packages
@additional-devel
@base
@client-mgmt-tools
@compat-libraries
@console-internet
@core
@basic-desktop
@desktop-debugging
@desktop-platform
@desktop-platform-devel
@development
@fonts
@general-desktop
@graphical-admin-tools
@hardware-monitoring
@input-methods
@internet-browser
@java-platform
@mysql-client
@mysql
@php
@performance
@perl-runtime
@remote-desktop-clients
@ruby-runtime
@scientific
@server-platform-devel
@server-policy
@turbogears
@web-server
@web-servlet
@x11
libXinerama-devel
openmotif-devel
libXmu-devel
xorg-x11-proto-devel
startup-notification-devel
libgnomeui-devel
libbonobo-devel
libXau-devel
libgcrypt-devel
popt-devel
libdrm-devel
libXrandr-devel
libxslt-devel
libglade2-devel
gnutls-devel
mtools
pax
sgpio
genisoimage
wodim
abrt-gui
desktop-file-utils
jpackage-utils
perl-DBD-MySQL
perl-DBD-SQLite
numpy
atlas
compat-openmpi
compat-openmpi-psm
perl-CGI
%end
# 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(Kick-Start)
kernel centos6/vmlinuz
append initrd=centos6/initrd.img ks=http://pxe.kobic.kr/ks/centos6-ks.cfg ksdevice=eth0
label 2
menu label ^2) Install CentOS 6(Network)
kernel centos6/vmlinuz
append initrd=centos6/initrd.img method=http://pxe.kobic.kr/centos6 devfs=nomount
label 3
menu label ^3) Boot from local drive
localboot
3. 클라이언트에서 PXE 부팅 후 설치
4. ks 설정 파일 주요 설정
### install or upgrade
install
### automatically proceed
autostep
### reboot after finishing installation
reboot
### install source, DVD 경로
url --url=http://pxe.kobic.kr/centos6/
### 한국어 지원 추가
lang en_US.UTF-8
langsupport --default=en_US.UTF-8 en_US.UTF-8 ko_KR.UTF-8
### 키보드 설정
keyboard us
### 마우스 설정
mouse none
### timezone 설정
timezone Asia/Seoul
### root password(openssl passwd -1)
rootpw --iscrypted $1$e98NUsAF$PJlHbjDn61JSA2HsfTEPO1
#rootpw 123456
### Iptables 설정
firewall --disabled
### SELinux 설정
selinux --disabled
### Zero the MBR, mbr 초기화
zerombr
### 기존 파티션 모두 삭제
clearpart --all --initlabel
### 파티션 설정
part /boot --fstype=ext4 --size=200 ## /boot(ext4) 200MB
part swap --size=512 ## SWAP 512MB
part / --fstype=ext4 --size=5000 --grow ## /(ext4) 최소 5GB이상, 남은 용량 모두 사용
### 설치 시작 전 실행 될 스크립트
%pre
echo "설치 시작 전 실행 될 스크립트"
%end
### 설치 완료 후 실행 될 스크립트
%post
echo "설치 시작 전 실행 될 스크립트"
%end
### 패키지 및 yum 그룹 목록
%packages
@E-mail server ## E-mail server 그룹 설치
fetchmail ## fetchmail 패키지 설치
%end
5. 확인(아무런 메시지가 없을 시 정상)
# ksvalidator /var/www/html/ks/centos6-ks.cfg
'Linux > PXE' 카테고리의 다른 글
Network Install (0) | 2012.06.12 |
---|
최근댓글