Skip to content

guestd: Stream workload stdout and stderr #7

Description

@t0gun

Context

scaled already accepts raw bytes on the guest log vsock port and writes them to the VM workspace. After workload launch, guestd should connect workload output to that existing log channel.

Scope

  • Capture child stdout.
  • Capture child stderr.
  • Stream both to the existing raw log vsock channel on port 10001.
  • Preserve the current host-side log behavior; do not frame log bytes with the control protocol.
  • Make failure behavior clear when the log channel is closed.

Acceptance Criteria

  • Workload stdout appears in the host-side guestd.log file.
  • Workload stderr appears in the host-side guestd.log file.
  • Log streaming does not block child reaping indefinitely.
  • CI remains green.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions