LTSP-IPXE(8) | LTSP Manual | LTSP-IPXE(8) |
ltsp ipxe - install iPXE binaries and configuration in TFTP
ltsp [ltsp-options] ipxe [-b binaries]
Generate the ltsp.ipxe configuration file and install the required iPXE binaries in /srv/tftp/ltsp: memtest.0, memtest.efi, snponly.efi and undionly.kpxe.
An ltsp-binaries package is available in the LTSP PPA that provides them; otherwise, some of them are automatically found in the ipxe/memtest86+ packages.
See the ltsp(8) man page for ltsp-options.
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:
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 ipxe.
Initial use:
ltsp ipxe
Regenerate ltsp.ipxe and reinstall the binaries:
ltsp ipxe -b
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 2019-2022 the LTSP team, see AUTHORS.
ltsp(8), ltsp.conf(5), ltsp-dnsmasq(8), ltsp-image(8), ltsp-info(8), ltsp-initrd(8), ltsp-kernel(8), ltsp-nfs(8), ltsp-remoteapps(8)
Online documentation is available on https://ltsp.org
2023-08-19 | LTSP 23.02-2 |