[[http://tmade.de|Home tmade.de]] [[http://wiki.tmade.de|Home Wiki]] ===== PXE ===== Required: *DHCP-Server *TFTP_Server *NFS-Server *syslinux ==== DHCP ==== Config file: /etc/dhcp/dhcpd.conf Example config: authoritative; allow booting; allow bootp; # Definition des ersten (einzigen) Subnetzes subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.70 192.168.1.99; # Lease-Time (in Sekunden) default-lease-time 600; max-lease-time 7200; #Interface interface eth0; option domain-name "tmade.de"; option domain-name-servers 192.168.1.1; option broadcast-address 192.168.1.255; option subnet-mask 255.255.255.0; option routers 192.168.1.1; } # Bind IP/ MAC of a host host wiki { #hardware ethernet 00:00:0e:d2:da:be; #fixed-address 192.168.1.5; #option host-name "wiki"; } #next-server = Adresse of TFTP-Servers next-server 192.168.1.20; #Path to Boot-Image filename "/pxelinux.0"; ==== TFTP ==== TFTP-Root-Path: /var/lib/tftpboot/ Config Boot Menu: /var/lib/tftpboot/pxelinux.cfg/default Example "default": DEFAULT menu.c32 ALLOWOPTIONS 0 PROMPT 5 TIMEOUT 5 MENU TITLE Server tmade PXE Boot Menu LABEL ubuntu-904 MENU LABEL ^Ubuntu 9.04 Desktop Live KERNEL ubuntu-904/vmlinuz APPEND boot=casper ide=nodma netboot=nfs nfsroot=192.168.1.2:/nfsroot/ubuntu-904 fetch=tftp://192.168.1.2/ubuntu-904/filesystem.squashfs initrd=ubuntu-904/initrd.gz LABEL memtest MENU LABEL ^Memtest86+ v2.11 KERNEL memtest/mt86plus LABEL localhdd1 MENU LABEL Local ^HDD LOCALBOOT 0 Config: /etc/default/tftpd-hpa Example-Config: #Defaults for tftpd-hpa RUN_DAEMON="yes" OPTIONS="-l -s /var/lib/tftpboot" # /etc/default/tftpd-hpa TFTP_USERNAME="tftp" TFTP_DIRECTORY="/var/lib/tftpboot" TFTP_ADDRESS="0.0.0.0:69" #TFTP_OPTIONS="--secure" TFTP_OPTIONS="-l -s" See also: http://wiki.ubuntuusers.de/PXE-Installation