пятница, 28 октября 2011 г.

dhcp tftp и pxe

dhcp сервер отдает адрес, говорит ip tftp сервера и имя файла-загрузчика(syslinux_boot_file_name), который отдает tftp сервер.
tftp сервер знает только о том, какая у него папка рабочая (/tftp_work_dir). Когда комп запрашивает boot_file_name, tftp смотрит, есть ли у нее /tftp_work_dir/syslinux_boot_file_name и отдает клиенту, дальше запускается syslinux'вая менбшка (syslinux конфиг похож на grub menu).
У меня появлялась Error 1 по след причине:
 Remember, tftp assumes that the file you want to transfer already exists and that it is located in /tftpboot. Second, make sure you spell the filename correctly. This is especially important with those long image filenames. If you're a terrible typist, you'll miss filename completion, as it's not supported by tftp. This is another reason why it is a good idea to document the files stored in /tftpboot and to check your spelling when you use the get command. Otherwise, you'll end up getting frustrated by "Error code 1" messages.
Ну а дальше проще - ядро и стартовые скрипты.

Комментариев нет: