Scroll to navigation

LTSP-IPXE(8) LTSP Manual LTSP-IPXE(8)

NAME

ltsp-ipxe - install iPXE binaries and configuration in TFTP

SYNOPSIS

ltsp [ltsp-options] ipxe [-b binaries] [-u binaries-url]

DESCRIPTION

Generate the ltsp.ipxe configuration file in /srv/tftp/ltsp and download the required iPXE binaries: memtest.0, memtest.efi, snponly.efi and undionly.kpxe.

If an Internet connection isn´t available, you need to manually download those binaries from https://boot.ipxe.org or our github mirror site before running ltsp ipxe to generate the configuration.

OPTIONS

See the ltsp(8) man page for ltsp-options.

Download the iPXE binaries again even if they already exist. Defaults to "", which means "only download the missing ones". Note that the --overwrite flag doesn´t affect the binaries, they´re only contolled by the --binaries flag.
Specify a different URL for the binaries. Defaults to https://github.com/ltsp/binaries/releases/latest/download. They´re periodically mirrored there to avoid straining ipxe.org and so that LTSP users have similar iPXE versions.

ADVANCED IMAGE SOURCES

This section is for advanced LTSP sysadmins. Normally, image sources are simple names like "x86_64" or full paths like "../path/to/image". But the "img_src" parameters are much more flexible than that; specifically, they are series of mount sources: img1,mount-options1,,img2,mount-options2,,...

...where img1 may be a simple name or full path relative to the current directory, and img2+ are full paths relative to the target directory.

Let´s see an advanced example: suppose that your clients came with Windows, and that you copied a live CD into C:\ltsp\ubuntu.iso, and you want your LTSP clients to use that for speed. First, disable Windows fast boot and hibernation, so that Linux is able to mount its partition. Then create the following "method" in ltsp.ipxe:

:local_image
# The "local_image" method boots C:\ltsp\ubuntu.iso
set cmdline_method root=/dev/sda1 ltsp.image=ltsp/ubuntu.iso,fstype=iso9660,loop,ro,,casper/filesystem.squashfs,squashfs,loop,ro loop.max_part=9
goto ltsp

Explanation:

The root=/dev/sda1 parameter tells the initramfs to mount /dev/sda1 into /root.
Then the LTSP code will look under /root/ltsp/ and mount ubuntu.iso using the loop,ro options over /root again.
Then the LTSP code will look under /root/casper/ and mount filesystem.squashfs over /root again. This casper/filesystem.squashfs path is where the live filesystem exists inside the Ubuntu live CDs.

So while this long line gives a good example on using advanced image sources, the LTSP code is actually smart enough to autodetect Ubuntu live CDs and filesystem types, so one could simplify it to:

:local_image
# The "local_image" method boots C:\ltsp\${img}.img
set cmdline_method root=/dev/sda1 ltsp.image=ltsp/${img}.img loop.max_part=9
goto ltsp

The ${img} parameter is the name of the menu; it would be "ubuntu" if you copied ubuntu.iso in /srv/ltsp/images/ubuntu.img and ran ltsp -o ipxe.

EXAMPLES

Initial use:

ltsp ipxe

Regenerate ltsp.ipxe and redownload the binaries:

ltsp -o ipxe -b

Force downgrading to an older version of the binaries:

ltsp -o ipxe -b -u ´https://github.com/ltsp/binaries/releases/download/v19.07´

Copy the binaries from a USB stick before running ltsp ipxe:

mkdir -p /srv/tftp/ltsp
cd /media/administrator/usb-stick
cp {memtest.0,memtest.efi,snponly.efi,undionly.kpxe} /srv/tftp/ltsp
ltsp ipxe

COPYRIGHT

Copyright 2019 the LTSP team, see AUTHORS

SEE ALSO

ltsp(8), ltsp.conf(5), ltsp-dnsmasq(8), ltsp-image(8), ltsp-info(8), ltsp-initrd(8), ltsp-ipxe(8), ltsp-kernel(8), ltsp-nfs(8)

October 2019 LTSP 19.10-1