Skip to content

libvirt: add --console-log and --platform-console-log options#264

Open
cgwalters wants to merge 1 commit into
bootc-dev:mainfrom
cgwalters:libvirt-console-file
Open

libvirt: add --console-log and --platform-console-log options#264
cgwalters wants to merge 1 commit into
bootc-dev:mainfrom
cgwalters:libvirt-console-file

Conversation

@cgwalters
Copy link
Copy Markdown
Collaborator

The motivation is making debugging easier for automated testing. The console situation is messy - in bootc's CI we always inject hvc0 but that's not yet a standard across distros/OSes which maeks things messy.

We often end up with both hvc0 and a platform-specific console (which may be better supported by the bootloader), so support logging both to a file.

Assisted-by: OpenCode (Claude Sonnet 4.6)

The motivation is making debugging easier for automated
testing. The console situation is messy - in bootc's CI
we always inject `hvc0` but that's not yet a standard
across distros/OSes which maeks things messy.

We often end up with both hvc0 and a platform-specific
console (which may be better supported by the bootloader),
so support logging both to a file.

Assisted-by: OpenCode (Claude Sonnet 4.6)
Signed-off-by: Colin Walters <walters@verbum.org>
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces functionality to log virtio and serial console output to host files for libvirt-managed VMs. It adds new CLI arguments '--console-log' and '--platform-console-log', updates the 'DomainBuilder' to support these configurations, and includes logic to pre-create and validate log file paths to prevent conflicts. Additionally, it adds integration tests and documentation examples. I have no feedback to provide as there were no review comments.

@cgwalters cgwalters enabled auto-merge (rebase) May 13, 2026 14:58
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