[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: network booting



On Sat, Mar 21, 2009 at 01:22:31PM +0100, michal krajcirovic wrote:
> I need advice with this problem - I need via DHCP + TFTP + PXE boot  
> diskless PC with Debian. DHCP me works, PXE booting via TFTP to retrieve  
> the image that I created. 

this isn't an answer to your question, but it's a very good idea to
set up your dhcpd.conf to have 'filename "gpxelinux.0";' rather than
'filename "pxelinux.0";'

it does everything that pxelinux.0 does and a lot more - including the
ability to retrieve images via http rather than tftp. much faster and,
IME, much more reliable.

for more info, see:

http://etherboot.org/wiki/index.php

and

http://syslinux.zytor.com/wiki/index.php/The_Syslinux_Project

BTW, gpxelinux.0 is in the syslinux-common package in /usr/lib/syslinux/



if you then define an apache alias like the following, you can have a
/var/lib/tftp/default like the one at the bottom of this message

    Alias /tftp/ "/var/lib/tftpboot/"
    <Directory "/var/lib/tftpboot/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
        Allow from your.local.network/mask
    </Directory>



that gives you a generic netboot menu which can run debian rescue images,
debian installer, and clonezilla.  and whatever else you need.


> Attempts but always ends with this:
> http://www.sdilej.eu/pics/eca6c4c52bea8a52c916d386b1cd3bfc.PNG

what root fs are you trying to load?  is it compiled into your
kernel or as a module in your initrd?   it looks like it isn't.








---cut here--- /var/lib/tftp/default ---cut here---
DEFAULT http://your.server.ip.or.name/tftp/menu.c32

PROMPT 0
TIMEOUT 120

LABEL local
    MENU DEFAULT
    MENU LABEL Boot from Local Hard Disk
    KERNEL http://your.server.ip.or.name/tftp/chain.c32
    APPEND hd0 0

MENU SEPARATOR

LABEL inst64
    MENU LABEL Debian Installer 64-bit
    kernel http://your.server.ip.or.name/tftp/debian-installer/lenny/amd64/linux
    append initrd=http://your.server.ip.or.name/tftp/debian-installer/lenny/amd64/initrd.gz vga=normal priority=low --

LABEL inst32
    MENU LABEL Debian Installer 32-bit
    kernel http://your.server.ip.or.name/tftp/debian-installer/lenny/i386/linux
    append initrd=http://your.server.ip.or.name/tftp/debian-installer/lenny/i386/initrd.gz vga=normal priority=low --

MENU SEPARATOR

# upstream kernel 2.6.28.7 from kernel.org compiled because 2.6.26 that
# comes with lenny sucks even more than stock debian kernels normally
# suck.
#
# lenny's 2.6.26 doesn't support latest e1000e in Dell 760s, and the
# damn thing always locks up on a few of my machines because it insists
# on loading the skge module instead of forcedeth.  so i had to use
# debootstrap after booting a rescue image with my custom kernel, 
# rather than the standard installer.

LABEL r32
    MENU LABEL Debian Live Rescue i386 k2.6.28.7
    kernel http://your.server.ip.or.name/tftp/i386/vmlinuz1
    append initrd=http://your.server.ip.or.name/tftp/i386/initrd1.img boot=live union=aufs noswap noprompt vga=normal fetch=http://your.server.ip.or.name/tftp/debian/debian-live-500-i386-rescue.squashfs

LABEL s32
    MENU LABEL Debian Live Standard i386 k2.6.28.7
    kernel http://your.server.ip.or.name/tftp/i386/vmlinuz1
    append initrd=http://your.server.ip.or.name/tftp/i386/initrd.img boot=live union=aufs noswap noprompt vga=normal fetch=http://your.server.ip.or.name/tftp/debian/debian-live-500-i386-standard.squashfs

MENU SEPARATOR

LABEL cz
    MENU LABEL Clonezilla Live 2.6.28.7
    kernel http://your.server.ip.or.name/tftp/i386/vmlinuz
    append initrd=http://your.server.ip.or.name/tftp/i386/initrd.img boot=live union=aufs noswap noprompt ocs_live_keymap=NONE ocs_lang=en_AU.UTF-8 vga=788 fetch=http://your.server.ip.or.name/tftp/clonezilla/filesystem.squashfs

---cut here--- /var/lib/tftp/default ---cut here---


craig

-- 
craig sanders <cas@taz.net.au>


Reply to: