· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
PXE Booting In Debian

ÀÌ ¸Å´º¾óÀº ¾Æ¹« À̵¿ ÀúÀå¸Åü(CD-ROM, FDD µî)°¡ ¾øÁö¸¸ ³×Æ®¿öÅ© Àåºñ¸¸ ÀÖ´Â ¸Ó½Å, ƯÈ÷ ³ëÆ®ºÏ¿¡ µ¥ºñ¾È GNU/¸®´ª½º ÀνºÅç·¯·Î ºÎÆÃÀ» ÇÏ´Â ¹æ¹ýÀ» ¼³¸íÇÑ °ÍÀÔ´Ï´Ù.

Áغñ»çÇ×/°³³ä

¸®´ª½º¸¦ ¼³Ä¡ÇÒ ¸Ó½ÅÀ» 'Ŭ¶óÀ̾ðÆ®'¶ó ºÎ¸£°Ú½À´Ï´Ù. ±×¸®°í ³×Æ®¿öÅ©¸¦ ÅëÇؼ­ µ¥ºñ¾È ÀνºÅç·¯¸¦ Á¦°øÇÒ ¸Ó½ÅÀ» '¼­¹ö'¶ó°í ºÎ¸£°Ú½À´Ï´Ù. µÑÀº °°Àº ¼­ºê³Ý¿¡ ¿¬°áµÇ¾î ÀÖ¾î¾ß Çϸç, ÀÌ ¹®¼­¿¡¼­´Â °øÀ¯±â¸¦ ÅëÇؼ­ ¿¬°áµÇ¾î ÀÖ´Â °æ¿ì¸¦ ¼³¸íÇÏ°Ú½À´Ï´Ù.

¸ÕÀú ³×Æ®¿öÅ© ºÎÆÃÀÇ °³³äÀ» ¼³¸íµå°Ú½À´Ï´Ù. Ŭ¶óÀ̾ðÆ®´Â ¸ÕÀú ºÎÆÃÇϱâ À§Çؼ­ DHCP¸¦ ã°Ô µË´Ï´Ù. ¼­¹ö´Â Ŭ¶óÀ̾ðÆ®¿¡°Ô DHCP¸¦ Á¦°øÇÕ´Ï´Ù. ¿¬°áµÇ¸é Ŭ¶óÀ̾ðÆ®´Â TFTP(Trivial File Transfer Protocol)¸¦ ÅëÇؼ­ ¼­¹ö·ÎºÎÅÍ ¹Ì¸® ÁغñµÈ ¸®´ª½º ºÎÆ®¼½Å͸¦ ¹Þ¾Æ¼­ ±×°ÍÀ¸·Î ºÎÆÃÀ» ÇÏ°Ô µË´Ï´Ù.

±×°ÍÀÌ °¡´ÉÇÏ·Á¸é ¿ì¼± Ŭ¶óÀ̾ðÆ®ÀÇ BIOS¿¡¼­´Â ³×Æ®¿öÅ© ºÎÆÃÀ» Áö¿øÇØ¾ß ÇÕ´Ï´Ù. Ŭ¶óÀ̾ðÆ®ÀÇ ¹ÙÀÌ¿À½º ¼³Á¤À¸·Î µé¾î°¡¼­ ³×Æ®¿öÅ© ºÎÆÃÀÇ ¿ì¼±¼øÀ§¸¦ 1¼øÀ§·Î Àâ¾Æ³õÀ¸½Ê½Ã¿À.

¼­¹ö°¡ Ŭ¶óÀ̾ðÆ®¿¡°Ô DHCP¸¦ Á¦°øÇÒ ¼ö ÀÖÀ¸·Á¸é °øÀ¯±âÀÇ DHCP¸¦ ²¨¾ß ÇÕ´Ï´Ù. ¼­¹ö°¡ °øÀ¯±â¿¡ ¿¬°áµÇ¾î ÀÖ´Â °ÍÀ» È®ÀÎÇÏ°í, °øÀ¯±â ¼³Á¤À¸·Î µé¾î°¡ °øÀ¯±âÀÇ DHCP ±â´ÉÀ» ²¨ ÁֽʽÿÀ. °øÀ¯±â¸¦ ¼³Á¤ÇÏ´Â ¹æ¹ýÀº °øÀ¯±â ¸Å´º¾ó¿¡ ³ª¿Í ÀÖ½À´Ï´Ù.

