box new: inline resource overrides (--cpu / --memory / --disk) #57
Labels
No labels
blocked
blocker:ci-red
blocker:conflict
blocker:drill-pending
blocker:unrequested
bug
claimed
documentation
enhancement
epic
merge-next
needs-triage
ready
release
scope:cli
scope:drill
scope:host
scope:installer
scope:templates
scope:tiers
stale
state:addressing
state:bots-reviewing
state:building
state:needs-human
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: heavy-duty/box#57
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Today
Per-box resources can only be overridden through environment variables at mint time:
Resolution is env > template
box.env> defaults (4/8GiB/60GiB,bin/boxload_template). It works — the drill leans on it on small hosts — but it's invisible:box new --helpdoesn't advertise it, and nothing about the command surface suggests resources are overridable at all.Ask
First-class flags on
new:BOX_CPU-style env (kept, scripts use it) > template > default.limits.cpu/limits.memory/ rootsize=exactly as the template path does — same strings Incus accepts, no unit parsing of our own.--diskapplies at launch only (VM root device size); container mode inherits the pool as today. Post-mint resize stays out of scope — that'sbox incus's job.security.*— flags override resources only, so the trust boundary is untouched.box infoalready shows what an instance actually got via Incus config; no new surface needed there.Non-goal: flags on
--fromclones (a clone carries its source's resources; changing them post-hoc is the escape hatch's job).🤖 Generated with Claude Code