AgentCore Runtime Instances Get KVM and Root: Agents Can Now Run Their Own VMs

Nov 20, 2026 · 6 min · Ajay Kumar

Two AWS announcements this week change what an agent can do on Amazon Bedrock AgentCore. On 18 November, Runtime Instances gained a privileged mode that runs an agent as root, able to install system packages and run its own containers. On 19 November, they gained nested virtualization: /dev/kvm inside the session, so an agent can boot QEMU guests, Android emulators or lightweight microVMs.

Disclosure: I run PandaStack, which sells microVM sandboxes for agents, so AgentCore is a competitor. I have kept this to what AWS documents.

What happened

Runtime Instances is the second compute type of AgentCore Runtime. The default type runs agents in serverless microVMs. Instances runs them on EC2 instances in your own account through a capacity provider, and the pricing page bills the EC2 time plus a management fee, 12% of the On-Demand price in AWS's worked example (7.8% for G-series GPU families). Sessions last up to 14 days and several agents can share one instance.

Nested virtualization, from the developer guide:

  • Set cpuOptions.nestedVirtualization to ENABLED in the capacity provider's launch parameters. It is fixed at creation; to change it you create a new capacity provider and move your runtimes to it.
  • LINUX_X86_64 only, and Intel families only: m7i, m8i, m8id, c7i, c8i, c8id, r7i, r7iz, r8i and r8id. No Graviton.
  • Container agents get /dev/kvm read-write even in standard mode, without extra privileges. Direct code agents open it on the instance.
  • All agents in a session share the instance's vCPUs and memory with any VMs they start.
"launchParameters": {
  "operatingSystem": "LINUX_X86_64",
  "instanceRequirements": { "allowedInstanceTypes": ["c8i.2xlarge", "m8i.2xlarge"] },
  "cpuOptions": { "nestedVirtualization": "ENABLED" }
}

Privileged mode, from the privilege mode page, is set per agent runtime with linux.privilegeMode:

STANDARD (default) PRIVILEGED
User Unprivileged user; container root maps to an unprivileged user Root. Container agents get the equivalent of docker run --privileged
Capabilities and seccomp No capabilities, seccomp filter, masked /proc and /sys All capabilities, no seccomp, all devices
Sharing a session Several standard agents can share one One privileged agent per session, for the session's whole life
/dev/kvm with nested virtualization Yes Yes (all devices)

What changes for engineers

The useful sentence is in the security model page: "The session is the isolation unit." One session maps to one EC2 instance. Inside it, AWS is blunt that agents are not isolated from each other: they share the file system, neither containers nor plain processes are a security boundary between them, and AgentCore does not isolate execution role credentials between agents, so any code on the instance can read every agent's credentials. A privileged agent can also stop the AgentCore components that collect its logs and metrics.

That makes the two features pull in opposite directions:

  • Privileged mode widens the blast radius inside the instance. Root plus readable credentials means the agent's model output, and anything that injects into it, can do whatever the execution role allows. AWS limits a privileged agent to one per session, which helps, but the role is still on the box.
  • Nested virtualization can narrow it. If the agent runs untrusted code (generated code, a cloned repository's test suite, a downloaded binary) inside a KVM guest it boots itself, that code no longer sits next to the credentials. This is the layering I described in choosing isolation for agent workloads: an outer boundary you rent, an inner one you control. It only works if the guest gets no credentials and no unrestricted network path back to the instance metadata or AWS APIs.
  • Your own VMs are your problem. AgentCore manages the instance. Nothing in the documentation says it manages, patches or logs the guests your agent boots. Kernel images, Firecracker or QEMU versions, and the guest network are all yours.
  • Mind the cost model. VMs inside the session consume the instance you pay for by the hour plus the fee. And because nested virtualization is Intel-only, AWS's own worked example on Graviton c7g does not apply to it.

What I ran

Nothing. I have no AgentCore account to test with on this machine, I do not run AWS commands from these scheduled sessions, and macOS on Apple silicon offers no /dev/kvm to try the guest side locally. There are no boot-time or overhead numbers here. When I can run a Firecracker guest inside a c8i session, I will publish the numbers next to the ones in the sandbox runtime comparison.

What to do this week

  • Do not turn on privileged mode for convenience. If an agent only needs Postgres and Redis for tests, check whether a standard-mode agent plus a separate service works first. If it must be privileged, give its runtime an execution role scoped to that one job.
  • One tenant per session. Never route two customers, or two agents with different roles, into the same session ID.
  • If you want VM-level isolation for generated code, plan the guest. Pick the instance family (Intel only), decide which kernel and VMM you will maintain, and block guest access to 169.254.169.254 and to AWS endpoints.
  • Recreate rather than edit. Nested virtualization cannot be toggled on an existing capacity provider, so stage a new one and move runtimes to it.

FAQ

Can Firecracker run inside AgentCore?

AWS's documentation says agents can use /dev/kvm "the same way that they would on any Linux host with KVM" and names lightweight virtual machines as a use case, which is what Firecracker needs. I have not tested it, so I cannot confirm boot times or limits.

Is a privileged AgentCore agent isolated from other customers?

Yes, at the EC2 instance level: the instance runs in your account and serves one session. What privileged mode removes is isolation inside that instance. The agent is root there and can read every credential and file on it.

Which instance types support AgentCore nested virtualization?

Intel-based families only: m7i, m8i, m8id, c7i, c8i, c8id, r7i, r7iz, r8i and r8id, with the LINUX_X86_64 operating system. A capacity provider that lists any other type fails with a ValidationException.

Related: gVisor vs microVM vs Containers for AI Agent Isolation, AI Agent Sandbox Runtime: The Six Options and Best AI Agent Sandbox Providers in 2026.

Spot an error or something out of date? Email me and I will fix it and log it on the corrections page.

I'm Ajay Kumar — I build and operate PandaStack, an open-source Firecracker microVM cloud for AI agents, and write about the infrastructure and tooling around it.

Need this kind of infrastructure work? See what I do or email hello@ajayk.sh.


Related