ÆÐÅ°Áö ¼³Ä¡

PXE ºÎÆÃÀ» Çϱâ À§Çؼ­´Â DHCP ¼­¹ö¿Í TFTP µ¥¸óÀÌ ÇÊ¿äÇÕ´Ï´Ù.

# apt-get install dhcp3-server atftpd

Áß°£¿¡ atftpd ¼³Á¤ âÀÌ ¶ß´Âµ¥, inetd¿Í ÇÔ²² ¶ç¿ì°Ú³Ä´Â Áú¹®¿¡´Â Yes, ±×¸®°í ³ª¸ÓÁö´Â ¿£ÅÍ Å°¸¸ ´­·¯¼­ ±âº»°ªÀ¸·Î ¼³Á¤ÇØ ÁÝ´Ï´Ù. ¼³Á¤ â¿¡¼­ Base directory°¡ /tftpbootÀÓÀ» È®ÀÎÇÕ´Ï´Ù.

DHCP ¼³Á¤

/etc/dhcp3/dhcpd.conf À» ¿­¾î ÀûÀýÇÑ ºÎºÐ¿¡ ´ÙÀ½À» Ãß°¡ÇÕ´Ï´Ù.
option domain-name "debian"; #¼­¹öÀÇ µµ¸ÞÀÎ À̸§
option domain-name-servers 192.168.0.xxx; #¼­¹öÀÇ IP ÁÖ¼Ò

subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.yyy; #¶ó¿ìÅÍ(°øÀ¯±â)ÀÇ ÁÖ¼Ò
}

host tftpclient {
 hardware ethernet xx:xx:xx:xx:xx:xx; #Ŭ¶óÀ̾ðÆ® ³×Æ®¿öÅ© ÀåºñÀÇ ¸Æ ÁÖ¼Ò
 fixed-address 192.168.123.188; #Ŭ¶óÀ̾ðÆ®ÀÇ IP ÁÖ¼Ò
 filename "pxelinux.0";
}
¼³Á¤ ÆÄÀÏÀ» ÀúÀåÇÑ ´ÙÀ½ ¼­ºñ½º¸¦ Àç½ÃÀÛÇÕ´Ï´Ù.
#/etc/init.d/dhcp3-server restart

ºÎÆ®¼½ÅÍ¿Í ÀνºÅç·¯ ¹Þ±â

³×Æ®¿öÅ© ºÎÆÃÀ» À§ÇÑ ºÎÆ®¼½ÅÍ¿Í µ¥ºñ¾È ÀνºÅç·¯´Â µ¥ºñ¾È FTP ¼­¹ö¿¡ Á¦°øµÇ°í ÀÖ½À´Ï´Ù. À̸¦ ¹Þ¾Æ¼­ TFTP ·çÆ®¿¡ ³Ö½À´Ï´Ù.

cd /tftpboot
wget ftp://ftp.debian.org/debian/dists/testing/main/installer-i386/rc2/images/netboot/netboot.tar.gz
tar xzvf netboot.tar.gz

¸¸¾à ¼³Á¤ÀÌ ¼º°øÀûÀ̶ó¸é Ŭ¶óÀ̾ðÆ®¸¦ ºÎÆÃÇϸé ÀνºÅç·¯ÀÇ ºÎÆà ȭ¸éÀÌ ¶å´Ï´Ù.

¹®Á¦ ÇØ°á

TFTP µ¥¸óÀÌ Àß µ¹¾Æ°¡°í ÀÖ´ÂÁö tftp·Î È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù. tftp´Â apt-get install tftp·Î ¼³Ä¡ÇÒ ¼ö ÀÖ½À´Ï´Ù.
$ tftp localhost
tftp> get pxelinux.0
Received 11963 bytes in 0.0 seconds
tftp> quit
$





sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2006-07-13 09:51:36
Processing time 0.0060 sec