Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Frisbee-enabled boot image

The boot images, their kernels and the pxelinux configs described in this page are kept in the r2lab-misc repo, in the tftpboot/ folder; the frisbee and imagezip binaries are in its frisbee-binaries-inria/ folder.

rebuilding frisbee and imagezip for FIT

TODO: this page needs to be updated

build vm

$ ssh root@buzzcocks.pl.sophia.inria.fr
buzzcocks # lce frisbee
frisbee # cd /build

build requirements

used yum to instal the following packages for static libraries

yum -y install git make gcc wget tar
yum -y install glibc-static zlib-static openssl-static

although this last one probably is not required w/ WITH_CRYPTO=0

pulling code

On frisbee.pl.sophia.inria.fr

  cd /build
  git clone git://git-public.flux.utah.edu/emulab-stable.git
  cd emulab-stable
  git checkout master

imagezip

cd /build/emulab-stable/clientside/os/imagezip/
make -f Makefile-linux.sa WITH_CRYPTO=0

frisbee

frisbee PXE stacks, and AHCI support

Status as of 2026-10-19. The work described here was done in October 2026 to get rid of the need to switch node BIOS to IDE mode.

Unless stated otherwise, file names and relative paths in this section refer to the tftpboot/ folder of r2lab-misc, whose contents get deployed as /tftpboot/ on the server (faraday in production).

The 4 stacks

A stack is a pxelinux config in pxelinux.cfg/ that pairs one kernel with one initramfs. The config name is the stack name:

stack (pxelinux.cfg/…)kernelinitramfsAHCIstatus
pxefrisbee-k313linux-ubuntu-3.13.0-37-genericirfs-pxefrisbee-k313.igzno (BIOS must be in IDE mode)the historical stack, in production until now
pxefrisbee-k313-ahcilinux-ubuntu-3.13.0-37-genericirfs-pxefrisbee-k313-ahci.igzyes (and IDE too)tested OK on AHCI node; upload noticeably faster
pxefrisbee-k44linux-ubuntu-4.4.0-142-genericirfs-pxefrisbee-k44.igzyes (and IDE too)tested OK: rload and save both fine
pxefrisbee-k70linux-ubuntu-7.0.0-38-genericirfs-pxefrisbee-k70.igzyes (and IDE too)trials OK, being tested deeper

rhubarbe picks pxefrisbee-k44 as the default; it’s a trade-off, a relatively modern kernel but still small.

Notes:

How rhubarbe picks a stack

For a load/save, rhubarbe (manage_nextboot_symlink, in rhubarbe/node.py of the rhubarbe repo) creates, on the server, /tftpboot/pxelinux.cfg/01-<mac-with-dashes> as a symlink to the config named by the [pxelinux] frisbee_image setting of rhubarbe.conf, reboots the node, and removes the symlink once the node’s telnet is up (so the following reboot goes to pxelinux.cfg/default, which chain-loads the hard drive).

The stacks were renamed, so there is no longer a config called plain pxefrisbee: frisbee_image in rhubarbe.conf must name one of the 4 stacks above (this is being handled on the rhubarbe side).

To try a stack by hand on one node without touching rhubarbe’s setting:

cd /tftpboot/pxelinux.cfg
ln -s pxefrisbee-k70 01-00-03-1d-0e-75-a9    # the node's control MAC; then reboot it
# afterwards, remove the symlink if rhubarbe did not

What the images are

Why AHCI did not work

linux-ubuntu-3.13.0-37-generic is stock Ubuntu 3.13.0-37-generic. In that kernel libata, ata_piix and sd are built in (no disk module appears in lsmod; sda shows up at t=1s), but ahci + libahci are modules, and had been pruned from the initramfs. In IDE mode the controller (Haswell, 8086:8c00, class 0x0101) is driven by ata_piix; in AHCI mode (class 0x0106) only ahci binds, which was missing -> no /dev/sda.

The fix in all 3 AHCI stacks is the same: ship ahci.ko + libahci.ko (with a regenerated modules.dep), and add modprobe -q ahci to rcS.actual (udev should also autoload it by modalias). In the 4.4 and 7.0 kernels too, ata_piix, sd are built in and only ahci is a module, so IDE mode keeps working exactly as before.

Checksums (sha1)

filesha1
irfs-pxefrisbee-k313.igz4e7fa62c…
irfs-pxefrisbee-k313-ahci.igz7453466b…
irfs-pxefrisbee-k44.igzf6114b96…
irfs-pxefrisbee-k70.igz7e8198d4…
irfs-pxefrisbee.v0.igz39a56a2e…
linux-ubuntu-3.13.0-37-generic09f2a99b…
linux-ubuntu-4.4.0-142-genericb35cb510…
linux-ubuntu-7.0.0-38-generic7adbf624…

How the images were built

Done on distrait (Fedora 43, as root, in /tmp/frisbee-build.*). Building on macOS is not an option (device nodes/ownership, depmod). No debian tooling is needed: ar, tar, cpio, gzip, depmod (and unzstd for k70) are enough. Starting point is the unpacked irfs-pxefrisbee-k313.igz:

