Skip to main content

Bare-metal netboot appliance: catalog + fetch + NBD + PXE + TFTP + operator TUI in one container

Project description

pixie

Bare-metal netboot appliance in one container. Catalog + fetch + NBD serving + PXE plan renderer + TFTP + operator UI, on one FastAPI process with one state.db and one admin password.

Pixie folds into a single service what bty (operator UI + machine registry + PXE plan renderer + Rich TUI), nbdmux (NBD-export multiplexer + netboot artifact serve), and a hard-fork of withcache (catalog + fetch + blob store) implement as three separate FastAPI services. bty, nbdmux, and withcache continue as their own projects; pixie is a sibling appliance that starts from a merged design. See PLAN.md for the design rationale, locked decisions, and roadmap.

Run

The reference deploy is a single podman-compose stack under --network=host. The pixie-lab CLI (installed with the package) generates the compose file, the envvars template, and a per-deploy README:

pixie-lab init /opt/pixie
"$EDITOR" /opt/pixie/envvars.example    # set PIXIE_HOST_ADDR + PIXIE_ADMIN_PASSWORD
mv /opt/pixie/envvars.example /opt/pixie/envvars
cd /opt/pixie
podman compose --env-file envvars up -d

pixie-lab deploy fills in an admin password + host address + waits for /healthz in one shot, useful for a fresh lab machine.

Log in at http://:8080/. First landing after login is a dashboard summarising machines, catalog, and NBD-serving state; the top nav has Machines, Catalog, Events, and Settings.

Operator workflow

  1. Point catalog import at a catalog.toml URL on /ui/catalog. Entries land staged (rows only, no bytes yet).
  2. Click Fetch on a row to download it. The status pill ticks through downloading -> decompressing -> unpacking with a bytes / total counter so you see progress live.
  3. For the live-env boot modes (pixie-inventory / pixie-tui / pixie-flash-*), Fetch the pixie-live-env image + its netboot bundle, then set the image's content_sha256 on the Live env page (/ui/live-env) or via PIXIE_LIVE_ENV_IMAGE_SHA. Those modes nbdboot that image; until it's selected they render unavailable.
  4. Power-cycle a target with pixie in its DHCP next-server chain. A first contact shows up on /ui/machines with the default ipxe-exit boot mode. Open the row to bind a mode + image.
  5. pixie-inventory prompts the live env to POST an inventory blob; the target's disks + NICs + memory show up on the machine detail page.
  6. Flash modes (pixie-flash-once, pixie-flash-always) require a target disk serial that came in on the inventory. The binding form disables Save until that prerequisite is met.

State

Everything writable lives under PIXIE_DATA_DIR (default /var/lib/pixie). state.db holds catalog rows, machine rows, event log, settings, NBD-export records, and persistent-overlay records. blobs/<sha>/blob holds fetched disk images. artifacts/<sha>/{vmlinuz,initrd,manifest.json} holds unpacked netboot bundles. overlays/<mac>/<image_sha>/<profile>.qcow2 holds per-machine writable overlays for the nbdboot boot mode. The live env (pixie-inventory / pixie-tui / pixie-flash-*) is the fetched pixie-live-env disk image, selected by PIXIE_LIVE_ENV_IMAGE_SHA / the Live env page and nbdbooted like any other image, so it lives in blobs/ + artifacts/ too - there is no separate live-env directory.

Both admin password and display timezone / strftime pattern have env-var overrides plus DB overrides via /ui/settings; env wins so a compose deploy pins behaviour deterministically.

Development

uv sync
uv run pytest
uv run ruff check src tests
uv run mypy src

The integration tests spin real QEMU VMs behind a real pixie container to exercise the PXE bootstrap + ramboot chains. They are gated behind a marker so plain pytest skips them.

License

pixie is licensed under GPL-3.0-only. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pixie_lab-0.4.5.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pixie_lab-0.4.5-py3-none-any.whl (716.9 kB view details)

Uploaded Python 3

File details

Details for the file pixie_lab-0.4.5.tar.gz.

File metadata

  • Download URL: pixie_lab-0.4.5.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for pixie_lab-0.4.5.tar.gz
Algorithm Hash digest
SHA256 c2d1aa8c02bb8064dfc6a6022b4b7095129ea054877821b05d3018cfeb95a2fd
MD5 c0d4c85a339a69f3f9906ceb8aca8eb0
BLAKE2b-256 ef88d86126f1fd920ae9879365fc667c7506979d1006844dba0bc72c31327455

See more details on using hashes here.

Provenance

The following attestation bundles were made for pixie_lab-0.4.5.tar.gz:

Publisher: cicd.yaml on safl/pixie

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pixie_lab-0.4.5-py3-none-any.whl.

File metadata

  • Download URL: pixie_lab-0.4.5-py3-none-any.whl
  • Upload date:
  • Size: 716.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for pixie_lab-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 baaa5d8cb5405f9c00a688bc7bf4435df032e2c051ef82f9fe5d72d5f02d6568
MD5 5974bcbc13c6540a25be161f7b952f98
BLAKE2b-256 7e29ddf9b07534587aab8c8c778c9bc48c1b6d893d06b5bb99deea8eaa56d8ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for pixie_lab-0.4.5-py3-none-any.whl:

Publisher: cicd.yaml on safl/pixie

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page