Skip to content

[Feature]: Support booting Verda fleets from a prepared OS volume #4500

Open

Description

@7architect

Problem

We use dstack to provision GPU machines on demand for Dask. When the Verda backend creates a fresh VM, it requests a new system disk. That VM then pulls our 5.05 GB CUDA worker image from the registry. Keeping GPUs allocated between jobs would increase idle cost. Current Verda provisioning in dstack

We ran the same tagged image and CUDA probe on two Verda A100 VMs of the same SKU in FIN-01:

Path Time to observed successful CUDA probe
Create a fresh VM and pull the image 529.1 s
Clone a prepared system disk, boot a new VM, and run with --pull=never 88.0 s

Registry login and image pull took 437.9 s. Cloning the populated 100 GB boot volume took 5.6 s. The second VM already had the same image digest in its local Docker store before the container started. This was one paired test directly against Verda and Docker. We did not measure dstack worker registration.

Solution

Let users specify an optional prepared OS volume for Verda fleets. When provisioning a VM, dstack could clone the source volume in an eligible location and pass the clone ID as the Verda image. Each VM would own its clone, so parallel VMs could boot independently. dstack would remove the clone when the VM is deleted or provisioning fails. The source volume would remain available for future runs. The existing shim already skips network pulls for fixed tags found in the local Docker store. Verda API · Local image check in dstack

The AWS backend's os_images setting is a precedent for selecting the OS source while dstack manages provisioning. We'd appreciate feedback on whether to use a common OS source setting or a Verda-specific setting. AWS backend configuration

Workaround

Prepare a Verda VM with the worker image in Docker, delete that VM while retaining its system disk, then clone the disk and provision a new VM from the clone through the Verda API. This puts the clone, VM creation, and cleanup outside dstack's provisioning flow.

We also verified that two A100 VMs can boot concurrently from two clones of one detached 100 GB system disk. Both VMs read the donor marker and reported a working GPU via nvidia-smi. The source volume survived removal of both VMs. Verda volume cloning

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

Yes

Activity

  1. peterschmidt85 commented on Nov 20, 2026

    @peterschmidt85
    Contributor

    We tested this on Verda and the approach works: a VM booted from a clone of a prepared OS volume starts normally, runs dstack's startup script, and has the image in its local Docker store.

    Two issues we see currently:

    1. Cloning. Unlike an AWS AMI, a Verda VM boots from the volume itself, so dstack has to clone the source volume for every VM and own the clone: remove it when the VM is deleted and when provisioning fails. If the server stops between cloning and creating the VM, the clone is left behind and keeps being billed.
    2. SSH keys. Verda rejects new SSH keys when a VM boots from an existing OS volume (Cannot add new SSH keys to existing OS volume). dstack would have to add its keys from the startup script, and the keys already on the prepared volume stay on every VM.
  2. 7architect commented on Nov 27, 2026

    @7architect
    Author

    If I address these architectural issues, particularly volume lifecycle management and SSH key handling, would you be open to reviewing and accepting a Pull Request implementing this feature in dstack? I’d like to make sure the proposed approach aligns with your expectations before proceeding with the implementation.

  3. 7architect commented on Nov 28, 2026

    @7architect
    Author

    @peterschmidt85 We’ve implemented support for prepared Verda boot volumes in our downstream version of dstack. We use it for on-demand Dask GPU workers. In our paired test on two A100 VMs of the same SKU, the time from requesting a VM to a successful CUDA probe dropped from 529 seconds to 88 seconds. Registry login and the pull of our 5.05 GB worker image accounted for 438 seconds on the fresh VM. The measurement ended at the CUDA probe, before Dask worker registration.

    This would also help teams running scheduled batch inference, scaling GPU workers to queue depth, or spinning up several machines for a set of experiments. These workloads often reuse the same image across many short-lived VMs. With a prepared volume, a team can pull the image once per release and boot each VM from its own clone. We verified that two A100 VMs could boot concurrently from separate clones of the same source volume. For a queue that sees bursts of short jobs, that means the team can release the last GPU when the queue drains and skip the image download when the next job arrives.

    On the SSH question, we scope the prepared volume to one dstack project. During preparation, we remove the builder’s SSH keys and configure SSH to accept only the project’s public key. Before cloning, dstack checks that the key’s fingerprint matches the one recorded for the volume.

    On cleanup, each VM owns its clone, and normal VM deletion removes that clone while preserving the source volume. The remaining gap is recovery if the dstack server stops after cloning but before VM creation. An upstream implementation would need to identify those orphaned clones after a restart and remove them safely.

    Would an opt-in, project-scoped implementation with one clone per VM and automatic cleanup of orphaned clones after a server restart be a reasonable scope for a first PR?

  4. peterschmidt85 commented on Nov 28, 2026

    @peterschmidt85
    Contributor

    Sure, happy to look at. Could you please share the PR for review?

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions