Tencent AI Releases CubeSandbox v7 with Cross-Node State Persistence
Tencent Cloud's CubeSandbox v0.7.0 introduces cross-node pause and resume capabilities, optimized networking, and improved control plane separation for AI agents.
CubeSandbox v0.7.0 introduces a modular architecture that allows AI agent sandboxes to move seamlessly across nodes in a cluster.
- CubeSandbox v0.7.0 enables sandboxes to be paused on one machine and resumed on another using an S3 backend.
- The update features a major network subsystem refactor that reduces creation latency and improves security.
- New component multi-versioning ensures that existing templates and snapshots remain compatible after infrastructure upgrades.
Overview of CubeSandbox v0.7.0
Tencent AI has announced the release of CubeSandbox v0.7.0, a significant update to its open-source infrastructure designed for AI agent workloads. CubeSandbox is a high-performance sandbox service built on RustVMM and KVM, designed to provide secure, hardware-isolated environments for executing untrusted code. The latest version introduces 239 commits from 57 contributors, focusing on cluster mobility, operational stability, and networking performance.
The primary objective of CubeSandbox is to provide a lightweight alternative to traditional virtual machines and containers, specifically optimized for the high-concurrency needs of AI agents. With cold start times averaging less than 60ms and a memory overhead of less than 5MB per instance, the platform allows for high-density deployment on standard hardware. The v0.7.0 release extends these capabilities from single-node environments to multi-node clusters with state persistence.
Cross-Node Pause and Resume
The most prominent feature in v0.7.0 is the introduction of cross-node pause and resume capabilities. Previously, sandbox instances were generally tied to the specific machine where they were initialized. With the new update, sandboxes can be suspended on one node and resumed on another, provided an S3-compatible backend is used for state storage. This feature, currently in preview, allows for more flexible workload distribution and infrastructure maintenance without losing the execution state of a running agent.
This mobility is supported by the CubeS3lvol Copy-on-Write (COW) engine. While previous versions relied on local XFS COW for fast snapshotting, the integration of remote snapshot storage on S3 enables cross-node cloning. To facilitate this, the release includes built-in MinIO as the default S3 volume backend, though users can configure their own custom S3 storage solutions.
Component Multi-Versioning and Stability
To improve production stability, Tencent has introduced component multi-versioning. Newly created templates and snapshots now record the specific versions of the infrastructure components they depend on. This ensures that when compute nodes are upgraded, historical templates remain functional. This change prevents infrastructure updates from breaking the pause and resume functionality of existing instances, a critical requirement for long-running AI tasks.
Network Subsystem Refactor
The networking architecture of CubeSandbox underwent a significant refactor in this version to streamline provisioning and enhance security. The network-agent component has been merged directly into Cubelet, the node-level agent. This consolidation reduces the number of inter-process RPC calls required during sandbox creation, leading to lower latency.
The performance of the eBPF-based network policy provisioning has also been optimized. According to the project documentation, these changes significantly reduce creation latency for sandboxes that require specific network rules. Additionally, the lifecycle management of TAP devices was redesigned to ensure that network rules do not leak across different sandboxes, effectively reducing the potential attack surface in multi-tenant environments.
Operational Separation with CubeOps
Architecture changes in v0.7.0 include the separation of the control plane from operations logic. Node management tasks have been moved out of CubeMaster and into a dedicated component called CubeOps. This component supports multi-replica deployment, increasing the resilience of the management layer. Accompanying this change is the cubeopscli tool, which provides a dedicated command-line interface for cluster operations and node management.
For cluster scaling, the update now supports node deletion, allowing administrators to gracefully remove a node from the cluster so it no longer participates in scheduling. This is complemented by the existing support for one-click production cluster deployment on Tencent Cloud via Terraform and preview support for Kubernetes-based deployments.
SDK Enhancements and E2B Compatibility
CubeSandbox maintains a high degree of compatibility with the E2B SDK, allowing developers to switch from E2B Cloud to a self-hosted CubeSandbox instance by changing a single environment variable. The v0.7.0 release brings the Go and Node.js SDKs to parity with the Python SDK by adding Volume CRUD (Create, Read, Update, Delete) and volumeMounts support.
Other SDK improvements include:
- Python SDK: New
distribution_scopeparameter to explicitly specify which nodes or zones a sandbox can be placed on. - Node.js SDK: Support for
NEVER_TIMEOUTin sandbox runtime settings and fixes for Authorization headers. - Go SDK: Enhanced user-level file views to isolate file access by user identity and fixes for private sandbox data plane communication.
The project continues to offer full native ARM64 support, ensuring that these sandboxing capabilities are available across diverse hardware architectures, including Apple Silicon and Graviton-based cloud instances.
Enjoyed this?
Get more posts like this delivered to your inbox.