Skip to content

v0.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 22 Oct 07:42

KumaBox v0.1.0

KumaBox's first regular release provides a single-host microVM runtime for AI agents and other isolated workloads. This release ships Linux amd64 host binaries, kumabox-check, checksums, and a matching Ubuntu 24.04 guest image built from the same commit.

Runtime capabilities

  • Images: pull registry images or import Docker archives and OCI layouts; verify image content; share immutable EROFS layers between sandboxes.
  • Lifecycle: create, run, start, stop, remove and inspect sandboxes. Writable root filesystems and managed data disks survive stop/start without taking a memory snapshot.
  • Guest operations: streamed command execution with stdin, environment, working directory and user selection; interactive console access and logs; managed background processes; file listing, metadata, read/write, directory creation, rename and removal; forward guest TCP services over vsock.
  • Networking: CNI-backed network namespaces, multiple NICs, live NIC changes and guest network configuration.
  • Storage and devices: managed data disks and runtime attachment of external raw disks, virtio-fs shares and VFIO PCI devices, subject to host prerequisites.
  • Snapshots: save running memory and writable disks, restore in place, hibernate, clone with a new identity, and export/import portable packages. Cross-host recovery requires compatible architecture, VMM build and VM configuration; it is a manual transfer workflow, not automatic live migration.
  • Remote access: authenticated HTTP API and Python/TypeScript SDK source in the repository. SDK packages are not published to PyPI or npm by this release.

Changes since v0.1.0-rc.1

  • Added guest file operations, background process management, execution options and TCP forwarding.
  • Added graceful guest shutdown with configurable timeout and an explicit force-stop path. If the guest cannot shut down within its window, the owned VMM is terminated.
  • Improved snapshot/clone provisioning and made memory restore selection explicit with auto, copy, ondemand and mmap modes.
  • Added host CPU scheduling controls: weight, quota, period, burst credit and explicit CPU sets. Clone requests get a fresh host scheduling policy; in-place restore retains the target policy.
  • Added hugetlb-backed RAM, KSM opt-in and an option to omit the balloon device. Memory options remain fixed across snapshot/clone/restore. Snapshot capture allows bounded time for balloon reclaim before pausing the guest.
  • Fixed live NIC removal incorrectly reporting a successful guest operation as failed when its completed transport was closed a second time.
  • Fixed a Linux test that assumed every process-group member had already exited immediately after SIGKILL, and enabled push CI for all branches.

Install

Use a Linux amd64 host with KVM and root access. Download the archive and SHA256SUMS from this release, then run:

sha256sum -c SHA256SUMS
tar -xzf kumabox_v0.1.0_linux_amd64.tar.gz
sudo install -m 0755 kumabox kumabox-check /usr/local/bin/
sudo kumabox-check --upgrade
sudo kumabox doctor
sudo kumabox image pull ghcr.io/kgpp34/kumabox/ubuntu:24.04-v0.1.0
sudo kumabox run ghcr.io/kgpp34/kumabox/ubuntu:24.04-v0.1.0 \
  --name hello --cpus 2 --memory 1GiB --storage 10GiB
sudo kumabox exec hello -- uname -a

The immutable guest image digest is appended below by the release workflow. Host setup installs privileged dependencies and configures networking; review its output and the host prerequisites in the README.

Resource policy and compatibility

  • The default CPU period is 100000us, quota is vCPU count times period, and weight is vCPU count. Default burst credit now equals quota, whereas the previous runtime used no burst credit. Use --cpu-burst-us -1 on create/run/clone for strict bandwidth limits. Explicit positive burst credit requires kernel support.
  • --cpuset-cpus selects an explicit host CPU list. Source-host CPU IDs are not inherited by clones; this release does not automatically select CPUs.
  • --hugepages requires a sufficiently sized host hugetlb pool. Its snapshots restore by eager copy; explicit mmap requests fall back with a warning. Large pages do not automatically make snapshot recovery faster.
  • --mergeable marks private guest RAM for KSM. The administrator enables/tunes the host scanner. It cannot be combined with hugepages or shared memory.
  • --no-balloon omits the balloon device; otherwise its initial target reclaims 25% of configured RAM.
  • Automatic restore uses mmap on compatible monitors with plain private memory, otherwise copy. On-demand paging is opt-in. Do not assume all upstream VMM builds support the same memory restore modes.
  • Exported memory snapshots are not portable across arbitrary CPU architectures, VMM versions or device shapes. Keep source captures immutable while they are in use.

Before upgrading from the preview, stop existing sandboxes, retain a backup of persistent data, and use the matching v0.1.0 guest image for new deployments. Keep an old binary and compatible snapshot tooling for rollback. The project remains in the 0.x series; changes to CLI/API, metadata or snapshot compatibility will be documented in future release notes rather than implied by this version being a regular release.

Experimental and future capabilities

E2B compatibility is experimental and partial. Supported calls and tested SDK versions are documented in api/e2b/README.md. Native guest file/process support does not imply the corresponding E2B protocol endpoints are fully supported.

This release does not include multi-node scheduling, automatic migration, warm pools, a Firecracker backend or a complete E2B replacement. Official prebuilt assets and release acceptance target Linux amd64; other source-build architectures are not included in these release binaries.

The regular Ubuntu guest image prioritizes general usability. Fast-image benchmark results are not a latency guarantee for the published Ubuntu image or for different hardware.

Guest image: ghcr.io/kgpp34/kumabox/ubuntu:24.04-v0.1.0 (ghcr.io/kgpp34/kumabox/ubuntu@sha256:8eb0d96dc78b740103e9f040f366702b432bbb29260b24b4ab431b6dc5a61702).