8000 A min task run body on a VM-backed host reaches only Minimal's steered hosts, and other connections hang · Issue #3574 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

A min task run body on a VM-backed host reaches only Minimal's steered hosts, and other connections hang #3574

Closed

Description

@norrietaylor

What happens

On macOS (minvmd), with the project network default host_ip, the command a task runs cannot open direct TCP connections. Only destinations Minimal itself routes (for example github.com and the package cache) answer. Every other destination is dropped without a reset, so clients retry until they time out. DNS resolves normally.

A task that runs a cloud CLI against Google Cloud Storage prints Running task preview in box preview-1... and then nothing for 25+ minutes, with the VM idle.

A probe task that opens /dev/tcp/<host>/<port> to a list of destinations gives: github.com:443 OK, cache.minimal.dev:443 OK; storage.googleapis.com:443, www.google.com:443, api.github.com:443, 1.1.1.1:443, 8.8.8.8:443 all fail. The same script from a session (min session exec <session> -- bash -s < script), and from min box exec <task-box> while the task box is up, reaches every destination.

So the box's own exec path has normal host_ip egress, while the per-invocation process the task body runs in does not.

Also seen: the first cache clean after daemon start deleted entries that had just been fetched for the running task, because an entry with no recorded read counts as old.

Expected

  • A task gets the network and rules of its box, as the docs say: full host_ip egress here.
  • A dropped connection is logged once per box, so a stalled task can be explained from the log.
  • The cache clean does not reclaim an entry that was written after the cutoff and not yet read.

Where

  • crates/minimald/src/env.rs: run_invocations, run_invocations_relayed (the task invocation path); compare with the box exec path.
  • crates/minimald/src/net/classifier.rs: the classifier leaf placement for a host-address box.
  • crates/op/src/cache_clean.rs (around line 131): atimes.last_read(hash).is_none_or(|last| last < cutoff).

Workaround

Run the commands with min session exec <session> -- bash -s < script.

epic: #1437


This is a residual of epic #1437 (NET).

Activity

  1. added
    bugSomething isn't working
    priority:should-haveShould be done. Applied by the inbox-route classifier or a human.
    on Nov 18, 2026
  2. norrietaylor commented on Nov 19, 2026

    @norrietaylor
    MemberAuthor

    Fixed by #3610: a task run on a VM-backed host now runs in its box's classifier leaf, so it takes the box's egress rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:should-haveShould be done. Applied by the inbox-route classifier or a human.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0