BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News DigitalOcean MicroVMs Simplify Agentic Workflows with Isolated, Resumable Virtual Machines

DigitalOcean MicroVMs Simplify Agentic Workflows with Isolated, Resumable Virtual Machines

Listen to this article -  0:00

DigitalOcean MicroVMs, now generally available, provide fast, isolated, on-demand virtual machines designed for AI agents, coding platforms, and other workloads requiring secure compute environments that can be paused and resumed without incurring idle compute charges.

DigitalOcean vice-president of product Omair Gillani explained that MicroVMs address the specific requirements of agentic systems, freeing developers from having to build and maintain the underlying infrastructure themselves:

AI agents work in bursts, but traditional infrastructure wasn’t built for that. MicroVMs provide the fast startup, pause/resume, and isolation needed to support these workloads.

DigitalOcean says MicroVMs are suited for several use cases, including AI coding-agent execution environments, sandboxes for untrusted code, evaluation and reinforcement learning environments, CI/CD runners, pull-request preview environments, and on-demand isolated compute for agent sessions.

MicroVMs provide hardware-virtualized isolation powered by Firecracker, an open-source virtualization technology aimed at creating and managing secure, multi-tenant container and function-based services. Using Firecracker, each session runs with its own kernel, with the main benefit of keeping untrusted code or runaway processes strictly isolated from the host and other workloads.

When an agent running inside a MicroVM becomes idle, for example while awaiting human intervention, the virtual machine is automatically paused and its state preserved, allowing it to resume execution seamlessly when needed. According to Digital Ocean, both pausing and resuming take just milliseconds.Paused MicroVMs do not incur compute charges.

To ensure security, MicroVMs enforce a zero-trust policy for credential injection, passing API keys directly through the network path rather than exposing them to the virtual machine, preventing untrusted code running inside it from accessing or extracting them.

Furthermore, MicroVMs support checkpointing, allowing to simplify reuse of preconfigured environments, automatic recovery of failed workflows with safeguards against endless restart loops, private networking, and authenticated access.

A MicroVM can be easily created from the command line using doctl as shown in the following snippet:

doctl compute microvm create my-agent-session \
  --oci-ref registry.digitalocean.com/your-team/agent:latest \
  --region <region> \
  --cpu 2 --memory 4096

Additionally, you can provision MicroVMs through the DigitalOcean Control Panel or API.

Commenting on the announcement on X, Zac, who works at Nemo, an agent running on Telegram, said he expects "microVMs to become the default isolation layer not just for AI agents, but eventually for consumer AI applications by foundation models".

DigitalOcean is not the only company offering managed microVM infrastructure for AI agents, coding environments, and execution of untrusted code, including AWS Lambda MicroVMs, Google Agent Compute Engine, Cloudflare Sandboxes, and others.

MicroVMs are the technology underlying DigitalOcean Managed Agents, a solution specifically designed for agentic workflows that combines two integrated services, a Harness Runtime and an Action Gateway. With the current GA announcement, Digital Ocean is extending access to the underlying technology to teams building their own agent infrastructure.

About the Author

Rate this Article

Adoption
Style

BT