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).

David T
질문됨 2달 전212회 조회
1개 답변
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:

profile picture
전문가
답변함 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