6

I have tried installing KVM according to the guidelines provided on Ubuntu wiki but when I open Virtual Machine Manager it says that,

'Warning: KVM is not available. This may mean the KVM package is not installed, or the KVM kernel modules are not loaded. Your virtual machines may perform poorly.'

I have hardware virtulization enabled in my BIOS settings. Here, is a output of sudo /usr/sbin/kvm-ok:

INFO: /dev/kvm does not exist HINT: sudo modprobe kvm_intel modprobe: FATAL: Module msr not found.

Also, output of sudo modprobe kvm_intel is as follows:

modprobe: FATAL: Module kvm_intel not found.

4 Answers4

4

It does look like the installation failed.

What's the output of this command?

lsmod | grep kvm

I expect no output. If that so, is it this the guide you followed? What was the output of

sudo apt-get install kvm qemu 
Carlo Lobrano
  • 368
  • 1
  • 9
  • Yes. Command lsmod | grep kvm gives no output. I used this guide: https://help.ubuntu.com/community/KVM/Installation. Installation didn't fail I guess. Even right now command gives me this output: "qemu-kvm is already the newest version. qemu is already the newest version." –  Aug 06 '15 at 12:26
  • Is it something like kvm works with Ubuntu kernel? I am currently using recent stable kernel version 4.1. –  Aug 06 '15 at 12:33
  • It works with ubuntu, I am using it with an older kernel version. Sorry if I insist on this, but you're 100% sure VT is enabled on BIOS? :) – Carlo Lobrano Aug 06 '15 at 12:59
  • Yes. VT is enabled on BIOS. The solution which I posted works for me. But still I want to know which Ubuntu version and kernel version are you using? –  Aug 06 '15 at 15:52
  • Ah, then definitely KVM should work. It comes with 3.19. :) –  Aug 12 '15 at 05:13
  • I have a similar problem, but I get output for lsmod: "kvm 663552 0" Is this as it should be? – Brian Peterson Aug 25 '20 at 20:15
  • you're supposed to have something like ``` kvm_intel 0 kvm 1 ``` which shows that kvm is used by 1 other driver (that is kvm_intel). It seems you lack of kvm_intel (or kvm driver for amd or whatever hw you have) – Carlo Lobrano Aug 26 '20 at 09:19
1

I was running Ubuntu 14.04 with recent kernel version. But it eventually turned out that KVM works well with Ubuntu kernel only. So I tried using 3.13.0-24-generic which comes by default with Ubuntu 14.04 and this solved my problem. KVM is working fine for me now.

1

Looks like you don't have it installed:
Fedora:

yum install kvm qemu

Ubuntu:

sudo apt-get install kvm qemu

Danya02
  • 1,006
  • 1
  • 9
  • 24
user6123979
  • 209
  • 5
  • 13
0

Install using sudo apt-get install qemu-kvm

You should also check if Virtualization Technology is enabled. To do this, reboot your system, enter BIOS and enable Intel VTT or Intel VT-d from virtualization options. Save and exit.

code.rookie
  • 346
  • 2
  • 6