Skip to content

feat(argo): add reusable Dakota VM boot test pod template and Just recipe - #1166

Merged
castrojo merged 1 commit into
mainfrom
feat/dakota-vm-boot-test
Oct 6, 2026
Merged

castrojo merged 1 commit into
mainfrom
feat/dakota-vm-boot-test

Conversation

@castrojo

@castrojo castrojo commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a documented, reusable "Dakota VM boot test pod" capability to projectbluefin/lab.

Approach (plain-root boot)

  • Runs an ephemeral privileged pod using the Dakota image under test.
  • Decompresses and unpacks OCI image layers into /work/root with tar -xpf ... --xattrs --xattrs-include='*' --numeric-owner.
  • Directly builds a 40G ext4 raw disk from /work/root using mkfs.ext4 -q -L root -d /work/root disk.raw, eliminating loop devices completely.
  • Extracts vmlinuz and initramfs.img from /usr/lib/modules/<version>/.
  • Injects root SSH authorized_keys and enables sshd.service.
  • Boots QEMU/KVM with host CPU passthrough (-machine q35,accel=kvm -cpu host) and root=/dev/vda rw systemd.firstboot=no console=ttyS0,115200.
  • Connects via root SSH on 127.0.0.1:2222 to execute in-VM evidence commands and captures outputs.
  • Admitted via the dakota-vm-boot: "1" semaphore in manifests/workflow-semaphores.yaml.

Deliverables

  1. argo/workflow-templates/dakota-vm-boot-test.yaml
  2. Justfile recipe: run-dakota-vm-boot image="..."
  3. Documented in docs/skills/kubevirt-vms/SKILL.md, docs/reference/workflow-reference.md, docs/ops/RUNBOOK.md, docs/skills/argo-workflows/patterns.md, docs/skills/dakota-pr-review/SKILL.md, and AGENTS.md.
  4. Unit tests in tests/unit/test_dakota_vm_boot_test.py.

Assisted-by: Copilot

…cipe

Add dakota-vm-boot-test WorkflowTemplate for direct QEMU/KVM kernel
boot verification of Dakota images inside an ephemeral privileged pod.
The template unpacks image layers directly into an ext4 raw disk via
mkfs.ext4 -d (plain-root approach, avoiding loop devices and bootc
install splitstream failures), injects root SSH credentials, boots
QEMU/KVM with host CPU passthrough, and executes in-VM evidence
commands over SSH.

Add dakota-vm-boot semaphore to workflow-semaphores, run-dakota-vm-boot
recipe to Justfile, unit tests, and documentation.

Assisted-by: Copilot
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@castrojo
castrojo merged commit 843f019 into main Oct 6, 2026
3 checks passed
@castrojo
castrojo deleted the feat/dakota-vm-boot-test branch October 6, 2026 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant