AWS Adds support for nested virtualization

by sitoleon 2/13/26, 12:07 AMwith 109 comments
by bouloson 2/13/26, 2:19 AM

I feel vindicated :). We put in a lot of effort with great customers to get nested virtualization running well on GCE years ago, and I'm glad to hear AWS is coming around.

You can tell people to just do something else, there's probably a separate natural solution, etc. but sometimes you're willing to sacrifice some peak performance just have that uniformity of operations and control.

by alexellisukon 2/13/26, 8:09 AM

This is great news for folks that use microVMs - "we only use AWS" has been an issue for our stuff (slicer services/sandboxes/actuated self-hosted GitHub runners)

If anyone here can't wait (as it looks like there's very little info on this at the moment..)

I wrote up detailed instructions for Ant Group's KVM-PVM patches. Performance is OK for background servers/tasks, but does take a hit up to 50% on complex builds like Kernels or Go with the K8s client.

DIY/detailed option:

https://blog.alexellis.io/how-to-run-firecracker-without-kvm...

Fully working, pre-built host and guest kernel and rootfs:

https://docs.slicervm.com/tasks/pvm/

I'll definitely be testing this and comparing as soon as it's available. Hopefully it'll be accelerated somewhat compared to the PVM approach. There's still no sign whether those patches will ever end up merged upstream in the Linux Kernel. If you know differently, I'd appreciate a link.

Azure, OCI, DigitalOcean, GCE all support nested virt as an option and do all take a bit of a hit, but it makes for very easy testing / exploration. Bare-metal on Hetzner now has a setup fee of up to 350 EUR.. you can find some stuff with 0 setup fee, but it's usually quite old kit.

Edit: this doesn't look quite as good as the headline.. Options for instances look a bit limited. Someone found some more info here: https://x.com/nanovms/status/2022141660143165598/photo/1

by anuragon 2/13/26, 1:05 AM

This is a big deal because you can now run Firecracker/other microVMs in an AWS VM instead of expensive AWS bare-metal instances.

GCP has had nested virtualization for a while.

by BobbyTables2on 2/13/26, 3:07 AM

Is nested VMX virtualization in the Linux kernel really that stable?

The technical details are a lot more complex than most realize.

Single level VMX virtualization is relatively straightforward even if there are a lot of details to juggle with VMCS setup and handing exits.

Nested virtualization is a whole another animal as one now also has to handle not just the levels but many things the hardware normally does, plus juggling internal state during transitions between levels.

The LKML is filled with discussions and debates where very sharp contributors are trying to make sense of how it would work.

Amazon turning the feature on is one thing. It working 100% perfectly is quite another…

by leetrouton 2/13/26, 2:52 AM

> Nested virtualization is supported only on 8th generation Intel-based instance types (c8i, m8i, r8i, and their flex variants). When nested virtualization is enabled, Virtual Secure Mode (VSM) is automatically disabled for the instance.

by sitoleon 2/13/26, 12:07 AM

Support for nested virtualization has been added to the main SDKs. In the us-west-2 region, you can already see the "Nested Virtualization" option and use it with the new M8id, C8id, and R8id instance types.

This is really big news for micro-VM sandbox solutions like E2B, which I work on.

by blaz0on 2/13/26, 4:36 AM

This will make it easier to run automated tests in the Android emulator in CI using regular runners. It was a pain dealing with bare-metal instances just for that.

by fersarron 2/13/26, 6:16 PM

When will AWS add a statement about being bound to professional secrecy (e.g s203 in Germany) so we use the LLM endpoints for sensitive industries https://repost.aws/es/questions/QUOuFPk9TLSUuClI_wYNmVCQ/ser...

by ohthehugemanateon 2/13/26, 2:41 AM

I wonder if this is connected to Azure launching OpenShift Virtualization on "Boost" SKUs? There are a lot of VMWare customers going to OpenShift Virt, and apparently the CPU/memory overhead on Azure maxes out around 10% under full load... but then hyper V has been doing a lot of work on it. No idea if nitro includes any of the KVM-on-KVM passthrough of full KVM, to give it an edge here.

by gerdesjon 2/13/26, 1:01 AM

Could someone explain why this is might be a big deal?

I remember playing with nested virty some years ago and deciding it is a backwards step except for PoC and the like. Given I haven't personally run out of virty gear, I never needed to do a PoC.

by blibbleon 2/13/26, 12:34 AM

welcome AWS to 2018!

by csummerson 2/13/26, 2:06 PM

This a great news, but is there any more information about this other than an aws sdk commit? Is this generally available?

by ATechGuyon 2/13/26, 12:57 AM

Would love to see performance numbers with nested virtualization, particularly that of IO-bound workloads.

by anentropicon 2/13/26, 10:15 AM

Is this only when using the Go SDK?

by apion 2/13/26, 1:00 AM

What's the performance impact for nested virtualization in general? I'd think this would be adding multiple layers of MMU overhead.

by aliljeton 2/13/26, 2:45 AM

I wonder if this will extend SEV-SNP and TDX to the child VMs?

by loftieson 2/13/26, 11:43 AM

Yo dawg, I heard you like virtualisation so we put virtual servers inside of your virtual servers.

by ameliuson 2/13/26, 11:38 AM

But I'm sure their ToS doesn't allow you to run your own cloud platform inside AWS.

by dk8996on 2/13/26, 1:44 AM

Would these thing be good for openclaw, agents?

by dostickon 2/13/26, 3:37 AM

Proof that we’re living in a simulation.

by la64710on 2/13/26, 2:21 PM

How can this be replicated on prem?

by farklenotaboton 2/13/26, 12:56 AM

Sounds expensive for legacy apps

by j45on 2/13/26, 12:39 PM

It also makes me wonder how many other things I might not know that people are trying to do with cloud platforms that aren’t supported by them but have a negligible performance hit for many use cases.

by ilakshon 2/13/26, 2:22 AM

I wonder if providers like Hetzner and Digital Ocean etc. will get this someday also.

by bagelson 2/13/26, 12:56 AM

"* *Feature*: Launching nested virtualization. This feature allows you to run nested VMs inside virtual (non-bare metal) EC2 instances."

by amneon 2/13/26, 10:18 AM

obligatory: https://www.destroyallsoftware.com/talks/the-birth-and-death...

spoiler though: I'm referencing the part where gimp is running in Wine running in asm.js in a Chrome browser running in another asm.js in Firefox

by igtztorreroon 2/13/26, 3:20 AM

Digital Ocean has always supported nested virtualization.

by dangoodmanUTon 2/13/26, 1:17 AM

hell yes, finally

by andrewstuarton 2/13/26, 5:17 AM

Only took them 9 years. AWS so much innovation.

Remember, “customer obsession”.

But “protect revenue first”.