mkdir root && (cd root && gzip -dc ../irfs-pxefrisbee-k313.igz | cpio -idm)

k313-ahci: patch the current image

W=$(mktemp -d /tmp/frisbee-build.XXXXXX); cd $W
# irfs-pxefrisbee-k313.igz copied here beforehand
curl -fsSLO https://launchpad.net/ubuntu/+archive/primary/+files/linux-image-3.13.0-37-generic_3.13.0-37.64_amd64.deb
# NOTE: archive.ubuntu.com / old-releases return 404 for this one; launchpad has it

mkdir deb && (cd deb && ar x ../linux-image-*.deb && tar xf data.tar.bz2)
modinfo -F vermagic deb/lib/modules/3.13.0-37-generic/kernel/drivers/ata/ahci.ko
#   -> 3.13.0-37-generic SMP mod_unload modversions   (matches the kernel)

K=3.13.0-37-generic
mkdir -p root/lib/modules/$K/kernel/drivers/ata
cp deb/lib/modules/$K/kernel/drivers/ata/{ahci,libahci}.ko root/lib/modules/$K/kernel/drivers/ata/
depmod -b root $K          # regenerates modules.dep(.bin), alias, symbols

depmod also truncates modules.builtin.bin and modules.devname (there is no text modules.builtin in the tree), so restore those two files from the original image, and remove the empty modules.builtin.alias.bin/modules.weakdep it adds.

Edit root/etc/init.d/rcS.actual, before the # default control interface block:

# AHCI-mode SATA controllers need this module (ata_piix/libata/sd are built into the kernel)
modprobe -q ahci

Repack (-R 0:0: the tree used to be owned by a user):

(cd root && find . | cpio -o -H newc -R 0:0 --quiet | gzip -9) > irfs-pxefrisbee-k313-ahci.igz

The kernel is unchanged: linux-ubuntu-3.13.0-37-generic.

k44: same userland, Ubuntu 16.04 kernel 4.4.0-142

curl -fsSLO http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-image-4.4.0-142-generic_4.4.0-142.168_amd64.deb
mkdir k44 && (cd k44 && ar x ../linux-image-4.4.0-142-*.deb && tar xf data.tar.*)
K=4.4.0-142-generic
cp -a root rootB && rm -rf rootB/lib/modules/3.13.0-37-generic    # root = k313-ahci tree, with the rcS.actual edit
mkdir -p rootB/lib/modules/$K
cp -a k44/lib/modules/$K/{kernel,modules.order,modules.builtin} rootB/lib/modules/$K/
# prune to save space: gpu sound media infiniband staging bluetooth video
depmod -b rootB $K
(cd rootB && find . | cpio -o -H newc -R 0:0 --quiet | gzip -9) > irfs-pxefrisbee-k44.igz
cp k44/boot/vmlinuz-$K linux-ubuntu-$K

k70: same userland, Ubuntu 26.04 “resolute” kernel 7.0.0-38

Differences from k44 that matter:

K=7.0.0-38-generic; U=http://archive.ubuntu.com/ubuntu/pool/main/l/linux
curl -fsSLO $U/linux-image-unsigned-7.0.0-38-generic_7.0.0-38.38_amd64.deb
curl -fsSLO $U/linux-modules-7.0.0-38-generic_7.0.0-38.38_amd64.deb
mkdir img mod
(cd img && ar x ../linux-image-unsigned-*.deb && tar xf data.tar)
(cd mod && ar x ../linux-modules-*.deb && tar xf data.tar)
cp -a root rootC && rm -rf rootC/lib/modules/3.13.0-37-generic
D=rootC/lib/modules/$K; mkdir -p $D
cp -a mod/usr/lib/modules/$K/{kernel,modules.builtin,modules.builtin.modinfo,modules.order} $D/
find $D -name '*.ko.zst' -exec unzstd -q --rm {} +
# prune (see list above), then
depmod -b rootC $K
(cd rootC && find . | cpio -o -H newc -R 0:0 --quiet | gzip -9) > irfs-pxefrisbee-k70.igz
cp img/boot/vmlinuz-$K linux-ubuntu-$K

If the NIC is not called eth0 on some hardware with this kernel, add net.ifnames=0 next to biosdevname=0 in the APPEND line of pxefrisbee-k70 (it was not needed on the nodes tried so far).

Failure triage order if a stack does not work: kernel does not boot (pxelinux/bzImage) -> no network (module missing, NIC naming) -> no /dev/sda -> telnet.

Deploying and testing

cd ~/git/r2lab-misc/tftpboot/
rsync -ai irfs-* linux-* root@preplab.pl.sophia.inria.fr:/tftpboot/
rsync -ai pxelinux.cfg/pxefrisbee-* root@preplab.pl.sophia.inria.fr:/tftpboot/pxelinux.cfg/

(same for production, with the right host). On a node booted in a given stack, via telnet: uname -r, lsmod | grep ahci, dmesg | grep -i ahci, ls /dev/sd*, then a rhubarbe save and load. Do it on both AHCI-mode and IDE-mode nodes (non-regression).

Known caveats