|
|
# installation : PXE
|
|
|
|
|
|
|
|
|
[[_TOC_]]
|
|
|
|
|
|
|
|
|
## commun
|
|
|
|
|
|
# apt-get install syslinux-common
|
|
|
|
|
|
*[répertoire TFTP]*
|
|
|
|
|
|
# mkdir /srv/tftp
|
|
|
# cd !$
|
|
|
# ln -s /usr/lib/syslinux/memdisk
|
|
|
# ln -s /usr/lib/syslinux/menu.c32
|
|
|
# ln -s /usr/lib/syslinux/pxelinux.0
|
|
|
# mkdir pxelinux.cfg
|
|
|
# nano pxelinux.cfg/default
|
|
|
--8<---------------cut here---------------start------------->8---
|
|
|
# <http://www.syslinux.org/wiki/index.php/SYSLINUX>
|
|
|
# <http://www.debian-administration.org/articles/478>
|
|
|
|
|
|
DEFAULT menu.c32
|
|
|
PROMPT 0
|
|
|
TIMEOUT 50
|
|
|
ONTIMEOUT local
|
|
|
|
|
|
MENU TITLE PXE Menu for $(dnsdomainname)
|
|
|
|
|
|
LABEL local
|
|
|
MENU LABEL Boot from Local Disk
|
|
|
LOCALBOOT 0
|
|
|
--8<---------------cut here---------------end--------------->8---
|
|
|
|
|
|
*[si pas dnsmasq dejà installé]*
|
|
|
|
|
|
# apt-get install dnsmasq-base
|
|
|
# ifconfig eth0 192.168.99.1 up
|
|
|
# dnsmasq \
|
|
|
--keep-in-foreground \
|
|
|
--log-queries \
|
|
|
--log-dhcp \
|
|
|
--log-facility=- \
|
|
|
--interface=eth0 \
|
|
|
--bind-dynamic [<https://bugs.debian.org/690540>] \
|
|
|
--dhcp-range=192.168.99.50,192.168.99.150,255.255.255.0,12h \
|
|
|
--dhcp-option=42,0.0.0.0 [ntp-server] \
|
|
|
--dhcp-option=vendor:MSFT,2,1i [time-offset, for Microsoft as four-byte integer] \
|
|
|
--pxe-service=x86PC,"PXE Menu for $(dnsdomainname)",pxelinux \
|
|
|
--enable-tftp \
|
|
|
--tftp-root=/srv/tftp,eth0
|
|
|
[démarrage sur réseau]
|
|
|
|
|
|
|
|
|
## d-i
|
|
|
|
|
|
# apt-get install \
|
|
|
debian-installer-7.0-netboot-amd64 \
|
|
|
debian-installer-7.0-netboot-i386
|
|
|
|
|
|
# mkdir /srv/tftp/debian-installer
|
|
|
# nano /etc/fstab
|
|
|
[add at the end]
|
|
|
--8<---------------cut here---------------start------------->8---
|
|
|
|
|
|
## debian-installer-$VERSION-netboot-$ARCH
|
|
|
## <http://bugs.debian.org/684717>
|
|
|
/usr/lib/debian-installer/images /srv/tftp/debian-installer none defaults,bind 0 0
|
|
|
--8<---------------cut here---------------end--------------->8---
|
|
|
# mount /srv/tftp/debian-installer
|
|
|
# etckeeper commit 'fstab: bind mount /srv/tftp/debian-installer'
|
|
|
|
|
|
# nano /srv/tftp/pxelinux.cfg/default
|
|
|
[add at the end]
|
|
|
--8<---------------cut here---------------start------------->8---
|
|
|
|
|
|
LABEL debian-installer
|
|
|
MENU LABEL Install Debian
|
|
|
KERNEL menu.c32
|
|
|
APPEND pxelinux.cfg/debian-installer
|
|
|
--8<---------------cut here---------------end--------------->8---
|
|
|
# nano /srv/tftp/pxelinux.cfg/debian-installer
|
|
|
--8<---------------cut here---------------start------------->8---
|
|
|
# debian-installer-$VERSION-netboot-$ARCH packages
|
|
|
# also check the di-netboot-assistant package
|
|
|
MENU TITLE Install Debian
|
|
|
|
|
|
# <http://wiki.centos.org/HowTos/PXE/PXE_Setup/Menus>
|
|
|
LABEL main-menu
|
|
|
MENU LABEL Main Menu
|
|
|
KERNEL menu.c32
|
|
|
APPEND pxelinux.cfg/default
|
|
|
|
|
|
LABEL d-i_7.0_linux_amd64_gtk
|
|
|
MENU LABEL Install Debian GNU/Linux 7.0 amd64 (gtk)
|
|
|
CONFIG debian-installer/7.0/amd64/gtk/pxelinux.cfg/default
|
|
|
APPEND debian-installer/7.0/amd64/gtk/
|
|
|
|
|
|
LABEL d-i_7.0_linux_amd64_text
|
|
|
MENU LABEL Install Debian GNU/Linux 7.0 amd64 (text)
|
|
|
CONFIG debian-installer/7.0/amd64/text/pxelinux.cfg/default
|
|
|
APPEND debian-installer/7.0/amd64/text/
|
|
|
|
|
|
LABEL d-i_7.0_linux_i386_gtk
|
|
|
MENU LABEL Install Debian GNU/Linux 7.0 i386 (gtk)
|
|
|
CONFIG debian-installer/7.0/i386/gtk/pxelinux.cfg/default
|
|
|
APPEND debian-installer/7.0/i386/gtk/
|
|
|
|
|
|
LABEL d-i_7.0_linux_i386_text
|
|
|
MENU LABEL Install Debian GNU/Linux 7.0 i386 (text)
|
|
|
CONFIG debian-installer/7.0/i386/text/pxelinux.cfg/default
|
|
|
APPEND debian-installer/7.0/i386/text/
|
|
|
--8<---------------cut here---------------end--------------->8---
|
|
|
[démarrage sur réseau]
|
|
|
|
|
|
|
|
|
### PC Engines APU1
|
|
|
|
|
|
# nano /srv/tftp/pxelinux.cfg/01-$MAC
|
|
|
--8<---------------cut here---------------start------------->8---
|
|
|
## <http://ham.to/?p=558>
|
|
|
## <http://www.pcengines.info/forums/?page=post&id=0F91C1E0-A56B-4C1E-B750-40575E415B9D&fid=DF5ACB70-99C4-4C61-AFA6-4C0E0DB05B2A>
|
|
|
|
|
|
DEFAULT d-i_7.0_linux_amd64_text_apu1c
|
|
|
PROMPT 0
|
|
|
TIMEOUT 0
|
|
|
|
|
|
LABEL d-i_7.0_linux_amd64_text_apu1c
|
|
|
KERNEL debian-installer/7.0/amd64/text/debian-installer/amd64/linux
|
|
|
APPEND initrd=debian-installer/7.0/amd64/text/debian-installer/amd64/initrd.gz console=ttyS0,115200n8 vga=off fb=false
|
|
|
--8<---------------cut here---------------end--------------->8---
|
|
|
# screen /dev/ttyUSB0 115200
|
|
|
[démarrage sur réseau] |