Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

KVM not working with EC2 C5.large

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?

like image 237
Robert Avatar asked Nov 29 '17 02:11

Robert


People also ask

Does AWS support KVM?

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.

Does Amazon use Xen or KVM?

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.

What is the best EC2 instance for heavy CPU load?

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.

How do I increase RAM size in EC2 instance?

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.


1 Answers

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.

like image 91
Grigory Rechistov Avatar answered Oct 01 '22 04:10

Grigory Rechistov