View Single Post
Old 17th February 2007, 20:21
pjdevries pjdevries is offline
HowtoForge Supporter
Join Date: Sep 2006
Posts: 130
Thanks: 7
Thanked 12 Times in 5 Posts

I have the slight feeling we have a bit of a communication problem. Let's rewind:

I first did a plain, bare Debian install, which apparently installs a 2.6.18-3 kernel. Next I installed all the prerequisites with the command
apt-get install kernel-package linux-source-2.6.18 kernel-patch-openvz libncurses5-dev
and tried to patch and compile the kernel using the command
make-kpkg --append_to_version=-1-openvz --added_patches=openvz --revision=1 kernel_image
which resulted in the patch failure. So the reason why 'uname -a' still displays the default Debian kernel is that I never got around to installing the the OpenVZ kenel as a result of the failing patch.

To be honest I don't quite understand what the default 2.6.18-3 kernel has to do with my current problem because the 'apt-get install' command installs 'linux-source-2.6.18.tar.bz2' which seems to be the right one. I was under the assumption that 'apt-get install' command magically installs both the proper kernel sources and a suitable, corresponding OpenVZ patch. But that doesn't seem to be the case.

In the mean time I also followed the Installation on Debian thread in the HOWTO section of and installed the precompiled kernel image 'linux-image-2.6.18-openvz-686_028test007.1d2-1_i386.deb' which I downloaded from This seems to work as expected but it doesn't really solve the actual problem though.

As of today I also see 'linux-image-2.6.18-openvz-686' when I run 'apt-cache search openvz', which I'm (almost) sure wasn't there before. My questions now are:
  1. Is that the same image as the one I downloaded from
  2. Should I install that image or can I safely use the one I downloaded from
  3. Is it better to compile my own kernel, using kernel sources and OpenVZ patch from the Debian repository, or to install a compiled image from either the Debian or the OpenVZ repository? Or doesn't it make any difference?

By the way, ls -l /boot displays:
-rw-r--r-- 1 root root   71331 2006-12-04 16:52 config-2.6.18-3-686
-rw-r--r-- 1 root root   71017 2007-02-03 15:45 config-2.6.18-openvz-686
drwxr-xr-x 2 root root    4096 2007-02-16 20:52 grub
-rw-r--r-- 1 root root 4490228 2007-02-15 14:48 initrd.img-2.6.18-3-686
-rw-r--r-- 1 root root 4487429 2007-02-16 20:51 initrd.img-2.6.18-openvz-686
-rw-r--r-- 1 root root      41 2007-02-03 18:10 patches-2.6.18-openvz-686
-rw-r--r-- 1 root root  720074 2006-12-04 23:24
-rw-r--r-- 1 root root  752899 2007-02-03 18:10
-rw-r--r-- 1 root root 1259920 2006-12-04 23:24 vmlinuz-2.6.18-3-686
-rw-r--r-- 1 root root 1267097 2007-02-03 18:10 vmlinuz-2.6.18-openvz-686
But remember that I installed that precompiled kernel image from which wasn't there with in my previous post.
Reply With Quote