作者 主題: Debian : PXE boot 安裝  (閱讀 11816 次)

0 會員 與 1 訪客 正在閱讀本文。

被騎上班的老

  • 區域板主
  • 活潑的大學生
  • *****
  • 文章數: 360
    • 檢視個人資料
Debian : PXE boot 安裝
« 於: 2009-08-07 12:04 »
http://www.debian-administration.org/articles/478

1. TFTP Setup
# apt-get install tftpd-hpa
# vi /etc/default/tftpd-hpa                 ................> RUN_DAEMON="yes"
# mkdir -p /var/lib/tftpboot
# /etc/init.d/tftpd-hpa start                 ................>Starting HPA's tftpd: in.tftpd.

2. DHCP Server Setup

在 subnet 全域的設定中加上
        filename "pxelinux.0";
        next-server  你的 tftpd server IP;

重新啟動 DHCPD

3. Remote Boot Install Contents

# mkdir /var/lib/tftpboot/pxelinux.cfg

# vi /var/lib/tftpboot/pxelinux.cfg/default

內容如下:

代碼: [選擇]
DISPLAY boot.txt

DEFAULT etch_i386_install

LABEL etch_i386_install
        kernel debian/etch/i386/linux
        append vga=normal initrd=debian/etch/i386/initrd.gz  --
LABEL etch_i386_linux
        kernel debian/etch/i386/linux
        append vga=normal initrd=debian/etch/i386/initrd.gz  --

LABEL etch_i386_expert
        kernel debian/etch/i386/linux
        append priority=low vga=normal initrd=debian/etch/i386/initrd.gz  --

LABEL etch_i386_rescue
        kernel debian/etch/i386/linux
        append vga=normal initrd=debian/etch/i386/initrd.gz  rescue/enable=true --

PROMPT 1
TIMEOUT 0

4.
# vi /var/lib/tftpboot/boot.txt

引用
- Boot Menu -
=============

etch_i386_install
etch_i386_linux
etch_i386_expert
etch_i386_rescue

5.
代碼: [選擇]
# cd /var/lib/tftpboot/
# wget http://ftp.uk.debian.org/debian/dists/etch/main/installer-i386/current/images/netboot/debian-installer/i386/pxelinux.0
# mkdir -p /var/lib/tftpboot/debian/etch/i386
# cd /var/lib/tftpboot/debian/etch/i386
# wget http://ftp.uk.debian.org/debian/dists/etch/main/installer-i386/current/images/netboot/debian-installer/i386/linux
root@itchy:~# wget http://ftp.uk.debian.org/debian/dists/etch/main/installer-i386/current/images/netboot/debian-installer/i386/initrd.gz






被騎上班的老

  • 區域板主
  • 活潑的大學生
  • *****
  • 文章數: 360
    • 檢視個人資料
回覆: Debian : PXE boot 安裝
« 回覆 #1 於: 2009-08-15 18:07 »
抄錯版本了,

etch 是 4.0 版
lenny 才是 5.0 版,所以 etch 的地方要改成 lenny