Skip to content

Allow a per-VM UEFI firmware override - #348

Open
stackviolator wants to merge 1 commit into
cocoonstack:masterfrom
stackviolator:add-vm-firmware-override
Open

stackviolator wants to merge 1 commit into
cocoonstack:masterfrom
stackviolator:add-vm-firmware-override

Conversation

@stackviolator

@stackviolator stackviolator commented Dec 3, 2026 •

Copy link
Copy Markdown

Summary

Add a per-VM --firmware override to vm create, vm run, and vm debug. It lets a UEFI cloud image select a firmware file for that VM without changing the host-wide Cocoon default.

Validate that the path is absolute and names a regular file. Reject the option for direct kernel boot images. The selected path is recorded in the VM's boot configuration, so subsequent debug output and snapshot handling use the same firmware.

Motivation

Some Windows Server images require a larger EDK2 firmware image than Cocoon's default. The current CLI cannot select that image for a single VM, which blocks recipe builds for several RTBench tasks.

Validation

  • gofumpt -w cmd/vm/commands.go cmd/vm/run.go cmd/vm/run_test.go
  • go test -race ./cmd/vm
  • Backported the same option to the worker's v0.5.8 Cocoon binary for integration testing. ConfigMgr, SharePoint, and Windows Admin Center RTBench oracles each passed with reward 1 using their task-specific firmware paths. The exact v0.5.8 backport patch is preserved in the fork.

@stackviolator
stackviolator marked this pull request as ready for review December 3, 2026 19:09

This branch has not been deployed

No deployments
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