KVM installation in Ubuntu
Asked Answered
A

4

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.

Atrocity answered 4/8, 2015 at 4:24 Comment(0)
A
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.

Atrocity answered 6/8, 2015 at 12:45 Comment(0)
Y
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 
Yeryerevan answered 6/8, 2015 at 12:18 Comment(7)
Yes. Command lsmod | grep kvm gives no output. I used this guide: 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."Atrocity
Is it something like kvm works with Ubuntu kernel? I am currently using recent stable kernel version 4.1.Atrocity
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? :)Yeryerevan
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?Atrocity
Ah, then definitely KVM should work. It comes with 3.19. :)Atrocity
I have a similar problem, but I get output for lsmod: "kvm 663552 0" Is this as it should be?Jakoba
you're supposed to have something like ``` kvm_intel <somenumber> 0 kvm <somenumber> 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)Yeryerevan
R
2

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

yum install kvm qemu

Ubuntu:

sudo apt-get install kvm qemu

Refractor answered 12/4, 2016 at 18:3 Comment(0)
A
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.

Atrocity answered 6/8, 2015 at 12:45 Comment(0)
F
1

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.

Francinafrancine answered 14/5, 2020 at 19:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.