I used a Centos AMI on AWS, with Type C5.large and HVM. I installed the KVM packages but when I run kvm-ok
the output is:
Your CPU does not support KVM extensions
KVM acceleration can NOT be used
How is possible my CPU does not support acceleration?
KVM is supported on Oracle Enterprise Linux (OEL) 7 and OEL 8 systems using either RHCK or any Unbreakable Enterprise Kernel (UEK) since UEK Release 4. You can find publicly accessible AMIs for recent versions of Oracle Linux 7 and 8 in both the AWS Marketplace and community AMI repository.
AWS is believed to be the only major service provider working at scale that uses Xen, so part of the rational for the switch may be to save support and development costs by allowing KVM's far larger community support to bear the brunt of that work.
The compute-optimized AWS EC2 instance type is intended for running computer-intensive tasks that require many CPU resources but don't have high memory and storage requirements. This EC2 instance type provides access to many virtual processors with high performance.
To resize your EC2 instance, choose an instance type that meets your CPU, RAM, and feature requirements. Consider the following before resizing your EC2 Windows instance: If you launch instances from Amazon Machine Images (AMIs), install the required drivers for the destination instance type.
You are trying to run a virtual machine monitor within a virtual machine. It is a second level, or nested virtualization what you are trying to achieve.
As the Intel hardware supports only a single level of hardware-assisted virtualization, adding support for efficient (i.e., not painfully slow) nesting requires a lot of clever software engineering in hypervisors. Fortunately, this has been done in many of popular VMM software, including KVM. Whether it is enabled or depends on the administrative settings of the top-level VMM, as it decides what to expose to its guests. You should inquire your hosting/cloud operator for a possibility to activate nested virtualization support for your instances, and what it will cost you in monetary value.
Alternatively, a bare metal host, not a VM, may be the only alternative for your if you find yourself needing more performance, as each virtualization layer increasingly adds overhead to resources consumption, especially speed of input-output operations.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With