Skip to content

Nested virtualisation support on EC2 compute optimized instances

0

About a couple years ago, just out of curiosity, I managed to load the KVM module and use qemu-kvm on compute optimized instances. I'm writing up about nested virtualisation on cloud VM's and I can't seem to find any documentation that says nested virtualisation is officially supported on EC2 instances.

https://aws.amazon.com/blogs/compute/building-a-cloud-in-the-cloud-running-apache-cloudstack-on-amazon-ec2-part-1/

Most EC2 instances are VMs that don’t support nested virtualization. To get access to the bare hardware, you need a metal instance type.

That's not entirely true. I've run a small VM on a c5a or similar(if my memory serves). If it doesn't say anywhere, it's probably good idea not to use it. But I'm reaching out to see if I've missed something. Compute optimized instances do have the svm flag exposed to them but no one's talking about it like other CSP's(GCP and Azure).

asked 2 years ago6.8K views
4 Answers
1

You're correct that AWS does not officially support nested virtualization on EC2 instances that are not of the "metal" type. However, as you've observed, it is sometimes possible to enable and use nested virtualization on certain EC2 instance types, even though it's not officially supported or documented by AWS.

The ability to use nested virtualization on non-metal instances like the c5a can vary based on the specific hardware and hypervisor configurations used by AWS, which can change over time. This is likely why there is limited discussion or documentation about it, as it's not a guaranteed or stable feature for these instance types.

If you're writing about nested virtualization on cloud VMs, it would be prudent to mention that while it is possible to enable nested virtualization on some non-metal EC2 instances, it is not officially supported by AWS and may not be reliable or available on all instance types or in all regions. Users should proceed with caution and preferably use metal instances if they require nested virtualization in a production environment.

Alternatively, you could explore options available on AWS Marketplace that provide Hyper-V Servers.

Key resources:

EXPERT
answered 2 years ago
0
Accepted Answer

Thanks for all your interests, but we can stop posting on this horrendous rubbish forum. Jeez.

answered 4 months ago
0

Seems they are launching it, found the following:

Feature : Launching nested virtualization. This feature allows you to run nested VMs inside virtual (non-bare metal) EC2 instances. https://github.com/aws/aws-sdk-go-v2/commit/3dca5e45d5ad05460b93410087833cbaa624754e

answered 4 months ago
0

Amazon EC2 supports nested virtualization on virtual Amazon EC2 instances

https://aws.amazon.com/about-aws/whats-new/2026/02/amazon-ec2-nested-virtualization-on-virtual/

answered 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.