게시물 261건
   
[Redhat] kickstart(킥 스타트) 인스톨시 설정
글쓴이 : theko 날짜 : 2014-02-03 (월) 13:16 조회 : 8596

(전제, 서버에 NFS 가 설정 되어있어야함) - ks.cfg로 해야 넘어가는거 같음...





kickstart를 이용하여 linux를 설치하기 위해서는 anaconda-ks.cfg 파일이 필요하다

아나콘다라고도 부르는 이 파일은

리눅스를 설치하면 /root 디렉토리에 기본적으로 생성된다.

이 파일은 설치된 리눅스의 설정에 대한 정보를 담고 있다.

그 정보에는 리눅스에 설치된 패키지(ftp-server, internet 등등), 방화벽의 설정여부

키보드 레이아웃정보, 루트패스워드 등이 있다.

따라서 이 파일을 이용하여 설치할 경우 따로 환경을 설정할 필요가 없다.


아나콘다 파일을 이용하여 설치하고자 할 때도 리눅스 CD 1번이 필요하다

 

 

설치방법에는 linux askmethod처럼 여러 방법이 있고

그에 따른 옵션은 다음과 같다

 

킥스타트 파일이 플로피에 ks.cfg란 파일로 있을 경우

      boot :   linux ks=floppy  혹은 boot : linux ks=hd:fd0:/ks.cfg

 

킥스타트 파일이 nfs 서버에 있는 경우

      boot :   linux ks=nfs:서버IP:킥스타트 파일 경로

 

킥스타트 파일이 웹 서버에 있는 경우

      boot : linux ks=http://서버IP/킥스타트 파일 경로

 

킥스타트 파일이 하드디스크에 있는 경우

      boot : linux ks=hd:하드주소:킥스타트 파일 경로


# 참고
[root@proxy rhel6]# cat ks.cfg
# Kickstart file automatically generated by anaconda.

#version=DEVEL
install
nfs --server=192.168.0.52 --dir=/rhel6      //NFS 로 설치시 내용
lang en_US.UTF-8
keyboard us
network --device eth0 --bootproto static --ip 192.168.0.43 --netmask 255.255.255.0 --gateway 192.168.0.1 --nameserver 168.126.63.1 --hostname rhel
network --onboot no --device wlan0 --bootproto dhcp --noipv6
rootpw  --iscrypted $6$I9Ecim1L4o/r5xeP$A72nzvmafpVcXV9OhojTNifI4bZfF0tkzt7Wk8Tuo.F4ady4DlutnDIZnt0KA6X1OtxRMiaqwQwLmHoRsfY.71
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512
selinux --permissive
timezone --utc Asia/Seoul
bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb 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 --all     // 모든 파티션을 지운다.

part /boot --fstype=ext4 --size=200
part pv.008002 --size=51200
part pv.008003 --size=512

volgroup vg_root --pesize=4096 pv.008002
logvol / --fstype=ext4 --name=root --vgname=vg_root --size=50684
logvol swap --name=swap --vgname=vg_root --size=512
volgroup vg_vo --pesize=4096 pv.008003
logvol /extend --fstype=ext4 --name=LogVol00 --vgname=vg_vo --size=508


%packages
@base
@client-mgmt-tools
@console-internet
@core
@debugging
@basic-desktop
@desktop-platform
@directory-client
@fonts
@graphical-admin-tools
@hardware-monitoring
@java-platform
@large-systems
@legacy-x
@network-file-system-client
@performance
@perl-runtime
@remote-desktop-clients
@server-platform
@server-policy
@x11
mtools
pax
python-dmidecode
oddjob
sgpio
device-mapper-persistent-data
samba-winbind
certmonger
pam_krb5
krb5-workstation
libXmu
perl-DBD-SQLite
%end



======= 참고 사항들 =======

1. 설치 환경 지정

default로 설치 환경은 GUI이며, text 환경에서 설치 하고 싶을경우 anaconda file에

text 문구를 넣어 줍니다.

 

2. install & upgrade

install 옵션은 설치 옵션이며 현재 OS 버전 업그래이드를 원할경우 upgrade로 설정합니다.

 

3. 미러링 서버 지정 (url --url ftp://ftp.sayclub.com//centos/5.9/os/i386)

현재 sysclub FTP에서 OS 이미지를 불러와 설치했으며, CD로 설치할경우 cdrom 으로 수정하면 됩니다.

 

4. 네트워크 설정

network --device [장치명] --bootproto [ip 할당방식] 방식으로 지정합니다.

 

**static 설정 방법 예시**

network --device eth0 --bootproto static --ip 192.168.0.39 --netmask 255.255.255.0 --gateway 192.168.0.1 --nameserver 8.8.8.8 --hostname x346

 

**DHCP 설정 방법 예시**

network --device eth0 --bootproto dhcp

 

 

5. partition 초기화 옵션

clearpart 에서 설정 할수 있습니다. 몇가지 옵션으로는

 

--all                    모든 파티션 삭제
--drives               특정 disk의 파티션 삭제       
--initlabel             disk의 파티션 정보 초기화                                                  
--linux                 리눅스 파티션 삭제
--none                파티션 삭제안함 (default)

 

clearpart --initlabel --all 옵션을 사용하면 모든 정보를 초기화 합니다.

 

 

6. partition 나누기

part [filesystem 영역] --fstype [filesystem 타입] --size=[filesystem 크기 단위는 MB] 방식으로 지정합니다.

 

**partition 설정 예시**

part /boot --fstype ext3 --size=100
part swap --size=1024
part / --fstype ext3 --size=1 --grow         [grow 옵션은 남은 용량을 모두 사용하겠다는 의미]




 

이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com