CentOS kickstart
ÃÑ ÆäÀÌÁö ¼ö : 3224

Àüü ÇÔ¼ö/¿ë¾î»çÀü
Facebook Joinc ±×·ì   Joinc QA »çÀÌÆ®



joinc´Â Firefox¿Í chrome¿¡¼­ Å×½ºÆ® Çß½À´Ï´Ù. IE¿¡¼­´Â Å×À̺íÀÌ ±úÁö°Å³ª À̹ÌÁö°¡ º¸ÀÌÁö ¾ÊÀ» ¼ö ÀÖ½À´Ï´Ù. ƯÈ÷ ±¸±Û DocsÀ̹ÌÁöÀÇ °æ¿ì ¿¢¹Úó¸®µÉ ¼ö ÀÖ½À´Ï´Ù.

¼Ò°³

¸®´ª½º ¿î¿µÃ¼Á¦ÀÇ ÀÚµ¿ ¼³Ä¡
  • PXE-boot¸¦ ÀÌ¿ëÇÑ Network ¼³Ä¡
  • kickstart·Î ¼³Ä¡ ÀÚµ¿È­

ȯ°æ

  • PXE & TFTP ¼­¹ö
    • ubuntu 11.10
  • boot ¿î¿µÃ¼Á¦
    • centos

PXE boot

Preboot Execution EnvironmentÀÇ ÁÙÀÓ¸»·Î ³×Æ®¿öÅ© ÀÎÅÍÆäÀ̽º¸¦ ÀÌ¿ëÇØ¼­ ¿î¿µÃ¼Á¦¸¦ ¼³Ä¡Çϱâ À§Çؼ­ »ç¿ëÇÑ´Ù.

PXE¸¦ »ç¿ëÇϱâ À§Çؼ­´Â DHCP¿Í TFTP°¡ ÇÊ¿äÇÏ´Ù. DHCP´Â ºÎÆÃ ¼­¹ö¿¡ ³×Æ®¿öÅ© Á¤º¸¸¦ ÀÚµ¿À¸·Î ¼³Á¤Çϱâ À§Çؼ­ »ç¿ëÇÏ´Â ÇÁ·ÎÅäÄÝÀÌ´Ù. TFTP´Â bootstrap ÇÁ·Î±×·¥°ú ¸î°¡Áö ºÎ°¡ ÆÄÀÏÀ» ´Ù¿î·ÎµåÇϱâ À§Çؼ­ »ç¿ëÇÑ´Ù.

DHCP ¼­¹ö ¼³Ä¡

dhcp server¸¦ ÀÌ¿ëÇØ¼­ ³×Æ®¿öÅ© ȯ°æÀ» ÀÚµ¿À¸·Î ¼³Á¤Çϱâ·Î Çß½À´Ï´Ù. isc dhcp server¸¦ ¼³Ä¡Çß½À´Ï´Ù.
# sudo apt-get install isc-dhcp-server 
 

vi /etc/dhcp/dhcpd.conf
ddns-update-style none; 
 
# option definitions common to all supported networks... 
option domain-name "example.org"; 
option domain-name-servers 8.8.8.8, 8.8.4.4; 
option routers 172.30.1.254; 
option subnet-mask 255.255.255.0; 
 
default-lease-time 60; 
max-lease-time 72; 
 
log-facility local7; 
subnet 172.30.1.0 netmask 255.255.255.0 { 
        range 172.30.1.100 172.30.1.200; 
} 
 

{[{#!plain
# sudo /etc/init.d/isc-dhcp-server restart
  • Stopping ISC DHCP server dhcpd fail
  • Starting ISC DHCP server dhcpd [ OK ]
}}}

TFTP ¼­¹ö ¼³Ä¡

¼­¹ö ÆÐŰÁö ¼³Ä¡
# apt-get install tftp tftpd 
 
tftp ¼³Á¤ ÆÄÀÏ. xinetd ±â¹Ý
service tftp 
{ 
        disable = no 
        socket_type             = dgram 
        protocol                = udp 
        wait                    = yes 
        user                    = root 
        server                  = /usr/sbin/in.tftpd 
        server_args             = -s /tftpboot 
        per_source              = 11 
        cps                     = 100 2 
        flags                   = IPv4 
} 
 
tftp ÀÛ¾÷µð·ºÅ丮 »ý¼º
mkdir /tftpboot 
 

syslinux ¼³Ä¡
  • syslinux´Â IBM PC¸¦ ºÎÆÃÇϱâ À§ÇÑ bootloaders¸¦ Æ÷ÇÔÇÏ´Â ¸®´ª½º Ä¿³ÎÀ» Á¦°øÇÑ´Ù.
# apt-get install syslinux syslinux-common 
 

ȯ°æ ¼³Á¤ ¹× ºÎÆÃ À̹ÌÁö º¹»ç
# cp /usr/lib/syslinux/pxelinux.0 /tftpboot/ 
# cp /usr/lib/syslinux/menu.c32 /tftpboot/ 
 
ºÎÆÃ À̹ÌÁö´Â Centos 5.7ÀÇ °ÍÀ» ¾÷¾î¿Ô´Ù. ºÎÆÃ À̹ÌÁö´Â /boot µð·ºÅ丮 ¹Ø¿¡ ÀÖ´Ù. vmlinux °ú initrd.img¸¦ ¾÷¾î¿Â tftp ÀÛ¾÷ µð·ºÅ丮¿¡ º¹»çÇÑ´Ù.
# cp vmlinuz /tftpboot/cento/x86/ 
# cp initrd.img /tftpboot/cento/x86/ 
 

pxelinux ¼³Á¤ ÆÄÀÏ
# cat /tftpboot/pxelinux.cfg/default 
default menu.c32 
timeout 100 
menu background splash.jpg 
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 timeout_msg 0 #ffffffff #00000000 
menu color timeout 0 #ffffffff #00000000 
menu color cmdline 0 #ffffffff #00000000 
menu tabmsg Press ENTER to Install or TAB to edit a menu entry 
  
   
menu title ####  OS Installer Boot Menu  #### 
label 1  
  menu label CentOS5.7(32bit) on R210 
  kernel centos/x86/vmlinuz 
  append ksdevice=eth0 initrd=centos/x86/initrd.img network ks=nfs:192.168.0.10:/tftpboot/ks/ks32.cfg text 
 


Âü°í

EmailÀ» ±âÀÔÇϸé, ´ñ±ÛÀÌ ¸ÞÀÏ·Î Àü´ÞµË´Ï´Ù.