firecracker-microvm / firecracker-microvm/firecracker-containerd

Support optionally forwarding agent and systemd journal logs from within VM to the host for debugging

Open
#276 3 comments 0 reactions 0 assignees View on GitHub
kind/enhancement
Dominant language
Go
Stars
2.9k
Forks
247
PR merge metrics
No merged PRs in 30d

Description

It's often very helpful for debugging to have logs from the agent process running inside the VM. Getting those logs is not straightforward as by default they will stay inside the VM.

One quick hack to get them is [this change](https://github.com/sipsma/firecracker-containerd/commit/2be7fb3c969438e16fca23b86ff151d1ea3af08d), which forwards the agent logs over `/dev/console` to the runtime process on the host, which in turn forwards them to containerd logs.

That approach can't be merged into master though as it results in a lot of noise in the containerd logs and could possibly lead to heavy use of `/dev/console`, which has been known to result in performance issues in the past. A mergable solution to this would need to deal with those issues; some ideas to explore are only forwarding them in a debug mode and making the destination of the logs configurable (could be containerd logs, could be a file, etc.).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.