Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote journald services for systemd log collection. #596

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mbssrc
Copy link
Collaborator

@mbssrc mbssrc commented May 10, 2024

Description of changes

This draft PR is only intended to share my config to upload and receive systemd journals remotely for debug purposes.

Changes:

  1. Enable withRemote in base systemd config
  2. Add systemd-journal-upload service, exposed with the option withRemoteJournal. It allows to set the target IP, by default it is set to the netvm here
  3. Add systemd-journal-remote service, exposed via withRemoteJournalServer
  4. Add default logging to all VMs and host to netvm. You can retrieve all logs from the netvm in this configuration, e.g., via scp

Note: This is an insecure configuration and should only be used for debug purposes, as it uses http and adds a route from host.

Checklist for things done

  • Summary of the proposed changes in the PR description
  • More detailed description in the commit message(s)
  • Commits are squashed into relevant entities - avoid a lot of minimal dev time commits in the PR
  • Contribution guidelines followed
  • Ghaf documentation updated with the commit - https://tiiuae.github.io/ghaf/
  • PR linked to architecture documentation and requirement(s) (ticket id)
  • Test procedure described (or includes tests). Select one or more:
    • Tested on Lenovo X1 x86_64
    • Tested on Jetson Orin NX or AGX aarch64
    • Tested on Polarfire riscv64
  • Author has run nix flake check --accept-flake-config and it passes
  • All automatic Github Action checks pass - see actions
  • Author has added reviewers and removed PR draft status

Testing

@mbssrc mbssrc temporarily deployed to internal-build-workflow May 10, 2024 11:48 — with GitHub Actions Inactive
Signed-off-by: Manuel Bluhm <manuel@ssrc.tii.ae>
@mbssrc mbssrc temporarily deployed to internal-build-workflow May 10, 2024 11:52 — with GitHub Actions Inactive
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.

None yet

1 participant