°Ô½Ã¹° 259°Ç
   
[Redhat] kickstart(ű ½ºÅ¸Æ®) ÀνºÅç½Ã ¼³Á¤
±Û¾´ÀÌ : theko ³¯Â¥ : 2014-02-03 (¿ù) 13:16 Á¶È¸ : 7743

(ÀüÁ¦, ¼­¹ö¿¡ 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