Repository navigation
Allow a per-VM UEFI firmware override - #348
Open
stackviolator wants to merge 1 commit into
Open
stackviolator wants to merge 1 commit into
stackviolator wants to merge 1 commit into
Conversation
stackviolator
marked this pull request as ready for review
December 3, 2026 19:09
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a per-VM
--firmwareoverride tovm create,vm run, andvm 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.gogo test -race ./cmd/vm