Feature Request: Expose nested virtualization for Daytona and Modal sandboxes

Open
#4,318 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
docker, docker-compose, python

Research direction

Start by locating the provider abstraction for Daytona and Modal (the same code that currently forwards Docker Compose and Modal's VM runtime), and see how provider options reach sandbox creation. Then trace how environment/docker-compose.yaml device mappings are built so the /dev/kvm half of the proposal has a home. Done means an explicit opt-in option per provider that enables nested virtualization at sandbox creation, with tests; note both upstream paths (Modal Enterprise, Daytona org enablement) may not be verifiable locally.

Written by the indexing model from the issue text.

Description

Harbor currently supports Docker Compose on both providers and VM runtime selection on Modal, but I could not find a public provider option forwarding either nested-virtualization setting. Could Harbor expose an explicit opt-in for this capability?


Here is the background. I’m investigating a Harbor adapter for OSWorld-V2. Each task needs to boot the benchmark’s existing Ubuntu QCOW2 image using QEMU/KVM, alongside task services.

OSWorld-V2’s Docker provider launches the desktop VM inside a Docker container, mounts the QCOW2 disk, and passes through /dev/kvm for hardware acceleration. Running this setup inside a VM-based sandbox requires nested virtualization. Without KVM, the provider falls back to slower software emulation.

Both providers document nested virtualization:

  • Daytona: a Linux VM snapshot with kvm=True, subject to organization enablement.
  • Modal: VM runtime with experimental_options={"enable_nested_virt": True}, available on Enterprise.

The execution path has two parts:

  1. Enable nested virtualization in the outer provider sandbox, making /dev/kvm available.
  2. Expose /dev/kvm to the task container running QEMU, for example through a device mapping in environment/docker-compose.yaml.

One implementation idea is to add provider-specific --ek options that forward these settings when Harbor creates the sandbox. The option names could follow each provider’s conventions. The provider option would address the first part; the task’s container configuration would handle the second.

Dominant language
Python
Stars
5.6k
Forks
1.9k
Avg merge
1d 17h
Merged PRs (30d)
156

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from harbor-framework/harbor

All issues in harbor-framework/harbor

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.