Skip to content

Conversation

@tylerfanelli
Copy link
Member

This PR enables nitro enclave guest kernel and initramfs debug logs via krun_set_log_level(KRUN_LOG_LEVEL_DEBUG). For those looking to try for themselves, a --debug flag was added to the nitro example. Enabling this flag will enable debug output from the enclave.

The debug enclave argument will direct the enclave to print
kernel+initramfs debug logs in addition to application output.

Rather than submitting the nitro start flags within the API, use the
setting of debug to enable the enclave's debug start flag.

Signed-off-by: Tyler Fanelli <tfanelli@redhat.com>
Signed-off-by: Tyler Fanelli <tfanelli@redhat.com>
We currently don't support user input via stdin. As such there's no need
to redirect stdin to the output vsock.

Signed-off-by: Tyler Fanelli <tfanelli@redhat.com>
The enclave's output proxy requires a signal from the enclave notifying
it to stop listening for output and terminate the connection. Close the
output vsock within the enclave to send this signal.

Signed-off-by: Tyler Fanelli <tfanelli@redhat.com>
Rather than rebooting, exit the init process. This will likely cause a
kernel panic and result in a "reboot" (according to the kernel, but
likely a termination by the nitro hypervisor).

Signed-off-by: Tyler Fanelli <tfanelli@redhat.com>
Signed-off-by: Tyler Fanelli <tfanelli@redhat.com>
Signed-off-by: Tyler Fanelli <tfanelli@redhat.com>
Copy link
Member

@jakecorrenti jakecorrenti left a comment

Choose a reason for hiding this comment

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

Just one slight improvement that I think would improve overall readability

@tylerfanelli tylerfanelli merged commit c877ec5 into containers:main Jan 9, 2026
11 checks passed
@tylerfanelli tylerfanelli deleted the nitro-debug branch January 9, 2026 02:18
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.

2 participants