kvm can't initialize due to old kvm kernel version

Bug #80293 reported by Josh Ancill
24
Affects Status Importance Assigned to Milestone
kvm (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: kvm

When trying to use kvm version in feisty I get the following error.

mempf@Mempftop:~/kvm$ sudo kvm -boot c -hda vdisk.img -no-acpi -m 256
kvm kernel version too old
Could not initialize KVM, will disable KVM support

Please note this only started to occur after an update to kvm 11-0-ubuntu1.

Revision history for this message
Paul Williams (pwill) wrote :

Confirmed here with a dual-core Pentium D with VT enabled.
Confirmed also by various users on this thread: http://ubuntuforums.org/showthread.php?t=321521&page=2

Marking as confirmed, high importance, as it inhibits use of KVM enabled Qemu.

Changed in kvm:
status: Unconfirmed → Confirmed
Revision history for this message
Paulo Tanimoto (tanimoto) wrote :

Confirmed in AMD64 and EMT64 platforms. Assigning to Kernel-bugs, unless somebody has a better idea.

Changed in kvm:
assignee: nobody → kernel-bugs
Revision history for this message
Kyle McMartin (kyle) wrote :

Update merged, upload pending. Stay tuned.

Changed in kvm:
assignee: kernel-bugs → nobody
status: Confirmed → Fix Committed
Revision history for this message
Kyle McMartin (kyle) wrote :

Uploaded and built, bug closed.

Changed in kvm:
status: Fix Committed → Fix Released
Revision history for this message
Matej Kenda (matejken) wrote :

I have installed kvm 15-1ubuntu1 with Linux kernel 2.6.20-9-generic (2.6.20-9.16), but the problem mentioned in the description is still present.

Revision history for this message
Matej Kenda (matejken) wrote :

Part of the strace kvm that shows the problem:

open("/dev/kvm", O_RDWR) = 3
ioctl(3, 0xae01, 0) = 2
write(2, "kvm kernel version too old\n", 27kvm kernel version too old
) = 27
close(3) = 0
write(2, "Could not initialize KVM, will d"..., 51Could not initialize KVM, will disable KVM support
) = 51

Revision history for this message
Igor (igor47) wrote :

I have the same problem here on an Intel Core Duo T60

This happened after a kvm upgrade yesterday from 12-1ubuntu1 to 15-1ubutu1.

iisereb@serenity:~$ kvm
kvm kernel version too old
Could not initialize KVM, will disable KVM support
QEMU PC emulator version 0.9.0,

iisereb@serenity:~$ uname -a
Linux serenity 2.6.20-9-386 #2 Mon Feb 26 02:58:41 UTC 2007 i686 GNU/Linux

Changed in kvm:
status: Fix Released → Confirmed
Revision history for this message
Igor (igor47) wrote :

A WORKAROUND:

I attempted to downgrade the the previous version of KVM after this problem happened, but unfortunately the previous version is no longer in the repositories.

If you need kvm as badly as I do, the workaround is to find someone with the old version still installed and use their /usr/bin/kvm binary. I simply overwrote the new version with the older version, and it seems to work with no obvious problems.

I got the older version from a coworker who is more conservative in his upgrades, but if you trust some sketchy binary some dude uploaded onto a website, attached is the kvm_12-1ubuntu1 version of the /usr/bin/kvm binary.

Revision history for this message
Stephen Touset (stephen-touset) wrote :

FWIW, this is a likely bad idea. The kvm binary in this case might not be tied to any other libraries in its package, but that's no guarantee for future use. Older packages, if not in the repositories, can still often be found in the pool.

Manually overwriting binaries controlled by the packaging system can cause unpredictable problems. If you do so, please back up the original version first.

Revision history for this message
Matej Kenda (matejken) wrote :

It appears that this problem has been solved.

I use the following packages and KVM works fine:

* linux-image-2.6.20-13-generic 2.6.20-13.21
* kvm 16-1ubuntu1

Bug can be closed.

Revision history for this message
Clarke Wixon (cwixon) wrote :

I wouldn't be too quick to close this -- I'm getting the same error with kvm-18 compiled from source (Feisty AMD64 2007-03-31 daily image, kernel 2.6.20-13). The same kvm release worked fine on Edgy, kernel 2.6.17-11 (same system).

It's possible this has nothing to do with the kvm package, but rather the kernel package or some other dependency. Bears further investigation.

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :
Changed in kvm:
status: Confirmed → Fix Released
Revision history for this message
Christian Schürer-Waldheim (quincunx) wrote :

No, it's still not fixed. Version 16 crashes when trying to start the ubuntu server feisty cd image (see bug #107172 and #103665). And version 18 of KVM can't use the kernel KVM modules due to not matching API versions as stated in this bug report.

Revision history for this message
Kevin Kubasik (kkubasik) wrote :

I'm able to use KVM, still has a hard time booting in some systems, but all said and done its functional....

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.