Comment 2 for bug 394953

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

This a problem that gets reported repeatedly. I have a fix uploading to jaunty-proposed, in conjunction with a much higher SRU.

The kvm-source package is a dkms build of the kvm module. In order to build this, you *must* have the kernel headers installed for any kernel that you want to build kvm and boot.

Currently, we're depending on "linux-headers-server | linux-headers-generic | linux-headers".

This isn't good enough, though, as the user might have linux-headers and linux-headers-generic installed, but is running the linux-server kernel. In which, the dkms build fails, and reports the following helpful, informative message:

*************************************************

ERROR: Missing kernel headers.

You appear to have at least some kernel headers

installed, but you do not have the necessary

headers to build kvm-source against this kernel.

You might try installing the meta package:

 $ sudo apt-get install linux-headers-server

or specifically

 $ sudo apt-get install linux-headers-2.6.28-13-server

to obtain the necessary build dependencies.

*************************************************

This message tells users exactly how to solve the problem, however we still get bug reports by the truckload.

Thus, I'm proposing that we depend on all of "linux-headers-server, linux-headers-generic, linux-headers". This will involve installing extra headers on some systems. However, this is contained to users installing kvm-source, and will help avoid a lot of headaches.

Proposing for SRU, in conjunction with Bug #359447 and Bug #382077.

:-Dustin