Skip to content

[Feature]: boxd backend for CPU fleets #4536

Backlog

Description

@MichielMAnalytics

Problem

I'd like to run dstack dev environments, tasks and services on boxd machines. Full disclosure: I work on boxd.

boxd runs isolated microVMs: full Ubuntu 24.04 with Docker inside, 1, 2, 4 or 8 vCPU with 4 GB per vCPU, created in about a second, with snapshots and hibernate/wake. There are no GPUs, so this is only for CPU fleets.

Solution

A boxd backend under src/dstack/_internal/core/backends/boxd/, following contributing/BACKENDS.md:

  • Offers for the four CPU sizes, in the fra and nyc regions.
  • create_instance creates a machine and starts the dstack shim, terminate_instance deletes it.
  • Auth with a boxd API key in the backend config.
  • Unit tests, plus a live run of a dev environment and a task against real machines.

Workaround

Creating machines by hand and managing them outside dstack.

Would you like to help us implement this feature by sending a PR?

Yes. Given the GPU focus, I'd like to know first whether a CPU-only backend is something you'd accept.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions